/* ==========================================================================
   ASTRONOMISCHER KALENDER — Website-Stylesheet
   Ein Kalender, der wirklich zum Himmel schaut.
   ========================================================================== */

/* ---- Design-Tokens ------------------------------------------------------ */
:root {
  /* Farben */
  --c-navy:        #0A1628; /* Weltraum-Dunkel (ersetzt reines Schwarz) */
  --c-blue:        #14507D; /* Hauptfarbe – identisch zum Kalender-Header */
  --c-blue-deep:   #0D3A5C; /* dunklerer Blauton für Verläufe/Hover */
  --c-sky:         #7EC8E3; /* Hellblau */
  --c-sky-pale:    #E9F4FA; /* helle Blaufläche für Hintergründe */
  --c-white:       #F7FAFC;
  --c-ink:         #10151B; /* Fließtext-Schwarz */
  --c-gold:        #F4B942; /* Sonne */
  --c-gold-light:  #FFD873;
  --c-grey-footer: #2B2F33;

  /* Typografie */
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Fluid Type Scale */
  --fs-eyebrow: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
  --fs-body:    clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-h1:      clamp(2.2rem, 1.6rem + 3.2vw, 4rem);
  --fs-h2:      clamp(1.6rem, 1.35rem + 1.2vw, 2.35rem);
  --fs-lede:    clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);

  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;
  --space-2xl: 8rem;

  --maxw: 1180px;
  /* Eigene, breitere Maximalbreite NUR für die Kopfzeile (.site-header__bar
     weiter unten) - unabhaengig von --maxw, das fuer die eigentlichen
     Inhaltsabschnitte bewusst schmaler/lesefreundlicher bleibt. Grund:
     bei 12 Nav-Punkten reichte die frueher gemeinsam genutzte --maxw von
     1180px auf den meisten Desktop-Fensterbreiten nicht aus, wodurch
     "Sternbilder" und "Fakten" regelmaessig in eine zweite Zeile
     umgebrochen sind - obwohl auf breiteren Bildschirmen (1440px, 1920px
     Fensterbreite etc.) eigentlich reichlich Platz vorhanden war. Der
     Wert hier ist bewusst grosszuegig gewaehlt, damit die Navigation auf
     allen gaengigen Desktop-/Laptop-Fensterbreiten in einer Zeile bleibt;
     unterhalb von 1300px greift ohnehin das Mobil-Menue (Hamburger). */
  --maxw-header: 1700px;
  --radius: 6px;
  --dur: 0.7s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Kompensiert den sticky Header bei Anker-Sprüngen (Nav-Links, "Jetzt
     kaufen"-Button etc.), damit das Ziel nicht teilweise dahinter
     verschwindet. Grosszügig bemessen, deckt Header-Höhe auf Mobil- und
     Desktop-Breiten ab. */
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
/* Anker-Ziele (Nav-Links, "Jetzt kaufen"-Button unten zu #buy): Offset
   direkt auf den Zielelementen statt nur über scroll-padding-top auf
   <html>, weil einige Browser (u.a. ältere WebKit/Safari-Versionen)
   scroll-padding-top bei Anker-Sprüngen zuverlässig ignorieren, aber
   scroll-margin-top auf dem Ziel selbst respektieren. Deckt sich mit dem
   scroll-padding-top-Wert oben. */
[id] {
  scroll-margin-top: 6rem;
}
body#top { scroll-margin-top: 0; }
a { color: inherit; }
a, button, summary, [tabindex] { scroll-margin-block: 6rem 2rem; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--c-gold);
  color: var(--c-navy);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--c-navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--c-gold-light);
}

.site-header :focus-visible,
.facts :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.section__figure :focus-visible {
  outline-color: var(--c-white);
  box-shadow: 0 0 0 5px var(--c-gold-light);
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---- Kopfzeile / Navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(247, 250, 252, 0.08);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}
/* Ueberschreibt die max-width:var(--maxw) aus der geteilten .container-Klasse
   (hoehere Spezifitaet durch zwei Klassen statt einer) - siehe Kommentar bei
   --maxw-header oben im :root fuer die Begruendung. Alle anderen Abschnitte
   der Seite nutzen weiterhin die schmalere --maxw und sind davon nicht
   betroffen. */
.site-header__bar.container {
  max-width: var(--maxw-header);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--c-white);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__dot {
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c-gold-light), var(--c-gold) 60%, #b8791e 100%);
  box-shadow: 0 0 10px 1px rgba(244, 185, 66, 0.6);
  flex: none;
}

.nav-toggle {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: transparent;
  border: 1px solid rgba(247,250,252,0.3);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: "";
  position: absolute; left: 0;
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.site-nav {
  /* Nimmt den Restplatz neben dem Wordmark ein, statt sich nur auf die
     Breite des eigenen Inhalts zu beschränken - dadurch bekommt die
     Linkliste bei vielen Einträgen mehr Raum, bevor sie umbrechen muss. */
  flex: 1 1 auto;
  min-width: 0;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  /* Row-Gap etwas großzügiger als Column-Gap, damit umgebrochene Zeilen
     nicht zu eng aneinanderkleben. */
  row-gap: 0.6rem;
  column-gap: clamp(0.75rem, 1.6vw, 1.5rem);
  list-style: none;
  font-size: clamp(0.8rem, 0.72rem + 0.25vw, 0.92rem);
}
.site-nav__list a {
  text-decoration: none;
  color: rgba(247, 250, 252, 0.85);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  /* Verhindert, dass ein einzelner Link mitten im Wort umbricht - bei
     vielen Nav-Punkten bricht bei Platzmangel stattdessen die ganze
     Zeile (siehe flex-wrap: wrap oben), nie ein Link selbst. */
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--c-gold-light); border-color: var(--c-gold-light); }


