/* Die Drachenreiter — design system
   Night indigo + ember + gold, parchment for light sections. */

/* Self-hosted fonts (SIL OFL, see /assets/fonts/) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-latin-soft-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-latin-wonk-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); }

:root {
  --nacht: #11142a;
  --nacht-2: #181c3a;
  --tinte: #232a55;
  --tinte-hell: #39417a;
  --glut: #e8743b;
  --glut-tief: #a8461a;
  --gold: #f2c46d;
  --gold-hell: #f8dea2;
  --moos: #3a7d74;
  --pergament: #f5ead6;
  --pergament-2: #ecdcc0;
  --papier-linie: #d9c29b;
  --text-hell: #efe6d6;
  --text-hell-2: #b9b3c9;
  --text-dunkel: #2a2233;
  --text-dunkel-2: #5b4e5e;

  --radius: 18px;
  --radius-klein: 10px;
  --schatten: 0 18px 40px -18px rgba(0, 0, 0, .55);
  --schatten-warm: 0 18px 40px -20px rgba(185, 82, 31, .55);
  --breite: 1180px;
  --rand: clamp(16px, 4vw, 40px);

  --font-titel: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--text-hell);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hell); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-titel);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1em; }
/* headings never hyphenate automatically ("Dra-chen" looked odd); long words wrap via overflow-wrap only as a last resort */
h1, h2, h3, .malblatt h3 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
p, li, dd { overflow-wrap: break-word; }

.wrap { width: min(var(--breite), 100% - 2 * var(--rand)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--glut);
  margin-bottom: .9rem;
}

