/* Kidixi-Startseite und Spendenseite. Alle Werte (Farben, Schriften, Rundung, Schatten) kommen aus /marke.css,
   die vorher eingebunden sein muss. Marke: docs/marke/logo.md. */
:root {
  /* Werte aus /marke.css (eine Quelle für die Kidixi-Welt). Hier nur die Namen dieser Seite. */
  --wald: var(--kx-wald);
  --wald-tief: var(--kx-wald-tief);
  --gruen: var(--kx-gruen);
  --minze: var(--kx-minze);
  --minze-tief: var(--kx-minze-tief);
  --bernstein: var(--kx-bernstein);
  --bernstein-tief: var(--kx-bernstein-tief);
  --sand: var(--kx-sand);
  --papier: var(--kx-flaeche);
  --text: var(--kx-text);
  --grau: var(--kx-text-leise);
  --linie: var(--kx-linie);
  --rund: var(--kx-r-karte);
  --schatten: var(--kx-schatten);
  --kopf: var(--kx-kopf);
  --lese: var(--kx-lese);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--text); font: 400 1.08rem/1.65 var(--lese); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wald); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--kopf); color: var(--wald); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.breit { width: min(1160px, 100% - 32px); margin-inline: auto; }
.schmal { width: min(760px, 100% - 32px); margin-inline: auto; }
.mitte { text-align: center; }
.klein { font-size: .93rem; color: var(--grau); }
.vorzeile { font: 700 .82rem/1.4 var(--lese); letter-spacing: .14em; text-transform: uppercase; color: var(--bernstein-tief); margin-bottom: .7em; }
.akzent { color: var(--bernstein-tief); }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7em 1.5em; border-radius: 999px;
  border: 2px solid var(--wald); background: var(--wald); color: #fff; font: 700 1.05rem/1.2 var(--kopf); text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s; }
