/* Tibino Kids — tibinokids.com
   Farbwelt und Typo aus dem Landingpage-Entwurf vom Juni 2026, Layout nach Entwurf V2.
   Mobile first: alle Breakpoints gehen nach OBEN (min-width), damit die Handy-Ansicht die
   Grundlage ist und nicht der Rest-Fall. */

:root {
  --orange: #FF8A1E;
  --orange-dark: #c9560f;
  --yellow: #FFC42E;
  --sky: #46B0E6;
  --sky-dark: #2f87bb;
  --green: #79C44D;
  --cream: #FFF7E8;
  --coral: #FF5A4D;
  --coral-dark: #c9362b;
  --ink: #2C2A35;
  --ink-soft: #5d5b66;
  --display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  --r: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;            /* nie horizontal scrollen */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; 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(--orange); outline-offset: 3px; border-radius: 8px; }

/* ---------- Wortmarke ----------
   Die Marke ist ein BILD, keine nachgebaute Schrift. Der frühere CSS-Nachbau mit Fredoka traf
   weder die Buchstabenabstände noch die weiße Kontur und die rotbraune 3D-Kante — er wirkte
   zusammengeschoben. img/logo.png ist der freigestellte Original-Schriftzug. */
.logo img { width: 128px; height: auto; }              /* Kopfzeile: nur der Schriftzug */
.hero-logo { width: min(330px, 84vw); height: auto; margin: 0 auto; }  /* Hero: mit Unterzeile */
.foot-logo { width: 132px; height: auto; margin: 0 auto 8px; }

/* ---------- Kopfzeile ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 232, .93);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid #ffe6b8;
}
nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.logo { display: flex; align-items: center; }
.navlinks { display: none; gap: 26px; font-weight: 800; font-size: 15px; }
.navlinks a { color: var(--ink-soft); transition: color .15s; }
.navlinks a:hover { color: var(--orange); }

.btn {
  font-family: var(--display); font-weight: 600; border: none; cursor: pointer;
  border-radius: 999px; padding: 12px 22px; font-size: 16px; display: inline-block;
  transition: transform .12s ease, box-shadow .12s ease; text-align: center;
}
.btn:active { transform: translateY(2px); }
.btn-yt { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-dark); }
.btn-yt:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--coral-dark); }
.btn-2 { background: var(--sky); color: #fff; box-shadow: 0 5px 0 var(--sky-dark); }
.btn-2:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sky-dark); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
/* Titel, Tagline und Buttons liegen IM Bild — wie im freigegebenen Entwurf.
   padding:0 hebt das section-Standardpolster auf. */
.hero {
  position: relative; padding: 0; background: #bfe4f7; overflow: hidden;
  min-height: 545px; display: grid; align-items: start;
}
/* Auf dem Handy zeigt der Ausschnitt den UNTEREN Bildbereich, damit die Figuren unter dem Text
   stehen statt hinter ihm. Sonst deckt das Logo Tibinos Gesicht zu. */
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 95%;
}
.hero-text { position: relative; z-index: 2; padding: 16px 16px 78px; text-align: center; }
/* Kompakte Knöpfe, damit beide in EINE Zeile passen — untereinander schoben sie sich sonst
   über Tibinos Gesicht. */
.hero .cta-row .btn { padding: 11px 15px; font-size: 14.5px; }
/* Die Unterzeile „Kids Songs & Farm Stories" ist Teil des Logo-Bildes (Originalschrift),
   nicht mehr als CSS-Text nachgebaut. */
