/* Wind macht Strom – Website zum Buch. Farben aus dem Buch. */
:root {
  --tinte: #243447;
  --himmel: #6FB7E9;
  --himmel-hell: #CFE8F8;
  --papier: #FDFBF4;
  --papier-2: #F6F0E1;
  --gelb: #F4C542;
  --gelb-dunkel: #9A7B00;
  --gruen: #3E7C4F;
  --rot: #D64545;
  --orange: #E8742C;
  --schatten: 0 18px 40px -18px rgba(36, 52, 71, .45);
  --rund: 22px;
  --schrift: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --breite: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--schrift); color: var(--tinte); background: var(--papier);
  font-size: clamp(17px, 1.05vw + 12px, 19px); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
p { margin: 0 0 1em; }
a { color: var(--tinte); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sprung { position: absolute; left: -999px; top: 8px; background: var(--tinte); color: #fff; padding: .5em 1em; border-radius: 8px; z-index: 100; }
.sprung:focus { left: 8px; }

.dachzeile { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: bold; color: var(--gruen); margin-bottom: .6em; }
.klein { font-size: .9rem; opacity: .8; }
.betont { font-weight: bold; font-size: 1.15em; color: var(--gruen); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block; background: var(--gelb); color: var(--tinte); font-weight: bold; text-decoration: none;
  padding: .8em 1.5em; border-radius: 999px; border: 3px solid var(--tinte); box-shadow: 0 5px 0 var(--tinte);
  transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.knopf:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--tinte); }
.knopf:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--tinte); }
.knopf-hell { background: #fff; }
.knopf-klein { padding: .35em 1em; box-shadow: 0 3px 0 var(--tinte); border-width: 2px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem clamp(1rem, 4vw, 2.5rem); background: rgba(253, 251, 244, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 52, 71, .08);
}
.marke { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: bold; font-size: 1.15rem; }
.marke-wuschel { width: 58px; height: 34px; }
.kopf nav ul { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.kopf nav a:not(.knopf) { text-decoration: none; font-weight: bold; font-size: .95rem; }
.kopf nav a:not(.knopf):hover { color: var(--gruen); }
@media (max-width: 760px) {
  .kopf nav li:not(:last-child) { display: none; }
  .marke span { font-size: 1rem; }
}

/* ---------- Start (Himmel) ---------- */
.held {
  position: relative; overflow: hidden; min-height: min(92vh, 860px);
  background: linear-gradient(180deg, #8EC9F0 0%, #BFE3F6 55%, #EAF5FB 100%);
  display: flex; align-items: center;
}
.himmel { position: absolute; inset: 0; pointer-events: none; }
.wolke { position: absolute; background: #fff; border-radius: 999px; opacity: .9; filter: blur(.5px); animation: zieh 70s linear infinite; }
.wolke::before, .wolke::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.w1 { width: 200px; height: 52px; top: 12%; left: -10%; }
.w1::before { width: 90px; height: 80px; left: 30px; top: -40px; } .w1::after { width: 70px; height: 62px; left: 100px; top: -28px; }
.w2 { width: 150px; height: 40px; top: 30%; left: 40%; animation-duration: 95s; animation-delay: -40s; opacity: .75; }
.w2::before { width: 70px; height: 62px; left: 22px; top: -32px; } .w2::after { width: 52px; height: 48px; left: 76px; top: -22px; }
.w3 { width: 240px; height: 58px; top: 6%; left: 70%; animation-duration: 120s; animation-delay: -80s; opacity: .8; }
.w3::before { width: 110px; height: 96px; left: 40px; top: -50px; } .w3::after { width: 80px; height: 70px; left: 128px; top: -34px; }
@keyframes zieh { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.boe { position: absolute; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); animation: boe 6s ease-in-out infinite; }
.b1 { width: 180px; top: 22%; left: 8%; } .b2 { width: 120px; top: 44%; left: 52%; animation-delay: -2s; } .b3 { width: 150px; top: 62%; left: 20%; animation-delay: -4s; }
@keyframes boe { 0% { transform: translateX(-60px); opacity: 0; } 30% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(160px); opacity: 0; } }
.huegel { position: absolute; left: -5%; right: -5%; bottom: -1px; height: 22%;
  background: radial-gradient(120% 100% at 30% 100%, #7FB066 60%, transparent 61%), radial-gradient(90% 100% at 85% 100%, #8CC084 60%, transparent 61%); }
.park { position: absolute; left: 0; right: 0; bottom: 15%; height: 70%; }
.rad { position: absolute; bottom: 0; filter: drop-shadow(0 2px 2px rgba(36,52,71,.18)); }
.rad .mast { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.rad .dreh { position: absolute; width: 170%; aspect-ratio: 1; left: -35%; top: 27.27%; transform: translateY(-50%); animation: drehen 6s linear infinite; }
.r1 { width: 80px; height: 176px; left: 3%; opacity: .8; } .r1 .dreh { animation-duration: 7s; }
.r2 { width: 120px; height: 264px; right: 2%; } .r2 .dreh { animation-duration: 5.2s; animation-delay: -1s; }
.r3 { width: 52px; height: 114px; left: 47%; opacity: .7; } .r3 .dreh { animation-duration: 8s; animation-delay: -3s; }
@keyframes drehen { from { transform: translateY(-50%) rotate(0); } to { transform: translateY(-50%) rotate(360deg); } }

.held-inhalt {
  position: relative; z-index: 2; width: 100%; max-width: var(--breite); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.held-text .einleitung { font-size: clamp(1.1rem, 1.4vw + .6rem, 1.4rem); max-width: 34em; }
.held h1 .strom { color: var(--gelb); -webkit-text-stroke: 2px var(--tinte); paint-order: stroke fill; text-shadow: 0 4px 0 var(--tinte); }
.held-buch { position: relative; justify-self: center; width: min(420px, 80vw); }
.buch3d { perspective: 1400px; }
.buch3d img {
  border-radius: 4px 12px 12px 4px; transform: rotateY(-14deg) rotateX(3deg); transform-origin: left center;
  box-shadow: inset 6px 0 10px rgba(0,0,0,.25), 24px 30px 50px -18px rgba(36,52,71,.55), 2px 0 0 #ddd;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.buch3d:hover img { transform: rotateY(-4deg) rotateX(1deg) scale(1.02); }
.buch3d.klein { width: min(330px, 70vw); margin: 0 auto; }
.schwebe-wuschel { position: absolute; width: 120px; height: 70px; left: -70px; top: 30%; animation: schweben 5s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(36,52,71,.2)); }
@keyframes schweben { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(10px,-18px) rotate(5deg); } }
.sprechblase {
  position: absolute; left: -130px; top: calc(30% - 62px); background: #fff; border: 2px solid var(--tinte); border-radius: 16px;
  padding: .3em .8em; font-weight: bold; font-size: .9rem; white-space: nowrap; animation: blase 7s ease-in-out infinite;
}
.sprechblase::after { content: ""; position: absolute; left: 40%; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2px solid var(--tinte); border-bottom: 2px solid var(--tinte); transform: rotate(45deg); }
@keyframes blase { 0%, 8% { opacity: 0; transform: scale(.8); } 14%, 55% { opacity: 1; transform: scale(1); } 62%, 100% { opacity: 0; transform: scale(.9); } }
@media (max-width: 860px) {
  .held-inhalt { grid-template-columns: 1fr; text-align: center; }
  .held-text .einleitung { margin-inline: auto; }
  .knoepfe { justify-content: center; }
  .park { opacity: .5; } .r3 { display: none; }
  .schwebe-wuschel { left: -30px; width: 90px; }
  .sprechblase { left: -40px; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 4vw, 2.5rem); }
.abschnitt > * { max-width: var(--breite); margin-inline: auto; }
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .spalten { grid-template-columns: 1fr; } }
.kopfzeile { text-align: center; max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3rem); }

.bild-rahmen { margin: 0; padding: 12px; background: #fff; border-radius: 10px; box-shadow: var(--schatten); }
.bild-rahmen img { border-radius: 4px; }
.kippen-links { transform: rotate(-2deg); }

/* Geschichte */
.geschichte { background: var(--papier); }

/* Figuren */
.figuren { background: #FCF9F1; border-block: 1px solid rgba(36,52,71,.06); }
.figurenreihe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.5rem, 1.5vw, 1.2rem); align-items: end; }
.figur {
  position: relative; width: 100%; border: 0; background: none; cursor: pointer; padding: 0 0 .2rem; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.figur img {
  height: clamp(170px, 24vw, 330px); width: auto; object-fit: contain; transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
.figur:hover img, .figur[aria-expanded="true"] img { transform: translateY(-10px) rotate(-2deg); }
.figur .name { font-weight: bold; margin-top: .4rem; font-size: 1.05rem; }
.figur .info {
  position: absolute; left: 50%; bottom: calc(100% - 3rem); transform: translate(-50%, 10px) scale(.95); width: min(250px, 70vw);
  background: #fff; border: 2px solid var(--tinte); border-radius: 16px; padding: .8em 1em; font-size: .9rem; line-height: 1.45; text-align: left;
  box-shadow: var(--schatten); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5;
}
.figur[aria-expanded="true"] .info { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 760px) {
  .figurenreihe { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .figurenreihe li:nth-child(3n+1) .info { left: 0; transform: translate(0, 10px); }
  .figurenreihe li:nth-child(3n+1) .figur[aria-expanded="true"] .info { transform: translate(0, 0); }
  .figurenreihe li:nth-child(3n) .info { left: auto; right: 0; transform: translate(0, 10px); }
  .figurenreihe li:nth-child(3n) .figur[aria-expanded="true"] .info { transform: translate(0, 0); }
}

/* Fragen-Karten */
.fragen { background: linear-gradient(180deg, var(--papier) 0%, #EAF5FB 100%); }
.karten { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
@media (max-width: 960px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .karten { grid-template-columns: 1fr; } }
.karte { position: relative; width: 100%; aspect-ratio: 4 / 3.6; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; text-align: left; }
.karte .vorne, .karte .hinten {
  position: absolute; inset: 0; border-radius: var(--rund); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.3,1.3,.5,1); box-shadow: var(--schatten); border: 3px solid var(--tinte);
}
.karte .vorne { background: #fff; display: flex; flex-direction: column; }
.karte .vorne img { width: 100%; height: 62%; object-fit: cover; }
.karte .frage { flex: 1; display: flex; align-items: center; padding: .8em 1em; font-weight: bold; font-size: 1.12rem; line-height: 1.3; }
.karte .vorne::after { content: "↻"; position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--gelb); border: 2px solid var(--tinte); display: grid; place-items: center; font-weight: bold; }
.karte .hinten { transform: rotateY(180deg); background: var(--tinte); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 1.2em; padding: 1.6em; }
.karte .tipp { font-size: 1.08rem; line-height: 1.5; }
.karte .kapitel { align-self: flex-start; background: var(--gelb); color: var(--tinte); font-weight: bold; padding: .25em .9em; border-radius: 999px; font-size: .9rem; }
.karte .kapitel::before { content: "📖 Steht in "; }
.karte[aria-pressed="true"] .vorne { transform: rotateY(-180deg); }
.karte[aria-pressed="true"] .hinten { transform: rotateY(0); }
.karte:hover .vorne { transform: translateY(-4px); }
.karte[aria-pressed="true"]:hover .vorne { transform: rotateY(-180deg); }

/* Quiz */
.quiz { background: #EAF5FB; }
.quiz-kasten {
  position: relative; max-width: 820px; background: #fff; border: 3px dashed var(--himmel); border-radius: 30px; padding: clamp(1.6rem, 4vw, 3rem);
}
.quiz-wuschel { position: absolute; top: -40px; right: 20px; width: 130px; height: 74px; animation: schweben 4s ease-in-out infinite; }
.aussagen { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; counter-reset: a; }
.aussage { background: var(--papier); border-radius: 16px; padding: 1rem 1.2rem; border-left: 6px solid var(--himmel); }
.aussage .satz { font-weight: bold; font-size: 1.08rem; margin-bottom: .6rem; }
.wahl { display: flex; gap: .6rem; flex-wrap: wrap; }
.wahl button { border: 2px solid var(--tinte); background: #fff; border-radius: 999px; padding: .35em 1.1em; cursor: pointer; font-weight: bold; transition: background .15s; }
.wahl button:hover:not(:disabled) { background: var(--himmel-hell); }
.wahl button:disabled { cursor: default; opacity: .55; }
.wahl button.gewaehlt { opacity: 1; background: var(--tinte); color: #fff; }
.aufloesung { margin: .7rem 0 0; animation: rein .35s ease-out; }
.aufloesung em { font-style: normal; font-weight: bold; background: var(--gelb); padding: .05em .6em; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.aussage.richtig { border-left-color: var(--gruen); } .aussage.richtig .aufloesung b { color: var(--gruen); }
.aussage.falsch { border-left-color: var(--orange); } .aussage.falsch .aufloesung b { color: var(--orange); }
.punkte { font-weight: bold; text-align: center; margin: 1.4rem 0 0; min-height: 1.6em; }
@keyframes rein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Mitmachen */
.mitmachen { background: var(--papier); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; counter-reset: exp; }
.chips li { counter-increment: exp; background: #fff; border: 2px solid var(--tinte); border-radius: 999px; padding: .2em .9em .2em .3em; font-size: .9rem; font-weight: bold; }
.chips li::before { content: counter(exp); display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .45em; border-radius: 50%; background: var(--gelb); font-size: .85em; }
.spickzettel { position: relative; margin: 0; border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); transform: rotate(1.5deg); border: 3px solid var(--tinte); background: #fff; }
.spickzettel img { filter: blur(7px) saturate(1.1); transform: scale(1.08); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.spickzettel figcaption {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3em;
  background: radial-gradient(circle, rgba(253,251,244,.85) 0%, rgba(253,251,244,.35) 70%); font-size: 1.15rem; padding: 1rem;
}
.spickzettel .schloss { font-size: 2.6rem; }

/* Trailer */
.trailer { background: var(--tinte); color: #fff; }
.trailer .dachzeile { color: var(--gelb); }
.telefon { justify-self: center; width: min(320px, 78vw); padding: 12px; background: #111; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.telefon video { border-radius: 30px; width: 100%; aspect-ratio: 9 / 16; background: #000; object-fit: cover; }

/* Galerie */
.galerie { background: var(--papier-2); }
.bilderwand { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 860px) { .bilderwand { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bilderwand { grid-template-columns: 1fr; } }
.bilderwand li { background: #fff; padding: 10px 10px 14px; border-radius: 8px; box-shadow: var(--schatten); transition: transform .25s; }
.bilderwand li:nth-child(odd) { transform: rotate(-1.4deg); } .bilderwand li:nth-child(even) { transform: rotate(1.2deg); }
.bilderwand li:hover { transform: rotate(0) scale(1.03); }
.bilderwand button { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.bilderwand img { border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.bilderwand span { display: block; margin-top: .6rem; font-weight: bold; font-size: .95rem; text-align: center; }
.inhaltsverzeichnis { margin-top: clamp(2rem, 4vw, 3rem); max-width: 640px; background: #fff; border-radius: 18px; padding: 1rem 1.4rem; border: 2px solid var(--tinte); }
.inhaltsverzeichnis summary { cursor: pointer; font-weight: bold; }
.inhaltsverzeichnis ol { margin: 1rem 0 .3rem; padding-left: 1.6rem; columns: 2; column-gap: 2rem; }
.inhaltsverzeichnis li { break-inside: avoid; margin-bottom: .3rem; }
@media (max-width: 600px) { .inhaltsverzeichnis ol { columns: 1; } }

/* Erwachsene */
.erwachsene { background: var(--papier); }
.drei { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 860px) { .drei { grid-template-columns: 1fr; } }
.drei li { background: #fff; border-radius: var(--rund); padding: 1.5rem 1.6rem; border-top: 6px solid var(--gruen); box-shadow: var(--schatten); }
.drei li:nth-child(2) { border-top-color: var(--himmel); } .drei li:nth-child(3) { border-top-color: var(--gelb); }
.drei b { display: block; font-size: 1.15rem; margin-bottom: .4rem; }

/* Buch */
.buch { background: linear-gradient(180deg, #EAF5FB 0%, #BFE3F6 100%); }
.untertitel { font-size: 1.25rem; margin-top: -.6rem; }
.daten { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.4rem; margin: 1.4rem 0; background: rgba(255,255,255,.7); padding: 1.2rem 1.4rem; border-radius: 18px; }
.daten dt { font-weight: bold; } .daten dd { margin: 0; }
.daten .preis { font-weight: bold; font-size: 1.3rem; color: var(--gruen); }
.kopiert { margin-left: 1rem; font-weight: bold; color: var(--gruen); }

/* Fuß */
.fuss { background: var(--tinte); color: #fff; padding: 2.5rem clamp(1.2rem, 4vw, 2.5rem); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.fuss-innen img { background: #fff; border-radius: 50%; padding: 4px; }
.fuss-innen p { flex: 1; margin: 0; min-width: 240px; }
.fuss small { opacity: .75; }
.fuss a { color: #fff; }

/* Lichtkasten */
.lichtkasten { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lichtkasten::backdrop { background: rgba(20, 28, 40, .86); }
.lichtkasten img { max-height: 88vh; width: auto; border-radius: 10px; }
.lichtkasten .schliessen { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--tinte); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Einblenden beim Scrollen */
.js .einblenden { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s ease-out; }
.js .einblenden.sichtbar { opacity: 1; transform: none; }
.js .kippen-links.einblenden.sichtbar { transform: rotate(-2deg); }
.js .spickzettel.einblenden.sichtbar { transform: rotate(1.5deg); }

/* Unterseiten */
.seite { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 4vw, 2rem); }
.seite h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.seite h2 { font-size: 1.35rem; margin-top: 2rem; }
.hinweis { background: #FFF6D6; border: 2px solid var(--gelb); border-radius: 14px; padding: 1rem 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .einblenden { opacity: 1; transform: none; }
}

/* Feinschliff für schmale Bildschirme */
@media (max-width: 600px) {
  .sprechblase { display: none; }
  .abschnitt { padding-inline: 1rem; }
  .quiz-kasten { padding: 1.6rem 1rem 1.2rem; border-radius: 22px; }
  .quiz-wuschel { width: 100px; height: 58px; top: -30px; }
  .aussage { padding: .9rem .8rem; }
  .wahl button { padding: .35em .85em; }
}
