@font-face { font-family: "Source Serif 4"; src: url(schriften/source-serif-4.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(schriften/source-sans-3.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(schriften/caveat-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Farben aus dem Logo: Tinte #2b2a29, Rot #e31e24 */
  --tinte: #2b2a29;
  --tinte-weich: #55524f;
  --rot: #e31e24;
  --rot-tief: #b8141a;
  --papier: #ffffff;
  --papier-warm: #f6f3ee;
  --linie: #e4dfd7;
  --karo: #dfe7ee;
  --tafel: #2e4a40;
  --kreide: #f3f1ea;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --breite: 1160px;
  --rand: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--tinte); background: var(--papier); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.leise { color: var(--tinte-weich); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 92px; }

/* Entwurfsleiste: nur im Prototyp */
.entwurf { background: #fff7d6; border-bottom: 1px solid #eadb9a; font-size: 14px; }
.entwurf .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.entwurf button { font: inherit; font-weight: 600; white-space: nowrap; background: none; border: 1px solid #b59a2b; border-radius: 6px; padding: 2px 10px; cursor: pointer; color: #6b5a12; }
body.pruefen-an .pruefen { background: #fff1a8; box-shadow: 0 0 0 3px #fff1a8; border-radius: 3px; color: var(--tinte); }
body.pruefen-an .pruefen[data-hinweis]::after { content: " (" attr(data-hinweis) ")"; font: italic 600 13px/1.3 var(--sans); color: #7a6200; }
.nur-pruefen { display: none; }
body.pruefen-an .nur-pruefen { display: block; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; gap: 24px; height: 84px; }
.kopf .logo img { height: 66px; width: auto; }
.nav { display: flex; gap: 20px; margin-left: auto; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rot); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 700 17px/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.knopf-rot { background: var(--rot); color: #fff; }
.knopf-rot:hover { background: var(--rot-tief); }
.knopf-rand { border-color: var(--tinte); color: var(--tinte); background: transparent; }
.knopf-rand:hover { background: var(--tinte); color: #fff; }
.kopf .knopf { min-height: 42px; padding: 0 16px; font-size: 16px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Startbereich: Rechenheft mit rotem Rand */
.start { position: relative; background-color: #fbfcfd; background-image: linear-gradient(var(--karo) 1px, transparent 1px), linear-gradient(90deg, var(--karo) 1px, transparent 1px); background-size: 22px 22px; border-bottom: 1px solid var(--linie); overflow: hidden; }
.start .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 84px); }
.start .wrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rand) - 18px); width: 2px; background: var(--rot); opacity: .55; }
.start .claim { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 14px; color: var(--tinte-weich); }
.start .claim b { color: var(--rot); font-weight: 700; }
.start h1 { max-width: 18ch; }
.start .einleitung { font-size: 1.15rem; max-width: 34em; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; align-items: center; position: relative; }
.notiz { font-family: var(--hand); color: var(--rot); font-size: 1.6rem; line-height: 1; transform: rotate(-4deg); display: inline-block; margin-left: 6px; }
.haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-weight: 600; }
.haken li { display: flex; gap: 10px; align-items: flex-start; }
.haken .ico { color: var(--rot); margin-top: 4px; }
.telefone { margin: 18px 0 0; font-size: 16px; color: var(--tinte-weich); }
.telefone a { color: var(--tinte); font-weight: 700; text-decoration: none; white-space: nowrap; }
.telefone a:hover { text-decoration: underline; }

.start .bild { position: relative; }
.hausfoto { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(43,42,41,.14); background: var(--papier-warm); }
.hausfoto img { width: 100%; height: auto; aspect-ratio: 660 / 506; object-fit: cover; }
.hausfoto .herkunft { position: absolute; right: 10px; top: 10px; }
.adresskarte { position: absolute; left: -18px; bottom: -18px; background: var(--tinte); color: #fff; border-radius: var(--radius); padding: 12px 16px; font-size: 15px; line-height: 1.35; box-shadow: 0 8px 24px rgba(43,42,41,.18); text-align: left; }
.adresskarte b { display: block; font-size: 16px; }

.fotoplatz { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--papier-warm); border: 2px dashed #cbc3b6; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--tinte-weich); font-size: 15px; }
.fotoplatz .ico { width: 34px; height: 34px; margin: 0 auto 8px; stroke-width: 1.6; }
.fotoplatz strong { display: block; color: var(--tinte); font-size: 16px; margin-bottom: 2px; }

.aktuell { background: var(--tinte); color: #fff; font-size: 17px; }
.aktuell p { margin: 0; padding: 14px 0; }
.aktuell a { color: #fff; font-weight: 700; white-space: nowrap; }

/* Abschnitte */
.abschnitt { padding: clamp(56px, 8vw, 104px) 0; }
.abschnitt.warm { background: var(--papier-warm); }
.kopfzeile { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.kopfzeile p { font-size: 1.1rem; }

/* Über uns: Brief der Inhaberin */
.ueber { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.portrait .fotoplatz { display: none; aspect-ratio: 4 / 5; }
.portrait.fehlt img { display: none; }
.portrait.fehlt .fotoplatz { display: grid; }
.portrait figcaption { font-size: 15px; color: var(--tinte-weich); margin-top: 10px; }
.brief p { font-size: 1.12rem; }
.unterschrift { font-family: var(--hand); font-size: 2.2rem; color: var(--tinte); margin: 6px 0 0; line-height: 1; }
.unterschrift + small { color: var(--tinte-weich); }

/* Wann Familien kommen */
.anlaesse { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.anlaesse li { padding: 18px 0 18px 34px; border-top: 1px solid var(--linie); position: relative; font-size: 1.12rem; }
.anlaesse li::before { content: ""; position: absolute; left: 4px; top: 29px; width: 14px; height: 2px; background: var(--rot); }
.antwort { margin-top: 36px; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; max-width: 30em; font-weight: 600; }

/* Wie es bei uns zugeht */
.zweispalt { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.punkte { margin: 0; padding: 0; list-style: none; }
.punkte li { padding: 22px 0; border-top: 1px solid var(--linie); }
.punkte li:last-child { border-bottom: 1px solid var(--linie); }
.punkte h3 { margin-bottom: 6px; }
.punkte p { margin: 0; }
.zitat-alt { font-family: var(--hand); font-size: 1.7rem; color: var(--rot); line-height: 1.1; margin-top: 18px; transform: rotate(-2deg); }

/* Angebot */
.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.stufe { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 22px 18px; }
.stufe .klasse { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--rot); line-height: 1.1; }
.stufe h3 { margin: 4px 0 8px; }
.stufe p { margin: 0; font-size: 16.5px; }
.faecher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.faecher li { padding: 16px 0; border-top: 1px solid var(--linie); }
.faecher b { font-family: var(--serif); font-size: 1.2rem; display: block; }
.faecher span { color: var(--tinte-weich); font-size: 16px; }
.formate { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-weight: 600; }
.formate span { display: inline-flex; align-items: center; gap: 8px; }
.formate .ico { color: var(--rot); }

/* Ablauf auf der Tafel */
.tafel { background: var(--tafel); color: var(--kreide); }
.tafel h2 { color: #fff; }
.tafel .kopfzeile p { color: #d9dfd6; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin: 0 0 40px; padding: 0; list-style: none; counter-reset: s; }
.schritte li { counter-increment: s; border-top: 2px solid rgba(243,241,234,.35); padding-top: 18px; }
.schritte li::before { content: counter(s); font-family: var(--hand); font-size: 3rem; line-height: 1; color: #fff; display: block; margin-bottom: 6px; }
.schritte h3 { color: #fff; }
.schritte p { margin: 0; color: #dfe4dc; }
.tafel .knopf-rand { border-color: var(--kreide); color: var(--kreide); }
.tafel .knopf-rand:hover { background: var(--kreide); color: var(--tafel); }

/* Stimmen */
.stimmen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stimme { border: 2px dashed #cbc3b6; border-radius: var(--radius); padding: 22px; color: var(--tinte-weich); font-size: 16px; background: #fff; }
.stimme b { color: var(--tinte); display: block; margin-bottom: 6px; }

/* Preise */
.preise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.preis { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px 24px; }
.preis h3 { margin-bottom: 4px; }
.preis .betrag { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; margin: 12px 0 2px; line-height: 1.1; }
.preis .einheit { color: var(--tinte-weich); font-size: 15px; margin-bottom: 10px; }
.je-stunde { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; background: var(--papier-warm); font-size: 15px; font-weight: 600; color: var(--tinte); white-space: nowrap; }
.am-tisch { font-size: 15.5px; font-weight: 600; color: var(--tinte); margin: -6px 0 16px; }
.pk-preis .am-tisch { margin: -4px 0 14px; }
.pk-preis .je-stunde { display: table; margin: 0 auto 14px; }
.aufholen { position: relative; border-color: var(--rot); margin-top: 34px; }
.aufholen .marke { position: absolute; top: -15px; left: 26px; background: var(--rot); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 600; }
.preis-rechnung { font-size: 15px; margin: 14px 0 0; max-width: 820px; }
.pk-liste .pk-zweimal { border-color: var(--rot); }
.preis ul { margin: 0; padding-left: 20px; font-size: 16.5px; }
.preis-fuss { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 24px 40px; margin-top: 28px; font-size: 16.5px; align-items: start; }
.preis-fuss p { margin: 0; }
.preis-fuss b { display: block; font-size: 17px; }

/* Fragen */
.fragen { max-width: 820px; }
.fragen details { border-top: 1px solid var(--linie); }
.fragen details:last-child { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--tinte); border-bottom: 2px solid var(--tinte); transform: rotate(45deg); transition: transform .15s; }
.fragen details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.fragen details p { margin: 0 0 18px; max-width: 42em; }

/* Standorte und Kontakt */
.standorte { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.standort { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.standort h3 { font-size: 1.5rem; margin-bottom: 2px; }
.standort .lage { color: var(--tinte-weich); margin-bottom: 14px; }
.standort .gross { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 10px; }
.standort dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 14px; font-size: 16.5px; }
.standort dt { font-weight: 700; }
.standort dd { margin: 0; }
.erreichbar { font-size: 16.5px; margin: -12px 0 28px; }

.kontakt { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
form { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 17px/1.4 var(--sans); color: var(--tinte); padding: 11px 12px; border: 1px solid #c9c2b8; border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--tinte); outline-offset: 1px; border-color: var(--tinte); }
textarea { min-height: 96px; resize: vertical; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wahl label { margin: 0; font-weight: 600; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl span { display: inline-block; padding: 7px 14px; border: 1px solid #c9c2b8; border-radius: 999px; cursor: pointer; font-size: 15.5px; user-select: none; }
.wahl input:checked + span { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.wahl input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 2px; }
.feldgruppe { border: 0; padding: 0; margin: 0 0 14px; }
.feldgruppe legend { font-weight: 600; font-size: 16px; padding: 0; }
.hinweis { font-size: 14.5px; color: var(--tinte-weich); margin: 4px 0 16px; }
.danke { display: none; padding: 18px; border-radius: 8px; background: #eaf3ee; border: 1px solid #b9d6c5; margin-top: 14px; }
form.gesendet .danke { display: block; }
.kontakt-text p { font-size: 1.1rem; }

/* Fuß */
.fuss { background: var(--tinte); color: #e9e6e1; padding: 48px 0; font-size: 16px; }
.fuss .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.fuss img { height: 92px; width: auto; margin-bottom: 12px; }
.fuss a { color: #fff; }
.fuss h3 { color: #fff; font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin-bottom: 8px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fuss p { margin: 0 0 6px; }
.fuss .jobs { border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 16px; }

/* Rechtstexte */
.rechtstext { max-width: 46em; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.rechtstext h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.rechtstext h2 { font-size: 1.35rem; margin-top: 1.8em; }
.rechtstext p, .rechtstext li { font-size: 17px; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext .stand { color: var(--tinte-weich); }
.zurueck { display: inline-block; margin-bottom: 18px; font-weight: 600; }

/* Leiste unten auf dem Handy */
.leiste { display: none; }

@media (max-width: 1060px) {
  .nav { gap: 16px; font-size: 15.5px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .kopf .knopf { margin-left: auto; }
  .start .wrap, .zweispalt, .ueber, .kontakt { grid-template-columns: 1fr; }
  .start .bild { order: -1; max-width: 560px; }
  .stufen, .preise, .schritte { grid-template-columns: 1fr; }
  .preis-fuss { grid-template-columns: 1fr; }
  .faecher { grid-template-columns: 1fr 1fr; }
  .stimmen { grid-template-columns: 1fr; }
  .fuss .wrap { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .kopf .wrap { height: 68px; }
  .kopf .logo img { height: 52px; }
  .kopf .knopf { display: none; }
  .start .wrap::before { left: 8px; }
  .start .bild { margin-bottom: 8px; }
  .adresskarte { position: relative; left: 0; bottom: 0; display: inline-block; margin: -22px 0 0 12px; }
  .anlaesse, .faecher, .standorte { grid-template-columns: 1fr; }
  .feldreihe { grid-template-columns: 1fr; }
  .aktionen .knopf { width: 100%; }
  .notiz { margin: 4px 0 0 4px; }
  .entwurf .wrap { font-size: 13px; }
  .fuss { padding-bottom: 110px; }
  .fuss .wrap { grid-template-columns: 1fr; }
  .leiste { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linie); box-shadow: 0 -4px 16px rgba(43,42,41,.08); }
  .leiste .knopf { min-height: 48px; padding: 0 10px; font-size: 16px; }
}

/* Warum Nachhilfe */
.gruende { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.gruende li { border-top: 3px solid var(--tinte); padding-top: 16px; }
.gruende .zahl { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--rot); margin-bottom: 8px; display: block; }
.gruende p { margin: 0 0 8px; }
.gruende .beleg { font-size: 14.5px; color: var(--tinte-weich); }
.weiter { margin-top: 28px; font-weight: 700; }

/* Ratgeber */
.beitraege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.beitrag { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.beitrag:hover { border-color: var(--tinte); }
.beitrag h3 { margin: 0; font-size: 1.2rem; }
.beitrag h3 a { text-decoration: none; }
.beitrag h3 a::after { content: ""; position: absolute; inset: 0; }
.beitrag p { margin: 0; font-size: 16.5px; color: var(--tinte-weich); }
.rubrik { font-size: 14px; font-weight: 700; color: var(--rot); }
.datum { font-size: 14px; color: var(--tinte-weich); margin-top: auto; }
.beitrag.geplant { background: transparent; border-style: dashed; }
.rubriken { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rubriken button { font: 600 15.5px/1 var(--sans); padding: 9px 14px; border: 1px solid #c9c2b8; border-radius: 999px; background: #fff; color: var(--tinte); cursor: pointer; }
.rubriken button[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }

/* Beitrag */
.artikel { max-width: 46em; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.artikel .pfad { font-size: 15px; color: var(--tinte-weich); margin-bottom: 18px; }
.artikel .pfad a { color: var(--tinte-weich); }
.artikel h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.artikel .vorspann { font-size: 1.2rem; line-height: 1.55; }
.artikel .meta { font-size: 15px; color: var(--tinte-weich); margin-bottom: 26px; }
.artikel h2 { font-size: 1.55rem; margin-top: 1.6em; }
.artikel h3 { margin-top: 1.4em; }
.artikel p, .artikel li { font-size: 18px; }
.artikel ul, .artikel ol { padding-left: 1.3em; }
.artikel li { margin-bottom: 6px; }
.kurzgesagt { background: var(--papier-warm); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.kurzgesagt b:first-child { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 6px; }
.kurzgesagt ul { margin: 0; }
.termine { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 17px; }
.termine th, .termine td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.termine th { font-weight: 700; width: 38%; font-variant-numeric: tabular-nums; }
.tabellenrahmen { overflow-x: auto; }
.einladung { border: 2px solid var(--tinte); border-radius: var(--radius); padding: 22px; margin: 36px 0 28px; }
.einladung h2 { margin-top: 0; font-size: 1.35rem; }
.quellen { font-size: 15px; color: var(--tinte-weich); border-top: 1px solid var(--linie); padding-top: 14px; margin-top: 30px; }
.quellen ol { padding-left: 1.2em; }
.quellen li { font-size: 15px; }

@media (max-width: 960px) {
  .gruende, .beitraege { grid-template-columns: 1fr; }
}

/* hidden muss die Klassenregel schlagen */
[hidden] { display: none !important; }

/* Prüfungskurs unter den Preisen */
.pruefungskurs { display: grid; grid-template-columns: 1fr auto; gap: 20px 48px; align-items: center; margin-top: 24px; padding: 26px 28px; border: 2px solid var(--tinte); border-radius: var(--radius); background: #fff; }
.pruefungskurs h3 { font-size: 1.4rem; }
.pruefungskurs p { margin: 0 0 10px; }
.pruefungskurs p:last-child { margin-bottom: 0; }
.pk-preis { text-align: center; }
.pk-preis .betrag { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.pk-preis .einheit { color: var(--tinte-weich); font-size: 15px; margin-bottom: 12px; }
@media (max-width: 760px) { .pruefungskurs { grid-template-columns: 1fr; } .pk-preis { text-align: left; } .pk-preis .je-stunde { margin-left: 0; } }
@media (max-width: 1100px) and (min-width: 761px) { .pk-liste { grid-template-columns: repeat(2, 1fr); } }

/* Tabellen in Beiträgen auf dem Handy kompakter */
@media (max-width: 640px) { .termine { font-size: 15px; } .termine th, .termine td { padding: 8px 5px; } .termine th { width: auto; } }

/* Nur ein Standort */
.standorte.eins { grid-template-columns: 1fr; max-width: 560px; }

/* Überschrift läuft neben der Liste mit */
@media (min-width: 961px) { #aufgehoben .zweispalt > div:first-child { position: sticky; top: 120px; } }

/* Bücherregal: Wand, Brett, Bücher mit Stoffeinband und Seitenschnitt, Tafel darunter */
.regal { position: relative; border-radius: 14px; padding: 10px 24px 0; background: linear-gradient(180deg, #f4ece1 0%, #ece0cf 100%); overflow: hidden; }
.regal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% -15%, rgba(255, 210, 140, .55), transparent 70%); pointer-events: none; }
.regal-reihe { position: relative; display: flex; align-items: flex-end; justify-content: flex-start; justify-content: safe center; gap: clamp(12px, 1.6vw, 20px); perspective: 1300px; perspective-origin: 50% 20%; padding: 26px 12px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.regal-reihe::-webkit-scrollbar { display: none; }
.buch { position: relative; flex: 0 0 auto; width: 124px; height: calc(var(--hoehe, 196px) * .94); scroll-snap-align: center; transform-style: preserve-3d; transform: rotateY(-22deg); transition: transform .35s cubic-bezier(.2,.7,.2,1); text-decoration: none; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.buch:hover, .buch:focus-visible { transform: rotateY(-10deg) translateY(-12px); }
.buch[aria-pressed="true"] { transform: rotateY(-6deg) translateY(-18px); }
.buch:focus-visible { outline: none; }
.buch:focus-visible .buch-deckel { outline: 3px solid var(--rot); outline-offset: 3px; }
.buch-deckel { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; background-color: var(--deckel, #2e4a40); background-image: linear-gradient(90deg, rgba(0,0,0,.32) 0, rgba(0,0,0,.08) 7%, rgba(255,255,255,.14) 8.5%, rgba(255,255,255,0) 12%), linear-gradient(160deg, rgba(255,255,255,.10), rgba(0,0,0,.12)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 6px 10px 18px -6px rgba(60,35,10,.45); color: var(--schrift, #f3e6c6); display: flex; flex-direction: column; padding: 16px 12px 12px 18px; text-align: left; backface-visibility: hidden; }
.buch-deckel::before { content: ""; position: absolute; inset: 8px 7px 8px 13px; border: 1px solid rgba(243, 230, 198, .45); border-radius: 2px 5px 5px 2px; pointer-events: none; }
.buch-reihe { font: 600 10.5px/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.buch-titel { font: 700 1rem/1.15 var(--serif); margin-top: 8px; hyphens: manual; overflow-wrap: normal; }
.buch-zeichen { margin-top: auto; font: 600 1.25rem/1 var(--serif); opacity: .9; }
.buch-band { margin-top: auto; font: 600 11px/1 var(--sans); letter-spacing: .05em; opacity: .75; }
.buch-seiten { position: absolute; top: 3px; bottom: 3px; right: 0; width: 20px; transform-origin: 100% 50%; transform: rotateY(-90deg); background: repeating-linear-gradient(90deg, #fbf7ee 0 2px, #e6dccb 2px 3px); border-radius: 0 2px 2px 0; }
.regal-tipp { font-size: 15px; margin: 10px 0 0; }
@media (hover: hover) { .regal-tipp { display: none; } }
.regal-brett { position: relative; height: 18px; margin: 0 -24px; background: linear-gradient(180deg, #c08f60 0, #a97847 45%, #87592f 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 18px 28px -14px rgba(70,40,15,.55); }
.regal-fuss { height: 26px; margin: 0 -24px; background: linear-gradient(180deg, rgba(70,40,15,.10), transparent); }
.regal-tafel { margin-top: 18px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
.regal-tafel .tafel-rubrik { margin: 0; font-size: 14px; font-weight: 700; color: var(--rot); }
.regal-tafel .tafel-titel { margin: 0; font-size: 1.35rem; }
.regal-tafel .tafel-text { margin: 0; grid-column: 1; color: var(--tinte-weich); }
.regal-tafel .tafel-knopf { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 760px) {
  .regal { padding: 26px 0 0; }
  .regal-reihe { scroll-snap-type: x mandatory; padding: 22px 20px 4px; gap: 14px; }
  .buch { width: 116px; height: calc(var(--hoehe, 196px) * .88); }
  .regal-brett, .regal-fuss { margin: 0; }
  .regal-tafel { grid-template-columns: 1fr; }
  .regal-tafel .tafel-knopf { grid-column: 1; grid-row: auto; justify-self: start; }
  .regal-tafel { padding: 18px; }
}

/* Fotos: ruhig eingebettet, Nachweis nur im Impressum */
.foto { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--papier-warm); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-aufgehoben { aspect-ratio: 3 / 2; margin-top: 28px; box-shadow: 0 14px 34px -18px rgba(43,42,41,.45); }
.anlaesse-mit-bild { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.anlaesse-mit-bild .anlaesse { grid-template-columns: 1fr; }
.foto-anlaesse { aspect-ratio: 4 / 5; }
.foto-anlaesse img { object-position: 60% 50%; }
.beitrag .beitrag-bild { margin: -22px -22px 6px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 9; }
.artikel-bild { aspect-ratio: 16 / 9; margin: 6px 0 28px; }
@media (max-width: 760px) {
  .anlaesse-mit-bild { grid-template-columns: 1fr; }
  .foto-anlaesse { aspect-ratio: 16 / 10; }
}

/* Sätze vom Küchentisch als Sprechblasen: Kinder links, Eltern rechts */
.saetze { display: flex; flex-direction: column; gap: 16px; }
.satz { position: relative; max-width: 88%; margin: 0; padding: 14px 20px 16px; border-radius: 20px; background: #fff; border: 1.5px solid var(--linie); font: 600 clamp(1.45rem, 2.2vw, 1.8rem)/1.2 var(--hand); color: var(--tinte); box-shadow: 0 8px 20px -14px rgba(43,42,41,.35); }
.satz .wer { display: block; font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-weich); margin-bottom: 6px; }
.satz::after { content: ""; position: absolute; bottom: -8px; width: 16px; height: 16px; background: inherit; border: inherit; border-top: 0; border-left: 0; }
.satz-kind { align-self: flex-start; border-bottom-left-radius: 6px; transform: rotate(-.6deg); }
.satz-kind::after { left: 22px; transform: rotate(45deg); }
.satz-eltern { align-self: flex-end; background: #fff8e6; border-color: #eadfc4; border-bottom-right-radius: 6px; transform: rotate(.6deg); }
.satz-eltern::after { right: 22px; transform: rotate(45deg); }
.satz-eltern .wer { color: var(--rot); }
@media (max-width: 760px) { .satz { max-width: 94%; } }

/* Preis im Kopfbereich */
.preisanker { margin: -2px 0 18px; }
@media (max-width: 760px) { .hausfoto img { aspect-ratio: 16 / 10; object-fit: cover; } }
.preisanker b { display: block; font: 700 clamp(1.15rem, 1.8vw, 1.35rem)/1.3 var(--serif); color: var(--tinte); }
.preisanker span { display: block; font-size: 15px; color: var(--tinte-weich); margin-top: 2px; }
.preisanker a { color: inherit; }

/* Für Schüler: dunkler Grund, bunte Zettel, nichts erinnert an ein Klassenzimmer */
.fuer-dich { background: var(--tinte); color: #e9e4dc; }
.fuer-dich h2 { color: #fff; max-width: 18em; }
.fuer-dich .kopfzeile p { color: #d6d0c6; }
.fuer-dich .fd-kicker { font: 600 clamp(1.5rem, 2.4vw, 1.9rem)/1.1 var(--hand); color: #ffd65c; margin: 0 0 8px; }
.fd-zettel { list-style: none; margin: 8px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
.fd-zettel li { background: var(--z, #ffe39a); color: var(--tinte); padding: 20px 22px 24px; border-radius: 4px; font-size: 16.5px; line-height: 1.5; box-shadow: 0 16px 28px -16px rgba(0,0,0,.75); transform: rotate(var(--r, -1deg)); }
.fd-zettel b { display: block; font: 600 1.65rem/1.1 var(--hand); margin-bottom: 8px; }
.fd-zettel li:nth-child(1) { --z: #ffe39a; --r: -1.4deg; }
.fd-zettel li:nth-child(2) { --z: #cfe3d6; --r: .9deg; }
.fd-zettel li:nth-child(3) { --z: #cfdcf2; --r: -.6deg; }
.fd-zettel li:nth-child(4) { --z: #f6d3dc; --r: 1.2deg; }
.fd-zettel li:nth-child(5) { --z: #ffd8b8; --r: -1deg; }
.fd-zettel li:nth-child(6) { --z: #e4dcf4; --r: .7deg; }
.fd-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fd-aktion p { flex: 1 1 100%; margin: 0 0 4px; font-size: 1.12rem; color: #fff; }
.fd-rand { border: 2px solid #e9e4dc; color: #fff; background: transparent; }
.fd-rand:hover { background: #fff; color: var(--tinte); }
@media (max-width: 960px) { .fd-zettel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fd-zettel { grid-template-columns: 1fr; gap: 18px; } .fd-aktion .knopf { flex: 1 1 100%; } }

/* Was Eltern erzählen: Zahl und zwei Sätze */
.eltern-band { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.eltern-band .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eb-zahl { margin: 0; text-align: center; }
.eb-zahl b { display: block; font: 700 clamp(2.6rem, 5vw, 3.8rem)/1 var(--serif); color: var(--rot); }
.eb-zahl span { display: block; font: 600 1.35rem/1.2 var(--hand); color: var(--tinte-weich); margin-top: 6px; }
.eltern-band h2 { margin-bottom: .3em; }
.eltern-band p { margin: 0; font-size: 1.12rem; max-width: 36em; }
@media (max-width: 760px) { .eltern-band .wrap { grid-template-columns: 1fr; text-align: left; } .eb-zahl { text-align: left; } }

/* Hinweis für Schüler im Kopfbereich */
.schueler-hinweis { margin: -6px 0 18px; }
.schueler-hinweis a { font: 600 1.35rem/1.2 var(--hand); color: var(--rot); text-decoration: none; }
.schueler-hinweis a::after { content: " \2193"; font-family: var(--sans); font-size: .8em; }
.schueler-hinweis a:hover { text-decoration: underline; }

/* Altersstufen im Abschnitt für Schüler */
.fd-stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 0 0 40px; }
.fd-stufen .fd-frage { grid-column: 1 / -1; font: 600 1.6rem/1.1 var(--hand); color: #ffd65c; margin: 0 0 14px; }
.fd-stufen > div { border-top: 1px solid rgba(233,228,220,.25); padding-top: 14px; }
.fd-stufen h3 { color: #fff; margin: 0 0 6px; font-size: 1.15rem; }
.fd-stufen p { margin: 0; font-size: 16.5px; color: #d6d0c6; }
.fd-stufen a { color: #ffd65c; }
@media (max-width: 760px) { .fd-stufen { grid-template-columns: 1fr; gap: 18px; } }

/* Ratgeber: Kopf mit lesender Inhaberin */
.ratgeber-kopf { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: 28px; }
.ratgeber-kopf .kopfzeile { margin-bottom: 0; }
.ratgeber-bild { aspect-ratio: 4 / 5; box-shadow: 0 14px 34px -18px rgba(43,42,41,.45); }
@media (max-width: 760px) { .ratgeber-kopf { grid-template-columns: 1fr; } .ratgeber-bild { max-width: 280px; } }

/* Navigation mit Untermenü „Nachhilfe“ und Menüknopf für das Handy */
.nav { align-items: center; }
.nav a[aria-current="page"], .nav-oeffner.aktiv { border-bottom-color: var(--rot); }
.nav-gruppe { position: relative; }
.nav-oeffner { font: inherit; color: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; cursor: pointer; }
.nav-oeffner::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 2px 4px 8px; }
.nav-menue { display: none; position: absolute; top: calc(100% + 6px); left: -14px; min-width: 250px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 18px 36px -18px rgba(43,42,41,.45); padding: 8px; z-index: 25; }
.nav-menue::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-menue a { display: block; padding: 9px 12px; border: 0; border-radius: 6px; font-weight: 600; }
.nav-menue a:hover, .nav-menue a[aria-current="page"] { background: var(--papier-warm); }
.nav-gruppe:hover .nav-menue, .nav-gruppe:focus-within .nav-menue, .nav-oeffner[aria-expanded="true"] + .nav-menue { display: block; }
.menue-knopf { display: none; }
@media (max-width: 960px) {
  .menue-knopf { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; margin-left: 12px; font: 700 16px/1 var(--sans); color: var(--tinte); background: #fff; border: 2px solid var(--tinte); border-radius: var(--radius); cursor: pointer; }
  .kopf.menue-offen .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 18px 30px -20px rgba(43,42,41,.5); padding: 6px var(--rand) 18px; max-height: calc(100vh - 90px); overflow-y: auto; font-size: 17px; }
  .kopf.menue-offen .nav > a { padding: 13px 0; border-bottom: 1px solid var(--linie); }
  .kopf.menue-offen .nav-oeffner { width: 100%; text-align: left; padding: 13px 0 6px; font-weight: 700; color: var(--tinte-weich); cursor: default; }
  .kopf.menue-offen .nav-oeffner::after { display: none; }
  .kopf.menue-offen .nav-menue { display: block; position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--linie); border-radius: 0; padding: 0 0 8px 12px; min-width: 0; }
  .kopf.menue-offen .nav-menue a { padding: 9px 0; }
}
@media (max-width: 640px) {
  .menue-knopf { margin-left: auto; }
}

/* Kopf der Unterseiten */
.seitenkopf { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 52px); background-color: #fbfcfd; background-image: linear-gradient(var(--karo) 1px, transparent 1px), linear-gradient(90deg, var(--karo) 1px, transparent 1px); background-size: 22px 22px; border-bottom: 1px solid var(--linie); }
.seitenkopf h1 { max-width: 15em; }
.seitenkopf .einleitung { max-width: 40em; font-size: 1.12rem; }
.seitenkopf .claim { margin-bottom: 6px; }
.pfad { font-size: 15px; color: var(--tinte-weich); margin: 0 0 14px; }
.pfad a { color: inherit; }

/* Kleine Bausteine */
.mehr { margin: 12px 0 0; font-weight: 600; }
.mehr a { color: var(--rot-tief); }
.ueber-kurz .wrap { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.ueber-kurz img { width: 220px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--radius); }
.ueber-kurz p { max-width: 36em; }
.pk-liste { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pk-liste li { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; }
.pk-liste b { display: block; font: 700 2rem/1.1 var(--serif); color: var(--tinte); }
.pk-liste span { color: var(--tinte-weich); font-size: 16px; }
.weiterlesen { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46em; }
.weiterlesen a { font-weight: 600; }
.termin-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.fliesstext p { font-size: 1.08rem; max-width: 38em; }
@media (max-width: 760px) {
  .ueber-kurz .wrap { grid-template-columns: 1fr; }
  .ueber-kurz img { width: 180px; }
  .pk-liste, .termin-spalten { grid-template-columns: 1fr; }
}

/* Fuß mit vier Spalten */
.fuss .wrap { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
.fuss .jobs { margin-top: 16px; }
.fuss .jobs h3 { margin-bottom: 4px; }
@media (max-width: 960px) { .fuss .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fuss .wrap { grid-template-columns: 1fr; } }

/* Sprungmarken nicht unter der klebenden Kopfleiste verstecken */
[id] { scroll-margin-top: 100px; }

/* Szenen auf den Unterseiten (aus der früheren Scrollgeschichte): erscheinen beim Hinscrollen (.sichtbar) */
.szene { position: relative; }
.szenen-reihe { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .szenen-reihe { grid-template-columns: 1fr; } }

/* Mathe: Rechenheft mit Rätsel */
.g-heft { position: relative; width: min(100%, 600px); background-color: #fff; background-image: linear-gradient(#d6e2ec 1px, transparent 1px), linear-gradient(90deg, #d6e2ec 1px, transparent 1px); background-size: 24px 24px; border-radius: 6px; box-shadow: 0 14px 40px rgba(43,42,41,.14); padding: 30px 32px 30px 60px; transform: rotate(-1.2deg); font-family: var(--hand); color: #24324a; }
.g-heft::before { content: ""; position: absolute; top: 0; bottom: 0; left: 42px; width: 2px; background: var(--rot); opacity: .7; }
.g-aufgabe { font: 600 clamp(1.05rem, 1.6vw, 1.25rem)/1.3 var(--sans); color: var(--tinte); margin: 0 0 18px; }
.g-etikett { display: inline-block; border: 2px solid var(--tinte); border-radius: 6px; padding: 3px 10px; margin-right: 6px; background: #fff8e6; transform: rotate(-3deg); }
.g-zeile { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.2; margin: 0 0 10px; display: flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.g-notiz { font-family: var(--hand); color: var(--rot); font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: -6px 0 12px 2.2em; transform: rotate(-3deg); transform-origin: left; }
.g-falsch { position: relative; display: inline-flex; }
.g-strich { position: absolute; inset: -6% -14%; width: 128%; height: 112%; overflow: visible; }
.g-strich path, .g-haken path { fill: none; stroke: var(--rot); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s ease; }
.g-haken { width: 1.2em; height: 1em; overflow: visible; margin-left: .2em; }
.g-haken path { stroke-width: 6; }
.szene-mathe .g-zeile, .szene-mathe .g-notiz { clip-path: inset(0 100% 0 0); transition: clip-path .7s ease; }
.g-heft.geloest .g-z1 { clip-path: inset(0); }
.g-heft.geloest .g-z1 .g-strich path { stroke-dashoffset: 0; transition-delay: .6s; }
.g-heft.geloest .g-notiz { clip-path: inset(0); transition-delay: 1.1s; }
.g-heft.geloest .g-z2 { clip-path: inset(0); transition-delay: 1.8s; }
.g-heft.geloest .g-z3 { clip-path: inset(0); transition-delay: 2.5s; }
.g-heft.geloest .g-haken path { stroke-dashoffset: 0; transition-delay: 3.2s; }
.g-quiz { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.g-quiz button { font: 700 1.05rem/1 var(--sans); color: var(--tinte); background: #fff; border: 2px solid var(--tinte); border-radius: 999px; padding: 10px 18px; cursor: pointer; min-height: 44px; }
.g-quiz button:hover { background: var(--papier-warm); }
.g-quiz button.gewaehlt[data-antwort="richtig"] { background: var(--tafel); border-color: var(--tafel); color: #fff; }
.g-quiz button.gewaehlt[data-antwort="falsch"] { border-color: var(--rot); color: var(--rot); }
.g-quiz-rueck { min-height: 1.5em; font-weight: 600; }

/* Englisch und Französisch: Karteikarten zum Umdrehen */
.g-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); perspective: 1200px; }
.g-karte { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; transform-style: preserve-3d; }
.g-innen { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s ease; }
.g-karte.umgedreht .g-innen { transform: rotateY(180deg); }
.g-seite { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; box-shadow: 0 10px 28px rgba(43,42,41,.14); display: grid; place-items: center; text-align: center; padding: 14% 8% 8%; font-family: var(--hand); font-size: clamp(1.2rem, 2.3vw, 2rem); line-height: 1.1; color: #24324a;
  background-color: #fff; background-image: linear-gradient(var(--rot), var(--rot)), repeating-linear-gradient(transparent 0 25px, #d6e2ec 25px 26px); background-size: 100% 3px, 100% 100%; background-position: 0 22%, 0 0; background-repeat: no-repeat, repeat; }
.g-seite small { position: absolute; top: 8px; right: 10px; font: 700 12px/1 var(--sans); color: var(--tinte-weich); letter-spacing: .04em; }
.g-hinten { transform: rotateY(180deg); color: var(--tinte); }
.g-hinten b { color: var(--rot); font-weight: inherit; }
.g-karte:nth-child(2) { transform: translateY(14px) rotate(1.5deg); }
.g-karte:nth-child(3) { transform: rotate(-1deg); }
.g-karte:focus-visible { outline: 3px solid var(--rot); outline-offset: 4px; border-radius: 8px; }
.karten-tipp { font-size: 15px; color: var(--tinte-weich); margin-top: 18px; }
@media (max-width: 640px) { .g-karten { grid-template-columns: 1fr 1fr; } .g-karte:nth-child(3) { grid-column: 1 / -1; width: 62%; justify-self: center; } }

/* Deutsch: liniertes Blatt mit Korrektur */
.g-blatt { position: relative; width: min(100%, 620px); background-color: #fff; background-image: repeating-linear-gradient(transparent 0 37px, #c9d9ea 37px 38px); border-radius: 6px; box-shadow: 0 14px 40px rgba(43,42,41,.14); padding: 44px 36px 28px 60px; transform: rotate(1deg); }
.g-blatt::before { content: ""; position: absolute; top: 0; bottom: 0; left: 42px; width: 2px; background: var(--rot); opacity: .7; }
.g-satz { position: relative; font-family: var(--hand); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.25; color: #24324a; margin: 0 0 28px; }
.g-komma, .g-neu { color: var(--rot); display: inline-block; opacity: 0; transform: scale(.4); transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.g-alt { position: relative; display: inline-block; }
.g-neu { position: relative; top: -.7em; margin-left: -.15em; font-size: .9em; }
.g-aufbau { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.g-aufbau li { font: 600 clamp(15px, 1.5vw, 18px)/1 var(--sans); color: var(--tinte); border: 2px solid var(--tinte); border-radius: 999px; padding: 10px 16px; background: #fff; opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.g-aufbau li:nth-child(2) { border-color: var(--rot); color: var(--rot); }
.szene-deutsch.sichtbar .g-komma { opacity: 1; transform: none; transition-delay: .5s; }
.szene-deutsch.sichtbar .g-alt .g-strich path { stroke-dashoffset: 0; transition-delay: 1s; }
.szene-deutsch.sichtbar .g-neu { opacity: 1; transform: none; transition-delay: 1.5s; }
.szene-deutsch.sichtbar .g-aufbau li { opacity: 1; transform: none; }
.szene-deutsch.sichtbar .g-aufbau li:nth-child(1) { transition-delay: 2s; }
.szene-deutsch.sichtbar .g-aufbau li:nth-child(2) { transition-delay: 2.3s; }
.szene-deutsch.sichtbar .g-aufbau li:nth-child(3) { transition-delay: 2.6s; }

/* Physik und Chemie: Tafel */
.g-brett { width: min(100%, 640px); background: radial-gradient(120% 90% at 30% 20%, #3a5a4e, var(--tafel) 60%, #253d34); border: 14px solid #8a6a4a; border-radius: 6px; box-shadow: 0 16px 40px rgba(43,42,41,.22), inset 0 0 40px rgba(0,0,0,.25); padding: clamp(22px, 4vw, 40px); }
.g-kreide { font-family: var(--hand); color: var(--kreide); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.2; margin: 0 0 14px; text-shadow: 0 0 1px rgba(255,255,255,.5); clip-path: inset(0 100% 0 0); transition: clip-path .8s ease; }
.g-kreide:last-child { margin-bottom: 0; }
.g-kreide small { display: block; font: 600 13px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #b9c9be; }
.szene-tafel.sichtbar .g-kreide { clip-path: inset(0); }
.szene-tafel.sichtbar .g-kreide:nth-child(2) { transition-delay: .7s; }
.szene-tafel.sichtbar .g-kreide:nth-child(3) { transition-delay: 1.4s; }

/* Startseite: Tisch mit höchstens vier Plätzen */
.tisch-band .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.tisch-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.tisch-band p { font-size: 1.12rem; color: var(--tinte-weich); max-width: 26em; }
@media (max-width: 860px) { .tisch-band .wrap { grid-template-columns: 1fr; } }
.g-tisch-svg { width: min(100%, 640px); overflow: visible; display: block; margin: 0 auto; }
.g-lehne { fill: #9a6a40; }
.g-sitz { fill: #c69462; }
.g-nummer { font-family: var(--hand); font-size: 30px; fill: #fff; stroke: none; }
.g-nummer-grau { fill: #9a958e; }
.g-zettel-text { font-family: var(--hand); font-size: 30px; fill: var(--tinte); }
.g-zettel-zahl { font-family: var(--hand); font-size: 58px; fill: var(--rot); }
text.g-beschriftung { font-family: var(--hand); font-size: 24px; fill: var(--tinte-weich); }
.szene-tisch .g-tischplatte { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease; }
.szene-tisch .g-holz, .szene-tisch .g-tischhefte use, .szene-tisch .g-pult, .szene-tisch .g-beschriftung { opacity: 0; transition: opacity .6s ease; }
.szene-tisch .g-stuhl { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.szene-tisch .g-zettel { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(1.5) rotate(12deg); transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .4s ease; }
.szene-tisch .g-fuenfter { opacity: 0; }
.szene-tisch.sichtbar .g-tischplatte { stroke-dashoffset: 0; }
.szene-tisch.sichtbar .g-holz { opacity: 1; transition-delay: .7s; }
.szene-tisch.sichtbar .g-stuhl { transform: scale(1); }
.szene-tisch.sichtbar .g-stuehle > g:nth-child(1) .g-stuhl { transition-delay: 1.1s; }
.szene-tisch.sichtbar .g-stuehle > g:nth-child(2) .g-stuhl { transition-delay: 1.35s; }
.szene-tisch.sichtbar .g-stuehle > g:nth-child(3) .g-stuhl { transition-delay: 1.6s; }
.szene-tisch.sichtbar .g-stuehle > g:nth-child(4) .g-stuhl { transition-delay: 1.85s; }
.szene-tisch.sichtbar .g-stuehle > g:nth-child(5) .g-stuhl { transition-delay: 2.2s; }
.szene-tisch.sichtbar .g-tischhefte use { opacity: 1; transition-delay: 1.4s; }
.szene-tisch.sichtbar .g-pult, .szene-tisch.sichtbar .g-beschriftung { opacity: 1; transition-delay: 2.4s; }
.szene-tisch.sichtbar .g-zettel { opacity: 1; transform: none; transition-delay: 2.7s; }
.szene-tisch.sichtbar .g-fuenfter { animation: fuenfter-stuhl 2.6s ease 3.4s both; }
@keyframes fuenfter-stuhl {
  0% { opacity: 0; transform: translateX(-140px); }
  35% { opacity: 1; transform: translateX(0); }
  45% { transform: translateX(-10px); }
  55% { transform: translateX(8px); }
  65% { transform: translateX(-6px); }
  72% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-160px); }
}

@media (prefers-reduced-motion: reduce) {
  .szene *, .g-heft * { transition: none !important; animation: none !important; }
}

/* Lageplan aus OpenStreetMap, als Bild auf dem eigenen Server (kein Kartendienst beim Laden) */
.lageplan-rahmen { margin: 0; }
.lageplan { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); box-shadow: 0 14px 34px -20px rgba(43,42,41,.45); }
.lageplan img { width: 100%; height: auto; display: block; }
.lp-pin { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 15px/1 var(--sans); color: #fff; background: var(--tinte); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); flex: 0 0 auto; }
.lageplan .lp-pin { position: absolute; transform: translate(-50%, -50%); }
.lp-bus { background: #f7d117; color: #1a7f37; }
.lp-haus { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.lp-haus b { background: var(--rot); color: #fff; font: 700 15px/1 var(--sans); padding: 8px 12px; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.lp-haus::after { content: ""; border: 8px solid transparent; border-top-color: var(--rot); }
.lp-quelle { font-size: 13px; color: var(--tinte-weich); margin-top: 6px; }
.lp-legende { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.lp-legende li { display: flex; gap: 12px; align-items: flex-start; }
.lp-legende b { display: block; }
.lp-legende div { color: var(--tinte-weich); font-size: 16.5px; }
.lp-legende b { color: var(--tinte); }
.lageplan-innen { position: relative; }
@media (max-width: 760px) {
  .lageplan { overflow-x: auto; scrollbar-width: thin; }
  .lageplan-innen { width: 780px; }
  .lp-legende { grid-template-columns: 1fr; }
}

/* Zwei Bretter übereinander */
.regal + .regal { margin-top: 14px; }

/* Fächer als Textlinks unter dem Regal (auch für Suchmaschinen) */
.fach-links { margin: 14px 0 0; font-size: 16px; color: var(--tinte-weich); }
.fach-links a { font-weight: 600; color: var(--tinte); }


/* Handy: Menü schlank, Fächer eingeklappt, „Für Schüler“ oben und als eigener Knopf im Kopf */
.schueler-link { display: none; }
@media (max-width: 960px) {
  .schueler-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; margin-left: 12px; border-radius: 999px; background: #ffd65c; color: var(--tinte); font: 700 15px/1 var(--sans); text-decoration: none; white-space: nowrap; }
  .menue-knopf { margin-left: 8px; }
  .kopf.menue-offen .nav { max-height: calc(100vh - 170px); }
  .kopf.menue-offen .nav > a[href$="fuer-schueler.html"] { order: -1; margin: 10px 0 6px; padding: 13px 14px; border: 0; border-radius: var(--radius); background: #ffd65c; font-weight: 700; }
  .kopf.menue-offen .nav-oeffner { color: var(--tinte); cursor: pointer; padding-bottom: 13px; border-bottom: 1px solid var(--linie); }
  .kopf.menue-offen .nav-oeffner::after { display: inline-block; }
  .kopf.menue-offen .nav-gruppe:hover .nav-menue, .kopf.menue-offen .nav-gruppe:focus-within .nav-menue, .kopf.menue-offen .nav-menue { display: none; }
  .kopf.menue-offen .nav-oeffner[aria-expanded="true"] + .nav-menue { display: block; }
  .kopf.menue-offen .nav-oeffner[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: 0; }
}
@media (max-width: 640px) {
  .schueler-link { margin-left: auto; }
  .menue-knopf { margin-left: 8px; }
}

/* Regal: Pfeile, Wischhinweis und Randverlauf, sobald mehr Bücher da sind als ins Bild passen */
.regal-pfeil { position: absolute; top: calc(50% - 34px); z-index: 3; width: 40px; height: 40px; display: none; place-items: center; padding: 0; border: 1px solid var(--linie); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--tinte); box-shadow: 0 6px 16px -8px rgba(60,35,10,.5); cursor: pointer; }
.regal-pfeil svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.regal-pfeil.links { left: 8px; }
.regal-pfeil.rechts { right: 8px; }
.regal.kann-wischen .regal-pfeil.sichtbar { display: grid; }
.regal.kann-wischen::after { content: ""; position: absolute; top: 0; right: 0; bottom: 42px; width: 34px; background: linear-gradient(90deg, rgba(236,224,207,0), #ece0cf); pointer-events: none; z-index: 2; }
.regal-wisch { display: none; margin: 0; padding: 8px 12px 10px; text-align: center; font: 600 1.15rem/1.2 var(--hand); color: var(--tinte-weich); }
.regal.kann-wischen .regal-wisch { display: block; }
@media (max-width: 760px) {
  .buch { width: 100px; height: calc(var(--hoehe, 196px) * .78); }
  .buch-titel { font-size: .92rem; }
  .buch-deckel { padding: 12px 9px 10px 14px; }
}

/* Gezeichnetes Schulhaus im Kopf der Startseite */
.hauszeichnung { display: block; width: 100%; height: auto; }
.hz-strahlen { animation: hz-drehen 60s linear infinite; }
.hz-wolke-a { animation: hz-ziehen 14s ease-in-out infinite alternate; }
.hz-wolke-b { animation: hz-ziehen 18s ease-in-out infinite alternate-reverse; }
@keyframes hz-drehen { to { transform: rotate(360deg); } }
@keyframes hz-ziehen { from { transform: translateX(-10px); } to { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .hz-strahlen, .hz-wolke-a, .hz-wolke-b { animation: none; } }

/* Elternstimmen im Band „Was Eltern uns erzählen“ */
.elternstimmen { list-style: none; margin: .5em 0 0; padding: 0 0 0 16px; border-left: 4px solid var(--rot); }
.elternstimmen li { font-style: italic; font-size: 1.12rem; margin: .25em 0; }

/* Formular auf dem Webspace */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fehlermeldung { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: #fde8e8; color: var(--rot-tief); font-weight: 600; }