/* ---- Bewegungssteuerung -------------------------------------------------- */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(247, 250, 252, 0.25);
  border-radius: var(--radius);
  background: rgba(247, 250, 252, 0.04);
  color: var(--c-white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.motion-toggle:hover {
  border-color: rgba(244, 185, 66, 0.6);
  background: rgba(247, 250, 252, 0.08);
}
.motion-toggle__icon { line-height: 1; }

/* ---- Sprachumschalter --------------------------------------------------- */
.language-switcher {
  position: relative;
  flex: 0 0 auto;
  color: var(--c-white);
}
.language-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(247, 250, 252, 0.25);
  border-radius: var(--radius);
  background: rgba(247, 250, 252, 0.04);
  color: rgba(247, 250, 252, 0.9);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.language-switcher__toggle::-webkit-details-marker { display: none; }
.language-switcher__toggle::marker { content: ""; }
.language-switcher__toggle:hover,
.language-switcher__toggle:focus-visible,
.language-switcher[open] .language-switcher__toggle {
  border-color: rgba(244, 185, 66, 0.6);
  background: rgba(247, 250, 252, 0.08);
  color: var(--c-white);
}
.language-switcher__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  min-width: 1.45rem;
  height: 0.75rem;
  font-size: 1.08rem;
  line-height: 1;
}
.language-switcher__flag--image {
  width: 1.45rem;
  height: 0.75rem;
  object-fit: fill;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(247, 250, 252, 0.16);
}
.language-switcher__chevron {
  font-size: 0.72rem;
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}
.language-switcher[open] .language-switcher__chevron { transform: rotate(180deg); }
.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 220;
  min-width: 12rem;
  max-height: min(28rem, calc(100vh - 5.5rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  background: rgba(10, 22, 40, 0.98);
  border: 1px solid rgba(247, 250, 252, 0.12);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.language-switcher__menu li { margin: 0; }
.language-switcher__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.7rem;
  border-radius: 7px;
  color: rgba(247, 250, 252, 0.82);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.language-switcher__link:hover,
.language-switcher__link:focus-visible {
  background: rgba(126, 200, 227, 0.12);
  color: var(--c-white);
}
.language-switcher__link.is-active {
  background: rgba(244, 185, 66, 0.11);
  color: var(--c-gold-light);
}

/* Auf mittelgroßen Desktop-Fenstern etwas kompakter, damit die zusätzliche
   Bewegungssteuerung keine zweite Navigationszeile erzeugt. */
@media (min-width: 1301px) and (max-width: 1500px) {
  .site-nav__list {
    column-gap: 0.75rem;
    font-size: 0.82rem;
  }
  .language-switcher__current { display: none; }
  .language-switcher__toggle { padding-inline: 0.55rem; }
}

/* Umschaltpunkt bewusst bei 1300px statt vorher 760px: bei 12 Nav-Punkten
   gab es zwischen ca. 780px und 1280px Fensterbreite eine unschöne
   Zwischenstufe, in der die Desktop-Nav zwar noch sichtbar war, aber in
   eine hässliche zweite Zeile umgebrochen ist (siehe Kommentar bei
   --maxw-header oben im :root). Mit 1300px als Schwelle gibt es nur noch
   zwei klare Zustände: entweder passt die komplette Nav in eine Zeile,
   oder es erscheint sauber das Hamburger-Menü - nie mehr etwas dazwischen. */
@media (max-width: 1300px) {
  .language-switcher { margin-left: auto; }
  .language-switcher__current { display: none; }
  .language-switcher__toggle { padding-inline: 0.55rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--c-navy);
    border-bottom: 1px solid rgba(247,250,252,0.08);
    max-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .site-nav.is-open {
    max-height: 80vh;
    max-height: min(80dvh, 46rem);
    visibility: visible;
  }
  .site-nav__list {
    flex-direction: column;
    /* justify-content: flex-end aus der Basis-Regel oben würde die Links
       im aufgeklappten Mobil-Menü an den unteren Rand drücken statt oben
       zu beginnen - hier für die Spalten-Anordnung zurückgesetzt. */
    justify-content: flex-start;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
    gap: 0.35rem;
  }
  .site-nav__list a {
    width: 100%;
    min-height: 2.75rem;
    padding-block: 0.55rem;
  }
}

/* Bei schmalen Smartphones wird der ausgeschriebene Wordmark ausgeblendet.
   Das ist bewusst sprachneutral: längere Übersetzungen wie „Calendario
   Astronómico“ dürfen die drei Bedienelemente rechts nicht aus dem Viewport
   drücken. Der leuchtende Punkt bleibt als Markenanker sichtbar. */
@media (max-width: 480px) {
  .wordmark { gap: 0; }
  .wordmark__text { display: none; }
  .site-header__bar { gap: 0.6rem; }
  .container.site-header__bar { padding-inline: 0.8rem; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  color: var(--c-white);
  background: var(--c-navy);
  overflow: hidden;
  isolation: isolate;
}
.hero__scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
}
.hero__scene .starfield circle {
  animation: twinkle 4.5s ease-in-out infinite;
}
.hero__scene .orbit-line {
  fill: none;
  stroke: rgba(247, 250, 252, 0.22);
  stroke-width: 1;
}
.hero__scene .orbit-line--2 { stroke: rgba(126, 200, 227, 0.22); }
.hero__scene .sun-glow { animation: pulse-glow 5s ease-in-out infinite; transform-origin: center; }
.hero__scene .hero-earth {
  offset-rotate: 0deg;
  animation: travel-orbit 16s linear infinite;
}
.hero__scene .hero-earth--outer { animation-duration: 26s; }

.hero__content {
  position: relative;
  padding-block: clamp(7rem, 13vh, 8.5rem) var(--space-2xl);
  max-width: 760px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: var(--space-md);
}
.hero__eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--c-gold-light);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.08;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--c-gold-light);
}
.hero__lede {
  font-size: var(--fs-lede);
  color: rgba(247, 250, 252, 0.86);
  max-width: 56ch;
  margin-bottom: var(--space-lg);
}
.hero__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(247, 250, 252, 0.65);
  text-decoration: none;
}
.hero__scroll-cue svg { width: 14px; height: 18px; animation: bob 2.2s ease-in-out infinite; }

