/* Die Milchzahnbande · Website
   Schriften liegen lokal (keine Verbindung zu Google). Alle Farben stehen oben als Variablen. */

@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #FBF6EC;
  --paper-2: #F5ECDA;
  --card: #FFFCF6;
  --ink: #2C3B64;
  --ink-2: #4B5781;
  --ink-soft: #6F789A;
  --night: #24325A;
  --night-2: #1C284B;
  --coral: #E8735E;
  --coral-deep: #D25A45;
  --mustard: #E2A93B;
  --petrol: #2F6A80;
  --moss: #7C8A4B;
  --rosa: #EFA79C;
  --rosa-soft: #F8DCD5;
  --brown-line: #8A5A44;
  --r-xl: 44px;
  --r-l: 30px;
  --r-m: 20px;
  --shadow: 0 24px 50px -28px rgba(44, 59, 100, .45);
  --shadow-s: 0 10px 24px -16px rgba(44, 59, 100, .5);
  --f-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Papierkorn über der ganzen Seite */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; font-stretch: 100%; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 8px; }
.hand { font-family: var(--f-hand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 0;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-spring), box-shadow .25s, background .25s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 0 var(--coral-deep), var(--shadow-s); }
.btn-primary:hover { box-shadow: 0 9px 0 var(--coral-deep), var(--shadow-s); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-mustard { background: var(--mustard); color: var(--night-2); box-shadow: 0 6px 0 #B9851F; }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-night { background: var(--ink); color: #fff; box-shadow: 0 6px 0 var(--night-2); word-break: break-all; }
.btn-small { padding: .6em 1.15em; font-size: .95rem; box-shadow: 0 4px 0 var(--coral-deep); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(44,59,100,.14);
  transition: transform .3s var(--ease-spring);
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn svg { width: 22px; height: 22px; }
.sound-toggle .ico-off { display: none; }
.sound-toggle[aria-pressed="false"] .ico-on { display: none; }
.sound-toggle[aria-pressed="false"] .ico-off { display: block; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(251, 246, 236, .86);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(44,59,100,.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand img { height: 54px; width: auto; transition: transform .4s var(--ease-spring); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  font-family: var(--f-display); font-weight: 500; font-size: 1.02rem;
  text-decoration: none; padding: .45em .8em; border-radius: 999px;
  transition: background .2s;
}
.main-nav a:hover { background: var(--rosa-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.brand + .header-actions { margin-left: auto; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle { gap: 4px; align-content: center; }
.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: 960px) {
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 78px; left: 12px; right: 12px;
    flex-direction: column; gap: 2px;
    background: var(--card); padding: 12px; border-radius: var(--r-m);
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease-spring);
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: .8em 1em; font-size: 1.15rem; }
  .header-actions { margin-left: auto; }
  .brand img { height: 46px; }
}

/* ---------- Start ---------- */
.hero { position: relative; padding: 24px 0 70px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .92rem; color: var(--ink-2);
  background: var(--card); padding: .5em 1.05em; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(44,59,100,.12);
  margin-bottom: 26px;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(232,115,94,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(232,115,94,0); } 100% { box-shadow: 0 0 0 0 rgba(232,115,94,0); } }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.3rem); line-height: .98; margin-bottom: 26px; }
.scribble { position: relative; display: inline-block; color: var(--coral); white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--mustard); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .5s cubic-bezier(.6,.1,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 33em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 30px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--f-display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--ink); }
.hero-facts span { font-size: .9rem; color: var(--ink-soft); }

.hero-stage { position: relative; display: grid; place-items: center; padding: 20px 0 10px; }
.blob {
  position: absolute; width: 112%; aspect-ratio: 1; max-width: 640px;
  background: radial-gradient(circle at 40% 40%, var(--rosa-soft), rgba(248,220,213,0) 68%);
  border-radius: 50%;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06) rotate(8deg); } }
