/* Mila & Momo – Website-Stylesheet. Mobil zuerst. Farben aus der Serie: Papier, Tinte, Momo-Gold, Mila-Rot, Schal-Türkis. */

@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(/fonts/caveat-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbf3e4;
  --paper-2: #f5e7cd;
  --paper-3: #efdcb9;
  --card: #fffaf0;
  --ink: #4a2e1c;
  --ink-2: #6b4a33;
  --ink-soft: rgba(74, 46, 28, .14);
  --gold: #e9a13b;
  --gold-soft: #f8dfaa;
  --red: #d8432f;
  --red-dark: #b8321f;
  --teal: #1f7f78;
  --teal-dark: #17655f;
  --teal-soft: #cfeae5;
  --leaf: #6e9a3e;
  --sky: #dcecf0;
  --night: #1f2a4a;
  --night-2: #2c3a63;
  --r: 22px 26px 20px 28px / 26px 20px 28px 22px;
  --r-sm: 12px 15px 11px 16px / 15px 11px 16px 12px;
  --shadow: 3px 5px 0 var(--ink-soft);
  --shadow-lift: 5px 9px 0 rgba(74, 46, 28, .16);
  --ff-head: "Fraunces", "Georgia", serif;
  --ff-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-hand: "Caveat", "Comic Sans MS", cursive;
  --gutter: 16px;
  --ease: cubic-bezier(.3, .7, .25, 1);
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background-color: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--ff-body);
  /* Papierstruktur */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .18 0 0 0 0 .11 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-variation-settings: "SOFT" 100; font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 10px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.hand { font-family: var(--ff-hand); font-weight: 600; font-size: 1.45em; line-height: 1; color: var(--red-dark); }
.eyebrow { display: inline-flex; align-items: center; gap: .45em; font: 800 .82rem/1 var(--ff-body); letter-spacing: .09em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .9rem; }
.eyebrow svg { width: 22px; height: 22px; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 38em; }
/* handgezeichnete Unterstreichung */
.scribble { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8c40-5 90-7 130-4s50 2 64-1' fill='none' stroke='%23e9a13b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left 92% / 100% .36em no-repeat; padding-bottom: .06em; }
.scribble-red { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8c40-5 90-7 130-4s50 2 64-1' fill='none' stroke='%23d8432f' stroke-opacity='.55' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--card); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.35em; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--fg); font: 800 1rem/1.1 var(--ff-body); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); color: var(--fg); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-primary { --bg: var(--teal); --fg: #fff; }
.btn-primary:hover { --bg: var(--teal-dark); }
.btn-red { --bg: #c23827; --fg: #fff; }
.btn-red:hover { --bg: var(--red-dark); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); }
.btn-ghost { --bg: transparent; box-shadow: none; border-color: currentColor; }
.btn-ghost:hover { box-shadow: none; }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: .85em 1.7em; font-size: 1.1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 243, 228, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1.5px solid var(--ink-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo-acorn { width: 32px; height: 32px; transition: transform .4s var(--ease); }
.logo:hover .logo-acorn { transform: rotate(-14deg); }
.logo-word { font: 800 1.45rem/1 var(--ff-head); font-variation-settings: "SOFT" 100; letter-spacing: -.01em; margin: 0; }
.logo-word i { font-style: normal; color: var(--red); }
.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; content: ""; }
.burger::before { transform: translateY(-7px); }
.burger::after { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-2.5px) rotate(-45deg); }
.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink-soft); padding: 8px var(--gutter) 20px; display: none; }
.main-nav.open { display: block; animation: drop .25s var(--ease); }
.main-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.main-nav li a { display: block; padding: 12px 4px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1.5px dashed var(--ink-soft); }
.main-nav a[aria-current="page"] { color: var(--red-dark); }
.main-nav .btn[aria-current="page"] { --bg: var(--teal-dark); color: #fff; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; display: flex !important; align-items: center; gap: 22px; padding: 0; background: none; border: 0; }
  .main-nav ul { display: flex; gap: 6px; margin: 0; }
  .main-nav li a { border: 0; padding: 8px 12px; font-size: 1rem; border-radius: 999px; }
  .main-nav li a:hover { background: var(--paper-2); }
}

