/* ============================================================
   Sächsische Physikolympiade – Design System
   Farbschema: Hell / Creme – Lichtbrechung auf Papier
   ============================================================ */

:root {
  /* Farben – helle Variante: Papier/Creme mit den Logofarben Blau und Orange */
  --bg-primary:      #FFFDF8;   /* warmes Weiß */
  --bg-secondary:    #F7F1E6;   /* helles Creme für Wechselabschnitte */
  --bg-card:         #FFFFFF;
  --bg-card-hover:   #FFFBF4;
  --border:          #E9E1D2;
  --border-light:    #D6CAB4;

  --accent-primary:  #0A5FAD;   /* Logo-Blau (Schriftzug) */
  --accent-secondary:#084B8A;
  --accent-hover:    #1873C8;
  --accent-glow:     rgba(10, 95, 173, 0.10);
  --accent-glow-strong: rgba(10, 95, 173, 0.28);

  /* Warmer Akzent aus dem Vereinslogo (Lichtquellen) */
  --accent-warm:        #F18812;   /* Logo-Orange für Flächen */
  --accent-warm-strong: #B85A06;   /* dunkleres Orange für Text/Icons auf Hell */
  --accent-warm-glow:        rgba(241, 136, 18, 0.10);
  --accent-warm-glow-strong: rgba(241, 136, 18, 0.35);

  --text-primary:    #14213D;   /* Tintenblau */
  --text-secondary:  #4A5568;
  --text-muted:      #6B7385;
  --text-accent:     #0A5FAD;
  --text-on-accent:  #FFFFFF;

  --success:         #0E9F6E;
  --warning:         #B7791F;
  --gold:            #D4A017;

  /* Typografie */
  --font-sans:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Abstände */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Radien */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Schatten */
  --shadow-card: 0 1px 2px rgba(20, 33, 61, 0.04), 0 4px 16px rgba(20, 33, 61, 0.05);
  --shadow-glow: 0 2px 4px rgba(20, 33, 61, 0.04), 0 12px 32px rgba(10, 95, 173, 0.10);

  /* Übergänge */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
[id] { scroll-margin-top: 80px; }   /* Sprungziele nicht unter der fixierten Menüleiste verstecken */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }

/* ── Typografie ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-secondary); margin-bottom: var(--space-md); }

.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.mono { font-family: var(--font-mono); }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container--wide { max-width: 1440px; }

section { padding: var(--space-3xl) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ── Header / Navigation ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__logo-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Für das große Logo in hero/footer */
.logo-full {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
}

.logo-full--dark {
  filter: brightness(0) invert(1);
}

/* Optionale helle Variante für dunkle Hintergründe */
.logo-on-dark {
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  padding: 6px 10px;
  white-space: nowrap;          /* Menüpunkte nie umbrechen */
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--accent-primary);
  background: var(--accent-glow);
}

.nav__cta {
  padding: 8px 14px;
  margin-left: var(--space-xs);
  background: var(--accent-warm);
  color: var(--text-primary) !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}
/* bleibt orange, auch wenn der Button auf die gerade geöffnete Seite zeigt */
.nav__link.nav__cta.active {
  background: var(--accent-warm);
  color: var(--text-primary) !important;
}
.nav__cta:hover {
  background: #F59A33;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 16px var(--accent-warm-glow-strong);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: 0;
}
.nav__mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  /* keine volle Bildschirmhöhe mehr: der nächste Abschnitt schließt direkt unter den Buttons an */
  display: flex;
  align-items: flex-start;   /* Inhalt oben ausrichten, damit Logo, Text und Buttons ohne Scrollen sichtbar sind */
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 0;          /* allgemeiner section-Abstand entfällt hier */
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;               /* ohne feste Größe bliebe das Canvas bei 300×150 px oben links */
  height: 100%;
  z-index: 0;
  /* Netz hinter dem Textblock abschwächen, damit Überschrift und Text gut lesbar bleiben */
  -webkit-mask-image: radial-gradient(ellipse 32% 38% at 50% 42%, rgba(0,0,0,0.25) 40%, #000 100%);
          mask-image: radial-gradient(ellipse 32% 38% at 50% 42%, rgba(0,0,0,0.25) 40%, #000 100%);
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,95,173,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,95,173,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(241,136,18,0.12) 0%, rgba(10,95,173,0.05) 40%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem) var(--space-xl) clamp(2rem, 5vh, 3.5rem);
}