.knopf:hover { background: var(--wald-tief); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16, 41, 31, .2); }
.knopf:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--bernstein); outline-offset: 3px; }
.knopf-hell { background: transparent; color: var(--wald); }
.knopf-hell:hover { background: var(--wald); color: #fff; }
.knopf-klein { min-height: 42px; padding: .45em 1.2em; font-size: .98rem; }
.knopf-warm { background: var(--bernstein); border-color: var(--bernstein); color: var(--wald-tief); }
.knopf-warm:hover { background: #FBBF24; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .8em; }
.knopfreihe.mitte { justify-content: center; }

.kopf { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.marke img { height: 38px; width: auto; }
.kopf-nav { display: flex; align-items: center; gap: 24px; font: 600 1rem var(--kopf); }
.kopf-nav a:not(.knopf) { color: var(--text); text-decoration: none; }
.kopf-nav a:not(.knopf):hover { color: var(--wald); text-decoration: underline; }

.held { background: radial-gradient(1200px 500px at 85% 10%, var(--minze-tief), transparent 60%), linear-gradient(180deg, var(--minze), #fff);
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.held-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.unterzeile { font-size: clamp(1.15rem, 2vw, 1.32rem); max-width: 36ch; }
.held-bild { margin: 0; }
.held-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; border-radius: 28px; box-shadow: var(--schatten); }
.foto { width: 100%; border-radius: var(--rund); box-shadow: var(--schatten); margin-top: 1.6em; }
.foto-hoch { max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; }
.dunkel .foto { box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }

.abschnitt { padding: clamp(60px, 8vw, 110px) 0; }
.hell { background: var(--sand); }
.dunkel { background: var(--wald); color: #E7F3EC; }
.dunkel h2 { color: #fff; } .dunkel .vorzeile { color: var(--bernstein); } .dunkel strong { color: #fff; }
.zwei { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.fliesstext { font-size: 1.12rem; }

/* Angebote: Lernwelt quer über die ganze Breite, darunter die Bücher (bis vier nebeneinander), unten „Was als Nächstes kommt“. */
.angebote { display: flex; flex-direction: column; gap: 20px; margin-top: 2.4em; }
.angebot { background: #fff; border-radius: var(--rund); padding: clamp(22px, 3vw, 32px); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.angebot-quer { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); padding: 0; overflow: hidden; }
.quer-foto { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 50% 45%; }
.quer-inhalt { padding: clamp(24px, 3.2vw, 40px); display: flex; flex-direction: column; }
.quer-inhalt h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.quer-inhalt .knopfreihe { margin-bottom: 0; }
.haken-zwei { columns: 2; column-gap: 28px; font-size: 1rem; }
.haken-zwei li { break-inside: avoid; }
.buecher { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.buecher .angebot { display: flex; flex-direction: column; }
.buecher .preiszeile { margin-top: auto; }
.buecher .knopfreihe { margin-bottom: 0; }
.angebot-leise { background: transparent; box-shadow: none; border: 2px dashed #D9CBB0; }
.angebot-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.marke-klein { font: 700 .8rem var(--lese); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.plakette { font: 700 .78rem var(--kopf); background: var(--minze-tief); color: var(--wald); border-radius: 999px; padding: .2em .8em; }
.plakette-warm { background: #FDE7C4; color: var(--bernstein-tief); }
.buch-bild img { width: min(62%, 180px); margin: 4px auto 16px; border-radius: 4px 10px 10px 4px; box-shadow: 14px 14px 30px rgba(16, 41, 31, .22); transform: rotate(-2deg); }
.preiszeile { font-size: .98rem; color: var(--grau); } .preiszeile strong { color: var(--bernstein-tief); font: 800 1.3rem var(--kopf); }
.haken { list-style: none; padding: 0; margin: 0 0 1em; }
.haken li { position: relative; padding-left: 1.8em; margin-bottom: .6em; }
.haken li::before { content: ""; position: absolute; left: .1em; top: .45em; width: .95em; height: .55em; border-left: 3px solid var(--gruen); border-bottom: 3px solid var(--gruen); transform: rotate(-45deg); }

.grundsaetze { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 2.4em; }
.grundsatz { background: var(--minze); border-radius: var(--rund); padding: 26px 22px; }
.grundsatz .nr { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bernstein); color: var(--wald-tief); font: 800 1.1rem var(--kopf); margin-bottom: 12px; }
.grundsatz p { margin: 0; font-size: 1rem; }

.kacheln { list-style: none; padding: 0; margin: 2.4em 0 1.4em; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kacheln li { border: 1px solid var(--linie); border-radius: var(--rund); padding: 22px; background: #fff; }
.kacheln strong { display: block; font: 700 1.15rem var(--kopf); color: var(--wald); margin-bottom: .3em; }
.kacheln span { font-size: 1rem; color: var(--text); }

.schluss { background: linear-gradient(135deg, var(--wald), #2D6A4F); color: #E7F3EC; padding: clamp(60px, 8vw, 100px) 0; }
.schluss h2 { color: #fff; } .schluss .klein { color: #B7D9C5; }
.schluss-foto { background: linear-gradient(rgba(16, 41, 31, .58), rgba(16, 41, 31, .72)), url("/start/bilder/testfamilie-2000.jpg") center 45% / cover no-repeat;
  padding: clamp(90px, 12vw, 160px) 0; }
@media (max-width: 1000px) { .schluss-foto { background-image: linear-gradient(rgba(16, 41, 31, .58), rgba(16, 41, 31, .72)), url("/start/bilder/testfamilie-1000.jpg"); } }

details { background: #fff; border: 1px solid var(--linie); border-radius: 14px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 52px 18px 20px; font: 700 1.1rem/1.35 var(--kopf); color: var(--wald); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--bernstein-tief); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 8px; }

.fuss { background: var(--wald-tief); color: #B7D9C5; padding: 48px 0 24px; font-size: .95rem; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.fuss nav { display: flex; flex-direction: column; gap: 6px; }
.fuss strong { color: #fff; font-family: var(--kopf); font-size: 1.05rem; margin-bottom: 4px; }
.fuss a { color: #E7F3EC; text-decoration: none; } .fuss a:hover { text-decoration: underline; }
.fuss img { height: 34px; width: auto; margin-bottom: 10px; }
.fuss-unten { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .85rem; }

/* Spende „Jedes Buch hilft“ (seit 30.10.2026): Band im Einstieg, Zeile an jedem Buch, eigener Abschnitt. */
.herz { width: 1.15em; height: 1.15em; flex: none; fill: var(--bernstein-tief); }
.spende-band { display: inline-flex; align-items: center; gap: .6em; margin: .2em 0 1em; padding: .65em 1.1em; border-radius: 999px;
  background: #fff; border: 1px solid #F3D9A4; box-shadow: var(--schatten); color: var(--text); font-size: 1rem; line-height: 1.4; text-decoration: none; }
.spende-band:hover { border-color: var(--bernstein); }
.spende-band strong { color: var(--wald); font-family: var(--kopf); }
.spende-zeile { display: flex; align-items: flex-start; gap: .5em; font-size: .93rem; line-height: 1.45; color: var(--text); margin: -.4em 0 1em; }
.spende-zeile .herz { margin-top: .12em; }
.spende { background: linear-gradient(180deg, #FFF8EC, #fff); }
.spende h2 [data-je-buch] { color: var(--bernstein-tief); }
.spende .knopfreihe { margin-top: 1.6em; }
.spende-stand { grid-template-columns: repeat(3, 1fr); margin: 1.6em 0 0; }
.spende-stand strong { font-size: 1.7rem; color: var(--bernstein-tief); }
.spende-stand span { font-size: .93rem; }

@media (max-width: 980px) {
  .angebot-quer { grid-template-columns: 1fr; } .quer-foto { aspect-ratio: 16 / 9; height: auto; }
  .grundsaetze, .kacheln { grid-template-columns: 1fr 1fr; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .haken-zwei { columns: 1; }
  .held-raster, .zwei, .grundsaetze, .kacheln, .fuss-raster { grid-template-columns: 1fr; }
  .spende-band { border-radius: 18px; }
  .held-bild { order: -1; } .held-bild img { border-radius: var(--rund); }
  .foto-hoch { max-width: 100%; aspect-ratio: 4 / 3; object-position: 50% 35%; }
  .kopf-nav a:not(.knopf) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
