/* ==========================================================================
   Wichteljagd – Das Monokel des Zauberwaldes
   Statischer Website-Entwurf (One-Page, keine externen Abhängigkeiten)

   Inhalt:
     1.  Design-Tokens (Farben, Abstände, Schatten)
     2.  Schrift (lokale Baloo 2, Variable Font) + Basis-Reset
     3.  Hilfsklassen (Skip-Link, sr-only, Container)
     4.  Buttons
     5.  Header / Sticky-Navigation (+ Burger)
     6.  Hero
     7.  Sektions-Grundgerüst
     8.  So funktioniert's (Steps)
     9.  Features (Tiles)
     10. Karten-Packs
     11. QR-Fund-Seite (Mock-Karte + Konfetti + Idee)
     12. Eltern-Bereich
     13. Fanworld (Akkordeon, Tipps, Roadmap)
     14. Footer
     15. Scroll-Reveal + Sternen-Animation
     16. Responsiv-Feinjustierung
     17. Reduzierte Bewegung / Fokus / Auswahl
   ========================================================================== */

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Zauberwald bei Nacht: tiefe Grüntöne */
  --bg-0:        #08150d;   /* fast schwarzes Moos */
  --bg-1:        #0c241a;   /* Grund-Hintergrund */
  --bg-2:        #10291d;   /* Sektions-Wechsel */
  --panel:       #143024;   /* Kartenfläche */
  --panel-2:     #183a2b;   /* Karte hover / erhöht */
  --line:        rgba(235, 184, 77, .16);   /* goldene Haarlinie */

  /* Text */
  --ink:         #f4efdd;   /* warmes Creme */
  --muted:       #b3c6a4;   /* helles Blattgrün */
  --forest:      #2e4a26;   /* Spiel-Grün (Fund-Karte) */
  --bark:        #6b5a3e;   /* Fact-Text auf Creme */

  /* Akzente: warmes Gold / Feuerlicht */
  --gold:        #ebb84d;
  --gold-soft:   #f5d67b;
  --ember:       #e8873d;
  --green:       #4caf6e;   /* Spiel-Grün (Buttons) */
  --green-deep:  #357a4d;
  --cream:       #fff6e3;   /* Karten-Creme (Fund-Karte) */

  /* Formen & Schatten */
  --radius:      22px;
  --radius-sm:   14px;
  --shadow-hard: 0 6px 0 rgba(6, 20, 12, .55);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, .45);
  --maxw:        1120px;
  --header-h:    72px;

  --font: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- 2. Schrift + Reset ---------- */