.hero__logo {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
}
.hero__logo img {
  width: 100%;
  max-width: min(320px, 31vh);  /* auf niedrigen Bildschirmen kleiner */
  height: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--accent-warm-glow);
  border: 1px solid rgba(241,136,18,0.40);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-warm-strong);
  letter-spacing: 0.05em;
  margin-bottom: clamp(1rem, 3vh, 1.75rem);
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-warm);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* „Aktuelles“-Kasten über der Hero-Überschrift */
.hero__news {
  max-width: 720px;
  margin: 0 auto clamp(0.75rem, 2vh, 1.5rem);
  padding: 0.6rem 1.1rem 0.65rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(241,136,18,0.35);
  border-left: 3px solid var(--accent-warm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.hero__news-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm-strong);
  margin-bottom: 0.3rem;
}
.hero__news-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-warm);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero__news p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 0.2rem;
}
.hero__news p:last-child { margin-bottom: 0; }
.hero__news strong { color: var(--text-primary); }
.hero__news a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  /* richtet sich nach Breite UND Höhe des Fensters, damit Text und Buttons im ersten Bildschirm bleiben */
  font-size: clamp(1.9rem, min(4.6vw, 6.2vh), 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: clamp(0.75rem, 2.5vh, 1.25rem);
}

.hero__title .highlight {
  /* Spektrale Aufspaltung wie an der Linse im Vereinslogo: Kalt → Warm */
  background: linear-gradient(135deg, var(--accent-primary) 10%, var(--accent-warm) 90%);
  /* In OKLCH interpoliert, damit der Verlauf Blau → Orange nicht über Grau läuft */
  background: linear-gradient(135deg in oklch, var(--accent-primary) 10%, var(--accent-warm) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, min(1.6vw, 2.4vh), 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto clamp(1rem, 3vh, 2.25rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Statistik als eigener Abschnitt unter „Was bringt dir die Physikolympiade?“ */
.stats-band { padding: var(--space-2xl) 0; text-align: center; }
.stats-band .hero__stats { margin-top: 0; padding-top: 0; border-top: 0; }

.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
}
.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10, 95, 173, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover { color: var(--text-primary); }

.btn svg { width: 18px; height: 18px; }

/* ── Section Header ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}
.section-header .label { margin-bottom: var(--space-sm); }
.section-header p { font-size: 1.05rem; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.card__icon {
  width: 48px; height: 48px;
  background: var(--accent-warm-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--accent-warm-strong); fill: none; stroke-width: 1.5; }

.card h3 { margin-bottom: var(--space-sm); }
.card p  { margin-bottom: 0; font-size: 0.9rem; }

/* ── Stages / Timeline ──────────────────────────────────── */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.stages::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-light), var(--accent-primary), var(--accent-warm-strong), var(--border-light));
}

.stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.stage:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.stage__number {
  width: 48px; height: 48px;
  background: var(--bg-card);
  border: 2px solid var(--accent-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-warm-strong);
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.stage__title { margin-bottom: var(--space-sm); font-size: 1.1rem; }

.stage__date {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-warm-glow);
  border: 1px solid rgba(241,136,18,0.35);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-warm-strong);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}

.stage p { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Winners Table ──────────────────────────────────────── */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.winner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: all var(--transition);
}
.winner-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.15);
}

.winner-card__medal {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(212,160,23,0.10);
  border: 1px solid rgba(212,160,23,0.35);
}

