/* ============================================================
   Wegweiser — Vorkurs Deutsch 240 | MOOC-Prototyp
   Stand: 24.07.2026 · Entwurf / Diskussionsgrundlage
   ============================================================ */

/* ---------- Schriften (self-hosted, DSGVO-konform) ---------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

/* ---------- Token ---------- */

:root {
  /* Farbwelt */
  --tinte: #22333f;        /* Text, dunkles Petrol-Blaugrau */
  --tinte-60: #5b6b76;     /* sekundärer Text */
  --papier: #f3f5f2;       /* Seitengrund, kühles Hellgrau-Grün */
  --karte: #ffffff;
  --linie: #dde3dd;
  --gelb: #f5c33b;         /* Wegweiser-Gelb, Signaturfarbe */
  --gelb-hell: #fdf3d7;
  --kita: #3e7d4e;         /* Zone Kita */
  --kita-hell: #e9f2ea;
  --schule: #2f5e9e;       /* Zone Grundschule */
  --schule-hell: #e8eef7;
  --tandem: #1f6e6b;       /* Zone Kooperation */
  --tandem-hell: #e5f1f0;
  --warn: #b0620f;         /* Prüfhinweise Handreichung 2016 */
  --warn-hell: #fbeedd;
  --richtig: #2e7d46;
  --richtig-hell: #e7f4ea;
  --falsch: #b3402e;
  --falsch-hell: #faeae7;

  /* Typo */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Maße */
  --breite: 1080px;
  --radius: 10px;
  --schatten: 0 1px 3px rgba(34, 51, 63, 0.08), 0 6px 18px rgba(34, 51, 63, 0.06);
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--schule);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--tinte);
}

:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 2px;
  border-radius: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  padding-left: 1.4rem;
  margin: 0 0 1.1em;
}

li {
  margin-bottom: 0.35em;
}

strong {
  font-weight: 700;
}

/* Eyebrow / Etikett */
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tinte-60);
  margin: 0 0 0.75rem;
}

/* ---------- Kopfzeile ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.topbar-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--tinte);
  margin-right: auto;
}

.marke svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.marke-text {
  line-height: 1.1;
}

.marke-text b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.marke-text span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinte-60);
}

.hauptnav {
  display: flex;
  gap: 0.25rem;
}

.hauptnav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--tinte);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.hauptnav a:hover {
  background: var(--gelb-hell);
}

.hauptnav a[aria-current="page"] {
  background: var(--tinte);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-weight: 700;
  color: var(--tinte);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .hauptnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--karte);
    border-bottom: 1px solid var(--linie);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--schatten);
  }
  .hauptnav.offen {
    display: flex;
  }
  .hauptnav a {
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
  }
}

/* ---------- Seitenraster ---------- */

.rahmen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.abschnitt {
  padding: 3.5rem 0;
}

.abschnitt + .abschnitt {
  padding-top: 0;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  padding: 4rem 0 3rem;
}

.hero-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  box-shadow: inset 0 -0.45em 0 var(--gelb);
}

.hero-text {
  font-size: 1.15rem;
  max-width: 34em;
}

.hero-hinweis {
  font-size: 0.9rem;
  color: var(--tinte-60);
}

/* Wegweiser-Illustration im Hero */
.hero-schilder {
  display: flex;
  justify-content: center;
}

.hero-schilder svg {
  width: min(100%, 340px);
}

@media (max-width: 860px) {
  .hero-raster {
    grid-template-columns: 1fr;
  }
  .hero-schilder {
    order: -1;
  }
  .hero-schilder svg {
    width: min(60%, 260px);
  }
}

/* ---------- Wahl-Kacheln (Einstieg) ---------- */

.wahl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.wahl-kachel {
  display: block;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--tinte);
  box-shadow: var(--schatten);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wahl-kachel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(34, 51, 63, 0.1), 0 12px 28px rgba(34, 51, 63, 0.1);
}