/* ---------- Header ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 20, 42, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 196, 109, .12);
}
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text-hell); }
.marke img { width: 46px; height: 46px; }
.marke span { font-family: var(--font-titel); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.marke span em { font-style: normal; color: var(--gold); }

.nav { display: flex; gap: .25rem; align-items: center; }
.nav a {
  white-space: nowrap;
  color: var(--text-hell-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text-hell); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--gold); background: rgba(242, 196, 109, .1); }

.menue-knopf {
  display: none; background: none; border: 1px solid rgba(242, 196, 109, .3); color: var(--gold);
  border-radius: 12px; width: 46px; height: 46px; cursor: pointer;
}
.menue-knopf svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .menue-knopf { display: grid; place-items: center; }
  .js .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nacht-2); border-bottom: 1px solid rgba(242, 196, 109, .15);
    padding: .5rem var(--rand) 1rem;
    display: none;
  }
  .js .nav.offen { display: flex; }
  html:not(.js) .menue-knopf { display: none; }
  html:not(.js) .kopf .wrap { height: auto; flex-wrap: wrap; padding: .6rem 0; }
  html:not(.js) .nav { flex-wrap: wrap; }
  .nav a { padding: .85rem .4rem; border-radius: 8px; font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.knopf {
  --k-bg: linear-gradient(180deg, #c95c26 0%, #b44d1c 50%, #a3431a 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-text); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; background: var(--k-bg); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(248, 222, 162, .55), inset 0 1px 0 rgba(255, 255, 255, .35), var(--schatten-warm);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s;
}
.knopf:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(248, 222, 162, .8), inset 0 1px 0 rgba(255, 255, 255, .4), 0 20px 44px -16px rgba(232, 116, 59, .75); }
.knopf:active { transform: translateY(0); }
.knopf svg { width: 18px; height: 18px; flex: none; }

.knopf.geist {
  background: rgba(17, 20, 42, .35); color: var(--gold-hell);
  box-shadow: inset 0 0 0 1.5px rgba(242, 196, 109, .6);
}
.knopf.geist:hover { background: rgba(242, 196, 109, .12); color: var(--gold-hell); box-shadow: inset 0 0 0 1.5px var(--gold); }
.knopf.klein { padding: .7rem 1.1rem; font-size: .92rem; }
.hell .knopf.geist { background: transparent; color: var(--glut-tief); box-shadow: inset 0 0 0 1.5px rgba(185, 82, 31, .5); }
.hell .knopf.geist:hover { background: rgba(232, 116, 59, .08); }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.held {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: center;
  background: var(--nacht);
  overflow: hidden;
}
.held-bild { position: absolute; inset: 0; }
.held-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.held::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 42, .92) 0%, rgba(17, 20, 42, .7) 32%, rgba(17, 20, 42, 0) 62%),
    linear-gradient(0deg, var(--nacht) 0%, rgba(17, 20, 42, 0) 28%);
}
.held .wrap { position: relative; z-index: 2; padding: 5rem 0 6rem; }
.held-text { max-width: 36rem; }
.held h1 { color: var(--text-hell); text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.held h1 em { font-style: italic; color: var(--gold); font-variation-settings: "SOFT" 100, "WONK" 1; }
.held p.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #ddd5c6; margin-bottom: 2rem; max-width: 30rem; }

@media (max-width: 720px) {
  .held { min-height: auto; flex-direction: column; align-items: stretch; }
  .held-bild { position: relative; height: 56vw; min-height: 240px; }
  .held-bild img { object-position: 72% center; }
  .held::after { background: linear-gradient(0deg, var(--nacht) 0%, rgba(17, 20, 42, 0) 40%); height: 56vw; min-height: 240px; }
  .held .wrap { padding: 1rem 0 2.5rem; margin-top: -3rem; }
}

/* Page hero (subpages) */
.seitenkopf { position: relative; overflow: hidden; background: var(--nacht); }
.seitenkopf img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.seitenkopf::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 20, 42, .94) 0%, rgba(17, 20, 42, .72) 38%, rgba(17, 20, 42, .1) 75%),
              linear-gradient(0deg, var(--nacht) 0%, rgba(17, 20, 42, 0) 35%);
}
.seitenkopf .wrap { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.seitenkopf h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }
.seitenkopf p { max-width: 34rem; font-size: 1.15rem; color: #ddd5c6; }
.krumen { font-size: .88rem; color: var(--text-hell-2); margin-bottom: 1.2rem; }
.krumen a { color: var(--text-hell-2); text-decoration: none; }
.krumen a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.abschnitt-kopf { max-width: 40rem; margin-bottom: 2.8rem; }
.abschnitt-kopf p { color: var(--text-hell-2); font-size: 1.1rem; }
.abschnitt-kopf.mitte { margin-inline: auto; text-align: center; }

.nachthimmel {
  background: var(--nacht-2) url("../img/hintergrund-nacht.webp") center / cover no-repeat;
}

.hell {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232, 116, 59, .08), transparent 60%),
    var(--pergament);
  color: var(--text-dunkel);
}
.hell .abschnitt-kopf p, .hell p.leise { color: var(--text-dunkel-2); }
.hell .kicker { color: var(--glut-tief); }
.hell a { color: var(--glut-tief); }
.hell a:hover { color: #8e3c14; }
.hell .knopf:not(.geist), .hell .knopf:not(.geist):hover { color: #fff8ec; }
.hell .band .band-text, .hell .band .band-text p { color: var(--text-hell); }
.hell .band h2 { color: var(--text-hell); }
.hell .band .kicker { color: var(--glut); }

.trenner { display: block; width: min(520px, 80%); margin: 0 auto; opacity: .9; }

/* ---------- Feature cards ---------- */
.raster-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .raster-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .raster-6 { grid-template-columns: 1fr; } }
.raster-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1060px) { .raster-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .raster-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .raster-5 { grid-template-columns: 1fr; } }

.kachel {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.5rem 1.3rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(57, 65, 122, .45), rgba(35, 42, 85, .35));
  border: 1px solid rgba(242, 196, 109, .14);
  text-decoration: none; color: var(--text-hell);
  transition: transform .22s ease, border-color .22s, background .22s;
}
.kachel:hover { transform: translateY(-4px); border-color: rgba(242, 196, 109, .45); color: var(--text-hell);
  background: linear-gradient(180deg, rgba(57, 65, 122, .6), rgba(35, 42, 85, .5)); }