/* ---------- Abschnitte ---------- */
.section { position: relative; padding-block: clamp(56px, 9vw, 104px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.band { background: var(--paper-2); }
.band-teal { background: var(--teal-soft); }
.band-night { background: var(--night); color: #f3ead8; }
.band-night h2, .band-night h3 { color: #fff6e3; }
.band-night .eyebrow { color: var(--gold); }
.band-night .lead { color: #d9cdb6; }
.hill { position: absolute; left: 0; width: 100%; height: clamp(26px, 4vw, 56px); display: block; }
.hill-top { top: 1px; transform: translateY(-100%); }
.band > .hill-top path { fill: var(--paper-2); }
.band-teal > .hill-top path { fill: var(--teal-soft); }
.band-night > .hill-top path { fill: var(--night); }
.site-footer > .hill-top path { fill: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(24px, 5vw, 64px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; } }
.hero h1 { margin-bottom: .25em; }
.hero h1 .amp { color: var(--red); font-style: italic; font-weight: 600; }
.hero .claim { font: 600 clamp(1.15rem, 2.6vw, 1.5rem)/1.3 var(--ff-head); font-variation-settings: "SOFT" 100; color: var(--ink-2); margin-bottom: 1.1em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--ink-soft); font-weight: 700; font-size: .92rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--teal); }
.story-window { position: relative; margin: 0 6px 34px; }
.story-window .frame { position: relative; border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--sky); box-shadow: 6px 9px 0 var(--ink-soft); aspect-ratio: 16 / 9; transform: rotate(-.8deg); }
.story-window .frame img, .story-window .frame video { width: 100%; height: 100%; object-fit: cover; }
.story-window .frame img { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.07) translate(-1.5%, -1%); } }
.play-big { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .2s var(--ease); }
.play-big svg { width: 40px; height: 40px; margin-left: 5px; }
.play-big::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--gold); opacity: .0; animation: ring 2.8s ease-out infinite; }
.play-big:hover { transform: scale(1.06); }
@keyframes ring { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.play-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .9rem; white-space: nowrap; pointer-events: none; }
.story-window.playing .play-big, .story-window.playing .play-label { display: none; }
.story-window .char { position: absolute; bottom: -34px; width: clamp(96px, 22vw, 170px); pointer-events: none; filter: drop-shadow(2px 4px 0 rgba(74, 46, 28, .12)); }
.story-window .char-momo { left: -18px; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
.story-window .char-mila { right: -22px; width: clamp(104px, 24vw, 186px); transform-origin: 50% 100%; animation: sway 7s ease-in-out -2s infinite reverse; }
.story-window.playing .char { opacity: 0; transition: opacity .3s; }
.hero-note { position: absolute; top: -34px; right: 10%; display: flex; align-items: flex-end; gap: 2px; font-size: 1.05rem; transform: rotate(-3deg); }
.hero-note svg { width: 54px; height: 28px; color: var(--red-dark); transform: rotate(28deg) translateY(10px); }
@media (max-width: 599px) {
  .hero-note { display: none; }
  .play-big { width: 70px; height: 70px; }
  .play-big svg { width: 30px; height: 30px; }
  .play-label { bottom: 8px; font-size: .8rem; padding: 4px 10px; }
}
@keyframes sway { 0%, 100% { transform: rotate(-1.8deg); } 50% { transform: rotate(1.8deg) translateY(-3px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018) translateY(-2px); } }

/* fallende Blätter */
.leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.leaves svg { position: absolute; top: -40px; width: 26px; height: 26px; opacity: .75; animation: fall linear infinite; }
.leaves svg:nth-child(1) { left: 6%; color: var(--gold); animation-duration: 17s; }
.leaves svg:nth-child(2) { left: 31%; color: var(--red); width: 20px; animation-duration: 23s; animation-delay: -8s; }
.leaves svg:nth-child(3) { left: 57%; color: var(--leaf); animation-duration: 19s; animation-delay: -4s; }
.leaves svg:nth-child(4) { left: 78%; color: var(--gold); width: 18px; animation-duration: 26s; animation-delay: -15s; }
.leaves svg:nth-child(5) { left: 93%; color: var(--red); animation-duration: 21s; animation-delay: -11s; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-30px, 55vh) rotate(160deg); } 100% { transform: translate(20px, 110vh) rotate(320deg); } }

/* ---------- Karten ---------- */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.tilt-l { transform: rotate(-.6deg); }
.tilt-r { transform: rotate(.7deg); }