/* ---- Abschnitte / Alternierendes Layout ------------------------------- */
.section {
  position: relative;
  padding-block: var(--space-2xl);
  border-bottom: 1px solid rgba(20, 80, 125, 0.1);
}
.section--tinted { background: var(--c-sky-pale); }

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 860px) {
  .section__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
  .section--reverse .section__grid { direction: rtl; }
  .section--reverse .section__grid > * { direction: ltr; }
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(20, 80, 125, 0.08);
  border: 1px solid rgba(20, 80, 125, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: var(--space-sm);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--c-blue-deep);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.section__body p { margin-bottom: 1rem; }
.section__body p:last-child { margin-bottom: 0; }
.section__body strong { color: var(--c-blue-deep); }
.section__note {
  margin-top: var(--space-md);
  padding-left: 1rem;
  border-left: 3px solid var(--c-gold);
  font-size: 0.95rem;
  color: #3a4652;
}
.section__aside {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #5b6b78;
}
.section__aside-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(20, 80, 125, 0.08);
  border: 1px solid rgba(20, 80, 125, 0.18);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  margin-right: 0.5rem;
  transform: translateY(-1px);
}
.section__aside strong { color: var(--c-blue-deep); font-weight: 600; }

.section__figure {
  position: relative;
  background: linear-gradient(160deg, var(--c-blue) 0%, var(--c-blue-deep) 100%);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  box-shadow: 0 18px 40px -18px rgba(13, 58, 92, 0.45);
}
.section__figure svg { width: 100%; height: auto; overflow: visible; }
.hero__scene svg { width: 100%; height: 100%; display: block; }
.fact-card__icon svg { width: 100%; height: 100%; display: block; }
.section__figcaption {
  position: absolute;
  bottom: 0.85rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(247, 250, 252, 0.80);
}

/* ---- Fakten-Karten (Interlude) ---------------------------------------- */
.facts {
  background: var(--c-navy);
  color: var(--c-white);
  padding-block: var(--space-2xl);
}
.facts__head { max-width: 640px; margin-bottom: var(--space-lg); }
.facts__head .section__eyebrow { color: var(--c-gold-light); background: rgba(244,185,66,0.1); border-color: rgba(244,185,66,0.3); }
.facts__head .section__title { color: var(--c-white); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.fact-card {
  background: rgba(247, 250, 252, 0.04);
  border: 1px solid rgba(247, 250, 252, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.fact-card:hover { transform: translateY(-3px); border-color: rgba(244, 185, 66, 0.5); }
.fact-card__icon { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--c-gold-light); }
.fact-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--c-white);
}
.fact-card__text { font-size: 0.94rem; color: rgba(247, 250, 252, 0.75); }

/* ---- CTA / Abschluss ---------------------------------------------------- */
.cta {
  position: relative;
  background: radial-gradient(ellipse at 30% 30%, #12233d 0%, var(--c-navy) 60%, #060d19 100%);
  color: var(--c-white);
  padding-block: var(--space-2xl);
  text-align: center;
  overflow: hidden;
}
.cta__inner { position: relative; max-width: 620px; margin-inline: auto; }
.cta .section__eyebrow { color: var(--c-gold-light); background: rgba(244,185,66,0.1); border-color: rgba(244,185,66,0.3); }
.cta__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-block: var(--space-sm) var(--space-md);
}
.cta__text { color: rgba(247, 250, 252, 0.82); margin-bottom: var(--space-lg); font-size: var(--fs-lede); }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold));
  color: var(--c-navy);
  box-shadow: 0 10px 24px -10px rgba(244, 185, 66, 0.55);
}
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(247, 250, 252, 0.35);
  color: var(--c-white);
}
.btn--ghost:hover { border-color: var(--c-gold-light); }
.btn--secondary {
  background: var(--c-sky-pale);
  border: 1.5px solid rgba(20, 80, 125, 0.35);
  color: var(--c-blue-deep);
}
.btn--secondary:hover {
  background: var(--c-white);
  border-color: var(--c-blue);
  box-shadow: 0 10px 24px -12px rgba(20, 80, 125, 0.35);
}

/* ---- Kauf-Bereich (Shop-Buttons) --------------------------------------- */
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-md);
}
.shop-actions .btn { font-size: 0.98rem; }
.btn__store {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--c-grey-footer);
  color: var(--c-white);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-md);
  font-size: 0.88rem;
}
.site-footer__brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  color: var(--c-white);
}
.site-footer__legal {
  display: flex; gap: 1.5rem; list-style: none;
}
.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding-block: 0.25rem;
  color: rgba(247, 250, 252, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer__legal a:hover, .site-footer__legal a:focus-visible {
  color: var(--c-white); border-color: rgba(247,250,252,0.5);
}
.site-footer__copy { color: rgba(247, 250, 252, 0.55); }

/* ---- Rechtstexte (Datenschutz / Impressum) ----------------------------- */
.legal-page {
  background: var(--c-sky-pale);
  padding-block: var(--space-2xl);
  min-height: 60vh;
}
.legal-page__header { max-width: 720px; margin-bottom: var(--space-lg); }
.legal-page__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.legal-page__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--c-blue-deep);
  margin-top: 0.5rem;
}
.legal-content {
  max-width: 720px;
  background: var(--c-white);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 18px 40px -24px rgba(13, 58, 92, 0.35);
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--c-blue-deep);
  margin-top: 2rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content + .legal-content { margin-top: var(--space-lg); }