.winner-card__grade {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 2px;
}
.winner-card__name { font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.winner-card__school { font-size: 0.8rem; color: var(--text-muted); }

/* ── Sponsor Bar ────────────────────────────────────────── */
.sponsors {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sponsors__label {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.sponsors__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.sponsor-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.7;
  transition: opacity var(--transition);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}
.sponsor-item:hover { opacity: 1; }
.sponsor-item svg { width: 20px; height: 20px; }

/* Logo-Feld in den Förderer-Karten (Kontaktseite) */
.sponsor-logo {
  width: 150px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 480px) { .sponsor-logo { width: 110px; height: 40px; } }

/* ── Info Section ───────────────────────────────────────── */
.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
}

.info-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.info-block__icon {
  width: 44px; height: 44px;
  background: var(--accent-warm-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-block__icon svg { width: 22px; height: 22px; stroke: var(--accent-warm-strong); fill: none; stroke-width: 1.5; }

/* ── Schools ────────────────────────────────────────────── */
.school-list { display: grid; gap: var(--space-sm); }

.school-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.school-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card);
}

.school-item__city {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  min-width: 80px;
}
.school-item__name { font-size: 0.9rem; color: var(--text-secondary); }
.school-item__name a {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.school-item__name a:hover { color: var(--accent-primary); }
.school-item__ext { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.55; }
.school-item__name a:hover .school-item__ext { opacity: 1; }

/* ── Download Cards ─────────────────────────────────────── */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: all var(--transition);
}
.download-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.download-card__info { flex: 1; }
.download-card__type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.download-card__name { font-weight: 600; color: var(--text-primary); margin: 2px 0; }
.download-card__meta { font-size: 0.8rem; color: var(--text-muted); }

.download-card__btn {
  width: 40px; height: 40px;
  background: var(--accent-glow);
  border: 1px solid rgba(10,95,173,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.download-card__btn:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}
.download-card__btn svg { width: 18px; height: 18px; }

/* Aufgaben des Vorjahres (kompaktes Archiv) */
.archive {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}
.archive__links { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}
.archive-link span { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
.archive-link:hover { border-color: var(--accent-primary); background: var(--accent-glow); }

/* ── Contact ────────────────────────────────────────────── */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}
.contact-item__icon {
  width: 40px; height: 40px;
  background: var(--accent-warm-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; stroke: var(--accent-warm-strong); fill: none; stroke-width: 1.5; }
.contact-item__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-item__value { color: var(--text-primary); font-weight: 500; }

/* ── Timeline (Geschichte) ──────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-primary), transparent);
}

.timeline__item { position: relative; margin-bottom: var(--space-xl); }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -28px; top: 8px;
  width: 10px; height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Der jeweils letzte (= aktuelle) Meilenstein leuchtet warm – "es passiert gerade jetzt" */
.timeline__item:last-child::before {
  background: var(--accent-warm);
  box-shadow: 0 0 0 4px var(--accent-warm-glow);
}
.timeline__item:last-child .timeline__year {
  color: var(--accent-warm-strong);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.timeline__title { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-sm); }
.timeline__text { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Page Header (Unterseiten) ──────────────────────────── */
.page-header {
  padding: calc(64px + var(--space-xl)) 0 var(--space-xl);   /* flacher als zuvor (2xl) */
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,95,173,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,95,173,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-header__content { position: relative; z-index: 1; }
.page-header .label { margin-bottom: var(--space-sm); }
.page-header h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: var(--space-xs); }  /* kleiner als globale h1 (max. 3.5rem) */
.page-header p { max-width: 760px; font-size: 1.05rem; margin-bottom: 0; }
.page-header .breadcrumb { margin-bottom: var(--space-sm); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb__sep { color: var(--border-light); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand p { font-size: 0.875rem; margin-top: var(--space-md); max-width: 280px; }

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer__links a:hover { color: var(--accent-primary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--space-3xl) 0;
}

/* ── Alert Box ──────────────────────────────────────────── */
.alert {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.alert--info {
  background: var(--accent-warm-glow);
  border: 1px solid rgba(241,136,18,0.35);
}
.alert--warning {
  background: rgba(183,121,31,0.08);
  border: 1px solid rgba(183,121,31,0.30);
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert--info svg   { stroke: var(--accent-warm-strong); }
.alert--warning svg { stroke: var(--warning); }
.alert__title { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.alert__text  { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Navigation: unter 1180 px passt das Menü nicht mehr in eine Zeile -> Klappmenü */
@media (max-width: 1180px) {
  .nav__links    { display: none; }
  .nav__mobile-toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-primary);
    box-shadow: 0 12px 24px rgba(20, 33, 61, 0.08);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-lg); }
  .grid-2, .grid-3, .stages { grid-template-columns: 1fr; }
  .stages::before { display: none; }

  .footer__grid  { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__stats   { gap: var(--space-xl); }
  section        { padding: var(--space-2xl) 0; }

  .download-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav__logo-img  { height: 30px; }
  .nav__logo-text { font-size: 0.78rem; }
  .nav__logo-text span { font-size: 0.6rem; letter-spacing: 0.02em; }
  .hero__logo img { max-width: 250px; }
  .hero__subtitle { font-size: 0.95rem; line-height: 1.6; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn           { justify-content: center; }
  .grid-4        { grid-template-columns: 1fr; }
}

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.text-warm   { color: var(--accent-warm-strong); }

/* Badge für "läuft jetzt / aktuell"-Hinweise im warmen Komplementärton */
.badge--warm {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-warm-glow);
  border: 1px solid rgba(241,136,18,0.45);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm-strong);
}
.text-muted  { color: var(--text-muted); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mt-xl  { margin-top: var(--space-xl); }
.gap-sm { gap: var(--space-sm); }
.flex   { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── Scroll animations ──────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Atom animation (Dekoration) ────────────────────────── */
.atom-decoration {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
}
