/* ============================================================================
   KIDZ.ME — Inhaltsseiten (Kategorie, Alter, Anlass, Ratgeber)

   Alle Seiten dieses Typs werden von seiten-bauen.py erzeugt. Dieses
   Stylesheet wird NICHT erzeugt und darf hier bearbeitet werden.

   Der Kopfbereich (.top/.back/.logo) steht als dieselbe Regelmenge in
   buch.css, recht.css, seite.css und so-funktionierts.css, dazu
   abgewandelt in generator.css. Die
   Begründung, warum es kein gemeinsames Layout-Stylesheet gibt, steht im Kopf
   von so-funktionierts.css. Änderungen am Kopf an allen fünf Stellen prüfen.

   Farben und Schriften kommen aus tokens.css.
   ============================================================================ */

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);                   /* 10,25:1 auf Sand */
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.2; }
p, ul, ol { 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); }

/* Aquarell-Wäsche entfernt 2026-10-09 — die Seiten stehen jetzt auf Papier
   mit Federzeichnungen (motive.css). */
/* ---------- Kopf (vierte Kopie, siehe oben) ---------- */
.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 ----------
   68 Zeichen Zeilenlänge: darüber verliert man beim Rücksprung die Zeile, und
   diese Seiten sind zum Lesen da, nicht zum Überfliegen einer Tabelle. */
.wrap { width: min(720px, calc(100% - 2.6rem)); margin-inline: auto; }
.breit, .wrap-breit { width: min(1080px, calc(100% - 2.6rem)); margin-inline: auto; }
/* Abstände zwischen den Abschnitten (seit 2026-10-12 zwei Spalten, gemeinsam.css) */
main > .zwei, main > .breit, main > .tafeln, main > .tafel-kopf { margin-top: clamp(3rem, 7vw, 5.5rem); }
main > .tafeln { margin-top: 1.6rem; }
main > .zwei.kopf { margin-top: 0; }
.breit h2 { font-family: var(--display); font-size: clamp(1.3rem, 3.2vw, 1.62rem); margin: 0 0 .9rem; }

/* ---------- Brotkrumen ---------- */
.krumen {
  padding: 1.1rem 0 0;
  font-size: .85rem; color: var(--ink-soft);
}
.krumen ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.krumen a { color: var(--blue); }
.krumen a:hover { text-decoration: underline; text-underline-offset: 2px; }
.krumen li + li::before { content: "›"; margin-right: .4rem; color: var(--line-strong); }
.krumen [aria-current] { color: var(--ink-soft); }

/* ---------- Aufmacher ---------- */
.kopf { padding: 1.4rem 0 1rem; }
.kopf .bildplatz { aspect-ratio: 1 / 1; max-width: 340px; }
/* Abschnitt nur aus Überschrift und Tafeln */
.tafel-kopf h2 { margin-top: 0; }
.kicker {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-deep);             /* 5,33:1 auf Sand */
  font-weight: 650; margin-bottom: .8rem;
}
.kopf h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.2vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);              /* 4,63:1 auf Sand */
}

/* ---------- Fließtext ---------- */
.text h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.2;
  margin: 2.6rem 0 .9rem;
  text-wrap: balance;
}
.textseite > h2:first-child { margin-top: 0; }
.textseite h2::after {    /* kurzer Strich im Ton des Abschnitts unter jeder Überschrift */
  content: ""; display: block; width: 38px; height: 3px; margin-top: .65rem;
  background: var(--ton-mitte, var(--pink)); border-radius: var(--radius-xs);
}
.text h3 {
  font-family: var(--sans); font-weight: 650;
  font-size: 1.02rem; color: var(--pink-deep);
  margin: 1.6rem 0 .4rem;
}
.text p { margin-bottom: 1rem; }
.text > p:last-child { margin-bottom: 0; }
.text ul { padding-left: 1.25rem; margin-bottom: 1.1rem; }
.text li { margin: .4rem 0; }
.text strong { font-weight: 650; }
.text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* Hervorgehobener Satz. Kein Zitat von jemandem — deshalb <p> mit Klasse und
   nicht <blockquote>: es ist eine Betonung, keine Quellenangabe. */
