/* Würfeltest, eigener Eingang (#2948). Abgeleitet aus der statischen Seite (#2817); Aussehen „Hell und ruhig“ (#2962).
   Markenfarben ab 12.10.2026, Schriften lokal, Ecken 4px wie der Würfel, nur hell. */
@font-face { font-family: "Titillium Web"; font-weight: 400; font-display: swap; src: url("../fonts/titillium-400.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-weight: 600; font-display: swap; src: url("../fonts/titillium-600.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-weight: 700; font-display: swap; src: url("../fonts/titillium-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }

:root {
  --primaer: #21497A;
  --dunkel: #263747;
  --grau: #636B82;
  --text: #263747;
  --text-leise: #4f5669;
  --grund: #ffffff;
  --flaeche: #f2f4f7;
  --karte: #ffffff;
  --linie: #d5d9e0;
  --link: #21497A;
  --knopf: #21497A;
  --knopf-hover: #263747;
  --knopf-text: #ffffff;
  --fokus: #21497A;
  --f-oben: #263747;
  --f-links: #21497A;
  --f-rechts: #636B82;
  --schrift: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titel: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --radius: 4px;
  --rahmen: 1180px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 400 1.0625rem/1.6 var(--schrift); overflow-wrap: anywhere; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titel); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; overflow-wrap: normal; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.sprung { position: absolute; left: -9999px; top: 0; }
.sprung:focus { left: 16px; top: 8px; z-index: 10; background: var(--grund); padding: 8px 12px; }

.rahmen { max-width: var(--rahmen); margin: 0 auto; padding: 0 16px; }
.schmal { max-width: 780px; }

.kopf { border-bottom: 1px solid var(--linie); background: var(--grund); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--grau); font: 600 1.35rem/1 var(--titel); }
.marke img { width: 150px; height: auto; display: block; }
.marke span { border-left: 1px solid var(--linie); padding-left: 12px; }

.menue { border-top: 1px solid var(--linie); }
.menue ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0 4px; }
.menue a { display: inline-block; padding: 10px 10px; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--text); border-bottom: 3px solid transparent; }
.menue a:hover { color: var(--link); }
.menue a[aria-current="page"] { color: var(--link); border-bottom-color: var(--primaer); }
.menue li:first-child a { padding-left: 0; }
/* Phase 2: auf dem Smartphone eine Zeile. Sechs kurze Wörter passen ab 320 px, wenn Abstand
   und Größe schrumpfen; reicht es einmal nicht, scrollt nur das Menü, nie die Seite. */
@media (max-width: 560px) {
  .menue ul { flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; gap: 0; }
  .menue a { padding: 10px 4px; font-size: .95rem; white-space: nowrap; }
  .menue li:last-child a { padding-right: 0; }
}
@media (max-width: 360px) {
  .menue a { padding: 10px 2px; font-size: .9rem; }
  .marke { font-size: 1.1rem; gap: 8px; } .marke img { width: 110px; } .marke span { padding-left: 8px; }
  .knopf-klein { padding: 8px 10px; font-size: .95rem; }
}
.marke span { white-space: nowrap; }
@media (max-width: 420px) { .marke span { display: none; } }

.knopf { display: inline-block; background: var(--knopf); color: var(--knopf-text); border: 0; border-radius: var(--radius);
  font: 600 1.0625rem/1.2 var(--schrift); padding: 14px 22px; min-height: 44px; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--knopf-hover); }