.kachel img { width: 76px; height: 76px; margin: -.3rem 0 .4rem -.4rem; }
.kachel h3 { font-size: 1.2rem; margin: 0; }
.kachel p { font-size: .95rem; color: var(--text-hell-2); margin: 0; }
.kachel .mehr { margin-top: auto; padding-top: .7rem; font-weight: 700; font-size: .9rem; color: var(--gold); }

/* ---------- Split block (banner + text) ---------- */
.geteilt { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.geteilt.umgekehrt .geteilt-bild { order: 2; }
@media (max-width: 860px) { .geteilt { grid-template-columns: 1fr; } .geteilt.umgekehrt .geteilt-bild { order: 0; } }
.geteilt-bild img { border-radius: var(--radius); box-shadow: var(--schatten); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hell .geteilt-bild img { box-shadow: 0 24px 50px -24px rgba(60, 30, 10, .45); }

/* ---------- Coloring pages ---------- */
.malraster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 960px) { .malraster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .malraster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } }

.malblatt {
  background: #fff; border-radius: 14px; padding: .7rem .7rem 0;
  box-shadow: 0 1px 0 var(--papier-linie), 0 14px 30px -18px rgba(60, 30, 10, .5);
  display: flex; flex-direction: column; transition: transform .2s ease; min-width: 0;
}
.malblatt:hover { transform: translateY(-3px) rotate(-.4deg); }
.malblatt img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #fff; }
.malblatt .fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .5rem; padding: .7rem .2rem .8rem; min-width: 0; }
.malblatt .fuss-titel-block { min-width: 0; flex: 1 1 8rem; }
.malblatt h3 { font-family: var(--font-text); font-weight: 700; font-size: .95rem; margin: 0; color: var(--text-dunkel); }
.malblatt .alter { font-size: .78rem; color: var(--text-dunkel-2); }
.druck-knopf {
  flex: none; display: inline-flex; align-items: center; gap: .35rem;
  font: 700 .82rem var(--font-text); color: var(--glut-tief);
  background: rgba(232, 116, 59, .1); border: 0; border-radius: 999px; padding: .5rem .8rem; cursor: pointer; text-decoration: none;
}
.druck-knopf:hover { background: rgba(232, 116, 59, .2); color: #8e3c14; }
.druck-knopf svg { width: 15px; height: 15px; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter button {
  font: 700 .9rem var(--font-text); padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(185, 82, 31, .35); background: transparent; color: var(--text-dunkel-2);
}
.filter button[aria-pressed="true"] { background: var(--glut-tief); border-color: var(--glut-tief); color: #fff8ec; }

/* ---------- Dragon cards (lexicon) ---------- */
.drachen-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 960px) { .drachen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .drachen-raster { grid-template-columns: 1fr; } }

.drachenkarte {
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text-hell);
  background: var(--tinte); border: 1px solid rgba(242, 196, 109, .14);
  display: flex; flex-direction: column; transition: transform .22s ease, border-color .22s;
}
.drachenkarte:hover { transform: translateY(-4px); border-color: rgba(242, 196, 109, .5); color: var(--text-hell); }
.drachenkarte img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.drachenkarte .inhalt { padding: 1.2rem 1.3rem 1.4rem; }
.drachenkarte h3 { margin-bottom: .3rem; }
.drachenkarte p { color: var(--text-hell-2); font-size: .95rem; margin: 0; }
.etikett {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: rgba(242, 196, 109, .12); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}

/* Lexicon detail entries */
.eintrag { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: 3.2rem 0; border-top: 1px solid rgba(242, 196, 109, .14); scroll-margin-top: 90px; }
.eintrag:nth-child(even) .eintrag-bild { order: 2; }
@media (max-width: 820px) { .eintrag { grid-template-columns: 1fr; } .eintrag:nth-child(even) .eintrag-bild { order: 0; } }
.eintrag-bild img { border-radius: var(--radius); box-shadow: var(--schatten); }
.steckbrief { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 1.3rem 0; padding: 1.1rem 1.3rem; border-radius: var(--radius-klein); background: rgba(35, 42, 85, .6); border: 1px solid rgba(242, 196, 109, .14); font-size: .95rem; }
.steckbrief dt { color: var(--gold); font-weight: 700; }
.steckbrief dd { margin: 0; color: var(--text-hell); }

.sprungleiste { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.sprungleiste a { font-weight: 700; font-size: .9rem; text-decoration: none; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(242, 196, 109, .35); color: var(--gold-hell); }
.sprungleiste a:hover { background: rgba(242, 196, 109, .12); }

/* ---------- Generator & quiz panels ---------- */
.tafel {
  border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, rgba(57, 65, 122, .55), rgba(24, 28, 58, .85));
  border: 1px solid rgba(242, 196, 109, .2);
  box-shadow: var(--schatten);
}
.hell .tafel { background: #fffaf0; border-color: var(--papier-linie); box-shadow: 0 24px 50px -28px rgba(60, 30, 10, .45); }

.wahl-gruppe { border: 0; padding: 0; margin: 0 0 1.4rem; }
.wahl-gruppe legend { font-weight: 700; margin-bottom: .6rem; font-size: .95rem; color: var(--gold-hell); }
.hell .wahl-gruppe legend { color: var(--text-dunkel); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  cursor: pointer; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .93rem;
  border: 1.5px solid rgba(242, 196, 109, .3); color: var(--text-hell-2); transition: all .18s;
}
.chips label:hover { border-color: var(--gold); color: var(--text-hell); }
.chips input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--nacht); }
.chips input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.namensliste { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; }
.namensliste li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-radius: 14px; background: rgba(17, 20, 42, .55); border: 1px solid rgba(242, 196, 109, .12);
  animation: auftauchen .4s ease both;
}
.namensliste li:nth-child(2) { animation-delay: .05s; } .namensliste li:nth-child(3) { animation-delay: .1s; }
.namensliste li:nth-child(4) { animation-delay: .15s; } .namensliste li:nth-child(5) { animation-delay: .2s; }
.namensliste .name { hyphens: manual; overflow-wrap: anywhere; font-family: var(--font-titel); font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--gold-hell); }
.namensliste .bedeutung { display: block; font-size: .85rem; color: var(--text-hell-2); font-family: var(--font-text); }
.kopier-knopf { flex: none; background: none; border: 1px solid rgba(242, 196, 109, .35); color: var(--gold); border-radius: 10px; padding: .45rem .7rem; font: 700 .8rem var(--font-text); cursor: pointer; }
.kopier-knopf:hover { background: rgba(242, 196, 109, .12); }

