/* wichtelbuero.de: eigene Gestaltung über den Bausteinen der Shop-Seite (wk-wichtelbuero.css).
 * Idee: das Büro der Wichtel. Papier und Aktendeckel bei Tag, Nachtblau für Briefkasten und Fußzeile, Stempel in Rot
 * und Blau, Schreibmaschine für alles Amtliche, Handschrift nur in Briefen. Keine Schriften von Dritten: Serifen und
 * Grotesk aus dem System, Caveat liegt selbst auf dem Server. Quelle wichtel/site/, gebaut von bauen.py. */

:root {
  --wb-papier: #F3ECDF;
  --wb-papier-2: #EADFCB;
  --wb-karte: #FFFDF7;
  --wb-akte: #E4CF9F;
  --wb-akte-rand: #C9AE73;
  --wb-tinte: #1E2638;
  --wb-tinte-2: #545B6B;
  --wb-auf-tinte: #F5F0E6;
  --wb-nacht: #1C2540;
  --wb-nacht-2: #27325A;
  --wb-linie: #D5C9B3;
  --wb-stempel: #B5382A;
  --wb-stempel-2: #2C4C8F;
  --wb-brief: #FFFDF6;
  --wb-zettel: #F7E27A;
  --wb-stern: #F2D58A;
  --wb-schatten: rgba(30, 38, 56, 0.14);
  --wb-schrift-titel: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --wb-schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --wb-schrift-amt: "Courier Prime", "Courier New", ui-monospace, Menlo, Consolas, monospace;
  --wb-breite: 1160px;
  --wb-rand: 20px;
}

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.wb-seite { margin: 0; background: var(--wb-papier); color: var(--wb-tinte); font-family: var(--wb-schrift); -webkit-font-smoothing: antialiased; }
.wb-seite *, .wb-seite *::before, .wb-seite *::after { box-sizing: border-box; }
.wb-rahmen { max-width: var(--wb-breite); margin: 0 auto; padding: 0 var(--wb-rand); }
.wb-seite a { color: inherit; text-underline-offset: 3px; }
.wb-seite a:focus-visible { outline: 3px solid var(--wb-stempel-2); outline-offset: 3px; border-radius: 2px; }

/* Die Bausteine lesen ihre Farben aus .wk-wb: hier dieselben Werte wie oben */
.wk-wb {
  --wb-papier: #F3ECDF; --wb-karte: #FFFDF7; --wb-tinte: #1E2638; --wb-tinte-2: #545B6B; --wb-auf-tinte: #F5F0E6;
  --wb-linie: #D5C9B3; --wb-stempel: #B5382A; --wb-stempel-2: #2C4C8F; --wb-brief: #FFFDF6; --wb-zettel: #F7E27A;
  --wb-schrift-titel: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --wb-schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --wb-breite: 1160px;
  font-size: 17px;
  background: var(--wb-papier);
}

/* Sprunglink */
.wb-sprung { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--wb-tinte); color: var(--wb-auf-tinte); border-radius: 4px; }
.wb-sprung:focus { top: 12px; }