.legal-anchor { scroll-margin-top: 6rem; }
.legal-content p, .legal-content li { margin-top: 0.8rem; color: #29323b; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content a { color: var(--c-blue); }
.placeholder {
  background: rgba(244, 185, 66, 0.18);
  border: 1px dashed var(--c-gold);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.legal-callout {
  max-width: 720px;
  margin-top: var(--space-md);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-gold);
  background: rgba(244, 185, 66, 0.08);
  font-size: 0.92rem;
  color: #3a4652;
  border-radius: 0 8px 8px 0;
}

.contact-form {
  margin-top: 1.5rem;
}
.contact-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.contact-form fieldset:disabled {
  opacity: 0.6;
}
.contact-form__field + .contact-form__field {
  margin-top: 1rem;
}
.contact-form__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--c-blue-deep);
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid rgba(20, 80, 125, 0.28);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: #202a33;
  background: var(--c-white);
}
.contact-form__field textarea {
  resize: vertical;
  min-height: 10rem;
}
.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: 3px solid rgba(244, 185, 66, 0.55);
  outline-offset: 2px;
  border-color: var(--c-blue);
}
.contact-form__required,
.contact-form__privacy {
  font-size: 0.88rem;
  color: #53616d;
}
.contact-form__submit {
  margin-top: 0.9rem;
  border: 0;
  cursor: pointer;
}
.contact-form__status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.contact-form__status--success {
  background: rgba(53, 122, 73, 0.10);
  border: 1px solid rgba(53, 122, 73, 0.28);
  color: #245b35;
}
.contact-form__status--error {
  background: rgba(167, 59, 59, 0.08);
  border: 1px solid rgba(167, 59, 59, 0.24);
  color: #7a2d2d;
}
.contact-form__status ul {
  margin: 0;
  padding-left: 1.2rem;
}
.contact-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---- Glossar: Großereignisse-Begriffe ---------------------------------- */
.glossary__intro { max-width: 720px; }
.glossary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-lg);
}
.term-card {
  background: var(--c-white);
  border: 1px solid rgba(20, 80, 125, 0.14);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 14px 30px -22px rgba(13, 58, 92, 0.4);
}
.term-card__icon {
  width: 34px; height: 34px;
  margin-bottom: 1rem;
  color: var(--c-blue);
}
.term-card__icon svg { width: 100%; height: 100%; display: block; }
.term-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--c-blue-deep);
  margin-bottom: 0.5rem;
}
.term-card__text { font-size: 0.94rem; color: #3a4652; }

.shower-list {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}
.shower-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(20, 80, 125, 0.05);
  border: 1px solid rgba(20, 80, 125, 0.14);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.shower-chip__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
}
.shower-chip__name { font-weight: 700; color: var(--c-blue-deep); font-size: 0.98rem; }
.shower-chip__month {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-blue); white-space: nowrap;
}
.shower-chip__text { font-size: 0.86rem; color: #5b6b78; }

/* ---- Live-Widget: nächstes Großereignis --------------------------------- */
.next-event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}
@media (min-width: 860px) {
  .next-event-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem);
  }
}

.next-event__content,
.next-event__visibility-panel,
.next-event__figure {
  min-width: 0;
}