@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/Baloo2-var.ttf") format("truetype-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(235, 184, 77, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(76, 175, 110, .06), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%, var(--bg-1));
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
code {
  background: rgba(235, 184, 77, .12);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .1em .45em;
  font-size: .92em;
  color: var(--gold-soft);
  word-break: break-all;
}
::selection { background: var(--gold); color: #241703; }

/* ---------- 3. Hilfsklassen ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--gold);
  color: #241703;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.container--split {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 920px) {
  .container--split { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 15px 28px;
  border: 3px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(3px) scale(.98); }

/* Gold: primärer Call-to-Action */
.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a1c05;
  border-color: #a97e22;
  box-shadow: 0 6px 0 #7a5a14, 0 14px 30px rgba(235, 184, 77, .25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #7a5a14, 0 20px 38px rgba(235, 184, 77, .32); }
.btn--gold:active { box-shadow: 0 2px 0 #7a5a14; }

/* Ghost: sekundär, umrissen */
.btn--ghost {
  background: rgba(244, 239, 221, .04);
  color: var(--ink);
  border-color: rgba(244, 239, 221, .4);
  box-shadow: 0 6px 0 rgba(6, 20, 12, .5);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.btn--small { font-size: .95rem; padding: 11px 20px; border-radius: 14px; }

.textlink {
  color: var(--gold-soft);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 4px;
  text-decoration-color: rgba(235, 184, 77, .55);
}
.textlink:hover { color: var(--gold); }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 26, 17, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 2px solid var(--line);
}
.nav__title { font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }

.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__menu a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav__menu a:hover { color: var(--gold-soft); background: rgba(235, 184, 77, .08); }

/* Burger (Mobil) */
.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(235, 184, 77, .06);
  cursor: pointer;
  position: relative;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--gold-soft);
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle-bar { top: 50%; margin-top: -1.5px; }
.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { transform: translateX(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateX(-50%) translateY(7px) rotate(90deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { opacity: 0; }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: rgba(10, 26, 17, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px 16px; font-size: 1.05rem; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(700px 340px at 78% 18%, rgba(232, 135, 61, .12), transparent 65%),
    linear-gradient(180deg, #0a1f14 0%, #0c241a 55%, rgba(12, 36, 26, 0) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}

.hero__kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(235, 184, 77, .1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 10px;
  text-shadow: 0 4px 30px rgba(235, 184, 77, .18);
}
.hero__subtitle {
  display: block;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: .06em;
}
.hero__claim {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--muted);
  max-width: 54ch;
  margin: 18px 0 30px;
}
.hero__claim strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__facts li {
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px dashed rgba(179, 198, 164, .4);
  border-radius: 999px;
  padding: 5px 14px;
}

/* Artwork-Bühne: Banner + schwebende Wichtel */
.hero__art { position: relative; }
.hero__art-stage {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.hero__banner {
  width: min(100%, 560px);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .5));
  animation: bob 6s ease-in-out infinite;
}
.hero__char {
  position: absolute;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45));
  animation: bob 5s ease-in-out infinite;
}
.hero__char--emmi {
  width: clamp(110px, 16vw, 168px);
  left: -2%;
  bottom: 2%;
  animation-delay: .8s;
}
.hero__char--lisa {
  width: clamp(96px, 13vw, 148px);
  right: 0;
  top: -4%;
  animation-delay: 1.6s;
}
.hero__char--fritze {
  width: clamp(76px, 10vw, 116px);
  right: 8%;
  bottom: 0;
  animation-delay: .3s;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.3rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 26, 17, .6);
  animation: bob 2.6s ease-in-out infinite;
}

/* ---------- 7. Sektions-Grundgerüst ---------- */
.section { padding: 88px 0; position: relative; }
.section--alt {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(235, 184, 77, .05), transparent 60%),
    linear-gradient(180deg, rgba(16, 41, 29, .75), rgba(12, 36, 26, .35));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 14px;
}
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- 8. So funktioniert's ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 22px;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps__item {
  position: relative;
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 58px 26px 30px;
  box-shadow: var(--shadow-hard);
  transition: transform .18s ease, border-color .18s ease;
}
.steps__item:hover { transform: translateY(-4px); border-color: rgba(235, 184, 77, .4); }
.steps__item h3 { color: var(--gold-soft); font-size: 1.3rem; }
.steps__item p { color: var(--muted); margin: 0; }
.steps__item code { font-size: .84em; }

.steps__num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #2a1c05;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border: 2px solid #a97e22;
  border-radius: 16px;
  box-shadow: 0 4px 0 #7a5a14;
}
.steps__icon {
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold-soft);
}
.steps__icon img {
  max-height: 92px;
  width: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4));
  transition: transform .2s ease;
}
.steps__item:hover .steps__icon img { transform: translateY(-5px) rotate(-2deg); }

/* ---------- 9. Features ---------- */
.tiles {
  list-style: none;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.tile {
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 184, 77, .42);
  box-shadow: var(--shadow-lift);
}
.tile h3 { color: var(--gold-soft); font-size: 1.22rem; margin-bottom: 8px; }
.tile p { color: var(--muted); margin: 0; font-size: .98rem; }
.tile strong { color: var(--ink); }

.tile__icon {
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--gold-soft);
}
.tile__icon img {
  max-height: 96px;
  width: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4));
  transition: transform .2s ease;
}
.tile:hover .tile__icon img { transform: translateY(-4px); }
.tile__icon--row img { max-height: 74px; }

/* ---------- 10. Karten-Packs ---------- */
.packs {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.pack {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  transition: transform .18s ease, border-color .18s ease;
}
.pack:hover { transform: translateY(-4px); border-color: rgba(235, 184, 77, .42); }
.pack__media {
  height: 190px;
  display: grid;
  place-items: end center;
  background:
    radial-gradient(220px 120px at 50% 100%, rgba(235, 184, 77, .22), transparent 70%),
    linear-gradient(180deg, rgba(8, 21, 13, .2), rgba(8, 21, 13, .65));
  padding-top: 18px;
}
.pack__media img {
  max-height: 172px;
  width: auto;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5));
  transition: transform .2s ease;
}
.pack:hover .pack__media img { transform: scale(1.05) rotate(-1.5deg); }
.pack__body { padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; }
.pack__name { font-size: 1.3rem; color: var(--ink); margin: 0; }
.pack__count {
  order: -1; /* Zahl über dem Titel als Eyebrow */
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 2px;
}
.pack__desc { color: var(--muted); font-size: .97rem; flex: 1; }
.pack .btn { margin-top: 10px; }

