@font-face { font-family: "Fredoka One"; src: url("schriften/FredokaOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Andika"; src: url("schriften/Andika-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("schriften/Andika-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blau: #0d4b8c;
  --blau-dunkel: #08345f;
  --gelb: #ffd21f;
  --gelb-hell: #fff6cc;
  --orange: #f47c0a;
  --orange-dunkel: #b85a00;
  --text: #1d2733;
  --text-2: #4a5866;
  --flaeche: #ffffff;
  --flaeche-2: #f5f8fc;
  --linie: #dbe4ee;
  --radius: 18px;
  --schatten: 0 6px 22px rgba(13, 75, 140, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Andika", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--flaeche);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: "Fredoka One", "Andika", system-ui, sans-serif; font-weight: 400; color: var(--blau); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; margin-bottom: .3em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.weite { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sprung { position: absolute; left: -999px; top: 8px; background: var(--blau); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.sprung:focus { left: 8px; }

/* Kopf */
.kopf { background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 5; }
.kopf .weite { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.kopf .logo img { height: 46px; width: auto; }
.kopf nav { display: flex; gap: 20px; align-items: center; }
.kopf nav a { text-decoration: none; font-weight: 700; color: var(--blau); font-size: 1rem; }
.kopf nav a:hover { text-decoration: underline; }
.kopf nav .knopf { color: #fff; }
.kopf nav .knopf:hover { text-decoration: none; }

/* Knöpfe */
.knopf {
  display: inline-block; background: var(--orange-dunkel); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font-family: "Fredoka One", "Andika", sans-serif; font-size: 1.1rem; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 4px 0 #8a4300; transition: transform .08s ease, box-shadow .08s ease;
}
.knopf:hover { transform: translateY(-1px); }
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a4300; }
.knopf-klein { font-size: .95rem; padding: 9px 18px; background: var(--blau); box-shadow: 0 3px 0 var(--blau-dunkel); }
.knopf-klein:active { box-shadow: 0 1px 0 var(--blau-dunkel); }
.knopf-hell { background: #fff; color: var(--blau); box-shadow: 0 4px 0 #c9d6e4; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--gelb-hell) 0%, #fff 100%); padding: 56px 0 64px; }
.hero .weite { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero .slogan { font-family: "Fredoka One", sans-serif; color: var(--orange-dunkel); font-size: 1.15rem; margin-bottom: .6em; }
.hero p.einleitung { font-size: 1.2rem; color: var(--text-2); max-width: 38em; }
.hero .aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero .sterni { max-width: 340px; justify-self: center; border-radius: 50%; box-shadow: var(--schatten); }
.punkte { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.punkte li { background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: 4px 14px; font-size: .95rem; }
.punkte li::before { content: "★ "; color: var(--gelb); -webkit-text-stroke: .6px var(--orange-dunkel); }

/* Abschnitte */
.abschnitt { padding: 64px 0; }
.abschnitt-grau { background: var(--flaeche-2); }
.einleitung-mitte { max-width: 44em; }

.vorteile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.vorteil { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; }
.vorteil h3 { font-size: 1.2rem; }
.vorteil p { margin: 0; color: var(--text-2); font-size: 1rem; }

/* Gratis-Heft */
.gratis { background: var(--blau); color: #fff; }
.gratis h2, .gratis h3 { color: #fff; }
.gratis .weite { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.gratis .cover { background: #fff; padding: 10px; border-radius: 12px; transform: rotate(-2deg); box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: 320px; justify-self: center; }
.gratis .heft-info { color: var(--gelb); font-weight: 700; }
.formular { background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px; margin-top: 18px; }
.formular label.feld { display: block; font-weight: 700; margin-bottom: 6px; }
.formular .zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.formular input[type="email"] {
  flex: 1 1 240px; font: inherit; padding: 12px 16px; border: 2px solid var(--linie); border-radius: 12px; min-width: 0;
}
.formular input[type="email"]:focus { border-color: var(--blau); }
.formular .einwilligung { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .92rem; color: var(--text-2); }
.formular .einwilligung input { margin-top: 5px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--blau); }
.formular .klein { font-size: .85rem; color: var(--text-2); margin: 12px 0 0; }
.formular .meldung { margin: 12px 0 0; font-weight: 700; }
.formular .meldung.fehler { color: #b3261e; }
.formular .meldung.ok { color: #1b6e2f; }
.honig { position: absolute; left: -5000px; }
.formular fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formular fieldset[disabled] { opacity: .5; }
.formular select, .formular textarea, .formular input[type="text"] {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--linie); border-radius: 12px; background: #fff; color: var(--text);
}
.formular textarea { resize: vertical; }
.formular select:focus, .formular textarea:focus, .formular input[type="text"]:focus { border-color: var(--blau); outline: none; }
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.formular input[type="email"] { width: 100%; }
.formular .knopf { margin-top: 16px; }
.formular .raster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.formular label.feld + textarea, .formular textarea + label.feld { margin-top: 0; }
.formular textarea { margin-bottom: 14px; }
.formular [aria-invalid="true"] { border-color: #b3261e; }
.bald-marke { display: inline-block; vertical-align: middle; background: var(--gelb); color: var(--blau-dunkel); font-family: "Andika", system-ui, sans-serif; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 99px; margin-left: 6px; }
.bald-hinweis { background: var(--gelb-hell); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 700; }
.verbunden [data-bald] { display: none; }
.wunsch { background: var(--gelb-hell); }
.wunsch .formular { box-shadow: var(--schatten); }
.weite.schmal { max-width: 760px; }
.abstand-oben { margin-top: 40px; }
section[id] { scroll-margin-top: 84px; }

/* Hefte */
.sprungleiste { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; padding: 0; list-style: none; }
.sprungleiste a { display: inline-block; text-decoration: none; background: var(--gelb-hell); border: 1px solid #f1dc84; color: var(--blau-dunkel); padding: 6px 16px; border-radius: 999px; font-weight: 700; }
.sprungleiste a:hover { background: var(--gelb); }
.gruppe { margin-top: 44px; scroll-margin-top: 90px; }
.gruppe-satz { color: var(--text-2); margin-top: -4px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(13,75,140,.05); transition: box-shadow .15s ease, transform .15s ease; }
.karte:hover { box-shadow: var(--schatten); transform: translateY(-2px); }
.karte-bild { position: relative; display: block; background: var(--flaeche-2); padding: 14px 14px 0; }
.karte-bild img { border-radius: 6px 6px 0 0; box-shadow: 0 2px 10px rgba(0,0,0,.12); aspect-ratio: 210 / 297; object-fit: cover; object-position: top; width: 100%; }
.abzeichen { position: absolute; top: 22px; right: 22px; background: var(--orange-dunkel); color: #fff; font-family: "Fredoka One", sans-serif; padding: 3px 12px; border-radius: 999px; font-size: .9rem; }
.karte-text { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.karte-text p { font-size: .98rem; color: var(--text-2); }
.karte-meta { font-size: .85rem !important; font-weight: 700; color: var(--orange-dunkel) !important; margin-bottom: .4em; }
.karte-text .knopf { margin-top: auto; align-self: flex-start; }
.alle-link { margin-top: 36px; }

/* KI + Über */
.ki { border-left: 6px solid var(--gelb); background: #fff; padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 52em; }
.sozial { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 18px 0 0; }
.sozial a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 2px solid var(--blau); border-radius: 999px; padding: 6px 16px; font-weight: 700; }
.sozial a:hover { background: var(--blau); color: #fff; }

/* Fuß */
.fuss { background: var(--blau-dunkel); color: #dfe8f2; padding: 36px 0; font-size: .95rem; }
.fuss .weite { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.fuss a { color: #fff; }
.fuss nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Rechtstexte */
.recht { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.recht h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); overflow-wrap: anywhere; hyphens: auto; }
.recht h2 { font-size: 1.3rem; margin-top: 1.8em; }
.recht .platzhalter { background: #fff3cd; border: 1px dashed #c99a00; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 900px) {
  .hero .weite, .gratis .weite { grid-template-columns: 1fr; }
  .hero .sterni { max-width: 200px; grid-row: 1; }
  .vorteile { grid-template-columns: 1fr 1fr; }
  .gratis .cover { max-width: 220px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .kopf nav a:not(.knopf) { display: none; }
  .kopf .logo img { height: 38px; }
  .kopf nav .knopf { padding: 9px 16px; font-size: .95rem; }
  .vorteile { grid-template-columns: 1fr; }
  .abschnitt { padding: 48px 0; }
  .hero { padding: 28px 0 44px; }
  .hero .sterni { max-width: 140px; }
  .karten { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .karte-bild { padding: 10px 10px 0; }
  .karte-text { padding: 12px 12px 16px; }
  .karte-text p:not(.karte-meta) { display: none; }
  .karte-text h4 { font-size: 1rem; }
  .karte-text .knopf { font-size: .82rem; padding: 8px 10px; align-self: stretch; text-align: center; }
  .abzeichen { top: 14px; right: 14px; font-size: .8rem; }
  .formular { padding: 18px; }
  .formular .knopf { width: 100%; }
  .formular .raster { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .karte, .knopf { transition: none; }
}

/* Lehrkräfte-Liste und häufige Fragen */
.liste { margin: 0 0 1em; padding-left: 1.3em; }
.liste li { margin-bottom: .35em; }
.fragen { max-width: 52em; }
.fragen details { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 10px; }
.fragen summary { cursor: pointer; font-weight: 700; color: var(--blau); }
.fragen details[open] summary { margin-bottom: .6em; }
.fragen details p { margin: 0; }