@keyframes auftauchen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.quiz-fortschritt { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 1.6rem; }
.quiz-fortschritt span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--glut)); transition: width .35s ease; }
.quiz-frage h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.quiz-zaehler { color: var(--text-hell-2); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.antworten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
@media (max-width: 620px) { .antworten { grid-template-columns: 1fr; } }
.antwort {
  text-align: left; cursor: pointer; padding: 1.05rem 1.2rem; border-radius: 14px;
  font: 600 1rem/1.4 var(--font-text); color: var(--text-hell);
  background: rgba(17, 20, 42, .55); border: 1.5px solid rgba(242, 196, 109, .2); transition: all .18s;
}
.antwort:hover { border-color: var(--gold); background: rgba(242, 196, 109, .1); transform: translateY(-2px); }
.ergebnis { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; animation: auftauchen .5s ease both; }
@media (max-width: 760px) { .ergebnis { grid-template-columns: 1fr; } }
.ergebnis img { border-radius: var(--radius); box-shadow: var(--schatten); }
.ergebnis h2 em { font-style: italic; color: var(--gold); }

/* ---------- Steps (kite guide) ---------- */
.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.schritte li { counter-increment: schritt; position: relative; padding: 1.2rem 1.3rem 1.2rem 4.2rem; border-radius: 16px; background: #fffaf0; border: 1px solid var(--papier-linie); }
.schritte li::before {
  content: counter(schritt); position: absolute; left: 1.1rem; top: 1.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.05rem var(--font-titel); color: #fff8ec; background: var(--glut-tief);
}
.schritte h3 { font-size: 1.15rem; margin-bottom: .3rem; color: var(--text-dunkel); }
.schritte p { margin: 0; color: var(--text-dunkel-2); }

.hinweis { padding: 1.2rem 1.4rem; border-radius: 16px; border-left: 4px solid var(--glut); background: rgba(232, 116, 59, .08); }
.hinweis strong { color: var(--glut-tief); }

.tabelle { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fffaf0; border-radius: 14px; overflow: hidden; border: 1px solid var(--papier-linie); }
.tabelle th, .tabelle td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--papier-linie); }
.tabelle th { background: var(--pergament-2); font-weight: 700; color: var(--text-dunkel); }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle-huelle { overflow-x: auto; }