.next-event__visibility-panel {
  background: linear-gradient(160deg, rgba(20, 80, 125, 0.06) 0%, rgba(244, 185, 66, 0.12) 100%);
  border: 1px solid rgba(20, 80, 125, 0.14);
  border-radius: 14px;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  box-shadow: 0 18px 40px -26px rgba(13, 58, 92, 0.3);
}
.next-event__panel-eyebrow {
  margin-bottom: 0.8rem;
}
.next-event__panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  color: var(--c-blue-deep);
  margin-bottom: 0.8rem;
}
.next-event__panel-lede {
  color: #24313e;
}
.next-event__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}
.next-event__fact {
  background: rgba(247, 250, 252, 0.82);
  border: 1px solid rgba(20, 80, 125, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.next-event__fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 0.3rem;
}
.next-event__fact dd { margin: 0; }
.next-event__fact strong {
  color: var(--c-blue-deep);
  font-size: 0.98rem;
}
.next-event__visibility-note {
  margin-top: 0.95rem;
}

.next-event__figure { position: relative; }
.next-event__location-figure {
  min-height: 320px;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}
.event-visual,
.location-visual { display: none; width: 100%; }
.event-visual.is-active,
.location-visual.is-active { display: block; }

.next-event__eclipse-map {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  max-height: 560px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px -20px rgba(0,0,0,.55);
}
.next-event__eclipse-map[hidden] { display: none; }
.next-event__location-figure.has-authoritative-map {
  justify-content: flex-start;
  gap: 0.65rem;
  background: linear-gradient(160deg, #eef4f8 0%, #ffffff 100%);
  border: 1px solid rgba(20, 80, 125, 0.16);
  padding: clamp(0.85rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem);
}
.next-event__map-caption {
  position: static;
  width: 100%;
  color: rgba(247, 250, 252, 0.88);
  line-height: 1.55;
}
.next-event__location-figure.has-authoritative-map .next-event__map-caption {
  color: #4d5d6a;
}
.next-event__map-description {
  margin-top: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--c-gold);
  border-radius: 0 8px 8px 0;
  background: rgba(20, 80, 125, 0.055);
  color: #334654;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
}
.next-event__map-description[hidden] { display: none; }
.next-event__map-description strong {
  color: var(--c-blue-deep);
  margin-right: 0.25rem;
}

.next-event__map-source,
.next-event__map-credit {
  display: block;
  margin-top: 0.35rem;
}
.next-event__map-source {
  color: var(--c-gold-light);
  text-underline-offset: 0.18em;
}
.next-event__location-figure.has-authoritative-map .next-event__map-source {
  color: var(--c-blue);
}
.next-event__map-credit {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.next-event__map-source[hidden],
.next-event__map-credit[hidden] { display: none; }
.next-event__map-unavailable {
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid rgba(244, 185, 66, 0.55);
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.12);
  color: var(--c-white);
  text-align: left;
}
.next-event__map-unavailable[hidden] { display: none; }
.next-event__map-unavailable strong { color: var(--c-gold-light); }
.next-event__map-unavailable p { margin-top: 0.5rem; color: rgba(247,250,252,.82); }

.ne-badge {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--c-blue-deep);
  background: rgba(244, 185, 66, 0.22);
  border: 1px solid rgba(244, 185, 66, 0.6);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-top: var(--space-md);
}
.ne-badge strong { font-size: 1rem; color: #7a4e00; font-weight: 700; }
.ne-note { margin-top: var(--space-sm); }

/* Meteor-Grafik: Radiant mit abgehenden, gestaffelt "verglühenden" Linien */
.meteor-trail {
  stroke: var(--c-gold-light);
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 0% 0%;
  animation: meteor-streak 2.6s ease-in infinite;
}
@keyframes meteor-streak {
  0%   { opacity: 0; stroke-dashoffset: 60; }
  12%  { opacity: 1; }
  55%  { opacity: 0.9; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: -10; }
}

/* Sonnenfinsternis: Mond wandert vor die Sonne */
.eclipse-moon {
  fill: var(--c-navy);
  animation: eclipse-pass 6s ease-in-out infinite;
}
@keyframes eclipse-pass {
  0%   { transform: translateX(-70px); }
  45%  { transform: translateX(0px); }
  55%  { transform: translateX(0px); }
  100% { transform: translateX(70px); }
}

/* Mondfinsternis: Erdschatten wandert über den Mond, Rotfärbung pulsiert */
.lunar-shadow {
  fill: var(--c-navy);
  opacity: 0.92;
  animation: shadow-pass 6s ease-in-out infinite;
}
@keyframes shadow-pass {
  0%   { transform: translateX(-70px); }
  45%  { transform: translateX(0px); }
  55%  { transform: translateX(0px); }
  100% { transform: translateX(70px); }
}
.lunar-glow { animation: pulse-glow 3.4s ease-in-out infinite; }

.shower-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-lg);
}
.shower-detail-card {
  background: var(--c-white);
  border: 1px solid rgba(20, 80, 125, 0.14);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 30px -22px rgba(13, 58, 92, 0.4);
}
.shower-detail-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  margin-bottom: 0.3rem;
}
.shower-detail-card__head h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--c-blue-deep);
}
.shower-detail-card__zhr {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(20, 80, 125, 0.08);
  border: 1px solid rgba(20, 80, 125, 0.18);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
  flex: none;
}
.shower-detail-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--c-blue);
  margin-bottom: 0.7rem;
}
.constellations__visibility-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: #586674;
}
.shower-detail-card__visibility {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin: -0.15rem 0 0.75rem;
  padding: 0.48rem 0.62rem;
  border-radius: 8px;
  background: rgba(20, 80, 125, 0.055);
  border: 1px solid rgba(20, 80, 125, 0.10);
  font-size: 0.76rem;
}
.shower-detail-card__visibility span {
  color: #586674;
}
.shower-detail-card__visibility strong {
  color: var(--c-blue-deep);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  text-align: right;
}
@media (max-width: 420px) {
  .shower-detail-card__visibility {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
  .shower-detail-card__visibility strong { text-align: left; }
}
.shower-detail-card__text { font-size: 0.92rem; color: #3a4652; }

.history-card-grid {
  margin-top: var(--space-xl);
}
.history-card {
  padding: 1.35rem 1.4rem;
}
.history-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin-bottom: 0.85rem;
}
.history-card__index {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 80, 125, 0.08);
  border: 1px solid rgba(20, 80, 125, 0.16);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--c-blue-deep);
}
.history-card__content {
  flex: 1 1 auto;
  min-width: 0;
}
.history-card__content .shower-detail-card__head {
  margin-bottom: 0.35rem;
}
.history-card__content .shower-detail-card__meta {
  margin-bottom: 0;
}

.weekday-figure {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(244, 185, 66, 0.18) 0%, rgba(244, 185, 66, 0.06) 16%, transparent 38%),
    radial-gradient(circle at 50% 44%, rgba(126, 200, 227, 0.18) 0%, rgba(126, 200, 227, 0.08) 30%, transparent 62%),
    linear-gradient(160deg, var(--c-blue) 0%, var(--c-blue-deep) 100%);
}
.weekday-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(255,255,255,0.22) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.18) 0 1.4px, transparent 1.8px),
    radial-gradient(circle at 84% 72%, rgba(255,255,255,0.18) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 18% 78%, rgba(255,255,255,0.14) 0 1.3px, transparent 1.8px),
    radial-gradient(circle at 62% 82%, rgba(255,255,255,0.14) 0 1.1px, transparent 1.5px);
  pointer-events: none;
}
.weekday-figure svg {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
}
.weekday-card-grid {
  margin-top: var(--space-xl);
}
.weekday-card__index {
  width: 3rem;
}
.weekday-cycle .weekday-orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2.8;
  stroke-dasharray: 6 7;
}
.weekday-cycle .weekday-orbit-glow {
  fill: none;
  stroke: rgba(126, 200, 227, 0.18);
  stroke-width: 18;
}
.weekday-cycle .weekday-spoke {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.4;
}
.weekday-cycle .weekday-sweep {
  transform-origin: 150px 150px;
  animation: weekday-orbit-spin 16s linear infinite;
}
.weekday-cycle .weekday-sweep__dot {
  fill: var(--c-gold);
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 10px rgba(244, 185, 66, 0.6));
}
.weekday-cycle .weekday-sweep__trail {
  stroke: rgba(244, 185, 66, 0.65);
  stroke-width: 3.2;
  stroke-linecap: round;
}
.weekday-cycle .weekday-hub {
  fill: rgba(255, 255, 255, 0.10);
  stroke: rgba(255, 255, 255, 0.20);
  stroke-width: 1.8;
}
.weekday-cycle .weekday-hub-core {
  fill: var(--c-blue-deep);
  opacity: 0.95;
  filter: drop-shadow(0 0 14px rgba(126, 200, 227, 0.28));
}
.weekday-cycle .weekday-center {
  font-family: var(--font-display);
  font-size: 0.92rem;
  fill: var(--c-white);
}
.weekday-cycle .weekday-center--small {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.weekday-cycle .weekday-node__circle {
  fill: rgba(255, 255, 255, 0.97);
  stroke: rgba(20, 80, 125, 0.22);
  stroke-width: 1.6;
  filter: drop-shadow(0 10px 22px rgba(13, 58, 92, 0.24));
}
.weekday-cycle .weekday-node__day {
  font-family: var(--font-display);
  font-size: 0.82rem;
  fill: var(--c-blue-deep);
}
.weekday-cycle .weekday-node__body {
  font-family: var(--font-mono);
  font-size: 0.43rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--c-blue);
}
@keyframes weekday-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.eclipse-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: var(--space-lg);
}
@media (min-width: 700px) {
  .eclipse-showcase { grid-template-columns: 1fr 1fr; }
}
.eclipse-showcase .section__figure { min-height: 200px; }

