/* ============================================================
   Kodomos — kodomos.sysea.de
   "Komys Papierwelt": warmes Papier, Sticker, handgezeichnete
   Unterstreichungen, ein Nachthimmel. Alles selbst gehostet.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Madimi One'; src: url('../fonts/madimi_one_regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins_regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins_medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins_semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins_bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #FFF6E9;
  --paper-2: #FFEFD9;
  --card: #FFFDF9;
  --ink: #24233B;
  --ink-2: #4E4D68;
  --ink-3: #7B7A95;
  --line: rgba(36, 35, 59, .14);
  --blue: #2F8DE4;
  --blue-2: #1D6FC0;
  --blue-soft: #DCEBFB;
  --pink: #EF4F88;
  --pink-soft: #FFDCE8;
  --orange: #F2953A;
  --orange-soft: #FFE1C2;
  --gold: #F7C544;
  --gold-soft: #FFF0BE;
  --mint: #3FBF9E;
  --mint-soft: #D5F4EA;
  --lavender: #8B7BE3;
  --night: #1A1E4C;
  --night-2: #283070;
  --star: #FFE27A;
  --radius: 22px;
  --radius-s: 14px;
  --shadow-ink: 0 6px 0 0 rgba(36, 35, 59, .12);
  --shadow-soft: 0 18px 50px -20px rgba(36, 35, 59, .28);
  --display: 'Madimi One', 'Poppins', system-ui, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(36, 35, 59, .07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(44px, 7.2vw, 88px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Handgezeichnete Unterstreichung (SVG-Swash) */
.swash { position: relative; display: inline-block; white-space: nowrap; }
.swash > svg { position: absolute; left: -2%; right: -2%; bottom: -.08em; width: 104%; height: .32em; z-index: -1; overflow: visible; }
.swash > svg { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; }
.swash.pink > svg { stroke: var(--pink-soft); }
.swash.blue > svg { stroke: var(--blue-soft); }
.swash.mint > svg { stroke: var(--mint-soft); }

/* Kicker / Label */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 18px;
}
.kicker::before { content: ''; width: 34px; height: 3px; border-radius: 3px; background: var(--orange); }
.kicker.on-dark { color: rgba(255, 255, 255, .78); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--display); font-size: 18px; letter-spacing: .01em; text-decoration: none;
  background: var(--card); color: var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
  transform: translateY(0);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 0 var(--ink); }
.btn.primary { background: var(--gold); }
.btn.blue { background: var(--blue); color: #fff; border-color: var(--blue-2); box-shadow: 0 5px 0 0 var(--blue-2); }
.btn.blue:hover { box-shadow: 0 3px 0 0 var(--blue-2); }
.btn.blue:active { box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Sound-Knopf (Komy spricht) */
.say {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--card); box-shadow: 0 4px 0 0 var(--ink);
  font-family: var(--display); font-size: 16px; line-height: 1.2; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.say:hover { transform: translateY(2px); box-shadow: 0 2px 0 0 var(--ink); }
.say:active { transform: translateY(4px); box-shadow: none; }
.say .disc {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; flex: none; position: relative;
}
.say .disc svg { width: 14px; height: 14px; }
.say .disc .bars { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.say .disc .bars i { width: 3px; background: #fff; border-radius: 2px; height: 30%; animation: bar .8s ease-in-out infinite; }
.say .disc .bars i:nth-child(2) { animation-delay: .15s; } .say .disc .bars i:nth-child(3) { animation-delay: .3s; } .say .disc .bars i:nth-child(4) { animation-delay: .45s; }
.say.playing .disc svg { display: none; }
.say.playing .disc .bars { display: flex; }
.say.loading .disc { animation: pulse 1s ease-in-out infinite; }
@keyframes bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.86); } }
.say.pink .disc { background: var(--pink); }
.say.night { background: var(--night-2); color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: 0 4px 0 0 rgba(0, 0, 0, .35); }
.say.night:hover { box-shadow: 0 2px 0 0 rgba(0, 0, 0, .35); }

/* Sticker-Karte */
.sticker {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-ink); padding: clamp(20px, 3vw, 32px);
}
.sticker.tilt-l { transform: rotate(-1.6deg); }
.sticker.tilt-r { transform: rotate(1.4deg); }
.stamp {
  display: inline-block; font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(-4deg);
}