/* ---------- Big CTA band ---------- */
.band { position: relative; overflow: hidden; border-radius: 28px; min-height: 340px; display: flex; align-items: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 20, 42, .94) 0%, rgba(17, 20, 42, .7) 45%, rgba(17, 20, 42, .05) 80%); }
.band .band-text { position: relative; z-index: 2; padding: clamp(2rem, 5vw, 3.5rem); max-width: 32rem; }
.band p { color: #ddd5c6; }
@media (max-width: 640px) { .band::after { background: linear-gradient(0deg, rgba(17, 20, 42, .96) 30%, rgba(17, 20, 42, .35) 100%); } .band { align-items: flex-end; min-height: 420px; } }

/* ---------- Prose ---------- */
.prosa { max-width: 44rem; }
.prosa h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prosa ul { padding-left: 1.2rem; }
.prosa li { margin-bottom: .4rem; }

/* ---------- Footer ---------- */
.fuss-bereich { background: #0c0e1f; border-top: 1px solid rgba(242, 196, 109, .12); padding: 3.5rem 0 2rem; color: var(--text-hell-2); font-size: .95rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss-bereich h4 { font-family: var(--font-text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.fuss-bereich ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.fuss-bereich a { color: var(--text-hell-2); text-decoration: none; }
.fuss-bereich a:hover { color: var(--gold); }
.fuss-link { font: inherit; color: var(--text-hell-2); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.fuss-link:hover { color: var(--gold); }
.fuss-status { display: block; font-size: .85rem; color: var(--text-hell-2); max-width: 22rem; }
.fuss-status:empty { display: none; }
.fuss-unten { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.js .zeigen:not(.sichtbar) { opacity: 0; }
.js .zeigen { transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .zeigen.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .zeigen { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Print: only the coloring page ---------- */
@media print {
  body.druckansicht > *:not(.druckblatt) { display: none !important; }
  .druckblatt { display: block !important; }
}
.druckblatt { display: none; }
.druckblatt img { width: 100%; height: auto; }
@page { size: A4 portrait; margin: 10mm; }

/* ---------- Additions (v2) ---------- */
.springen { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--nacht); font-weight: 700; padding: .7rem 1rem; border-radius: 10px; text-decoration: none; }
.springen:focus { top: 1rem; color: var(--nacht); }
.fuss-titel { font-family: var(--font-text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; font-weight: 700; }
.fuss-text { margin-top: 1rem; max-width: 26rem; }
.klein { font-size: .9rem; }
.text-knopf { background: none; border: 0; padding: .9rem .4rem; color: var(--text-hell-2); font: 600 .95rem var(--font-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-knopf:hover { color: var(--gold-hell); }

.malblatt-link { display: block; border-radius: 8px; }
.malblatt h3 a { color: inherit; text-decoration: none; }
.malblatt h3 a:hover { color: var(--glut-tief); }
.malblatt-link:hover img { outline: 2px solid rgba(232, 116, 59, .35); outline-offset: 2px; }
.malblatt[hidden] { display: none; }
.filter .zahl { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-left: .2rem; border-radius: 999px; background: rgba(185, 82, 31, .12); font-size: .8rem; }
.filter button[aria-pressed="true"] .zahl { background: rgba(0, 0, 0, .22); }
.filter-klein { margin-top: -1rem; }
.filter-klein button { padding: .4rem .85rem; font-size: .85rem; }
.filter-ergebnis { margin: -.6rem 0 1.2rem; font-size: .92rem; font-weight: 600; }
.hell .krumen, .hell .krumen a { color: var(--text-dunkel-2); }
.hell .krumen a:hover { color: var(--glut-tief); }

/* Coloring page detail */
.vorlage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .vorlage { grid-template-columns: 1fr; } }
.vorlage-bild { margin: 0; background: #fff; border-radius: 16px; padding: clamp(.6rem, 2vw, 1.2rem); box-shadow: 0 1px 0 var(--papier-linie), 0 24px 50px -26px rgba(60, 30, 10, .5); }
.vorlage-bild picture { display: block; }
.vorlage-bild img { width: 100%; height: auto; }
.vorlage-text h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--text-dunkel); }
.alter-gross { font-weight: 700; color: var(--glut-tief); margin-top: -.3rem; }
.etikett-hell { color: var(--glut-tief); background: rgba(232, 116, 59, .12); }
.vorlage-text .knopf-reihe { margin: 1.6rem 0; }
.tipp { margin-bottom: 1.2rem; }
.tipp p { margin: 0; }
.blaettern { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--papier-linie); font-weight: 700; font-size: .95rem; }
.blaettern a { text-decoration: none; }
.aehnlich { margin-top: 4.5rem; }
.aehnlich h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text-dunkel); }
.ergebnis-titel { font-size: clamp(2rem, 4.5vw, 3rem); }
.ergebnis-titel em { font-style: italic; color: var(--gold); }

/* Ad slots (WERBUNG_AKTIV in build.js): labelled, reserved height against layout shift,
   collapsed when Google reports no ad (unfilled) or an ad blocker removes the script. */
.werbeplatz { display: block; margin: 2.5rem auto; max-width: 970px; text-align: center; }
.werbeplatz ins.adsbygoogle { min-height: 250px; }
.werbeplatz-rechteck { max-width: 336px; margin: 1.6rem 0; }
.werbe-label { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-hell-2); opacity: .8; margin-bottom: .35rem; }
.hell .werbe-label { color: var(--text-dunkel-2); }
.werbeplatz:has(ins[data-ad-status="unfilled"]) { display: none; }
html:not(.js) .werbeplatz { display: none; }

/* Step-by-step drawing guide */
.zeichenschritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; counter-reset: zs; }
@media (max-width: 900px) { .zeichenschritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zeichenschritte { grid-template-columns: 1fr; } }
.zeichenschritte li { counter-increment: zs; background: #fffaf0; border: 1px solid var(--papier-linie); border-radius: 18px; overflow: hidden; }
.zeichenschritte img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; border-bottom: 1px solid var(--papier-linie); }
.zeichenschritte .text { padding: 1rem 1.2rem 1.2rem; }
.zeichenschritte h3 { font-size: 1.15rem; color: var(--text-dunkel); margin-bottom: .3rem; }
.zeichenschritte h3::before { content: "Schritt " counter(zs) ": "; color: var(--glut-tief); }
.zeichenschritte p { margin: 0; color: var(--text-dunkel-2); font-size: .97rem; }

.faktenkarte { border-radius: var(--radius); overflow: hidden; background: var(--tinte); border: 1px solid rgba(242, 196, 109, .14); }
.faktenkarte img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.faktenkarte .inhalt { padding: 1.3rem 1.4rem 1.5rem; }
.faktenkarte p { color: var(--text-hell-2); margin: 0 0 .8rem; }
.faktenkarte p:last-child { margin: 0; }
.urteil { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .7rem; }
.urteil.echt { background: rgba(58, 125, 116, .35); color: #a8e3da; }
.urteil.sage { background: rgba(232, 116, 59, .2); color: #ffc29f; }
.quellen { font-size: .88rem; color: var(--text-hell-2); }
.quellen a { color: var(--text-hell-2); }

/* Print the single coloring page from the detail page */
@media print {
  .kopf, .fuss-bereich, .springen, .krumen, .vorlage-text, .aehnlich, .werbeplatz { display: none !important; }
  .vorlage { display: block; }
  .vorlage-bild { box-shadow: none; padding: 0; }
  .hell { background: #fff !important; }
  .abschnitt { padding: 0 !important; }
}

.h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

/* ---------- v3 fixes ---------- */
html:not(.js) .nur-js { display: none !important; }
#quiz { min-height: 430px; }
@media (max-width: 620px) { #quiz { min-height: 560px; } }
.druck-meldung:empty { display: none; }
.druck-meldung { font-weight: 600; color: var(--glut-tief); }
@media (max-width: 420px) {
  .malraster { gap: .6rem; }
  .malblatt { padding: .5rem .5rem 0; }
  .malblatt h3 { font-size: .88rem; }
  .druck-knopf { padding: .4rem .65rem; }
}
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .druckblatt img { max-height: 100vh; object-fit: contain; }
}

/* programmatic focus targets (headings) need no visible ring */
[tabindex="-1"]:focus { outline: none; }

/* ---------- Home page v4: varied section rhythm ---------- */
.knopf-reihe.mitte { justify-content: center; margin-top: 2.4rem; }

/* Coloring pages fanned out like sheets on a table */
.malbuehne { overflow: hidden; }
.blattfaecher { max-width: 1040px; margin: 0 auto; padding: 1rem 0 .5rem; }
.blattfaecher .malblatt { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.blattfaecher .malblatt:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.blattfaecher .malblatt:nth-child(2) { transform: rotate(1.5deg); }
.blattfaecher .malblatt:nth-child(3) { transform: rotate(-1deg) translateY(6px); }
.blattfaecher .malblatt:nth-child(4) { transform: rotate(2.5deg) translateY(12px); }
.blattfaecher .malblatt:hover, .blattfaecher .malblatt:focus-within { transform: rotate(0) translateY(-6px); box-shadow: 0 1px 0 var(--papier-linie), 0 30px 50px -24px rgba(60, 30, 10, .55); z-index: 2; }
@media (max-width: 640px) {
  .blattfaecher .malblatt:nth-child(n) { transform: rotate(0); }
}

/* Name generator teaser: full-bleed stage */
.namensbuehne { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 8.5rem) 0; text-align: center; background: var(--nacht); }
.namensbuehne .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.namensbuehne::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(17, 20, 42, .35), rgba(17, 20, 42, .92)); }
.namensbuehne-inhalt { position: relative; z-index: 2; max-width: 46rem; }
.buehnen-name { font-family: var(--font-titel); font-style: italic; font-weight: 600; font-size: clamp(2.2rem, 6.5vw, 4.4rem); line-height: 1.1; color: var(--gold); margin: 1.6rem 0 .6rem; text-shadow: 0 0 40px rgba(242, 196, 109, .35); font-variation-settings: "WONK" 1; min-height: 1.1em; }
.buehnen-bedeutung { color: var(--text-hell-2); font-size: 1.08rem; min-height: 1.6em; }

/* Fact strip */
.faktenleiste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.2rem); }
@media (max-width: 760px) { .faktenleiste { grid-template-columns: minmax(0, 1fr); } }
.fakt { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 1.1rem; align-items: start; text-decoration: none; color: var(--text-hell); padding: 1.1rem; border-radius: var(--radius); border: 1px solid rgba(242, 196, 109, .12); background: rgba(24, 28, 58, .55); transition: border-color .2s, transform .2s; }
.fakt:hover { border-color: rgba(242, 196, 109, .45); transform: translateY(-3px); color: var(--text-hell); }
.fakt img { grid-row: 1 / 3; width: 112px; height: 112px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px rgba(242, 196, 109, .35); }
.fakt-zahl { font-family: var(--font-titel); font-size: 1.9rem; font-weight: 600; color: var(--gold); line-height: 1.1; }
.fakt-text { color: var(--text-hell-2); font-size: .97rem; margin-top: .3rem; }