.packs__note {
  margin: 30px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(235, 184, 77, .35);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  background: rgba(235, 184, 77, .05);
}
.packs__note strong { color: var(--gold-soft); }

/* ---------- 11. QR-Fund-Seite ---------- */
.checklist {
  list-style: none;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 3px 0 #7a5a14;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 9px;
  width: 10px; height: 6px;
  border-left: 3px solid #2a1c05;
  border-bottom: 3px solid #2a1c05;
  transform: rotate(-45deg);
}
.checklist strong { color: var(--ink); }

.idea {
  margin-top: 22px;
  border: 1px dashed rgba(232, 135, 61, .5);
  border-radius: var(--radius-sm);
  background: rgba(232, 135, 61, .07);
  padding: 16px 20px;
}
.idea__title {
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 6px;
}
.idea p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Nachbau der echten Fund-Karte (hell, aus dem Spiel) */
.mockcard {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  background: var(--cream);
  border: 4px solid var(--forest);
  border-radius: 30px;
  box-shadow: 0 10px 0 rgba(122, 78, 45, .55), 0 24px 50px rgba(0, 0, 0, .45);
  padding: 26px 24px 24px;
  text-align: center;
  color: var(--forest);
  transform: scale(.85) rotate(-1.5deg);
  opacity: .001;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s ease;
}
.mockcard.is-visible { transform: scale(1) rotate(0deg); opacity: 1; }
.mockcard__img { display: grid; place-items: center; }
.mockcard__img img {
  max-height: 200px;
  width: auto;
  filter: drop-shadow(0 10px 12px rgba(30, 50, 20, .35));
  animation: bob 3.4s ease-in-out infinite;
}
.mockcard__body { position: relative; z-index: 2; }
.mockcard__hello {
  display: inline-block;
  background: #fff;
  border: 3px solid var(--forest);
  border-radius: 16px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: .95rem;
  margin: 14px 0 10px;
  position: relative;
}
.mockcard__hello::before {
  content: "";
  position: absolute;
  top: -12px; left: 34px;
  border: 6px solid transparent;
  border-bottom-color: var(--forest);
}
.mockcard__name { font-size: 1.25rem; margin-bottom: 6px; }
.mockcard__fact { color: var(--bark); font-weight: 700; font-size: .93rem; margin-bottom: 16px; }
.mockcard__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
/* statische Vorschau-Buttons (keine echten Links) */
.mockcard__cta .btn { cursor: default; }
.mockcard__cta .btn--gold { font-size: .95rem; }