/* Sprechblase */
.bubble {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 20px;
  padding: 14px 18px; font-family: var(--display); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.35;
  box-shadow: var(--shadow-ink);
}
.bubble::after {
  content: ''; position: absolute; width: 18px; height: 18px; background: #fff;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  left: 32px; bottom: -11px; transform: rotate(-45deg);
}
.bubble.tail-right::after { left: auto; right: 32px; }
.bubble.tail-top::after { bottom: auto; top: -11px; transform: rotate(135deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; padding: 12px 0;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(255, 246, 233, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 24px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: rgba(36, 35, 59, .06); }
.site-nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; padding: 0; }
.menu-toggle:hover { background: rgba(36, 35, 59, .06); }
.menu-toggle span { display: block; width: 22px; height: 3px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .site-header { padding: 14px 0; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-ink);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 17px; }
  .site-nav .btn { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(40px, 6vw, 80px); overflow: visible; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--ink); font-family: var(--display); font-size: 15px; margin-bottom: 26px;
  transform: rotate(-1.5deg);
}
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.hero h1 { margin-bottom: 8px; font-size: clamp(40px, 6vw, 72px); letter-spacing: .02em; }
.hero .tagline { font-family: var(--display); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; margin: 0 0 22px; }
.hero .lead { max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--ink-3); }