.wahl-kachel b {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.wahl-kachel span {
  display: block;
  color: var(--tinte-60);
  font-size: 0.95rem;
}

.wahl-kachel .pfeil {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--tinte);
  border-bottom: 3px solid var(--gelb);
}

/* ---------- Rollen-Karten („Wer ist beteiligt?") ---------- */

.rollen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: start;
}

.rolle {
  background: var(--karte);
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  border-top: 5px solid var(--zone, var(--gelb));
  padding: 1.2rem 1.3rem;
  box-shadow: var(--schatten);
}

.rolle h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  padding-right: 1.6rem;
}

.rolle p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--tinte-60);
}

/* Detailebene: klappt bei Mouseover, Tastaturfokus oder Antippen auf */
.rollen-tipp {
  font-size: 0.9rem;
  color: var(--tinte-60);
}

.rolle {
  position: relative;
  cursor: pointer;
}

.rolle::after {
  content: "+";
  position: absolute;
  top: 0.85rem;
  right: 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--zone, #c49a1a);
  transition: transform 0.2s ease;
}

.rolle:hover::after,
.rolle:focus-within::after,
.rolle.offen::after {
  transform: rotate(45deg);
}

.rolle-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.rolle-details > div {
  overflow: hidden;
}

.rolle:hover .rolle-details,
.rolle:focus-within .rolle-details,
.rolle.offen .rolle-details {
  grid-template-rows: 1fr;
}

.rolle-details ul {
  border-top: 1px solid var(--linie);
  margin: 0.9rem 0 0;
  padding: 0.9rem 0 0 1.1rem;
  font-size: 0.92rem;
  color: #3d4d58;
}

.rolle-details li {
  margin-bottom: 0.35em;
}

.rolle-links {
  font-size: 0.88rem;
  margin: 0.7rem 0 0;
}

.rolle-links a {
  font-weight: 600;
}

/* ---------- Zonen-Farbvariablen ---------- */

.zone-kita {
  --zone: var(--kita);
  --zone-hell: var(--kita-hell);
}

.zone-schule {
  --zone: var(--schule);
  --zone-hell: var(--schule-hell);
}

.zone-tandem {
  --zone: var(--tandem);
  --zone-hell: var(--tandem-hell);
}

.zone-neutral {
  --zone: var(--tinte);
  --zone-hell: #eceff0;
}

.zone-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--zone, var(--tinte));
  background: var(--zone-hell, var(--gelb-hell));
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ---------- Reflexionsfragen ---------- */

.reflexion {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--schatten);
}

.reflexion label {
  display: block;
  font-weight: 700;
  margin: 1.2rem 0 0.4rem;
}

.reflexion label:first-of-type {
  margin-top: 0.5rem;
}

.reflexion textarea {
  width: 100%;
  min-height: 4.5rem;
  font: inherit;
  color: var(--tinte);
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  background: var(--papier);
  resize: vertical;
}

.reflexion textarea:focus {
  outline: 3px solid var(--gelb);
  outline-offset: 1px;
  border-color: transparent;
}

.privat-hinweis {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--tinte-60);
  margin-top: 1rem;
}

/* ---------- Cliffhanger / CTA ---------- */

.cliffhanger {
  background: var(--tinte);
  color: #f4f6f4;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.cliffhanger h2 {
  color: #fff;
}

.cliffhanger p {
  max-width: 44em;
  margin: 0 auto 1.5em;
  color: #ccd6dc;
}

.button-gelb {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tinte);
  background: var(--gelb);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.button-gelb:hover {
  transform: scale(1.03);
  color: var(--tinte);
}

.cliffhanger .fussnote {
  font-size: 0.82rem;
  color: #8fa0aa;
  margin: 1rem auto 0;
}

/* ---------- Signatur: Wegweiser-Schilder ---------- */

.wegweiser {
  position: relative;
  padding-left: 26px;
  display: grid;
  gap: 0.9rem;
}

/* der „Pfosten" */
.wegweiser::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -0.5rem;
  bottom: -0.5rem;
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #8a7a5c, #6e6049);
}