/* ---- Scroll-Einblendung ------------------------------------------------ */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--stagger.is-visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger.is-visible .reveal-child:nth-child(2) { transition-delay: 0.15s; }
.reveal--stagger.is-visible .reveal-child:nth-child(3) { transition-delay: 0.25s; }
.reveal--stagger.is-visible .reveal-child:nth-child(4) { transition-delay: 0.35s; }
.reveal--stagger.is-visible .reveal-child:nth-child(5) { transition-delay: 0.45s; }
.reveal--stagger.is-visible .reveal-child:nth-child(6) { transition-delay: 0.55s; }
.reveal--stagger .reveal-child { opacity: 1; transform: none; }
.js .reveal--stagger .reveal-child {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal--stagger.is-visible .reveal-child { opacity: 1; transform: translateY(0); }

/* ---- Keyframes ---------------------------------------------------------- */
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(244,185,66,0.55)); }
  50% { filter: drop-shadow(0 0 22px rgba(244,185,66,0.85)); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes travel-orbit {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes drift-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.015); }
}
@keyframes wedge-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes moonphase {
  0%   { clip-path: inset(0 100% 0 0); }
  45%  { clip-path: inset(0 0 0 0); }
  55%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* Kepler-Ellipse: nicht-lineares Tempo entlang der Bahn (schnell nahe der
   Sonne, langsam im Aphel) über gestaffelte Keyframe-Stops. */
@keyframes kepler-orbit {
  0%    { offset-distance: 0%; }
  8%    { offset-distance: 14%; }
  16%   { offset-distance: 25%; }
  50%   { offset-distance: 50%; }
  84%   { offset-distance: 75%; }
  92%   { offset-distance: 86%; }
  100%  { offset-distance: 100%; }
}
.kepler-earth { animation: kepler-orbit 7s linear infinite; }

.diagram-rotate { animation: spin 9s linear infinite; transform-origin: center; }
.diagram-rotate-rev { animation: spin-rev 9s linear infinite; transform-origin: center; }
.diagram-rotate-slow { animation: spin 42s linear infinite; transform-origin: center; }

/* ---- Diagramm-Bausteine (wiederverwendete SVG-Klassen) ------------------ */
.wedge { fill: rgba(247, 250, 252, 0.14); stroke: rgba(247, 250, 252, 0.32); stroke-width: 1; }
.wedge--active { fill: var(--c-gold); stroke: var(--c-gold-light); animation: wedge-pulse 3.2s ease-in-out infinite; }
.wedge-tick { stroke: rgba(247, 250, 252, 0.48); stroke-width: 1; }
.wedge-label { fill: var(--c-gold-light); font-family: var(--font-mono); font-size: 13px; }

.sun-core { fill: var(--c-gold); }
.sun-core.sun-core--pulse {
  fill: var(--c-gold);
  opacity: 0.4;
  filter: blur(4px);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-glow 3.4s ease-in-out infinite;
}

.orbit-path { fill: none; stroke: rgba(247, 250, 252, 0.55); stroke-width: 1.5; stroke-dasharray: 4 5; }
.orbit-ring { fill: none; stroke: rgba(247, 250, 252, 0.58); stroke-width: 1.5; stroke-dasharray: 3 5; }
.orbit-label { fill: rgba(247, 250, 252, 0.78); font-family: var(--font-mono); font-size: 12px; }

.sweep-wedge { opacity: 0.85; }
.sweep-wedge--peri { fill: rgba(244, 185, 66, 0.55); }
.sweep-wedge--apo { fill: rgba(126, 200, 227, 0.55); }

.season-dot { fill: var(--c-gold-light); stroke: var(--c-blue-deep); stroke-width: 1.5; }
.season-earth { fill: var(--c-white); stroke: var(--c-blue-deep); stroke-width: 1; animation: travel-orbit 20s linear infinite; }

.wheel-month { fill: rgba(247, 250, 252, 0.85); font-family: var(--font-mono); font-size: 12px; }
.wheel-roman { fill: var(--c-gold-light); font-family: var(--font-mono); font-weight: 700; font-size: 11px; }
.shift-arrow { fill: none; stroke: rgba(247, 250, 252, 0.55); stroke-width: 1.5; stroke-dasharray: 3 4; }
.shift-arrowhead { fill: rgba(247, 250, 252, 0.72); }

.earth-day { fill: var(--c-sky); }
.earth-night { fill: var(--c-blue-deep); }
.earth-outline { fill: none; stroke: rgba(247, 250, 252, 0.68); stroke-width: 1.5; }
.ray-line { stroke: var(--c-gold-light); stroke-width: 2; }
.divider-line { stroke: rgba(247, 250, 252, 0.45); stroke-width: 1; }

.kepler-earth { fill: var(--c-white); stroke: var(--c-blue-deep); stroke-width: 1; }

.hero__scene .starfield circle { fill: var(--c-white); }
.hero__scene .sun-glow { fill: var(--c-gold); opacity: 0.4; filter: blur(6px); }
.hero-earth { fill: var(--c-sky); }
.hero-earth--outer { fill: rgba(126, 200, 227, 0.55); }

/* ---- Barrierearme Bewegung ----------------------------------------------
   Automatische Animationen können jederzeit über den Pausen-Button im Header
   angehalten werden. Die Systemeinstellung "Bewegung reduzieren" wird beim
   Laden der Seite berücksichtigt. Eine Auswahl über den Schalter gilt nur für
   die aktuell geöffnete Seite und wird nicht dauerhaft gespeichert. */
html:not(.js) *,
html:not(.js) *::before,
html:not(.js) *::after,
html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  animation-play-state: paused !important;
}

