@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --primary: #1a2744;
  --accent: #3a7bd5;
  --accent-light: #5b9ee1;
  --accent-glow: rgba(58, 123, 213, 0.18);
  --bg: #0d1117;
  --bg-card: #141b2d;
  --bg-card2: #1a2338;
  --text: #e8eaf0;
  --text-muted: #8a93a8;
  --border: rgba(58, 123, 213, 0.18);
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --radius: 12px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAVIGATION ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Crimson Pro', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-light); }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('media/pexels-7722923.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.18) saturate(0.5);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,0.85) 0%, rgba(26,39,68,0.6) 60%, rgba(13,17,23,0.95) 100%);
  z-index: 1;
}

/* Molekül-Partikel-Hintergrund */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-up 8s ease-in-out infinite;
}

.particle:nth-child(1)  { width:6px; height:6px; background:var(--accent); left:10%; animation-delay:0s; }
.particle:nth-child(2)  { width:4px; height:4px; background:var(--gold);   left:25%; animation-delay:1.5s; }
.particle:nth-child(3)  { width:8px; height:8px; background:var(--accent-light); left:40%; animation-delay:3s; }
.particle:nth-child(4)  { width:5px; height:5px; background:var(--gold-light);   left:60%; animation-delay:0.8s; }
.particle:nth-child(5)  { width:6px; height:6px; background:var(--accent); left:75%; animation-delay:2.2s; }
.particle:nth-child(6)  { width:4px; height:4px; background:var(--gold);   left:88%; animation-delay:4s; }

@keyframes float-up {
  0%   { opacity:0; transform: translateY(100vh) scale(0.5); }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.5; }
  100% { opacity:0; transform: translateY(-20vh) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(58, 123, 213, 0.15);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards 0.3s;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards 0.5s;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-title {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards 0.7s;
}

.hero-title strong { color: var(--accent-light); font-weight: 700; }

.hero-desc {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards 0.9s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards 1.1s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(58,123,213,0.35);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58,123,213,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: color 0.3s, border-color 0.3s, transform 0.2s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards 1.3s;
}

.stat-item { text-align: left; }

.stat-number {
  font-family: 'Crimson Pro', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-light);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECTIONS ───────────────────────────────────────── */
section { padding: 6rem 2rem; }

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* ─── FORSCHUNG ──────────────────────────────────────── */
#forschung { background: var(--bg); }

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.research-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}

.research-card h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.research-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── PUBLIKATIONEN ──────────────────────────────────── */
#publikationen { background: var(--bg-card); }

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.pub-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: transform 0.3s, border-color 0.3s;
}

.pub-item:hover {
  transform: translateX(6px);
  border-color: var(--accent);
}

.pub-year {
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 48px;
  padding-top: 0.2rem;
}

.pub-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.pub-journal {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-style: italic;
  margin-bottom: 0.3rem;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pub-authors strong {
  color: var(--text);
  font-weight: 700;
}

.pub-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-top: 0.5rem;
}

/* ─── ÜBER MICH ──────────────────────────────────────── */
#about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,123,213,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.85);
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.4;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
}

.about-text p:first-of-type {
  font-family: 'Crimson Pro', serif;
  font-size: 1.25rem;
  color: var(--text);
  font-style: italic;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.skill-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s;
}

.skill-tag:hover {
  color: var(--accent-light);
  border-color: var(--accent);
}

/* ─── KONTAKT ────────────────────────────────────────── */
#kontakt { background: var(--bg-card); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.kontakt-info h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.kontakt-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.kontakt-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  margin-bottom: 0.8rem;
  transition: border-color 0.3s, transform 0.2s;
}

.kontakt-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.kontakt-link .link-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.kontakt-link .link-text { font-size: 0.85rem; }
.kontakt-link .link-label { display: block; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.kontakt-link .link-value { color: var(--accent-light); }

.affiliation-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.affiliation-card h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.affiliation-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.affiliation-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}

.affiliation-item:first-of-type { border-top: none; padding-top: 0; }

.aff-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.aff-name { font-size: 0.9rem; font-weight: 700; }
.aff-detail { font-size: 0.8rem; color: var(--text-muted); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: #080c12;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  margin: 0 0.8rem;
}

footer a:hover { color: var(--accent-light); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Crimson Pro', serif;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-logo span { color: var(--gold); }

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-wrap { display: none; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}
