/* ============================================================================
   KIDZ.ME — So funktioniert’s
   Farben und Schriften kommen aus tokens.css.
   Diese Seite darf scrollen (anders als die Startseite).

   Der Kopfbereich (.top/.back/.logo) ist absichtlich nicht ausgelagert: jede
   Seite hier bringt ihr eigenes Stylesheet mit, und ein gemeinsames
   Layout-Stylesheet hat beim letzten Mal die Startseite zerlegt. Dieselbe
   Regelmenge steht deshalb in buch.css, recht.css, seite.css und so-funktionierts.css, dazu
   abgewandelt in generator.css.
   Änderungen am Kopf an allen fünf Stellen prüfen (nachgezählt).
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- Kopf ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(250,249,253,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.back { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-soft); font-size: .94rem; }
.back svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--blue); }
.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo-mark { width: 24px; aspect-ratio: 1; fill: var(--pink); }
.logo-word { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; }
.logo-me { color: var(--pink-deep); font-style: italic; }

/* ---------- Rahmen ---------- */
.wrap { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.8rem; border: 0; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background-color .18s, transform .18s, box-shadow .18s;
}
.btn-primary { background: var(--cta); color: #fff; }   /* Flieder: alles, was zum Generator führt */
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kicker {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-deep); font-weight: 650; margin-bottom: .9rem;
}

/* ---------- Aufmacher ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(2.5rem, 6vh, 4rem);
}
/* Größe so gewählt, dass beide Sätze der Überschrift auf je eine Zeile passen */
.hero h1 { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.5rem); text-wrap: balance; }
.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft);
  margin: 1.2rem 0 1.9rem; max-width: 46ch;
}
.hero-fuss { font-size: .86rem; color: var(--ink-faint); margin-top: 1rem; }
.hero-bild img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.hero-bild { margin: 0; transform: rotate(1.4deg); }

/* ---------- Die vier Schritte ---------- */
.schritte { display: grid; gap: clamp(2.5rem, 6vh, 4.5rem); padding: clamp(1rem, 4vh, 2.5rem) 0 clamp(3rem, 7vh, 5rem); }
.schritt {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.schritt-gedreht .schritt-bild { order: 2; }
.schritt-bild { margin: 0; }
.schritt-bild img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
/* Die Figur ist hochformatig — sonst füllt sie die halbe Seite */
.schritt-bild-hoch img { max-width: 260px; margin-inline: auto; }
/* Die Maskottchen in den Schritten: freigestellt, ohne Rahmen (USER 16-10) */
.schritt-maskottchen img { width: auto; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.schritt-maskottchen .maskottchen { justify-content: center; }
.schritt-num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--blue-tint); color: var(--blue);
  font-family: var(--display); font-size: 1.1rem; margin-bottom: .9rem;
}
.schritt-text h2 { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .8rem; }
.schritt-text p { color: var(--ink-soft); max-width: 44ch; }
.schritt-text p + p { margin-top: .8rem; }
.schritt-text em { font-style: normal; font-weight: 650; color: var(--ink); }

/* ---------- Farbband ---------- */
.band { background: var(--sand-deep); padding: clamp(2.8rem, 7vh, 4.5rem) 0; }
.band-hell { background: var(--blue-tint); }
.band-titel {
  font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-align: center; margin-bottom: 1.6rem;
}
.band-spalten {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  max-width: 900px; margin-inline: auto;
}
.band-spalten p { color: var(--ink-soft); }

/* Stilstreifen — vier statt acht Spalten: bei acht sind die Vorschauen so klein,
   dass sich die Stile nicht mehr unterscheiden lassen, und genau darum geht es. */
/* USER 16-10 „styling images need to be bigger“: zwei Spalten, die Porträts groß genug für Strich und Farbe */
.stile {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
  margin-top: 2.2rem; max-width: 1000px; margin-inline: auto;
}
.stile figure { margin: 0; }
.stile img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.stile .stil-leer {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong); background: var(--sand-deep);
}
.stile figcaption {
  font-size: .82rem; color: var(--ink-faint); text-align: center; margin-top: .4rem;
}

/* ---------- Die Reihe ---------- */
.reihe {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(3rem, 7vh, 5rem) 0;
}
.reihe h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1rem; }
.reihe p { color: var(--ink-soft); max-width: 46ch; }
.reihe p + p { margin-top: .9rem; }

.preise { display: grid; gap: .7rem; }
.preis {
  position: relative;
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
  display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem;
  align-items: baseline;
}
.preis-name { font-family: var(--display); font-size: 1.08rem; }
.preis-wert { font-family: var(--display); font-size: 1.35rem; color: var(--blue); }
.preis-sub { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-faint); }
.preis-flag {
  position: absolute; top: -9px; right: 1rem;
  font-size: .64rem; letter-spacing: .07em; text-transform: uppercase;
  background: var(--ok); color: #fff; padding: .16rem .5rem; border-radius: var(--radius-sm);
}