/* Konfetti-Burst (Span-Elemente via JS) */
.mockcard__confetti { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.burst {
  position: absolute;
  left: 50%; top: 34%;
  font-size: 26px;
  line-height: 1;
  animation: burstFly 1.2s ease-out both;
  animation-delay: var(--dl, 0s);
}

/* ---------- 12. Eltern-Bereich ---------- */
.parent {
  list-style: none;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.parent__item {
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: transform .18s ease, border-color .18s ease;
}
.parent__item:hover { transform: translateY(-4px); border-color: rgba(235, 184, 77, .42); }
.parent__item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  color: var(--gold-soft);
}
.parent__item p { color: var(--muted); font-size: .97rem; margin: 0 0 .8em; }
.parent__item p:last-child { margin-bottom: 0; }
.parent__item strong { color: var(--ink); }
.parent__badge {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  color: #2a1c05;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-radius: 14px;
  box-shadow: 0 3px 0 #7a5a14;
}

/* ---------- 13. Fanworld ---------- */
#fanworld {
  background:
    linear-gradient(180deg, rgba(8, 21, 13, .88), rgba(10, 26, 17, .94)),
    url("../assets/insel_glimmer.jpg") center / cover no-repeat fixed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@supports (-webkit-touch-callout: none) {
  /* iOS: fixed-Attachment ruckelt – deaktivieren */
  #fanworld { background-attachment: scroll; }
}

.accordion__group-title {
  font-size: 1.35rem;
  color: var(--gold-soft);
  margin: 46px 0 16px;
}
.accordion__group-title:first-child { margin-top: 0; }
.accordion__note {
  color: var(--muted);
  font-size: .97rem;
  border-left: 3px solid var(--ember);
  padding-left: 14px;
  margin-bottom: 20px;
}
.accordion__note strong { color: var(--ink); }

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(20, 48, 36, .75);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion__button {
  all: unset;           /* Button-Reset, Fokus-Styling kommt von :focus-visible */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.accordion__button:hover { color: var(--gold-soft); }
.accordion__label {
  order: 2;
  flex-shrink: 0;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(232, 135, 61, .45);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: auto;
}
.accordion__chevron {
  order: 3;
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.accordion__button[aria-expanded="true"] .accordion__chevron { transform: rotate(225deg); }

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, padding .3s ease;
  padding: 0 20px;
  color: var(--muted);
}
.accordion__panel.open { max-height: 80em; opacity: 1; padding: 2px 20px 22px; }
.accordion__panel p { margin-bottom: .9em; }
.accordion__panel p:last-child { margin-bottom: 0; }

.tips__list {
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tips__list li {
  position: relative;
  padding: 16px 18px 16px 44px;
  background: rgba(20, 48, 36, .75);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .96rem;
}
.tips__list li::before {
  content: "";
  position: absolute;
  left: 16px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 2px 0 #7a5a14;
  transform: rotate(45deg);
}
.tips__list strong { color: var(--ink); }

.roadmap__note { color: var(--muted); max-width: 70ch; }
.roadmap__list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.roadmap__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  background: rgba(20, 48, 36, .75);
  border: 1px dashed rgba(235, 184, 77, .35);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.roadmap__list strong { color: var(--ink); }
.roadmap__tag {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2a1c05;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- 14. Footer ---------- */
.footer {
  background: linear-gradient(180deg, #08150d, #050d08);
  border-top: 1px solid var(--line);
  padding: 70px 0 34px;
}
.footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 44px;
}
.footer__title { font-size: 1.6rem; color: var(--gold-soft); }
.footer__col > p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer__meta { font-size: .84rem; color: var(--muted); }
.footer__meta code { font-size: .86em; }
.footer__emmi img { opacity: .95; }
.footer__heading {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}
.footer__heading--spaced { margin-top: 22px; }
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__link {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.footer__link:hover { color: var(--gold-soft); border-bottom-color: rgba(235, 184, 77, .5); }
.footer__hint { color: rgba(179, 198, 164, .55); font-size: .84rem; }
.todo-mark {
  display: inline-block;
  font-size: .9rem;
  color: var(--muted);
  border: 1px dashed rgba(232, 135, 61, .55);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: help;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  color: rgba(179, 198, 164, .75);
  font-size: .88rem;
}
.footer__bottom p { margin: 0; }
.footer__made { display: flex; align-items: center; gap: 8px; }
.footer__made img { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .06); padding: 2px; }
.footer__made strong { color: var(--ink); }

/* ---------- 15. Scroll-Reveal + Sterne ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .9, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* JS erzeugt .star-Elemente im Hero */
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-soft);
  opacity: .2;
  animation: twinkle var(--dur, 3s) ease-in-out var(--del, 0s) infinite;
  pointer-events: none;
}
.star--ember { background: var(--ember); }

/* Glühwürmchen */
.firefly {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, var(--gold) 45%, transparent 75%);
  opacity: .8;
  animation: drift var(--dur, 9s) ease-in-out var(--del, 0s) infinite alternate;
  pointer-events: none;
}

/* Keyframes */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .12; transform: scale(.8); }
  50%      { opacity: .85; transform: scale(1.15); }
}
@keyframes drift {
  0%   { transform: translate(0, 0); opacity: .25; }
  50%  { opacity: .9; }
  100% { transform: translate(var(--dx, 30px), var(--dy, -40px)); opacity: .35; }
}
@keyframes burstFly {
  0%   { transform: translate(0, 0) scale(.4); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, -80px)) scale(1.4); opacity: 0; }
}

/* ---------- 16. Responsiv-Feinjustierung ---------- */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 84px; }
  .hero__art-stage { min-height: 280px; }
  .hero__facts li { font-size: .82rem; }
  .btn { width: 100%; }
  .hero__actions .btn, .pack .btn, .mockcard__cta .btn { width: auto; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .accordion__label { display: none; } /* Platz auf dem Handy sparen */
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 17. Reduzierte Bewegung / Fokus ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mockcard { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