.knopf-zweit { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px var(--knopf); }
.knopf-zweit:hover { background: var(--knopf); color: var(--knopf-text); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf-klein { padding: 10px 14px; font-size: 1rem; white-space: nowrap; }

.buehne { padding: 40px 0 32px; }
.buehne-innen { display: grid; gap: 24px; align-items: center; }
.dachzeile { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-leise); margin-bottom: .25em; }
.einstieg { font-size: 1.15rem; }
.buehne-bild { justify-self: center; width: min(260px, 70vw); }
.wuerfel polygon { stroke: var(--grund); stroke-width: 3; stroke-linejoin: round; }
.f-oben { fill: var(--f-oben); } .f-links { fill: var(--f-links); } .f-rechts { fill: var(--f-rechts); }
.f-verdeckt { fill: none; stroke: #ffffff; stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 6 5; }
.f-text { fill: #ffffff; font: 600 22px var(--titel); }
@media (min-width: 820px) {
  .buehne { padding: 72px 0 56px; }
  .buehne-innen { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .buehne-bild { width: 300px; }
}

.abschnitt { padding: 40px 0; }
.abschnitt-flaeche { background: var(--flaeche); }
.vorspann { max-width: 780px; }

.kacheln { list-style: none; padding: 0; display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 720px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kachel { min-width: 0; }
.kachel a { display: flex; flex-direction: column; gap: 6px; height: 100%; background: var(--karte); border: 1px solid var(--linie); border-top: 6px solid var(--primaer);
  border-radius: var(--radius); padding: 20px; color: var(--text); text-decoration: none; }
.kachel a:hover { border-color: var(--primaer); }
.kachel.verdeckt a { border-top-style: dashed; border-top-color: var(--grau); }
.kachel-lage { font-size: .9rem; font-weight: 600; color: var(--text-leise); }
.kachel-name { font: 600 1.75rem/1.15 var(--titel); }
.kachel-frage { font-weight: 600; }
.kachel-mehr { margin-top: auto; padding-top: 8px; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nr { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 4px; background: var(--primaer); color: #fff; font-size: .8em; margin-right: .2em; vertical-align: .1em; }
.verdeckt .nr { background: var(--grau); }
.wie { border-left: 3px solid var(--linie); padding-left: 12px; color: var(--text-leise); }

.seitenkopf { padding: 32px 0 8px; }
.seitenkopf h1 .nr { font-size: .6em; }
.pfad { font-size: .95rem; color: var(--text-leise); }
.pfad a { display: inline-block; padding: 8px 0; }
.bausteinliste { background: var(--flaeche); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; }
.bausteinliste h2 { font-size: 1.5rem; }
.bausteinliste ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.bausteinliste a { display: inline-block; padding: 4px 0; }
.baustein { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; scroll-margin-top: 16px; }
.baustein h3 { display: flex; align-items: baseline; gap: 10px; }
.b-nr { flex: none; display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 4px; background: var(--flaeche); color: var(--text); font-size: .8em; }
.b-frage { font-weight: 600; color: var(--text-leise); }
.baustein p:last-child { margin-bottom: 0; }
.blaettern { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
.blaettern a { display: flex; flex-direction: column; padding: 12px 16px; min-height: 44px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte);
  text-decoration: none; font: 600 1.4rem/1.2 var(--titel); }
.blaettern a span { font: 400 .9rem/1.4 var(--schrift); color: var(--text-leise); }
.blaettern .weiter { margin-left: auto; text-align: right; }
.aufruf { text-align: center; }

.hinweis { color: var(--text-leise); }
.liste, .ablauf { padding-left: 1.3em; }
.liste li, .ablauf li { margin-bottom: .6em; }

.formular { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; }
.feld { margin-bottom: 16px; }
.feld label { display: block; font-weight: 600; margin-bottom: 4px; }
.pflicht, .frei { font-weight: 400; color: var(--text-leise); font-size: .95rem; }
.feld input, .feld select { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--karte); border: 1px solid #7a8396; border-radius: 4px; }
.feld-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.datenschutz { font-size: .95rem; color: var(--text-leise); }

.fuss { background: var(--dunkel); color: #ffffff; padding: 24px 0; font-size: .95rem; }
.fuss-innen { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.fuss p { margin: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.fuss a { display: inline-block; padding: 8px 0; color: #ffffff; }
.fuss a:focus-visible { outline-color: #ffffff; }

.fehlerliste { border-left: 4px solid #b3261e; background: #f8e6e4; padding: 12px 16px; margin-bottom: 16px; border-radius: 4px; }