.arch {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 420 / 560;
  border-radius: 999px 999px 34px 34px;
  background: #EFA79C url("../img/rosa-papier.jpg") center / cover;
  box-shadow: 0 0 0 10px var(--card), 0 0 0 12px rgba(44,59,100,.08), var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.arch::after { /* weiches Licht wie im Spiegel */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,0) 38%);
}
.emmi-poster, .emmi-canvas {
  position: absolute; left: 50%; bottom: -2%;
  height: 104%; width: auto; aspect-ratio: 400 / 866;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.emmi-canvas { opacity: 0; transition: opacity .4s; }
.emmi-canvas.ready { opacity: 1; }
.emmi-canvas.ready ~ .emmi-poster, .emmi-poster.off { visibility: hidden; }
.emmi-hit { position: absolute; inset: 8% 25% 0; background: none; border: 0; cursor: pointer; border-radius: 40% 40% 20% 20%; }
.emmi-say {
  position: absolute; top: 9%; right: 7%;
  background: var(--card); color: var(--ink);
  font-family: var(--f-hand); font-size: 1.6rem; font-weight: 700; line-height: 1;
  padding: .35em .6em .4em; border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-s);
  opacity: 0; transform: scale(.6) rotate(-6deg); transform-origin: bottom left;
  transition: opacity .2s, transform .4s var(--ease-spring);
  pointer-events: none;
}
.emmi-say.show { opacity: 1; transform: scale(1) rotate(-4deg); }
.hand-note {
  position: absolute; left: -130px; top: 4%; z-index: 2;
  font-family: var(--f-hand); font-size: 1.6rem; font-weight: 600; color: var(--ink-2);
  transform: rotate(-8deg); width: 7.2em; line-height: 1;
}
.hand-note svg { width: 64px; height: 48px; display: block; margin: 4px 0 0 52px; }
.hand-note path { fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Seifenblasen */
.bubble-field { position: absolute; inset: -10% -6% 0; pointer-events: none; }
.bubble {
  position: absolute; bottom: 0;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  border: 2px solid rgba(138, 90, 68, .55);
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 9%, rgba(255,255,255,0) 10%),
    radial-gradient(circle at 70% 74%, rgba(255,255,255,.7) 0 4%, rgba(255,255,255,0) 5%),
    radial-gradient(circle at 50% 50%, rgba(234,244,250,.55) 40%, rgba(196,224,240,.8) 78%, rgba(170,208,232,.95));
  pointer-events: auto; cursor: pointer;
  padding: 0;
  animation: rise var(--d) linear var(--delay) infinite;
  will-change: transform;
}
.bubble::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; } /* größere Trefferfläche */
@keyframes rise {
  0%   { transform: translate(0, 10%) scale(.6); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translate(var(--sway), calc(var(--rise, 400px) * -.5)) scale(1); }
  92%  { opacity: 1; }
  100% { transform: translate(0, calc(var(--rise, 400px) * -1)) scale(1.05); opacity: 0; }
}
.pop-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(138,90,68,.5); pointer-events: none; animation: ring .45s ease-out forwards; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.drop { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #BFDCEE; border: 1.5px solid rgba(138,90,68,.45); pointer-events: none; animation: drop .55s ease-out forwards; }
@keyframes drop { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 10px; }
  .hero-stage { order: -1; }
  .arch { width: min(330px, 74vw); }
  .hand-note { left: 0; top: 2%; font-size: 1.3rem; }
  .hand-note svg { margin-left: 34px; width: 48px; height: 36px; }
}