/* ---------- Vertrauenspunkte ---------- */
.punkte { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.punkt svg {
  width: 32px; height: 32px; margin-bottom: .8rem;
  fill: none; stroke: var(--blue); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.punkt h3 { font-family: var(--display); font-size: 1.1rem; margin-bottom: .5rem; }
.punkt p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Fragen ---------- */
.fragen { padding: clamp(3rem, 7vh, 5rem) 0; max-width: 760px; }
.fragen h2 {
  font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 1.4rem; text-align: center;
}
.fragen details {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: .6rem;
}
.fragen summary {
  cursor: pointer; padding: 1rem 1.2rem; list-style: none;
  font-family: var(--display); font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; flex: none;
  transition: transform .2s;
}
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p {
  padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: .95rem; max-width: 62ch;
}

/* ---------- Abschluss ---------- */
.schluss { text-align: center; padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(3.5rem, 8vh, 5.5rem); }
.schluss h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.schluss p { color: var(--ink-soft); margin: .9rem 0 1.8rem; }

.fuss {
  border-top: 1px solid var(--line); padding: 1rem 1.4rem;
  text-align: center; font-size: .85rem; color: var(--ink-faint);
}
/* Ohne diese Regel erbt der Link color:inherit und ist als Link nicht zu
   erkennen — bei Pflichtseiten wäre das ein Mangel, nicht nur hässlich. */
.fuss a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.fuss p + p { margin-top: .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .schritt, .reihe, .band-spalten { grid-template-columns: 1fr; }
  .schritt-gedreht .schritt-bild { order: 0; }
  .hero-bild { max-width: 420px; margin-inline: auto; }
  .schritt-text p { max-width: none; }
  .stile { grid-template-columns: repeat(2, 1fr); }
  .punkte { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .stile { grid-template-columns: 1fr; }
}

/* ============================================================================
   Gestaltung seit 2026-10-12 (Logo C7, gemeinsam.css): Farbmarken statt
   zentrierter Einzelspalten, Töne je Schritt, Fragen in zwei Spalten.
   ============================================================================ */
.kicker { display: inline-flex; align-items: center; gap: .55rem; }
.kicker::before { content: ""; width: 18px; height: 3px; background: currentColor; border-radius: var(--radius-xs); }
.schritt:nth-child(4n+1) .schritt-num { background: var(--rose-hauch);    color: var(--rose-tief); }
.schritt:nth-child(4n+2) .schritt-num { background: var(--himmel-hauch);  color: var(--himmel-tief); }
.schritt:nth-child(4n+3) .schritt-num { background: var(--salbei-hauch);  color: var(--salbei-tief); }
.schritt:nth-child(4n+4) .schritt-num { background: var(--flieder-hauch); color: var(--flieder-tief); }
.schritt-text h2::after, .reihe h2::after, .band-titel::after, .fragen-zwei h2::after {
  content: ""; display: block; width: 38px; height: 3px; margin-top: .65rem;
  background: var(--strich, var(--pink)); border-radius: var(--radius-xs);
}
.schritt:nth-child(4n+2) { --strich: var(--himmel); }
.schritt:nth-child(4n+3) { --strich: var(--salbei); }
.schritt:nth-child(4n+4) { --strich: var(--flieder); }
.band .wrap { width: min(1080px, calc(100% - 2.6rem)); }
.band-titel { text-align: left; margin-bottom: 1.4rem; }
.band-spalten { max-width: none; margin-inline: 0; }
.band-hell { background: var(--salbei-hauch); }
.band-hell .band-titel { --strich: var(--salbei); }
.reihe h2 { --strich: var(--himmel); }
.punkt:nth-child(1) svg { stroke: var(--rose-tief); }
.punkt:nth-child(2) svg { stroke: var(--himmel-tief); }
.punkt:nth-child(3) svg { stroke: var(--flieder-tief); }
.fragen-zwei { padding: clamp(3rem, 7vh, 5rem) 0 0; }
.fragen-zwei h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); --strich: var(--himmel); }
.fragen-zwei .textseite p { color: var(--ink-soft); margin-top: 1rem; }
.fragen-zwei .mehr { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fragen { padding: 0; max-width: none; }
main > .weiter-schritt { margin-bottom: clamp(3rem, 7vh, 5rem); }
.preis-kasse { grid-column: 1 / -1; margin-top: .55rem; }

/* Sortiment seit 2026-10-12: Wahl der zusätzlichen Exemplare über den Karten,
   PDF-Testkarte gestrichelt */
.preis-extra { grid-column: 1 / -1; font-size: .82rem; color: var(--flieder-tief); font-weight: 600; }
.preis--test { border-style: dashed; background: var(--sand-deep); }
.knopf-klein { padding: .5rem .9rem; font-size: .9rem; cursor: pointer; font-family: inherit; }

/* ---------- Maskottchen weiter unten (USER 16-10) ---------- */
.posen-titel { margin: 2.2rem 0 .6rem; text-align: center; font-family: var(--hand); font-size: 1.3rem; color: var(--rose-tief); }
.posen-reihe { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: .4rem clamp(1rem, 3vw, 2.4rem); }
.posen-reihe .maskottchen img { width: auto; max-width: 100%; }
.posen-maedchen { justify-content: flex-start; margin-top: 1.4rem; }
.posen-unter { margin-top: .4rem; font-size: .9rem; color: var(--ink-faint); }
.band-figur { float: right; margin: -1rem 0 .4rem 1.2rem; }
.band-figur img { max-height: 200px; width: auto; }
.fragen-figur { justify-content: flex-start; margin-top: 1.4rem; }
.fragen-figur img { max-height: 170px; width: auto; }
@media (max-width: 640px) {
  .posen-reihe .maskottchen img { height: auto !important; max-height: 150px; }
  .band-figur img { max-height: 130px; }
}
