/* Mimu – Homepage. Farben aus der App (Orange, Nilpferd-Grau, Weiss; Gelb nur fuer die Sprechblase); Schriften lokal (keine Verbindung zu Google Fonts). */
@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url('fonts/baloo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('fonts/baloo-2-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Farben aus dem Nilpferd: Umrisslinie (Text), Rosa (Akzent), Grau (Rahmen), dazu Himmel und das Sprechblasen-Gelb */
  --sea: #3b2e34;      /* Ueberschriften: warmes Dunkelgrau wie die Umrisslinie */
  --sea-2: #8f8085;    /* Nilpferd-Grau: Linien, Rahmen */
  --sky: #ffc629;      /* Sonnengelb: Kopf (Schrift darauf dunkel) */
  --ice: #ffffff;      /* Seitengrund */
  --lav: #fff4d6;      /* helles Gelb: Baender */
  --hippo: #9a6400;    /* dunkles Gelb-Braun: Akzentschrift, dunkel genug auf Weiss */
  --sun: #f7c22e;      /* Gelb der Sprechblase */
  --btn: #3b2e34;      /* Knoepfe: Dunkelgrau mit weisser Schrift */
  --ink: #3b2e34;
  --muted: #6b5d63;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Atkinson Hyperlegible', system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Baloo 2', system-ui, sans-serif; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ── Kopf + Hero ─────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #f8963a 100%); color: var(--ink); position: relative; padding-bottom: 72px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { color: var(--sea); display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.6rem/1 'Baloo 2', sans-serif; }
.brand img { width: 62px; height: auto; }
.lang { font-weight: 700; text-decoration: none; padding: 6px 12px; border: 2px solid rgba(59, 46, 52, 0.3); border-radius: 999px; color: var(--sea); }
.lang:hover { border-color: var(--sea); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 28px; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.01em; }
.hero h1 .line2 { display: block; color: var(--sea); text-wrap: balance; }
.hero .lead { font-size: 1.25rem; max-width: 34ch; margin: 22px 0 30px; color: var(--sea); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.05rem/1 'Atkinson Hyperlegible', sans-serif; text-decoration: none;
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent;
}
.btn-sun { background: var(--btn); color: var(--white); }
.btn-sun:hover { background: #55444c; }
.btn-ghost { border-color: var(--sea); color: var(--sea); background: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: var(--sea); }
.btn small { font-weight: 400; opacity: 0.8; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--sea); font-size: 0.95rem; }
.facts li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--white); margin-right: 8px; vertical-align: 2px; }

/* Handy mit Video und Nilpferd: zeigt, was Mimu tut */
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 18.5; margin-inline: auto; position: relative;
  border-radius: 42px; background: #6f6267; padding: 12px; box-shadow: 0 30px 60px rgba(59, 46, 52, 0.28);
}
.screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #f6f8f9; }
/* Video-App im Handy: Kacheln laufen nach oben durch, halten an, solange die Erinnerung zu sehen ist.
   Eine Schleife = 12 s, alle Teile (Liste, Erinnerung, Mund im Spiegelbild, Beschriftung) nutzen denselben Takt. */