.merksatz {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  line-height: 1.4;
  color: var(--pink-deep);
  border-left: 4px solid var(--pink);
  padding: .2rem 0 .2rem 1.1rem;
  margin: 1.8rem 0;
}

/* ---------- Karte / Kasten ---------- */
.kasten {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}
.kasten h3 { margin-top: 0; }
.kasten p:last-child, .kasten ul:last-child { margin-bottom: 0; }

/* ---------- Drei Schritte ---------- */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.8rem 0; }
.schritt { min-width: 0; }
.schritt-nr {
  font-family: var(--display); font-size: 1.6rem;
  color: var(--pink-deep); line-height: 1;
}
.schritt h3 { margin: .5rem 0 .3rem; color: var(--ink); }
.schritt p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) { .schritte { grid-template-columns: 1fr; } }

/* ---------- Stilkacheln ---------- */
/* Zwei Spalten, nicht vier: die Vorlagen sind 560x419 (4:3, nachgemessen),
   und bei vier Spalten in der 720er Textspalte bleiben je 165 px — zu klein,
   um einen Zeichenstil zu beurteilen. Bei zwei Spalten sind es rund 345 px.
   aspect-ratio passt zur Quelle, damit nichts beschnitten wird. */
.stile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.6rem 0; }
.stil { min-width: 0; text-align: center; margin: 0; }
.stil img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--sand-deep);
}
.stil span { display: block; font-size: .86rem; margin-top: .4rem; color: var(--ink-soft); }
.stil .stil-leer { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); background: var(--sand-deep); }
@media (max-width: 520px) { .stile { grid-template-columns: 1fr; } }

/* ---------- FAQ ----------
   <details> statt Klapp-Skript: funktioniert ohne JavaScript, ist von sich aus
   bedienbar, und der Inhalt steht auch zugeklappt im Quelltext — Google liest
   ihn also, was bei einer Lösung per JavaScript nicht garantiert ist. */
.faq { margin: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 650; list-style: none;
  display: flex; align-items: flex-start; gap: .7rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; color: var(--pink-deep);
  font-weight: 400; font-size: 1.25rem; line-height: 1.15; flex: none;
}
.faq details[open] summary::before { content: "–"; }
.faq summary:hover { color: var(--blue); }
.faq details p { margin: .6rem 0 .2rem 1.6rem; color: var(--ink-soft); }

/* ---------- Passend dazu ---------- */
.dazu { margin: clamp(3rem, 7vw, 5rem) auto 0; }   /* auto, sonst hebt die Kurzform .wrap auf */
.dazu h2 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 1rem; }
.dazu ul { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.dazu li:nth-child(4n+1) a { border-top-color: var(--rose); }
.dazu li:nth-child(4n+2) a { border-top-color: var(--himmel); }
.dazu li:nth-child(4n+3) a { border-top-color: var(--salbei); }
.dazu li:nth-child(4n+4) a { border-top-color: var(--flieder); }
.dazu a {
  display: block; height: 100%; border-top-width: 3px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  transition: border-color .16s ease, transform .16s ease;
}
.dazu a:hover { border-color: var(--pink); transform: translateY(-2px); }
.dazu strong { display: block; font-weight: 650; color: var(--blue); }
.dazu span { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Handlungsaufruf ---------- */
.cta {
  margin: 3.2rem auto 0;   /* auto, sonst hebt die Kurzform .wrap auf */
  background: var(--blue-tint);
  border: 1px solid var(--blue-pastel);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  text-align: center;
}
.cta h2 { font-family: var(--display); font-size: 1.45rem; margin-bottom: .5rem; }
.cta p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem; border: 0; border-radius: var(--radius-sm);
  background: var(--cta); color: #fff;           /* Flieder, 5,2:1 */
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background-color .18s, transform .18s, box-shadow .18s;
}
.knopf:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta-fuss { font-size: .86rem; color: var(--ink-soft); margin-top: .8rem; }

/* ---------- Fuß ---------- */
.fuss {
  margin-top: 4rem;
  border-top: 1px solid var(--line); padding: 1rem 1.4rem;
  text-align: center; font-size: .85rem; color: var(--ink-faint);
}
.fuss a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.fuss p + p { margin-top: .4rem; }

.text, .dazu, .cta, .faq { padding-bottom: 0; }
main { padding-bottom: 1rem; }