/* ---------- Laufband ---------- */
.marquee-wrap { overflow-x: clip; }
.marquee { background: var(--ink); color: #fff; overflow: hidden; transform: rotate(-1.6deg); margin: 0 -20px; padding: 16px 0; box-shadow: var(--shadow); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: slide 36s linear infinite; font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; white-space: nowrap; }
.marquee i { color: var(--mustard); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Abschnitte ---------- */
.section { position: relative; padding: 110px 0; }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: 52px; max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { font-family: var(--f-hand); font-size: 1.9rem; font-weight: 700; color: var(--coral); transform: rotate(-3deg); display: inline-block; margin-bottom: 6px; line-height: 1; }
.kicker-dark { color: var(--ink); }
.sub { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s var(--ease-spring); }
[data-reveal].in { opacity: 1; transform: none; }

/* So geht's */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--r-l); padding: 34px 30px 32px; box-shadow: var(--shadow-s), inset 0 0 0 1.5px rgba(44,59,100,.06); overflow: hidden; }
.step:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3) { transition-delay: .16s; }
.step-no { position: absolute; right: 18px; top: 4px; font-family: var(--f-display); font-weight: 600; font-size: 5.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(44,59,100,.12); }
.step h3 { margin: 22px 0 10px; }
.step p { color: var(--ink-2); }
.step-ico, .p-ico { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; transition: transform .5s var(--ease-spring); }
.step:hover .step-ico, .parent-card:hover .p-ico { transform: rotate(-8deg) scale(1.08); }
.step-ico svg, .p-ico svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-coral { background: #FBE0DA; color: var(--coral-deep); }
.ico-mustard { background: #F8E7C2; color: #A8741A; }
.ico-petrol { background: #D9E9EE; color: var(--petrol); }
.ico-moss { background: #E5E9D2; color: #5E6B30; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Verwandlung */
.vw { margin: 0 auto; max-width: 1000px; }
#verwandlung .section-head { margin-bottom: 40px; }
.vw-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 0 0 10px var(--card), var(--shadow); background: #E9D9BE; }
.vw-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vw-stage img:first-child { opacity: 1; }
.vw-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(255,252,246,.92); padding: .45em .9em; border-radius: 999px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-s); }
.vw-control { display: flex; align-items: center; gap: 18px; margin: 42px auto 0; max-width: 820px; }
.vw-label { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.vw-track { position: relative; flex: 1; height: 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 2px rgba(44,59,100,.12); }
.vw-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #F3E3C9, var(--mustard)); }
.vw-brush { position: absolute; top: 50%; left: 0; width: 120px; height: 40px; transform: translateY(-60%); pointer-events: none; transition: transform .3s var(--ease-spring); filter: drop-shadow(0 6px 6px rgba(44,59,100,.25)); }
.vw-brush svg { width: 100%; height: 100%; }
.vw-track:hover .vw-brush { transform: translateY(-60%) rotate(-6deg) scale(1.06); }
@media (max-width: 560px) {
  .vw-stage { aspect-ratio: 4 / 3.3; border-radius: var(--r-l); }
  .vw-stage img { object-position: 42% 50%; }
  .vw-control { gap: 10px; margin-top: 34px; }
  .vw-label { font-size: .95rem; }
  .vw-brush { width: 96px; height: 32px; }
}
.vw-range { position: absolute; inset: -22px -10px; width: calc(100% + 20px); height: 60px; margin: 0; opacity: 0; cursor: grab; }
.vw-range:active { cursor: grabbing; }
.vw.wiggle .vw-brush { animation: nudge 1.4s ease-in-out 2; }
@keyframes nudge { 30% { margin-left: 26px; } 60% { margin-left: 0; } }

/* Die Bande */
.kids { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kid { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 10px 26px; border-radius: var(--r-xl); padding: 34px 34px 0; overflow: hidden; position: relative; }
.kid-emmi { background: linear-gradient(160deg, #DCEAF0, #C9DFE8); }
.kid-luki { background: linear-gradient(160deg, #F8E6BD, #F1D79E); transition-delay: .1s; }
.kid-figure { position: relative; background: none; border: 0; padding: 0; cursor: pointer; align-self: end; }
.kid-figure img { height: 300px; width: auto; transform-origin: 50% 100%; transition: transform .4s var(--ease-spring); }
.kid-figure:hover img { transform: rotate(-3deg) scale(1.03); }
.kid-luki .kid-figure img { height: 250px; margin-bottom: 8px; }
.kid-figure.hop img { animation: hop .7s var(--ease-spring); }
@keyframes hop { 0% { transform: none; } 30% { transform: translateY(-34px) rotate(-4deg); } 60% { transform: translateY(0) scaleY(.94) scaleX(1.04); } 100% { transform: none; } }
.kid-bubble {
  position: absolute; left: 70%; top: 2%; z-index: 2;
  width: max-content; max-width: 210px;
  background: var(--card); padding: .5em .8em; border-radius: 18px 18px 18px 4px;
  font-family: var(--f-hand); font-size: 1.45rem; font-weight: 700; line-height: 1.05; text-align: left;
  box-shadow: var(--shadow-s);
  opacity: 0; transform: scale(.5); transform-origin: bottom left;
  transition: opacity .2s, transform .45s var(--ease-spring);
}
.kid-bubble.show { opacity: 1; transform: scale(1) rotate(-3deg); }
.kid-text { padding-bottom: 34px; }
.kid-text h3 { font-size: 2.4rem; }
.tag { font-weight: 700; color: var(--ink-2); margin: 4px 0 12px; }
.papa-note { margin-top: 30px; text-align: center; font-size: 1.15rem; color: var(--ink-2); }
.papa-note .hand { font-size: 1.8rem; font-weight: 700; color: var(--coral); margin-right: 6px; }
@media (max-width: 960px) { .kids { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .kid { grid-template-columns: 1fr; padding: 28px 24px 0; }
  .kid-figure { order: 2; justify-self: center; }
  .kid-text { padding-bottom: 0; }
  .kid-figure img { height: 260px; }
  .kid-luki .kid-figure img { height: 215px; }
  .kid-bubble { left: auto; right: 72%; border-radius: 18px 18px 4px 18px; transform-origin: bottom right; }
}

/* Tierkarten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1400px; aspect-ratio: 4 / 4.6; text-align: left; }
.card:nth-child(3n+2) { transition-delay: .08s; }
.card:nth-child(3n+3) { transition-delay: .16s; }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease-spring); display: block; }
.card[aria-pressed="true"] .card-inner { transform: rotateY(180deg); }
.card:hover .card-inner { transform: rotateY(-8deg) rotateX(3deg); }
.card[aria-pressed="true"]:hover .card-inner { transform: rotateY(172deg) rotateX(3deg); }
.card-front, .card-back { position: absolute; inset: 0; border-radius: var(--r-l); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; overflow: hidden; }
.card-front { background: var(--card); box-shadow: var(--shadow-s), inset 0 0 0 1.5px rgba(44,59,100,.07); padding: 14px 14px 22px; }
.card-img { flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; background: #F7EEDD; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); transition: transform .6s var(--ease-spring); }
.card:hover .card-img img { transform: scale(1.05); }
.chip { position: absolute; top: 24px; left: 24px; background: var(--c); color: #fff; font-weight: 700; font-size: .8rem; padding: .3em .75em; border-radius: 999px; }
.card-name { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1; margin: 16px 10px 2px; color: var(--ink); }
.card-kind { margin: 0 10px; color: var(--ink-soft); font-weight: 700; }
.flip-hint { position: absolute; right: 22px; bottom: 22px; font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700; color: var(--c); }
.card-back { transform: rotateY(180deg); background: var(--c); color: #fff; padding: 34px 30px; justify-content: center; gap: 18px; }
.card-back::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -70px; background: rgba(255,255,255,.12); }
.back-kicker { font-family: var(--f-hand); font-size: 2rem; font-weight: 700; line-height: 1; }
.back-fact { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; line-height: 1.3; }
.stamp { align-self: flex-start; border: 2.5px solid rgba(255,255,255,.85); border-radius: 12px; padding: .3em .7em; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-4deg); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 4.3; }
}

/* ---------- Putz-Timer ---------- */
.section-night { background: var(--night); color: #fff; padding: 140px 0; }
.section-night h2 { color: #fff; }
.section-night .kicker { color: var(--mustard); }
.section-night .sub { color: rgba(255,255,255,.78); }
.wave { position: absolute; left: 0; width: 100%; height: 60px; display: block; }
.section-night .wave-top { top: -1px; fill: var(--paper-2); }
.section-night .wave-bottom { bottom: -1px; fill: var(--paper); }
.timer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.phases { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.phases li { display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 22px; background: rgba(255,255,255,.06); transition: background .3s, transform .4s var(--ease-spring); }
.phases img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.phases span { display: flex; flex-direction: column; color: rgba(255,255,255,.75); font-size: .98rem; line-height: 1.35; }
.phases b { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.phases li.active { background: rgba(226,169,59,.22); transform: translateX(10px); }
.phases li.active img { box-shadow: 0 0 0 3px var(--mustard); }
.phases li.done { opacity: .55; }

.timer { display: grid; justify-items: center; gap: 30px; }
.timer-dial { position: relative; width: min(400px, 84vw); aspect-ratio: 1; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring-track { stroke: rgba(255,255,255,.09); stroke-width: 20; }
.ring-dots { stroke: rgba(255,255,255,.22); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; }
.ring-bar { stroke: var(--mustard); stroke-width: 20; stroke-linecap: round; stroke-dasharray: 741.4; stroke-dashoffset: 741.4; transition: stroke .4s; }
.timer-face { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #34457A, var(--night-2)); display: grid; justify-items: center; align-content: center; gap: 4px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); }
.timer-head { width: 46%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.timer-head.swap { animation: swap .6s var(--ease-spring); }
@keyframes swap { 0% { transform: scale(.4) rotate(-20deg); } 100% { transform: none; } }
.timer-time { font-family: var(--f-display); font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.timer-phase { font-family: var(--f-hand); font-size: 1.5rem; font-weight: 700; color: var(--mustard); line-height: 1; min-height: 1em; }
.timer-done { position: absolute; inset: 15%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #F3C25A, var(--mustard)); color: var(--night-2); padding: 20px; animation: swap .7s var(--ease-spring); }
.done-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1; }
.done-small { font-weight: 700; margin-top: 8px; }
.timer-bubbles { position: absolute; inset: 0; pointer-events: none; }
.timer-bubbles .tb { position: absolute; bottom: 10%; width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.8) 0 10%, rgba(255,255,255,.08) 12%); animation: tb 3.2s ease-out forwards; }
@keyframes tb { to { transform: translate(var(--dx), -260px); opacity: 0; } }
.timer-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 860px) {
  .timer-grid { grid-template-columns: 1fr; gap: 46px; }
  .timer { order: -1; }
  .section-night { padding: 110px 0; }
}

/* Für Eltern */
.parents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.parent-card { background: var(--card); border-radius: var(--r-l); padding: 30px 26px; box-shadow: var(--shadow-s), inset 0 0 0 1.5px rgba(44,59,100,.06); }
.parent-card:nth-child(2) { transition-delay: .06s; }
.parent-card:nth-child(3) { transition-delay: .12s; }
.parent-card:nth-child(4) { transition-delay: .18s; }
.parent-card h3 { margin: 20px 0 10px; font-size: 1.3rem; }
.parent-card p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 1040px) { .parents { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .parents { grid-template-columns: 1fr; } }
.parent-tip { margin-top: 26px; display: flex; align-items: center; gap: 20px; background: #F8E7C2; border-radius: var(--r-l); padding: 22px 30px; box-shadow: inset 0 0 0 1.5px rgba(168,116,26,.14); }
.parent-tip p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.tip-ico { flex: none; width: 56px; height: 56px; border-radius: 18px; background: var(--card); color: #A8741A; display: grid; place-items: center; }
.tip-ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tip-label { font-family: var(--f-hand); font-size: 1.6rem; font-weight: 700; color: #A8741A; margin-right: 6px; line-height: 1; }
@media (max-width: 560px) { .parent-tip { align-items: flex-start; gap: 14px; padding: 20px; } .tip-ico { width: 46px; height: 46px; border-radius: 15px; } .tip-ico svg { width: 26px; height: 26px; } }

/* Mensch und KI */
#gemacht .section-head { max-width: 900px; }
#gemacht h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hl { color: var(--coral); }
.made { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.made-step { position: relative; background: var(--card); border-radius: var(--r-l); padding: 32px 30px; box-shadow: var(--shadow-s), inset 0 0 0 1.5px rgba(44,59,100,.06); }
.made-step:nth-child(2) { transition-delay: .08s; }
.made-step:nth-child(3) { transition-delay: .16s; }
.made-step:not(:last-child)::after { /* Pfeil zum nächsten Schritt */
  content: "→"; position: absolute; right: -24px; top: 50%; z-index: 2;
  width: 22px; text-align: center; font-family: var(--f-display); font-size: 1.6rem; color: var(--ink-soft); transform: translateY(-50%);
}
.made-ico { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; }
.made-ico svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.made-who { position: absolute; top: 30px; right: 26px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .35em .8em; border-radius: 999px; background: var(--ink); color: #fff; }
.made-who-ki { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(44,59,100,.3); }
.made-step h3 { margin: 22px 0 10px; }
.made-step p { color: var(--ink-2); }
@media (max-width: 860px) {
  .made { grid-template-columns: 1fr; gap: 30px; }
  .made-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -30px; transform: translateX(50%); }
}

/* Kontakt */
#kontakt { padding-top: 90px; padding-bottom: 30px; }
.contact { position: relative; display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 30px; background: var(--rosa); border-radius: var(--r-xl); padding: 64px 64px; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: url("../img/rosa-papier.jpg") center / cover; opacity: .7; mix-blend-mode: multiply; pointer-events: none; }
.contact > * { position: relative; }
.contact h2 { margin-bottom: 14px; }
.contact p { font-size: 1.15rem; max-width: 30em; margin-bottom: 26px; color: #3A3F5E; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border-radius: 999px; background: rgba(255,252,246,.7); text-decoration: none; font-weight: 700; transition: background .2s, transform .3s var(--ease-spring); }
.social:hover { background: var(--card); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.contact-logo { width: 100%; max-width: 260px; justify-self: center; animation: spin-soft 18s linear infinite; }
@keyframes spin-soft { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; padding: 44px 28px; }
  .contact-logo { max-width: 150px; order: -1; justify-self: start; }
}

/* ---------- Fußzeile ---------- */
.site-footer { position: relative; background: var(--night); color: rgba(255,255,255,.82); padding: 90px 0 34px; margin-top: 90px; }
.site-footer .wave-top { top: -59px; fill: var(--night); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 74px; height: 74px; }
.footer-brand b { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 1.2rem; }
.footer-ki { display: flex; gap: 16px; align-items: flex-start; font-size: .92rem; }
.footer-ki img { width: 140px; height: auto; flex: none; margin-top: 2px; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--mustard); }
.copy { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: rgba(255,255,255,.55); }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 18px; } }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 50px 0 40px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 14px 0 34px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal address { font-style: normal; color: var(--ink); font-weight: 700; line-height: 1.55; margin-bottom: 12px; }
.legal a { color: var(--coral-deep); }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.back-link:hover { color: var(--coral-deep); }
.legal-card { background: var(--card); border-radius: var(--r-l); padding: 36px 40px; box-shadow: var(--shadow-s); }
@media (max-width: 560px) { .legal-card { padding: 26px 22px; } }

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .bubble { display: none; }
  .scribble path { stroke-dashoffset: 0; }
}