.schild {
  position: relative;
  display: block;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-left: 6px solid var(--zone, var(--gelb));
  text-decoration: none;
  color: var(--tinte);
  padding: 1rem 3rem 1rem 1.3rem;
  box-shadow: var(--schatten);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  transition: transform 0.15s ease;
}

.schild:hover {
  transform: translateX(6px);
}

.schild .schild-nr {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--zone, var(--tinte));
}

.schild b {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.1rem 0 0.25rem;
}

.schild span {
  display: block;
  font-size: 0.95rem;
  color: var(--tinte-60);
  max-width: 46em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .schild,
  .wahl-kachel,
  .button-gelb,
  .rolle::after,
  .rolle-details {
    transition: none;
  }
}

/* ---------- Themenblock-Seiten ---------- */

.blockkopf {
  padding: 3rem 0 1.5rem;
}

.blockkopf .zone-tag {
  margin-bottom: 0.9rem;
}

.blockkopf h1 {
  max-width: 18em;
}

.blockkopf .quelle {
  font-size: 0.88rem;
  color: var(--tinte-60);
}

.block-raster {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

@media (max-width: 860px) {
  .block-raster {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Seitenleiste */
.seitenleiste {
  position: sticky;
  top: 4.5rem;
}

.seitenleiste nav {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  font-size: 0.92rem;
}

.seitenleiste h2 {
  font-size: 0.78rem;
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinte-60);
  margin-bottom: 0.6rem;
}

.seitenleiste ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.seitenleiste li {
  margin: 0;
}

.seitenleiste a {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--tinte);
}

.seitenleiste a:hover {
  background: var(--gelb-hell);
}

.seitenleiste .alle-bloecke a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tinte-60);
}

.seitenleiste .alle-bloecke a[aria-current="page"] {
  color: var(--tinte);
  font-weight: 700;
}

.zone-punkt {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--zone, var(--gelb));
}

@media (max-width: 860px) {
  .seitenleiste {
    position: static;
  }
  .seitenleiste details {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 0.4rem 0.9rem;
  }
  .seitenleiste details summary {
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0;
  }
  .seitenleiste nav {
    border: none;
    padding: 0.5rem 0 0.25rem;
  }
}

@media (min-width: 861px) {
  .seitenleiste details {
    display: contents;
  }
  .seitenleiste summary {
    display: none;
  }
}

/* Kompaktseite */
.kompakt {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-left: 8px solid var(--gelb);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--schatten);
  margin-bottom: 2.5rem;
}

.kompakt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.kompakt-kopf .titel {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-right: auto;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  background: var(--gelb-hell);
  color: #7a5c10;
  white-space: nowrap;
}

.badge.warnung {
  background: var(--warn-hell);
  color: var(--warn);
}

/* Vertiefung */
.vertiefung section {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--linie);
}

.vertiefung section:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.vertiefung h2 {
  margin-top: 0;
}

.kapitel-nr {
  display: block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--zone, var(--tinte-60));
  margin-bottom: 0.3rem;
}

/* Ergänzungskapitel (Handreichung 2016) */
.ergaenzung {
  background: var(--warn-hell);
  border: 1px solid #eed9bd;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0 0;
}

.ergaenzung > .badge {
  margin-bottom: 0.9rem;
}

.vertiefung .ergaenzung section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #e3cba4;
}

/* Hinweiskästen */
.hinweis {
  background: var(--zone-hell, var(--gelb-hell));
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  margin: 0 0 1.1em;
}

.hinweis b:first-child {
  color: var(--zone, inherit);
}

/* ---------- Tabellen ---------- */

.tabelle-scroll {
  overflow-x: auto;
  margin: 0 0 1.25em;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--karte);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  min-width: 480px;
}

caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--tinte-60);
  padding: 0.6rem 1rem 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--linie);
}

thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tinte-60);
  background: var(--papier);
  border-bottom: 2px solid var(--linie);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Blätter-Navigation (vor/zurück) ---------- */

.blaettern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.blaettern a {
  display: block;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--tinte);
  box-shadow: var(--schatten);
}