.stage { position: relative; aspect-ratio: 4 / 4.6; max-height: 78vh; margin-inline: auto; width: 100%; }
.stage-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage-bg .sun { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; left: 14%; top: 4%; background: radial-gradient(circle at 40% 35%, #FFF3C4, var(--gold) 70%); opacity: .9; }
.stage-bg .ring { position: absolute; inset: 6% 8%; border-radius: 50%; border: 2px dashed rgba(36, 35, 59, .22); animation: spin 90s linear infinite; }
.stage-bg .floor { position: absolute; left: 18%; right: 18%; bottom: 3%; height: 7%; border-radius: 50%; background: rgba(36, 35, 59, .12); filter: blur(4px); }
.stage-bg .star { position: absolute; width: 22px; height: 22px; color: var(--orange); animation: twinkle 3.2s ease-in-out infinite; }
.stage-bg .star:nth-child(5) { animation-delay: 1.1s; color: var(--pink); }
.stage-bg .star:nth-child(6) { animation-delay: 2.2s; color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }

.komy-view { position: absolute; inset: 0; z-index: 1; }
.komy-view canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s ease; touch-action: none; cursor: pointer; }
.komy-view.ready canvas { opacity: 1; }
.komy-poster { position: absolute; left: 50%; bottom: 6%; height: 84%; width: auto; transform: translateX(-50%); transition: opacity .6s ease; animation: float 5s ease-in-out infinite; }
.komy-view.ready .komy-poster { opacity: 0; animation: none; }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
.komy-bubble { position: absolute; z-index: 3; left: 0; top: 0; max-width: 58%; transform: rotate(-2deg); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.komy-bubble.show { opacity: 1; transform: rotate(-2deg) translateY(0); }
.komy-controls { position: absolute; z-index: 3; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.stage-hint { position: absolute; z-index: 3; left: 0; bottom: 0; max-width: 46%; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 2px solid var(--ink); box-shadow: 0 4px 0 0 var(--ink); }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-family: var(--display); font-size: 15px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button[data-model="girl"][aria-pressed="true"] { background: var(--pink); }
.seg button[data-model="boy"][aria-pressed="true"] { background: var(--blue); }
.stage-hint { font-size: 14px; color: var(--ink-3); background: rgba(255, 253, 249, .85); padding: 6px 10px; border-radius: 10px; line-height: 1.35; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .stage { aspect-ratio: 1 / 1.05; max-height: none; max-width: 520px; margin-bottom: 64px; }
  .komy-bubble { max-width: 66%; }
  .stage-hint { left: 0; right: 0; bottom: -62px; max-width: none; text-align: center; background: transparent; font-size: 13.5px; }
}

/* ---------- Laufband ---------- */
.ticker { border-block: 2px solid var(--ink); background: var(--gold); overflow: hidden; padding: 12px 0; transform: rotate(-.6deg) scale(1.02); margin-block: 10px 30px; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font-family: var(--display); font-size: 18px; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.ticker-track span::after { content: '✦'; color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Komy vorstellen ---------- */
.komy-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.komy-portrait { position: relative; }
.komy-portrait .sticker { padding: 18px; background: linear-gradient(160deg, #FFFDF9, var(--paper-2)); }
.komy-portrait img { border-radius: 14px; }
.komy-portrait .bubble { position: absolute; right: -6px; top: -26px; max-width: 78%; transform: rotate(2deg); }
.komy-portrait .say { position: absolute; left: 14px; bottom: -22px; }
.never { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 22px 0 8px; }
.never .stamp { color: var(--pink); text-decoration: line-through; text-decoration-thickness: 3px; }
.never .stamp:nth-child(2) { transform: rotate(3deg); color: var(--blue-2); }
.never .stamp:nth-child(3) { transform: rotate(-2deg); color: var(--orange); }
.two-komys { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 28px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 2px dashed var(--line); }
.two-komys .faces { display: flex; }
.two-komys .faces img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--ink); object-fit: cover; }
.two-komys .faces img + img { margin-left: -14px; }
.two-komys p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .komy-intro-grid { grid-template-columns: 1fr; } .komy-portrait { margin-top: 30px; } }

/* ---------- Satzbaukasten ---------- */
.builder { background: var(--card); border: 2px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-ink); padding: clamp(20px, 3.5vw, 40px); position: relative; overflow: hidden; }
.builder::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 34px, rgba(47, 141, 228, .12) 34px 36px); pointer-events: none; }
.builder > * { position: relative; }
.builder-rows { display: grid; gap: 18px; }
.builder-row[hidden] { display: none; }
.builder-row label { display: block; font-family: var(--display); font-size: 16px; color: var(--ink-2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff;
  font-family: var(--display); font-size: 17px; box-shadow: 0 3px 0 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.chip:hover { transform: translateY(1px); box-shadow: 0 2px 0 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; transform: translateY(3px); box-shadow: none; }
.chips.nouns .chip[aria-pressed="true"] { background: var(--orange); color: var(--ink); }
.chips.closers .chip[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.chip.ghost { border-style: dashed; background: transparent; box-shadow: none; color: var(--ink-3); }
.builder-out { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 26px; }
.sentence { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; min-height: 1.3em; }
.sentence .w { display: inline-block; padding: 0 .12em; border-radius: 6px; transition: background .15s ease; }
.sentence .w.on { background: var(--gold); }
.sentence .empty { color: var(--ink-3); font-size: .7em; font-family: var(--body); }
.builder-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }
@media (max-width: 640px) { .builder-out { grid-template-columns: 1fr; } }

/* ---------- Der Tag mit Komy ---------- */
.day { position: relative; padding-block: var(--section-y); color: var(--ink);
  background: linear-gradient(180deg, #FFF0D2 0%, #FFF6E9 22%, #DDEFFF 45%, #FFE0C7 68%, #4B3F87 88%, var(--night) 100%); }
.day .wrap { position: relative; }
.day-head { max-width: 40em; margin-bottom: clamp(40px, 6vw, 80px); }
.day-path { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; border-radius: 6px; background: repeating-linear-gradient(180deg, var(--ink) 0 14px, transparent 14px 26px); opacity: .25; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 5vw, 64px); position: relative; }
.station { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; gap: 18px; }
.station .time { font-family: var(--display); font-size: 16px; color: var(--orange); margin-bottom: 6px; display: block; }
.station .card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-ink); }
.station .card h3 { margin-bottom: .3em; }
.station .card p { margin-bottom: .6em; color: var(--ink-2); }
.station .card .say { margin-top: 6px; }
.station .dot { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); display: grid; place-items: center; box-shadow: 0 4px 0 0 var(--ink); justify-self: center; }
.station .dot svg { width: 38px; height: 38px; }
.station:nth-child(odd) .card { grid-column: 1; transform: rotate(-.8deg); }
.station:nth-child(odd) .dot { grid-column: 2; }
.station:nth-child(even) .card { grid-column: 3; transform: rotate(.8deg); }
.station:nth-child(even) .dot { grid-column: 2; grid-row: 1; }
.station:nth-child(even) .card { grid-row: 1; }
.station.night .card { background: var(--night-2); color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: 0 6px 0 0 rgba(0, 0, 0, .35); }
.station.night .card p, .station.night .time { color: rgba(255, 255, 255, .8); }
.station.night .dot { background: var(--night-2); border-color: rgba(255, 255, 255, .5); box-shadow: 0 4px 0 0 rgba(0, 0, 0, .35); }
.day-foot { margin-top: clamp(40px, 6vw, 80px); color: #fff; max-width: 40em; }
.day-foot .lead { color: rgba(255, 255, 255, .85); }
@media (max-width: 760px) {
  .day-path { left: 28px; }
  .station { grid-template-columns: 56px 1fr; }
  .station .dot, .station:nth-child(odd) .dot, .station:nth-child(even) .dot { width: 56px; height: 56px; grid-column: 1; grid-row: 1; align-self: start; }
  .station .dot svg { width: 30px; height: 30px; }
  .station .card, .station:nth-child(even) .card, .station:nth-child(odd) .card { grid-column: 2; grid-row: 1; transform: none; }
}

/* ---------- Komy erzählt ---------- */
.story { background: var(--night); color: #fff; padding-block: var(--section-y); position: relative; overflow: hidden; }
.story .wrap { position: relative; }
.story .lead { color: rgba(255, 255, 255, .8); }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.story-art { position: relative; }
.story-art img { border-radius: 24px; border: 2px solid rgba(255, 255, 255, .5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transform: rotate(-1.5deg); }
.story-art .stamp { position: absolute; right: -8px; top: -14px; background: var(--gold); color: var(--ink); border-color: var(--ink); transform: rotate(5deg); }
.player { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .35); border-radius: 26px; padding: clamp(18px, 3vw, 30px); }
.player-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.player-tabs button { padding: 9px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-family: var(--display); font-size: 16px; }
.player-tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.player-main { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.play-btn { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 5px 0 0 rgba(0, 0, 0, .4); }
.play-btn svg { width: 26px; height: 26px; }
.play-btn .ic-pause { display: none; }
.play-btn.playing .ic-play { display: none; }
.play-btn.playing .ic-pause { display: block; }
.play-btn.loading { animation: pulse 1s ease-in-out infinite; }
.player-title { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.player-meta { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.progress { margin-top: 16px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .18); overflow: hidden; cursor: pointer; }
.progress > i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 10px; transition: width .25s linear; }
.story-text { margin-top: 22px; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .78); max-height: 240px; overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.story-text p { margin: 0 0 .8em; transition: color .3s ease; }
.story-text p.on { color: #fff; }
.story .voice-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.story .seg { background: transparent; border-color: rgba(255, 255, 255, .5); box-shadow: 0 4px 0 0 rgba(0, 0, 0, .35); }
.story .seg button { color: rgba(255, 255, 255, .8); }
.story .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } .story-art { max-width: 300px; margin-inline: auto; } }

/* ---------- Zauberhimmel ---------- */
.sky { background: var(--night); color: #fff; padding-block: 0 var(--section-y); position: relative; overflow: hidden; }
.sky-head { max-width: 44em; padding-top: var(--section-y); }
.sky-head .lead { color: rgba(255, 255, 255, .8); }
.skyfield { position: relative; height: clamp(360px, 48vw, 520px); border-radius: 30px; border: 2px solid rgba(255, 255, 255, .28);
  background: radial-gradient(ellipse at 30% 20%, rgba(139, 123, 227, .35), transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(47, 141, 228, .28), transparent 50%), var(--night-2);
  overflow: hidden; margin-top: 30px; }
.skyfield .dust { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .55) .8px, transparent 1.2px); background-size: 38px 38px; opacity: .5; }
.skyfield svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.skyfield svg.lines path { fill: none; stroke: var(--star); stroke-width: 2; stroke-dasharray: 6 8; opacity: 0; transition: opacity .6s ease; }
.skyfield.complete svg.lines path { opacity: .85; }
.memstar { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 0; background: transparent; padding: 0; }
.memstar svg { width: 100%; height: 100%; color: var(--star); filter: drop-shadow(0 0 10px rgba(255, 226, 122, .6)); transition: transform .2s ease; animation: twinkle 4s ease-in-out infinite; }
.memstar:hover svg, .memstar:focus-visible svg { transform: scale(1.2); }
.memstar.seen svg { color: #fff; animation: none; }
.memstar .lbl { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: rgba(255, 255, 255, .7); }
.sky-card {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(92%, 420px);
  background: #fff; color: var(--ink); border-radius: 18px; border: 2px solid var(--ink); padding: 14px 18px; box-shadow: var(--shadow-ink);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.sky-card.show { opacity: 1; }
.sky-card b { font-family: var(--display); font-weight: 400; display: block; margin-bottom: 4px; }
.sky-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.sky-count { margin-top: 14px; font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.moment { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .28); border-radius: var(--radius); padding: 22px 24px; }
.moment:nth-child(1) { transform: rotate(-1.2deg); } .moment:nth-child(3) { transform: rotate(1.2deg); }
.moment h3 { font-size: 22px; margin-bottom: .35em; color: var(--star); }
.moment p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15.5px; }
.sky-never { margin-top: 44px; padding: 24px 28px; border-radius: var(--radius); border: 2px dashed rgba(255, 255, 255, .4); font-size: 17px; }
.sky-never b { font-family: var(--display); font-weight: 400; font-size: 22px; display: block; margin-bottom: 6px; }
@media (max-width: 800px) { .moments { grid-template-columns: 1fr; } .moment { transform: none !important; } }

/* Wellenkante zwischen Nacht und Papier */
.wave-edge { display: block; width: 100%; height: 60px; margin-top: -2px; position: relative; }

/* ---------- KOMY Phone ---------- */
.phone-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 40px; }
.phone-col { position: sticky; top: 90px; }
.cannot-box { background: var(--pink-soft); border: 2px dashed var(--pink); border-radius: var(--radius); padding: 22px 22px 18px; transform: rotate(-1deg); }
.cannot, .can { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cannot li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.cannot li .x { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; font-family: var(--display); font-size: 18px; }
.can li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-s); padding: 14px 16px; box-shadow: 0 4px 0 0 var(--ink); }
.can li:nth-child(odd) { transform: rotate(-.6deg); } .can li:nth-child(even) { transform: rotate(.6deg); }
.can li .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-2); display: grid; place-items: center; }
.can li:nth-child(2) .ic { background: var(--pink-soft); color: var(--pink); }
.can li:nth-child(3) .ic { background: var(--mint-soft); color: #1F8C6D; }
.can li:nth-child(4) .ic { background: var(--gold-soft); color: #A56B00; }
.can li:nth-child(5) .ic { background: var(--orange-soft); color: #B85A00; }
.can li:nth-child(6) .ic { background: #EAE5FF; color: var(--lavender); }
.can li .ic svg { width: 24px; height: 24px; }
.can li b { font-family: var(--display); font-weight: 400; font-size: 18px; display: block; }
.can li p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.col-title { font-family: var(--display); font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.col-title.no { color: var(--pink); } .col-title.yes { color: var(--blue-2); }

.phone { width: 300px; margin-inline: auto; aspect-ratio: 9 / 19; border-radius: 40px; background: var(--ink); padding: 12px; box-shadow: 0 30px 50px -25px rgba(36, 35, 59, .6); transform: rotate(-2deg); position: relative; }
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #000; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #DDEFFF, #FFF6E9 60%); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 44px 16px 16px; }
.phone-screen .clock { font-family: var(--display); font-size: 40px; text-align: center; line-height: 1; }
.phone-screen .next { text-align: center; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.phone-screen .pill { margin: 10px auto 0; width: max-content; font-family: var(--display); font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.phone-screen img { height: 100%; width: auto; max-width: 100%; object-fit: contain; margin: auto; min-height: 0; }
.phone-screen .sos { width: 64px; height: 64px; border-radius: 50%; background: var(--pink); color: #fff; border: 4px solid #fff; box-shadow: 0 4px 0 0 rgba(36, 35, 59, .3); font-family: var(--display); font-size: 15px; display: grid; place-items: center; margin: 0 auto; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.fact { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-s); padding: 16px 18px; box-shadow: 0 4px 0 0 var(--ink); }
.fact b { font-family: var(--display); font-weight: 400; display: block; font-size: 17px; margin-bottom: 4px; }
.fact p { margin: 0; font-size: 15.5px; }
.phone-foot { margin-top: 28px; font-size: 15.5px; color: var(--ink-2); max-width: 50em; }
@media (max-width: 1000px) { .phone-grid { grid-template-columns: 1fr 1fr; } .phone-col { grid-column: 1 / -1; order: -1; margin-bottom: 10px; position: static; } .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .phone-grid { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } .phone { width: 250px; } }

/* ---------- Für Eltern ---------- */
.parents { background: var(--card); border-block: 2px solid var(--ink); }
.parents .lead { max-width: 44em; }
.plain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: 40px; }
.plain h3 { font-family: var(--body); font-weight: 600; font-size: 19px; margin-bottom: .35em; display: flex; gap: 12px; align-items: baseline; }
.plain p { color: var(--ink-2); margin: 0; }
.where { margin-top: 48px; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.where table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.where th, .where td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.where th { font-family: var(--display); font-weight: 400; background: var(--paper-2); font-size: 16px; }
.where tr:last-child td { border-bottom: 0; }
.where td.ok { color: #1F8C6D; font-weight: 600; }
.where td.no { color: var(--ink-3); }
.where-wrap { overflow-x: auto; }
@media (max-width: 760px) { .plain { grid-template-columns: 1fr; } }

/* ---------- Preis ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; align-items: start; }
.tag { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 18px 18px 22px 22px; padding: 34px 26px 26px; box-shadow: var(--shadow-ink); }
.tag::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tag:nth-child(1) { transform: rotate(-1.5deg); } .tag:nth-child(2) { transform: rotate(1deg) translateY(10px); } .tag:nth-child(3) { transform: rotate(-.6deg); }
.tag .ribbon { position: absolute; top: -14px; right: 18px; background: var(--pink); color: #fff; font-family: var(--display); font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.tag h3 { margin-bottom: .2em; }
.tag .price { font-family: var(--display); font-size: clamp(38px, 4vw, 52px); line-height: 1; margin: 12px 0 4px; }
.tag .price s { color: var(--ink-3); font-size: .5em; margin-right: 8px; text-decoration-thickness: 3px; }
.tag .price small { font-family: var(--body); font-size: 16px; color: var(--ink-2); }
.tag .sub { font-size: 14.5px; color: var(--ink-3); margin-bottom: 14px; }
.tag ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.tag ul li { padding-left: 24px; position: relative; }
.tag ul li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.tag .fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.tag.family { background: var(--gold-soft); }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } .tag { transform: none !important; } }

/* ---------- Warteliste ---------- */
.waitlist { padding-block: var(--section-y); }
.waitlist-box { background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 32px; box-shadow: 0 8px 0 0 var(--ink); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: center; position: relative; overflow: hidden; }
.waitlist-box::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.waitlist-box .kicker { color: rgba(255, 255, 255, .8); } .waitlist-box .kicker::before { background: var(--gold); }
.waitlist-box .lead { color: rgba(255, 255, 255, .88); }
.wl-form { display: grid; gap: 12px; position: relative; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input { flex: 1 1 220px; width: 100%; max-width: 100%; padding: 15px 18px; border-radius: 999px; border: 2px solid var(--ink); font: inherit; font-size: 17px; background: #fff; color: var(--ink); min-width: 0; -webkit-appearance: none; appearance: none; }
.wl-form { min-width: 0; }
.wl-form .trap { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.field-row { min-width: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, .88); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
.consent a { color: #fff; }
.wl-msg { min-height: 1.4em; font-weight: 600; font-size: 15px; }
.wl-msg.ok { color: #fff; } .wl-msg.err { color: #FFE27A; }
.wl-side img { width: min(100%, 300px); margin-inline: auto; transform: rotate(3deg); }
@media (max-width: 900px) { .waitlist-box { grid-template-columns: minmax(0, 1fr); } .waitlist-box > div { min-width: 0; } .wl-side { display: none; } .field-row .btn { width: 100%; justify-content: center; } }

/* ---------- Footer: Komys Nacht ---------- */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, #1A1E4C 0, #1A1E4C 72px, #283070 55%, #3B3A86 100%); color: #fff; overflow: hidden; }
.site-footer .footer-edge { display: block; width: 100%; height: 70px; background: var(--paper); margin-bottom: -2px; position: relative; z-index: 1; }
.footer-sky { position: absolute; left: 0; right: 0; top: 70px; height: 36%; max-height: 300px; pointer-events: none; }
.footer-stars { width: 100%; height: 100%; display: block; }
.footer-stars use { animation: twinkle 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; opacity: .85; }
.footer-stars use:nth-child(2n) { animation-delay: 1.3s; } .footer-stars use:nth-child(3n) { animation-delay: 2.4s; }
.site-footer .footer-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(40px, 6vw, 80px) 0 32px; align-items: center; }
.footer-say h2 { color: #fff; margin-bottom: .4em; }
.footer-say p { color: rgba(255, 255, 255, .8); max-width: 34em; font-size: 17px; margin-bottom: 26px; }
.footer-art { position: relative; justify-self: center; width: min(100%, 460px); }
.footer-art::before { content: ''; position: absolute; inset: 10% -6% -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 122, .22), transparent); }
.footer-art img { position: relative; transform: rotate(-2deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.footer-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer-cols b { font-family: var(--display); font-weight: 400; font-size: 19px; display: block; margin-bottom: 10px; color: var(--star); }
.footer-cols a { display: block; color: rgba(255, 255, 255, .85); text-decoration: none; padding: 5px 0; font-size: 16px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--star); }
.footer-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer-bar .brand { color: #fff; font-size: 20px; }
.footer-bar p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); max-width: 60em; }
@media (max-width: 800px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; }
  .footer-art { width: min(100%, 340px); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
.legal-footer { background: var(--night); color: #fff; padding: 40px 0; }
.legal-footer .footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.legal-footer .brand { color: #fff; font-size: 20px; }
.legal-footer .footer-links { display: flex; gap: 20px; margin-left: auto; }
.legal-footer .footer-links a { color: rgba(255,255,255,.85); }
.legal-footer .footer-copy { width: 100%; margin: 8px 0 0; font-size: 13.5px; color: rgba(255,255,255,.6); }
.legal-main { padding: 40px 0 80px; max-width: 760px; }
.legal-main h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: .4em; }
.legal-main h2 { font-size: 24px; margin-top: 1.6em; }
.back-link { display: inline-block; margin-bottom: 24px; }
.dev-note { background: #FFE8E8; border: 2px solid #C62828; color: #7A1B1B; border-radius: var(--radius-s); padding: 14px 18px; margin: 20px 0 28px; font-size: 15px; }
.placeholder { background: var(--gold-soft); border-bottom: 2px dashed #A56B00; padding: 0 4px; }

/* ---------- Reveal ---------- */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; gap: 16px 28px; justify-content: center; }
  .ticker-track .dup { display: none; }
  .komy-poster { animation: none; }
}
@media (hover: none) { .say:hover, .btn:hover, .chip:hover { transform: none; } }