.hero h1 { margin-bottom: 14px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Figurengrößen ----------
   Bewusst gedämpft statt maßstabsgetreu: Ein Küken ist neben einem Kleinkind real winzig, als
   Bild wäre es kaum noch erkennbar. Die Reihenfolge stimmt, die Spreizung ist gestaucht.
   Ohne diese Staffelung war Pip — die kleinste Figur der Serie — größer als Tibino. */
.s-tibino .stage img { height: 100%; }
.s-foxy   .stage img { height: 80%; }
.s-storm  .stage img { height: 66%; }
.s-milo   .stage img { height: 58%; }
.s-pip    .stage img { height: 50%; }

/* ---------- Abschnitte ---------- */
section { padding: 52px 0; }
.eyebrow {
  font-family: var(--display); font-weight: 600; color: var(--orange);
  letter-spacing: .06em; text-transform: uppercase; font-size: 13px; text-align: center;
}
h2 {
  font-family: var(--display); font-weight: 700; text-align: center;
  font-size: clamp(27px, 6.4vw, 40px); margin: 4px 0 10px; line-height: 1.15;
}
.sub { text-align: center; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 30px; font-weight: 600; }

/* ---------- Folgen ----------
   Die Karten ragen von unten in den Hero hinein (negatives margin + z-index). */
.episodes-sec { padding-top: 0; }
.episodes { display: grid; gap: 20px; margin-top: -62px; position: relative; z-index: 3; }
.ep-card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 8px 26px rgba(70, 176, 230, .16); border: 3px solid #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ep-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(70, 176, 230, .26); }
.ep-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.ep-meta { padding: 15px 17px 18px; }
.ep-meta h3 { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.ep-meta p { color: var(--ink-soft); font-weight: 600; font-size: 14px; margin-top: 5px; }
.ep-badge {
  display: inline-block; background: #fff3d6; color: #9a6a12; font-weight: 800;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-bottom: 7px;
}

.video-embed {
  max-width: 780px; margin: 28px auto 0; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 42, 53, .18); background: #000; aspect-ratio: 16/9;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Vorschau mit Abspiel-Knopf — der Player kommt erst beim Klick. */
.video-play {
  width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; display: block;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-icon {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 54px;
  background: rgba(255, 90, 77, .95); border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .15s ease, background .15s ease;
}
.play-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  transform: translateX(3px);
}
.video-play:hover .play-icon { transform: scale(1.08); background: var(--coral); }

/* ---------- Figuren ---------- */
.chars { background: linear-gradient(180deg, #fff, #fffdf6); }
/* align-items:start ist hier Pflicht: ohne das ziehen sich beim Aufklappen einer Karte ALLE
   Karten derselben Zeile auf die neue Hoehe und stehen mit leerem Raum da. */
.char-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.char {
  background: #fff; border: 3px solid #ffe6b8; border-radius: var(--r);
  overflow: hidden; transition: border-color .15s ease, transform .15s ease;
}
.char[open] { border-color: var(--orange); }
.char summary {
  list-style: none; cursor: pointer; padding: 16px 14px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.char summary::-webkit-details-marker { display: none; }
.char summary .stage {
  height: 178px; width: 100%; display: flex; align-items: flex-end; justify-content: center;
}
.char summary .stage img { width: auto; max-width: 100%; }
.char summary b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.char summary span { color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.char summary .more {
  color: var(--orange); font-weight: 800; font-size: 12.5px; letter-spacing: .04em;
}
.char[open] summary .more { color: var(--ink-soft); }
.char-body { padding: 0 17px 18px; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.char-body p + p { margin-top: 9px; }
.char-body b { color: var(--ink); }

/* ---------- Für Eltern / FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 3px solid #ffe6b8; border-radius: 16px; padding: 4px 6px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 13px 14px;
  font-family: var(--display); font-weight: 600; font-size: 17px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 14px 14px; color: var(--ink-soft); font-weight: 600; }

.badges { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
.badge {
  background: #fff; border: 3px solid #e7f3dc; border-radius: var(--r);
  padding: 20px 18px; text-align: center;
}
.badge .ic { font-size: 32px; }
.badge b { font-family: var(--display); font-weight: 600; display: block; margin: 6px 0 4px; font-size: 17px; }
.badge p { color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* ---------- Abo-Aufruf ---------- */
.sub-cta {
  background: radial-gradient(120% 140% at 50% 0%, #ffe9b0, var(--cream));
  text-align: center;
}
.sub-cta h2 { margin-bottom: 6px; }

/* ---------- Fußzeile ---------- */
footer { background: var(--ink); color: #cfcdd6; text-align: center; padding: 30px 20px; font-weight: 600; font-size: 14px; }
footer a { color: #ffd28a; }
footer .legal { margin-top: 10px; font-size: 12.5px; color: #9a97a5; }

/* ---------- ab Tablet ---------- */
@media (min-width: 720px) {
  section { padding: 66px 0; }
  .navlinks { display: flex; }
  .episodes { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: repeat(3, 1fr); }
  .badges { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- ab Desktop: Text neben dem Bild (Entwurf V2) ---------- */
@media (min-width: 1000px) {
  /* Hoeher und tiefer angeschnitten, damit die Figuren auf ihren Fuessen stehen statt am
     unteren Rand abgeschnitten zu werden. */
  .hero { min-height: 640px; align-items: center; }
  .hero-img { object-position: 74% 86%; }
  .hero-text {
    text-align: left; max-width: var(--wrap); margin: 0 auto; width: 100%;
    padding: 30px 20px 96px;
  }
  .hero-text > * { max-width: 48%; }
  /* Die Knoepfe sitzen mittig unter dem Logo — exakt auf dessen Breite begrenzt, damit sie
     nicht seitlich herausragen und Foxy verdecken. */
  .cta-row { justify-content: center; max-width: min(430px, 40vw); }
  .hero-logo { margin: 0 0 10px; width: min(430px, 40vw); }
  .hero .cta-row .btn { padding: 13px 24px; font-size: 16px; }
  .episodes { margin-top: -56px; }   /* weniger Ueberlappung, sonst verdecken die Karten die Fuesse */
  .char summary .stage { height: 200px; }
  .char-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