html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  transition-duration: 0.001ms !important;
  transition-delay: 0s !important;
}

html[data-motion="paused"] { scroll-behavior: auto; }
html[data-motion="paused"] .reveal,
html[data-motion="paused"] .reveal-child {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="running"]) { scroll-behavior: auto; }
  html:not([data-motion="running"]) *,
  html:not([data-motion="running"]) *::before,
  html:not([data-motion="running"]) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html:not([data-motion="running"]) .reveal,
  html:not([data-motion="running"]) .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
}


.section__method-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: var(--c-blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.section__method-link:hover,
.section__method-link:focus-visible { color: var(--c-blue-deep); }

/* ---- Berechnung & Quellen --------------------------------------------- */
.methodology {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(126, 200, 227, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7fbfe 0%, #eef6fb 100%);
  padding-block: var(--space-2xl);
  isolation: isolate;
}
.methodology__inner { position: relative; }
.methodology__head {
  max-width: 760px;
  position: relative;
  z-index: 2;
}
.methodology__lede {
  max-width: 720px;
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: #344556;
}
.methodology__lede strong { color: var(--c-blue-deep); }
.methodology__orbit {
  position: absolute;
  top: -5rem;
  right: -6rem;
  width: 26rem;
  height: 26rem;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}
.methodology__orbit-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(20,80,125,0.18);
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(-14deg);
}
.methodology__orbit-ring--1 { width: 8rem; height: 3rem; }
.methodology__orbit-ring--2 { width: 15rem; height: 5.6rem; }
.methodology__orbit-ring--3 { width: 23rem; height: 8.6rem; }
.methodology__orbit-dot {
  position: absolute;
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 0.3rem rgba(244,185,66,0.13);
}
.methodology__orbit-dot--1 { top: 44%; left: 61%; }
.methodology__orbit-dot--2 { top: 37%; left: 31%; width: 0.4rem; }
.methodology__orbit-dot--3 { top: 58%; left: 76%; width: 0.36rem; }

.methodology__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}
.methodology-card {
  position: relative;
  min-width: 0;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(20,80,125,0.14);
  border-radius: 14px;
  padding: clamp(1.2rem, 2.8vw, 1.7rem);
  box-shadow: 0 18px 38px -30px rgba(13,58,92,0.65);
  overflow: hidden;
}
.methodology-card__index {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(20,80,125,0.055);
  user-select: none;
}
.methodology-card__kicker {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(244,185,66,0.13);
  color: #76570d;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}
.methodology-card__title {
  max-width: 90%;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.28;
  color: var(--c-blue-deep);
  margin-bottom: 0.55rem;
}
.methodology-card__text {
  color: #435363;
  font-size: 0.94rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.methodology-card__text strong { color: var(--c-blue-deep); }

.methodology__validation {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-blue-deep), #0b2942);
  color: var(--c-white);
  box-shadow: 0 20px 42px -28px rgba(13,58,92,0.7);
}
.methodology__validation-copy {
  display: flex;
  gap: 1rem;
  min-width: 0;
}
.methodology__validation-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: rgba(244,185,66,0.14);
  border: 1px solid rgba(244,185,66,0.45);
  color: var(--c-gold-light);
  font-size: 1.25rem;
  font-weight: 700;
}
.methodology__validation h3,
.methodology__approx h3,
.methodology__sources h3 {
  font-family: var(--font-display);
  line-height: 1.25;
}
.methodology__validation h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.methodology__validation p { color: rgba(247,250,252,0.8); font-size: 0.93rem; line-height: 1.65; }
.methodology__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.7rem;
}
.methodology-metric {
  min-width: 0;
  padding: 0.8rem 0.55rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(247,250,252,0.055);
  border: 1px solid rgba(247,250,252,0.1);
}
.methodology-metric strong {
  display: block;
  color: var(--c-gold-light);
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.methodology-metric span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(247,250,252,0.7);
}