.appbar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #fff; border-bottom: 1px solid #e6edf1; }
.appbar i { display: block; height: 10px; border-radius: 5px; background: #e8443a; width: 26px; }
.appbar i + i { background: #dfe8ed; width: 70px; }
.feed { position: absolute; inset: 40px 0 0; overflow: hidden; }
.track { padding: 12px; display: grid; gap: 12px; animation: scroll 12s linear infinite; }
.card { display: grid; gap: 7px; }
.card b { display: grid; place-items: center; height: 118px; border-radius: 12px; }
.card b i { width: 0; height: 0; border-left: 18px solid rgba(255, 255, 255, 0.9); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.card span { display: grid; gap: 6px; }
.card span::before, .card span::after { content: ''; height: 8px; border-radius: 4px; background: #dfe8ed; }
.card span::after { width: 60%; }
/* 6 Kacheln je 118 + 7 + 22 + 12 px = 159 px -> eine Runde = 954 px; laufen, halten, weiterlaufen */
@keyframes scroll {
  0% { transform: translateY(0); }
  34% { transform: translateY(-420px); }
  82% { transform: translateY(-420px); }
  100% { transform: translateY(-954px); }
}
.face { width: 100%; height: 100%; display: block; }
.face .m-open { animation: m-open 12s linear infinite; }
.face .m-shut { animation: m-shut 12s linear infinite; }
@keyframes m-open { 0%, 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes m-shut { 0%, 66% { opacity: 0; } 69%, 100% { opacity: 1; } }
.reminder {
  position: absolute; left: 8px; right: 6px; top: 10px;
  display: grid; grid-template-columns: 1fr 74px; align-items: end;
  animation: remind 12s ease-in-out infinite;
}
/* Sprechblase mit gelbem Rand, Spitze zeigt zum Nilpferd rechts daneben */
.bubble {
  position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: center;
  background: var(--white); color: var(--ink); border: 3px solid var(--sun); border-radius: 16px;
  padding: 7px 9px 7px 7px; margin-right: 10px; box-shadow: 0 8px 20px rgba(59, 46, 52, 0.18);
  font-size: 0.8rem; font-weight: 700; line-height: 1.25;
}
.bubble::after {
  content: ''; position: absolute; right: -10px; bottom: 14px; width: 16px; height: 16px;
  background: var(--white); border: 3px solid var(--sun); border-left: 0; border-bottom: 0;
  transform: rotate(45deg); border-radius: 0 3px 0 0;
}
.mirror { height: 62px; border-radius: 10px; background: #f3e7e4; overflow: hidden; }
.reminder .hippo-anim { position: relative; display: block; width: 74px; }
.reminder .hippo-anim img { width: 74px; height: auto; }
.hippo-anim .open { position: absolute; inset: 0; animation: mouth 2.6s linear infinite; }
@keyframes mouth { 0%, 32% { opacity: 1; } 42%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes remind {
  0%, 40% { transform: translateY(-140%); opacity: 0; }
  45%, 72% { transform: translateY(0); opacity: 1; }
  77%, 100% { transform: translateY(-140%); opacity: 0; }
}
/* Beschriftung unter dem Handy: immer nur der Schritt, der gerade zu sehen ist */
.demo { margin: 0; position: relative; }
/* Das Kind vor dem Handy (Frontkamera): Mund ist zu, geht auf, bleibt offen, bis Mimu erinnert hat */
.kid {
  position: absolute; z-index: 2; top: 42%; left: max(0px, calc(50% - min(160px, 41vw) - 44px));
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #f3e7e4;
  border: 4px solid var(--white); box-shadow: 0 10px 24px rgba(59, 46, 52, 0.25);
}
.kid-face .m-open { animation: k-open 12s linear infinite; }
.kid-face .m-shut { animation: k-shut 12s linear infinite; }
@keyframes k-open { 0%, 26% { opacity: 0; } 29%, 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes k-shut { 0%, 26% { opacity: 1; } 29%, 66% { opacity: 0; } 69%, 100% { opacity: 1; } }
.demo-cap { list-style: none; padding: 0; margin: 18px auto 0; position: relative; height: 2.6em; width: min(320px, 82vw); text-align: center; }
.demo-cap li {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  font: 800 1.15rem/1.2 'Baloo 2', sans-serif; color: var(--sea);
}
.demo-cap li:nth-child(1) { animation: cap1 12s linear infinite; }
.demo-cap li:nth-child(2) { animation: cap2 12s linear infinite; }
.demo-cap li:nth-child(3) { animation: cap3 12s linear infinite; }
.demo-cap li:nth-child(4) { animation: cap4 12s linear infinite; }
@keyframes cap1 { 0%, 26% { opacity: 1; } 29%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cap2 { 0%, 26% { opacity: 0; } 29%, 42% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes cap3 { 0%, 42% { opacity: 0; } 45%, 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes cap4 { 0%, 66% { opacity: 0; } 69%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; color: var(--ice); }
.wave svg { width: 100%; height: 100%; }

/* ── Abschnitte ──────────────────────────────────────────── */
section { padding: 84px 0; }
.kicker-free h2, section h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; color: var(--sea); max-width: 22ch; }
.intro { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); margin-top: 16px; }

/* So funktioniert's: echte Reihenfolge -> nummeriert */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 74px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.8rem/1 'Baloo 2', sans-serif; color: var(--sea); background: var(--sky);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 27px; left: 70px; right: -14px; border-top: 3px dotted var(--hippo);
}
.steps h3 { font-size: 1.5rem; color: var(--sea); margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 34ch; }

/* Warum: Zitat aus der Praxis-Beobachtung */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.why blockquote { margin: 0; font: 600 clamp(1.5rem, 2.8vw, 2rem)/1.3 'Baloo 2', sans-serif; color: var(--sea); border-left: 6px solid var(--sky); padding-left: 22px; }
.why p { max-width: var(--measure); }

/* Fuer Eltern und Fachkraefte: zwei Spalten, Liste mit Punkten statt Karten */
.adults-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; margin-top: 40px; }
.adults-grid div { border-top: 2px solid #eadfe0; padding-top: 18px; }
.adults-grid h3 { font-size: 1.35rem; color: var(--sea); margin-bottom: 6px; }
.adults-grid p { color: var(--muted); margin: 0; max-width: 46ch; }

/* Datenschutz-Versprechen: ein grosser Satz */
.promise { background: var(--lav); color: var(--ink); text-align: left; }
.promise h2 { color: var(--sea); font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.promise ul { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; color: var(--muted); }
.promise li strong { display: block; color: var(--hippo); font-size: 1.1rem; margin-bottom: 4px; }
.promise a { color: var(--sea); }

/* Fragen */
.faq { max-width: 760px; }
.faq details { border-bottom: 2px solid #eadfe0; padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 1.3rem/1.3 'Baloo 2', sans-serif; color: var(--sea); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--sea-2); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: var(--measure); }

/* Abschluss */
.end { text-align: center; }
.end img.big { width: 260px; height: auto; margin: 0 auto 18px; }
.end h2 { margin-inline: auto; }
.end .actions { justify-content: center; margin-top: 26px; }
.end .btn-ghost { color: var(--sea); border-color: var(--sea-2); }
.end .btn-ghost:hover { border-color: var(--sea); }

footer { background: var(--lav); color: var(--muted); padding: 36px 0; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--sea); }

/* Rechtstexte */
.legal { background: var(--white); }
.legal .wrap { max-width: 760px; padding: 40px 0 70px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--sea); margin: 10px 0 6px; }
.legal h2 { font-size: 1.35rem; color: var(--sea); margin: 30px 0 8px; }
.legal p { max-width: var(--measure); }
.legal .muted { color: var(--muted); }
.legal hr { border: 0; border-top: 2px solid #eadfe0; margin: 48px 0; }
.legal-top { background: var(--sky); color: var(--sea); }

/* ── Kleine Bildschirme ──────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid, .why-grid, .adults-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .steps, .promise ul { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reminder { animation: none; transform: none; opacity: 1; }
  .track, .face .m-open, .face .m-shut { animation: none; }
  .kid-face .m-open { opacity: 1; }
  .face .m-shut { opacity: 0; }
  .demo-cap li { animation: none; }
  .demo-cap li:nth-child(3) { opacity: 1; }
  .hippo-anim .open { animation: none; opacity: 0; }
  .faq summary::after { transition: none; }
}