/* Folgen-Galerie */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { min-height: 40px; padding: .45em 1em; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 800 .95rem/1 var(--ff-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ep-grid li[hidden] { display: none; }
.ep-card { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ep-grid li:nth-child(3n+1) .ep-card { transform: rotate(-.5deg); }
.ep-grid li:nth-child(3n+2) .ep-card { transform: rotate(.45deg); }
.ep-card:hover, .ep-card:focus-visible { transform: translateY(-4px) rotate(0); box-shadow: var(--shadow-lift); }
.ep-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper-3); }
.ep-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ep-card:hover .thumb img { transform: scale(1.05); }
.ep-card .thumb .pl { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); display: grid; place-items: center; }
.ep-card .thumb .pl svg { width: 18px; height: 18px; margin-left: 2px; }
.ep-num { position: absolute; left: 10px; top: 10px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--card); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 .9rem/1 var(--ff-body); }
.ep-card .meta { padding: 10px 12px 14px; }
.ep-card h3 { font-size: clamp(1rem, 2.4vw, 1.15rem); margin: 0 0 4px; }
.ep-card .season { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.yt-note { margin-top: 22px; font-size: .95rem; color: var(--ink-2); }

/* Dialog (Player, Produkte, Kauf) */
dialog { border: 0; padding: 0; background: transparent; max-width: min(960px, calc(100vw - 24px)); width: 100%; color: var(--ink); }
dialog::backdrop { background: rgba(31, 42, 74, .72); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg { position: relative; background: var(--card); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 8px 12px 0 rgba(0, 0, 0, .18); overflow: hidden; max-height: calc(100dvh - 24px); overflow-y: auto; }
.dlg-close { position: absolute; right: 12px; top: 12px; z-index: 3; }
.dlg-body { padding: 20px clamp(18px, 4vw, 32px) 26px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; background: center / cover no-repeat; }
.yt-consent::before { content: ""; position: absolute; inset: 0; background: rgba(31, 42, 74, .75); }
.yt-consent > * { position: relative; max-width: 460px; }
.yt-consent p { font-size: .92rem; }
.lesson { display: inline-flex; gap: 8px; align-items: center; background: var(--gold-soft); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .95rem; }
.lesson svg { width: 18px; height: 18px; color: var(--red-dark); }

/* Figuren */
.chars { display: grid; gap: 22px; }
@media (min-width: 800px) { .chars { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.char-card { position: relative; padding: 20px 22px 24px; text-align: center; }
.char-card .portrait { height: 230px; display: grid; place-items: end center; margin-bottom: 14px; }
.char-card .portrait img { max-height: 230px; width: auto; transform-origin: 50% 100%; }
.char-card:hover .portrait img { animation: hop .6s var(--ease); }
@keyframes hop { 40% { transform: translateY(-14px) rotate(-2deg); } 70% { transform: translateY(0) scale(1.03, .97); } }
.char-card .portrait.round img { width: 210px; height: 210px; max-height: none; object-fit: cover; border-radius: 50%; border: 3px solid var(--ink); }
.char-card .tag { position: absolute; top: 18px; right: 18px; transform: rotate(6deg); font-size: 1.3rem; }
.char-card ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.char-card li { font-size: .85rem; font-weight: 700; background: var(--paper-2); padding: 4px 10px; border-radius: 999px; }
.c-momo { background: #fff3db; }
.c-mila { background: #fde7df; }
.c-flocke { background: #eef3f6; }

/* Hörbücher */
.audio-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .audio-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.audio-card { display: flex; flex-direction: column; background: var(--night-2); color: #f6edda; border: 2px solid #121a33; border-radius: var(--r); overflow: hidden; box-shadow: 4px 6px 0 rgba(0, 0, 0, .25); }
.audio-card .cover { aspect-ratio: 16 / 9; overflow: hidden; }
.audio-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.audio-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.audio-card h3 { margin: 0; color: #fff6e3; }
.audio-card .sub { font-size: .9rem; color: #cbbfa8; margin: 0; }
.mini-player { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.mini-player button { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #121a33; background: var(--gold); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 #121a33; }
.mini-player button svg { width: 22px; height: 22px; }
.mini-player .bar { flex: 1; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; cursor: pointer; }
.mini-player .bar span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; }
.mini-player time { font-variant-numeric: tabular-nums; font-size: .85rem; color: #cbbfa8; min-width: 38px; }
.audio-card .btn { align-self: flex-start; }

/* Lesen & Malen */
.read-grid { display: grid; gap: 22px; }
@media (min-width: 800px) { .read-grid { grid-template-columns: repeat(3, 1fr); } }
.read-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s var(--ease); }
.read-card:hover { transform: translateY(-4px); color: inherit; }
.read-card .stack { position: relative; height: 250px; display: grid; place-items: center; background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.read-card .stack img { position: absolute; width: 56%; max-width: 210px; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 4px 0 var(--ink-soft); background: #fff; transition: transform .35s var(--ease); }
.read-card .stack img:nth-child(1) { transform: rotate(-9deg) translateX(-28%); }
.read-card .stack img:nth-child(2) { transform: rotate(7deg) translateX(28%); }
.read-card .stack img:nth-child(3) { transform: rotate(-1deg) translateY(-4px); }
.read-card:hover .stack img:nth-child(1) { transform: rotate(-13deg) translateX(-38%); }
.read-card:hover .stack img:nth-child(2) { transform: rotate(11deg) translateX(38%); }
.read-card .stack.wide img { width: 78%; max-width: 300px; }
.read-card .body { padding: 18px 20px 22px; }
.read-card .price { font-weight: 800; color: var(--teal-dark); }

/* Generator-Teaser */
.teaser { position: relative; display: grid; gap: 24px; align-items: center; padding: clamp(24px, 5vw, 48px); background: var(--card); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 6px 9px 0 var(--ink-soft); overflow: hidden; }
@media (min-width: 860px) { .teaser { grid-template-columns: 1.3fr 1fr; } }
.teaser .peek { position: relative; height: 270px; max-width: 420px; width: 100%; justify-self: center; }
.teaser .peek img { position: absolute; bottom: -40px; width: auto; transition: transform .9s var(--ease) .15s; }
.teaser .peek .p-momo { left: 0; height: 215px; z-index: 2; }
.teaser .peek .p-mila { right: 0; height: 285px; transition-delay: .3s; }
.teaser:not(.in) .peek img { transform: translateY(70%); }
.teaser .bubble { position: absolute; z-index: 3; top: 0; left: 4%; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 8px 14px; font-size: 1.25rem; transform: rotate(-4deg); }
.teaser .bubble::after { content: ""; position: absolute; left: 22px; bottom: -11px; width: 16px; height: 16px; background: var(--paper); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) skew(10deg, 10deg); }

/* Werte / Eltern */
.values { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1050px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { padding: 20px 22px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.values h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.values h3 svg { width: 28px; height: 28px; color: var(--teal); flex: none; }
.values p { margin: 0; color: var(--ink-2); }

/* Newsletter */
.news { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .news { grid-template-columns: 1fr 1fr; } }
.news-form { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 800; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
input[type="text"], input[type="email"], input[type="number"], select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 600 1.05rem/1.3 var(--ff-body); color: var(--ink); background: #fffdf8; border: 2px solid var(--ink); border-radius: 14px; appearance: none; }
textarea { min-height: 110px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234a2e1c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--teal); }
.form-msg { font-weight: 700; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: var(--teal-dark); }
.form-msg.err { color: var(--red-dark); }

/* Fußzeile */
.site-footer { position: relative; margin-top: 70px; background: var(--ink); color: #eadcc2; padding: 40px 0 28px; }
.site-footer a { color: #fff3dc; }
.site-footer h2 { font: 800 .85rem/1 var(--ff-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo-word { color: #fff6e3; margin-bottom: 10px; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-ai { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.footer-ai span a { white-space: nowrap; }
.footer-ai svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold); }
.site-footer .btn-ghost { color: #fff3dc; margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #c6b597; }

/* ---------- Laden ---------- */
.page-hero { padding: clamp(28px, 5vw, 60px) 0 clamp(20px, 4vw, 40px); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; }
.tabs .chip { flex: none; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-grid li[hidden] { display: none; }
.p-card { position: relative; display: flex; flex-direction: column; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.p-card .pimg { position: relative; aspect-ratio: 1; background: var(--paper-2); border-bottom: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; padding: 12px; cursor: zoom-in; border-top: 0; border-left: 0; border-right: 0; width: 100%; }
.p-card .pimg img { max-height: 100%; width: auto; object-fit: contain; border-radius: 4px; box-shadow: 2px 3px 0 var(--ink-soft); }
.p-card .pimg.fan img { position: absolute; width: 58%; }
.p-card .pimg.fan img:nth-child(1) { transform: rotate(-8deg) translateX(-24%); }
.p-card .pimg.fan img:nth-child(2) { transform: rotate(7deg) translateX(24%); }
.p-card .pimg.fan img:nth-child(3) { transform: translateY(4%); }
.p-card .pimg.fan.land img { width: 82%; }
.p-card .pimg.fan.land img:nth-child(1) { transform: rotate(-6deg) translate(-6%, -34%); }
.p-card .pimg.fan.land img:nth-child(2) { transform: rotate(5deg) translate(6%, 34%); }
.p-card .pimg.fan.land img:nth-child(3) { transform: rotate(-1deg); }
.badge { position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: none; background: var(--red-dark); color: #fff; font: 800 .78rem/1 var(--ff-body); padding: 6px 10px; border-radius: 999px; border: 2px solid var(--ink); transform: rotate(-4deg); }
.p-card .pbody { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card h3 { font-size: clamp(1rem, 2.3vw, 1.15rem); margin: 0; }
.p-card .psub { font-size: .85rem; color: var(--ink-2); font-weight: 700; margin: 0; }
.p-card .pfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.price { font: 800 1.15rem/1 var(--ff-body); }
.price s { font-size: .8em; color: var(--ink-2); font-weight: 600; margin-right: 4px; }
.tax-note { font-size: .82rem; color: var(--ink-2); }
.pd { display: grid; gap: 22px; }
@media (min-width: 760px) { .pd { grid-template-columns: 1.1fr 1fr; } }
.gallery { display: grid; gap: 10px; }
.gallery .main { background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r-sm); aspect-ratio: 1; display: grid; place-items: center; padding: 12px; overflow: hidden; }
.gallery .main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery .thumbs button { width: 64px; height: 64px; padding: 3px; border: 2px solid var(--ink-soft); border-radius: 10px; background: var(--paper-2); cursor: pointer; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd ul.details { padding-left: 0; list-style: none; display: grid; gap: 6px; }
.pd ul.details li { display: flex; gap: 8px; }
.pd ul.details svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.buy-box { display: grid; gap: 14px; padding: 16px; background: var(--paper); border: 2px dashed var(--ink-soft); border-radius: 16px; }
.demo-banner { display: flex; gap: 10px; align-items: center; background: var(--gold-soft); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: .92rem; }
.trust { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .95rem; }
.trust svg { width: 26px; height: 26px; color: var(--teal); flex: none; }

/* ---------- Geschichten-Generator ---------- */
.gen { display: grid; gap: 26px; }
@media (min-width: 980px) { .gen { grid-template-columns: 1fr 1fr; align-items: start; } }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps li { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-3); }
.steps li.done { background: var(--teal); }
.gen-form { padding: clamp(18px, 4vw, 30px); }
.gen-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.gen-form legend { font: 700 clamp(1.3rem, 3vw, 1.6rem)/1.2 var(--ff-head); font-variation-settings: "SOFT" 100; margin-bottom: 14px; padding: 0; }
.gen-form .nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.theme-opt { position: relative; }
.theme-opt input { position: absolute; opacity: 0; inset: 0; }
.theme-opt label { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--ink-soft); border-radius: 14px; overflow: hidden; cursor: pointer; background: #fffdf8; transition: border-color .15s, transform .15s var(--ease); }
.theme-opt img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.theme-opt span { padding: 8px 10px 10px; font-weight: 800; font-size: .92rem; line-height: 1.25; }
.theme-opt small { display: block; font-weight: 600; color: var(--ink-2); font-size: .78rem; margin-top: 2px; }
.theme-opt input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold); transform: translateY(-2px); }
.theme-opt input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.age-row { display: flex; gap: 8px; flex-wrap: wrap; }
.age-row label { position: relative; }
.age-row input { position: absolute; opacity: 0; }
.age-row span { display: grid; place-items: center; min-width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 800; cursor: pointer; background: #fffdf8; }
.age-row input:checked + span { background: var(--gold); }
.age-row input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: var(--teal-soft); border-radius: 14px; padding: 12px 14px; }
.privacy-note svg { width: 22px; height: 22px; flex: none; color: var(--teal-dark); }
.book { position: relative; }
.book-page { display: grid; background: #fffdf8; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 7px 10px 0 var(--ink-soft); overflow: hidden; }
.book-page .pic { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.book-page .pic img { width: 100%; height: 100%; object-fit: cover; }
.book-page .txt { padding: 18px clamp(18px, 4vw, 30px) 22px; min-height: 9.5em; font: 600 clamp(1.12rem, 2.5vw, 1.3rem)/1.55 var(--ff-body); }
.book-page .txt .s.reading { background: var(--gold-soft); border-radius: 6px; box-shadow: 0 0 0 3px var(--gold-soft); }
.book-title { text-align: center; padding: 26px 20px; }
.book-title .for { font-size: 1.5rem; }
.book-page.turn { animation: turn .45s var(--ease); }
@keyframes turn { from { opacity: 0; transform: translateX(18px) rotate(.6deg); } }
.book-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.book-ctrl .count { font-weight: 800; color: var(--ink-2); }
.book-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.book-extra { margin-top: 18px; display: grid; gap: 12px; }
.book-extra .note { background: var(--paper-2); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.book-empty { display: grid; place-items: center; text-align: center; min-height: 360px; padding: 30px; border: 3px dashed var(--ink-soft); border-radius: var(--r); color: var(--ink-2); }
.book-empty img { width: 150px; margin-bottom: 10px; }
.offers { display: grid; gap: 18px; }
@media (min-width: 700px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offers { grid-template-columns: repeat(4, 1fr); } }
.offer { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; }
.offer .ic { width: 50px; height: 50px; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--ink); display: grid; place-items: center; }
.offer .ic svg { width: 26px; height: 26px; }
.offer h3 { margin: 0; }
.offer .price { color: var(--teal-dark); }
.offer ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.offer ul li::before { content: "✓ "; color: var(--teal); font-weight: 900; }
.offer .del { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.offer .btn-row { margin-top: auto; }
.preview-moment { position: relative; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.preview-moment .cover-mock { aspect-ratio: 1; display: grid; grid-template-rows: auto 1fr; background: var(--card); }
.cover-mock .ct { padding: 8px 10px; text-align: center; font: 800 1rem/1.15 var(--ff-head); font-variation-settings: "SOFT" 100; border-bottom: 2px solid var(--ink); background: #fffdf5; }
.cover-mock .ct small { display: block; font: 700 .72rem/1.2 var(--ff-body); color: var(--red-dark); letter-spacing: .06em; text-transform: uppercase; }
.cover-mock img { width: 100%; height: 100%; object-fit: cover; }
.video-mock { position: relative; aspect-ratio: 16 / 9; }
.video-mock img { width: 100%; height: 100%; object-fit: cover; }
.video-mock .title-card { position: absolute; inset: auto 8% 12% 8%; text-align: center; background: rgba(255, 250, 240, .92); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 8px; font: 800 .95rem/1.15 var(--ff-head); font-variation-settings: "SOFT" 100; animation: titlein 3.6s var(--ease) infinite; }
@keyframes titlein { 0%, 8% { opacity: 0; transform: translateY(8px) scale(.96); } 18%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.bmc { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border: 2px dashed var(--ink-soft); border-radius: 16px; background: #fffdf8; }
.bmc p { margin: 0; flex: 1 1 260px; font-weight: 600; }

/* Text-Seiten (Recht) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.draft { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; font-weight: 700; margin-bottom: 26px; }
.ph { background: #ffe1d8; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Danke */
.dl-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.dl-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 800; box-shadow: var(--shadow); }
.dl-list svg { width: 24px; height: 24px; color: var(--teal); }

/* Einblenden beim Scrollen */
.reveal.pre { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }

/* Druck (Geschichte als Heft / Geschenkkarte) */
@media print {
  .site-header, .site-footer, .gen-form, .book-ctrl, .book-tools, .offers-section, .bmc, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .print-all .book-page { break-inside: avoid; box-shadow: none; margin-bottom: 18px; }
}

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .leaves { display: none; }
  .reveal.pre { opacity: 1; transform: none; }
  .teaser:not(.in) .peek img { transform: none; }
}
.prose .values { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