.blaettern a:hover {
  background: var(--gelb-hell);
}

.blaettern .richtung {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinte-60);
  margin-bottom: 0.2rem;
}

.blaettern .weiter {
  text-align: right;
}

.blaettern b {
  font-family: var(--display);
}

@media (max-width: 640px) {
  .blaettern {
    grid-template-columns: 1fr;
  }
  .blaettern .weiter {
    text-align: left;
  }
}

/* ---------- Glossar ---------- */

.glossar-liste {
  display: grid;
  gap: 1rem;
}

.glossar-eintrag {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--schatten);
  scroll-margin-top: 5.5rem;
}

.glossar-eintrag h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.glossar-eintrag p {
  margin: 0;
  color: #3d4d58;
}

.glossar-eintrag .voller-name {
  display: block;
  font-size: 0.88rem;
  color: var(--tinte-60);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* automatisch verlinkte Glossarbegriffe im Fließtext */
a.glossar-begriff {
  color: inherit;
  text-decoration: underline dotted 1.5px var(--tandem);
  text-underline-offset: 3px;
}

a.glossar-begriff:hover {
  background: var(--tandem-hell);
}

/* ---------- Selbstcheck (Quiz) ---------- */

.quiz-intro {
  max-width: 44em;
}

.frage {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--schatten);
  margin-bottom: 1.5rem;
}

.frage-kopf {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.frage-nr {
  font-family: var(--display);
  font-weight: 800;
  color: var(--tinte-60);
  font-size: 0.9rem;
}

.frage h2 {
  font-size: 1.15rem;
  font-family: var(--body);
  font-weight: 700;
  margin-bottom: 1rem;
}

.antworten {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.antworten button {
  display: flex;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--tinte);
  background: var(--papier);
  border: 1.5px solid var(--linie);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.antworten button:hover:not(:disabled) {
  border-color: var(--tinte-60);
  background: #fff;
}

.antworten button:disabled {
  cursor: default;
  opacity: 0.75;
}

.antworten .buchstabe {
  font-weight: 800;
  font-family: var(--display);
  flex: none;
}

.antworten button.ist-richtig {
  background: var(--richtig-hell);
  border-color: var(--richtig);
  opacity: 1;
}

.antworten button.ist-falsch {
  background: var(--falsch-hell);
  border-color: var(--falsch);
  opacity: 1;
}

.feedback {
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  font-size: 0.97rem;
  margin-top: 0.75rem;
}

.feedback.richtig {
  background: var(--richtig-hell);
  color: #1d5230;
}

.feedback.falsch {
  background: var(--falsch-hell);
  color: #7c2c1e;
}

.nochmal {
  margin-top: 0.75rem;
  font: inherit;
  font-weight: 700;
  color: var(--tinte);
  background: none;
  border: none;
  padding: 0.2rem 0;
  border-bottom: 3px solid var(--gelb);
  cursor: pointer;
}

.quiz-abschluss {
  background: var(--tandem-hell);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}

.quiz-abschluss p:last-child {
  margin-bottom: 0;
}

/* ---------- Fußzeile ---------- */

.fusszeile {
  margin-top: 4rem;
  background: var(--tinte);
  color: #b8c4cc;
  font-size: 0.9rem;
}

.fusszeile-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.fusszeile h2 {
  font-size: 0.8rem;
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8fa0aa;
  margin-bottom: 0.6rem;
}

.fusszeile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fusszeile a {
  color: #dfe6ea;
  text-decoration: none;
}

.fusszeile a:hover {
  color: #fff;
  text-decoration: underline;
}

.fusszeile .entwurf {
  border: 1px solid #3d4f5c;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
}

.fusszeile .entwurf b {
  color: var(--gelb);
}

.fusszeile-katze {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}

.fusszeile-katze svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 760px) {
  .fusszeile-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kleinkram ---------- */

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.zitat {
  border-left: 4px solid var(--gelb);
  margin: 0 0 1.25em;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-style: italic;
  color: #3d4d58;
}

.zitat p:last-child {
  margin-bottom: 0;
}