.methodology__approx {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 12px;
  background: rgba(244,185,66,0.1);
  border: 1px solid rgba(169,126,25,0.24);
}
.methodology__approx-symbol {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: #9a6f0a;
}
.methodology__approx h3 { color: var(--c-blue-deep); margin-bottom: 0.35rem; }
.methodology__approx p { color: #4b5560; font-size: 0.92rem; line-height: 1.62; }

.methodology__technical {
  margin-top: 1rem;
  border: 1px solid rgba(20,80,125,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 16px 34px -30px rgba(13,58,92,0.55);
  overflow: clip;
}
.methodology__technical-summary {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.2rem);
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--c-blue-deep);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(90deg, rgba(20,80,125,0.055), rgba(244,185,66,0.07));
}
.methodology__technical-summary::-webkit-details-marker { display: none; }
.methodology__technical-summary-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  flex: 1 1 auto;
}
.methodology__technical-summary-kicker {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.methodology__technical-label {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.methodology__technical-summary-text {
  color: #5a6876;
  font-size: 0.9rem;
  line-height: 1.5;
}
.methodology__technical-summary-action {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-blue);
  white-space: nowrap;
}
.methodology__technical-label--open,
.methodology__technical-summary-action--open { display: none; }
.methodology__technical[open] .methodology__technical-label--closed,
.methodology__technical[open] .methodology__technical-summary-action--closed { display: none; }
.methodology__technical[open] .methodology__technical-label--open,
.methodology__technical[open] .methodology__technical-summary-action--open { display: inline; }
.methodology__technical-summary:focus-visible { outline: 3px solid rgba(244,185,66,0.55); outline-offset: -3px; }
.methodology__technical-summary-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-blue-deep);
  color: var(--c-white);
  font-family: var(--font-mono);
  transition: transform .2s var(--ease);
}
.methodology__technical[open] .methodology__technical-summary-icon { transform: rotate(180deg); }
.methodology__technical-body {
  padding: clamp(1rem, 2.5vw, 1.45rem);
  border-top: 1px solid rgba(20,80,125,0.12);
}
.methodology__technical-intro {
  max-width: 820px;
  color: #4d5d6b;
  font-size: 0.92rem;
  line-height: 1.65;
}
.methodology__technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.methodology-tech-card {
  min-width: 0;
  padding: 1rem 1.05rem;
  border-radius: 11px;
  background: #f8fbfd;
  border: 1px solid rgba(20,80,125,0.12);
}
.methodology-tech-card h3,
.methodology__technical-validation h3 {
  margin-bottom: 0.4rem;
  color: var(--c-blue-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}
.methodology-tech-card p,
.methodology__technical-validation p {
  color: #526270;
  font-size: 0.84rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}
.methodology__technical-validation {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 0.8rem;
  margin-top: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 11px;
  background: rgba(20,80,125,0.065);
  border-left: 3px solid var(--c-gold);
}
.methodology__technical-validation-mark {
  color: #8a650d;
  font-weight: 800;
}

.methodology__sources {
  margin-top: var(--space-xl);
}
.methodology__sources--inside {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(20,80,125,0.14);
}
.methodology__sources-head {
  display: grid;
  grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
}
.methodology__sources-head > div { min-width: 0; }
.methodology__sources-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--c-gold);
  font-size: 1.2rem;
}
.methodology__sources h3 { color: var(--c-blue-deep); font-size: 1.4rem; }
.methodology__sources-head p { color: #5a6876; font-size: 0.92rem; line-height: 1.6; }
.methodology-source-list {
  display: grid;
  gap: 0.7rem;
}
.methodology-source {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 11px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(20,80,125,0.13);
  color: inherit;
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
a.methodology-source:hover,
a.methodology-source:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(20,80,125,0.34);
  box-shadow: 0 14px 28px -22px rgba(13,58,92,0.55);
}
.methodology-source__badge {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: rgba(20,80,125,0.07);
  color: var(--c-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.methodology-source__body { min-width: 0; }
.methodology-source__body strong,
.methodology-source__body span {
  display: block;
  overflow-wrap: anywhere;
}
.methodology-source__body strong { color: var(--c-blue-deep); font-size: 0.96rem; }
.methodology-source__body span { margin-top: 0.15rem; color: #657483; font-size: 0.82rem; line-height: 1.45; }
.methodology-source__open,
.methodology-source__type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--c-blue);
  white-space: nowrap;
}
.methodology-source__type {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(20,80,125,0.07);
}
.methodology__note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20,80,125,0.14);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #5b6874;
}
.methodology__note strong { color: var(--c-blue-deep); }

@media (max-width: 860px) {
  .methodology__cards,
  .methodology__validation,
  .methodology__sources-head { grid-template-columns: 1fr; }
  .methodology__validation { align-items: start; }
  .methodology__orbit { right: -12rem; opacity: 0.35; }
}
@media (max-width: 560px) {
  .methodology__cards { gap: 0.8rem; }
  .methodology__metrics { grid-template-columns: 1fr; }
  .methodology-metric { text-align: left; display: grid; grid-template-columns: 5.5rem minmax(0,1fr); align-items: center; gap: 0.7rem; }
  .methodology-metric span { margin-top: 0; }
  .methodology-source { grid-template-columns: auto minmax(0,1fr); }
  .methodology-source__open,
  .methodology-source__type { grid-column: 2; justify-self: start; white-space: normal; }
  .methodology__approx { grid-template-columns: 1fr; }
  .methodology__approx-symbol { font-size: 1.7rem; }
  .methodology__technical-grid { grid-template-columns: 1fr; }
  .methodology__technical-summary { align-items: flex-start; }
  .methodology__technical-validation { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .methodology__technical-summary { align-items: flex-start; }
  .methodology__technical-summary-action { display: none !important; }
  .methodology__technical-summary-icon { margin-top: 0.15rem; }
  .methodology__technical-grid { grid-template-columns: 1fr; }
  .methodology__sources-head { grid-template-columns: 1fr; gap: 0.55rem; align-items: start; }
  .methodology-source { grid-template-columns: auto minmax(0,1fr); }
  .methodology-source__open, .methodology-source__type { grid-column: 2; justify-self: start; white-space: normal; }
}

/* Verkaufslinks bleiben bis zur Shop-Freischaltung sichtbar, aber nicht klickbar. */
.btn--disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