/* Kopfleiste */
.wb-kopfleiste { position: sticky; top: 0; z-index: 10; background: rgba(243, 236, 223, 0.94); border-bottom: 1px solid var(--wb-linie); backdrop-filter: blur(6px); }
.wb-kopfleiste__innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.wb-marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--wb-schrift-titel); font-weight: 700; font-size: 22px; color: var(--wb-tinte); }
.wb-marke__siegel { width: 36px; height: 36px; transform: rotate(-10deg); fill: none; stroke: var(--wb-stempel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wb-nav { display: none; gap: 28px; font-size: 15px; }
.wb-nav a { text-decoration: none; color: var(--wb-tinte-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.wb-nav a:hover { color: var(--wb-tinte); border-color: var(--wb-stempel); }
@media (min-width: 760px) { .wb-nav { display: flex; } }

/* Start: Antrag in einer Akte */
.wb-start { padding: clamp(36px, 5vw, 80px) 0 clamp(56px, 6vw, 96px); }
.wb-start .wk-wb-kopf__raster { gap: 40px; }
@media (min-width: 960px) { .wb-start .wk-wb-kopf__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; } }
.wb-start .wk-wb-amt { font-family: var(--wb-schrift-amt); font-size: 14px; color: var(--wb-tinte-2); margin-bottom: 18px; }
.wb-start .wk-wb-titel { font-weight: 700; font-size: clamp(42px, 4.4vw + 18px, 76px); line-height: 1.02; margin-bottom: 22px; color: var(--wb-tinte); }
.wb-start .wk-wb-lead { font-size: clamp(18px, 0.4vw + 16px, 21px); line-height: 1.55; color: var(--wb-tinte-2); max-width: 30em; }

.wb-ablauf { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; max-width: 32em; }
.wb-ablauf li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; font-size: 17px; line-height: 1.5; }
.wb-ablauf strong { color: var(--wb-tinte); }
.wb-ablauf li > span:last-child { color: var(--wb-tinte-2); padding-top: 9px; }
.wb-ablauf__nr {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--wb-schrift-titel); font-weight: 700; font-size: 20px; color: var(--wb-stempel);
  border: 2px solid var(--wb-stempel); box-shadow: inset 0 0 0 3px var(--wb-papier), inset 0 0 0 4px var(--wb-stempel);
  transform: rotate(-8deg);
}
.wb-ablauf li:nth-child(2) .wb-ablauf__nr { color: var(--wb-stempel-2); border-color: var(--wb-stempel-2); box-shadow: inset 0 0 0 3px var(--wb-papier), inset 0 0 0 4px var(--wb-stempel-2); transform: rotate(6deg); }

/* Akte: Aktendeckel mit Reiter, darauf das Formular */
.wb-akte.wk-wb-antrag {
  margin-top: 26px; padding: 30px 26px 26px; border-radius: 4px 6px 6px 6px;
  background: var(--wb-karte); border: 1px solid var(--wb-linie);
  box-shadow: 10px 10px 0 -1px var(--wb-akte), 10px 10px 0 0 var(--wb-akte-rand), 0 24px 40px var(--wb-schatten);
}
.wb-akte::before {
  content: 'Antrag'; position: absolute; top: -27px; left: -1px; padding: 4px 18px 6px;
  font-family: var(--wb-schrift-amt); font-size: 13px; color: var(--wb-tinte);
  background: var(--wb-akte); border: 1px solid var(--wb-akte-rand); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.wb-akte .wk-wb-h2 { font-weight: 700; font-size: 26px; margin-bottom: 22px; }
.wb-akte .wk-wb-feld label, .wb-akte .wk-wb-wahl legend { font-size: 15px; font-weight: 600; color: var(--wb-tinte); }
.wb-akte .wk-wb-feld input, .wb-akte .wk-wb-feld select {
  font-family: var(--wb-schrift-amt); font-size: 18px; background: var(--wb-papier); border-bottom-color: var(--wb-tinte);
}
.wb-akte .wk-wb-wahl label { font-size: 15px; font-weight: 400; line-height: 1.4; align-items: flex-start; min-height: 0; margin: 0; padding: 7px 0; }
.wb-akte .wk-wb-wahl input[type="radio"] { margin-top: 0; flex: 0 0 20px; accent-color: var(--wb-stempel); background: none; border: 0; }
.wb-klein { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--wb-tinte-2); }

/* Knöpfe: Stempelknopf statt Rechteck (Dennis 05.12.: „nicht so einen popligen, viereckigen Button“) */
.wb-seite .wk-wb-knopf {
  min-height: 52px; padding: 12px 26px; border-radius: 999px; font-size: 17px; font-weight: 700;
  color: var(--wb-auf-tinte); background: var(--wb-tinte); border: 2px solid var(--wb-tinte);
  box-shadow: 0 4px 0 #0E1320; transition: transform 100ms ease, box-shadow 100ms ease, background-color 150ms ease;
}
.wb-seite .wk-wb-knopf:hover { background: var(--wb-nacht-2); }
.wb-seite .wk-wb-knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 #0E1320; }
.wb-seite .wk-wb-knopf:focus-visible { outline: 3px solid var(--wb-stempel-2); outline-offset: 4px; }
.wb-seite .wk-wb-knopf--still { color: var(--wb-tinte); background: transparent; box-shadow: none; border-color: var(--wb-tinte); }
.wb-seite .wk-wb-knopf--still:hover { background: rgba(30, 38, 56, 0.06); }
.wb-seite .wk-wb-knopf--still:active { transform: translateY(1px); box-shadow: none; }
.wb-knopf-stempel.wk-wb-knopf { width: 100%; background: var(--wb-stempel); border-color: var(--wb-stempel); box-shadow: 0 4px 0 #7A2318; font-size: 18px; }
.wb-knopf-stempel.wk-wb-knopf:hover { background: #C2412F; }
.wb-knopf-stempel.wk-wb-knopf:active { box-shadow: 0 1px 0 #7A2318; }
.wb-knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bescheid: mit Schreibmaschine ausgefüllt */
.wb-seite .wk-wb-bescheid__daten dd { font-family: var(--wb-schrift-amt); font-weight: 700; font-size: 17px; }
.wb-seite .wk-wb-bescheid__stempel { font-size: 22px; padding: 6px 16px; border-width: 4px; }
.wk-wb-bescheid--neu .wk-wb-bescheid__stempel { animation: wb-stempeln 420ms cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes wb-stempeln { from { opacity: 0; transform: rotate(-8deg) scale(1.9); } to { opacity: .85; transform: rotate(-8deg) scale(1); } }
.wb-seite .wk-wb-hinweis a { color: var(--wb-stempel-2); font-weight: 600; }

/* Briefkasten: Nachtblau mit ein paar Sternen */
.wb-seite .wk-wb-post {
  position: relative; padding: clamp(56px, 6vw, 104px) 0; color: var(--wb-auf-tinte);
  background: var(--wb-nacht);
}
.wb-seite .wk-wb-post .wk-wb-h2 { font-weight: 700; font-size: clamp(30px, 1.6vw + 22px, 44px); margin-bottom: 6px; color: var(--wb-auf-tinte); }
.wb-datum { margin: 0 0 32px; font-family: var(--wb-schrift-amt); font-size: 15px; color: var(--wb-stern); }
.wb-seite .wk-wb-post .wk-wb-knopf { color: var(--wb-tinte); background: var(--wb-auf-tinte); border-color: var(--wb-auf-tinte); box-shadow: 0 4px 0 #0B1022; }
.wb-seite .wk-wb-post .wk-wb-knopf:hover { background: #fff; }
.wb-seite .wk-wb-post .wk-wb-knopf--still { color: var(--wb-auf-tinte); background: transparent; border-color: rgba(245, 240, 230, 0.7); box-shadow: none; }
.wb-seite .wk-wb-post .wk-wb-knopf--still:hover { background: rgba(245, 240, 230, 0.08); }
.wb-seite .wk-wb-post .wk-wb-knopf:focus-visible { outline-color: var(--wb-stern); }
.wb-seite .wk-wb-post .wk-wb-pass-karte .wk-wb-knopf--still { color: var(--wb-tinte); border-color: var(--wb-tinte); }
.wb-seite .wk-wb-post .wk-wb-pass-karte .wk-wb-knopf--still:hover { background: var(--wb-papier); }
/* Nur am Bildschirm: Im Druck gilt das Blatt aus wk-wichtelbuero.css (eine A4-Seite) */
@media screen {
  .wb-seite .wk-wb-brief {
    padding: 40px 36px 36px; border-radius: 2px; box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 28px 50px rgba(5, 8, 20, 0.45);
    border-top: 6px solid var(--wb-stempel);
  }
}
.wb-seite .wk-wb-pass-karte { border-radius: 10px; padding: 26px 24px; box-shadow: 0 28px 50px rgba(5, 8, 20, 0.45); }
.wb-seite .wk-wb-pass-karte .wk-wb-h2 { color: var(--wb-tinte); font-size: 26px; margin-bottom: 10px; }
.wb-seite .wk-wb-pass-karte .wk-wb-amt { font-family: var(--wb-schrift-amt); font-size: 13px; margin-bottom: 6px; }
.wb-seite .wk-wb-pass-karte .wk-wb-bescheid__daten dd { font-size: 15px; }
.wb-seite .wk-wb-geschlossen { font-size: 20px; line-height: 1.5; max-width: 30em; }
.wb-seite .wk-wb-post__wer p { font-size: 18px; }
.wb-seite .wk-wb-wer input, .wb-seite .wk-wb-wer select { border-radius: 4px; border: 0; }

/* Telefon */
.wb-seite .wk-wb-tel { padding: clamp(56px, 6vw, 104px) 0; background: var(--wb-papier-2); }
.wb-seite .wk-wb-tel .wk-wb-h2 { font-weight: 700; font-size: clamp(30px, 1.6vw + 22px, 44px); }
.wb-seite .wk-wb-tel__lead { font-size: 19px; line-height: 1.55; color: var(--wb-tinte-2); }

/* Für Erwachsene */
.wb-seite .wk-wb-eltern { padding: clamp(56px, 6vw, 96px) 0 24px; }
.wb-seite .wk-wb-zimmer { max-width: 820px; border-radius: 8px; border: 1px solid var(--wb-linie); box-shadow: 0 14px 30px var(--wb-schatten); }
.wb-seite .wk-wb-zimmer > summary { min-height: 64px; padding: 18px 24px; font-size: 20px; font-weight: 700; }
.wb-seite .wk-wb-zimmer__inhalt { padding: 0 24px 28px; }
.wb-seite .wk-wb-stufe[aria-pressed="true"] { background: var(--wb-tinte); border-color: var(--wb-tinte); }

/* Fragen */
.wb-seite .wk-wb-fragen { padding: 48px 0 clamp(64px, 7vw, 112px); }
.wb-fragen__raster { display: grid; gap: 8px 72px; }
@media (min-width: 960px) { .wb-fragen__raster { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.wb-seite .wk-wb-fragen .wk-wb-h2 { font-weight: 700; font-size: clamp(28px, 1.2vw + 22px, 38px); }
.wb-seite .wk-wb-frage > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; list-style: none; }
.wb-seite .wk-wb-frage > summary::-webkit-details-marker { display: none; }
.wb-seite .wk-wb-frage > summary::after { content: '+'; flex: 0 0 auto; font-size: 24px; font-weight: 400; line-height: 1; color: var(--wb-stempel); }
.wb-seite .wk-wb-frage[open] > summary::after { content: '\2212'; }
.wb-seite .wk-wb-frage__antwort { font-size: 17px; line-height: 1.6; }

/* Fußzeile: der einzige Ort mit dem Shop (Werbeverbot gegenüber Kindern, UWG Anhang Nr. 28) */
.wb-fuss { background: var(--wb-nacht); color: var(--wb-auf-tinte); padding: 48px 0 40px; font-size: 15px; line-height: 1.6; }
.wb-fuss__raster { display: grid; gap: 28px; }
@media (min-width: 760px) { .wb-fuss__raster { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.wb-fuss .wb-marke { color: var(--wb-auf-tinte); }
.wb-fuss .wb-marke__siegel { stroke: var(--wb-stern); }
.wb-fuss p { margin: 14px 0 0; max-width: 34em; color: rgba(245, 240, 230, 0.78); }
.wb-fuss__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.wb-fuss__links a { display: inline-block; padding: 6px 0; }
.wb-fuss a:focus-visible { outline-color: var(--wb-stern); }

/* Unterseiten: Impressum, Datenschutz, 404 */
.wb-text { padding: clamp(40px, 5vw, 80px) 0 clamp(64px, 7vw, 112px); }
.wb-text__innen { max-width: 720px; }
.wb-text h1 { margin: 0 0 28px; font-family: var(--wb-schrift-titel); font-weight: 700; font-size: clamp(36px, 2.4vw + 24px, 56px); line-height: 1.08; overflow-wrap: break-word; min-width: 0; }
.wb-text h2 { margin: 36px 0 10px; font-family: var(--wb-schrift-titel); font-weight: 700; font-size: 24px; line-height: 1.25; }
.wb-text p, .wb-text li { font-size: 17px; line-height: 1.65; color: var(--wb-tinte-2); }
.wb-text p { margin: 0 0 14px; }
.wb-text strong { color: var(--wb-tinte); }

/* Handy: Antrag direkt unter Titel und Einleitung, die drei Schritte danach */
@media (max-width: 959px) {
  .wb-start .wk-wb-kopf__raster { gap: 0; }
  .wb-start .wk-wb-kopf__text { display: contents; }
  .wb-start .wb-akte { order: 1; margin-top: 56px; }
  .wb-start .wb-ablauf { order: 2; margin-top: 48px; }
}
@media (max-width: 599px) {
  .wb-akte.wk-wb-antrag { padding: 26px 18px 22px; box-shadow: 6px 6px 0 -1px var(--wb-akte), 6px 6px 0 0 var(--wb-akte-rand), 0 18px 30px var(--wb-schatten); }
  .wb-seite .wk-wb-brief { padding: 28px 22px; }
  .wb-seite .wk-wb-knopf { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wb-seite .wk-wb-knopf, .wb-nav a { transition: none; }
  .wb-seite .wk-wb-knopf:active { transform: none; }
  .wk-wb-bescheid--neu .wk-wb-bescheid__stempel { animation: none; }
}
@media print {
  .wb-kopfleiste, .wb-fuss, .wb-sprung { display: none !important; }
}
