/* ==================================================================
   klick-wissen.de – Stylesheet
   ------------------------------------------------------------------
   Gestaltungsgrundsätze:
   – ruhig: eine Akzentfarbe (Blau), keine Dauer-Animationen
   – seniorenfreundlich: große Schrift, hohe Kontraste, große
     Klickflächen, deutliche Fokus-Rahmen
   – Schriftgröße umschaltbar über html.schrift-2 / html.schrift-3
   ================================================================== */

:root {
  --bg:            #faf7f2;
  --flaeche:       #ffffff;
  --flaeche-soft:  #f3efe7;
  --text:          #232a33;
  --text-soft:     #55606c;
  --linie:         #e4ddd0;
  --akzent:        #1a5fa8;
  --akzent-dunkel: #124a86;
  --akzent-hell:   #e8f1fa;

  /* Stufenfarben (gedeckt, nur als Kennung) */
  --gruen:          #2e7d4f;
  --gruen-hell:     #e7f3ec;
  --bernstein:      #92580a;
  --bernstein-hell: #faf0dd;
  --violett:        #63509e;
  --violett-hell:   #efeaf8;

  --radius:   14px;
  --schatten: 0 1px 3px rgba(35, 42, 51, .07), 0 6px 18px rgba(35, 42, 51, .05);
}

/* --- Schriftgrößen-Stufen (A− / A+) ------------------------------- */
html               { font-size: 112.5%; }  /* 1rem = 18px */
html.schrift-2     { font-size: 125%;   }  /* 1rem = 20px */
html.schrift-3     { font-size: 140%;   }  /* 1rem ≈ 22,4px */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Grundlegende Typografie -------------------------------------- */
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-dunkel); }

::selection { background: var(--akzent-hell); }

/* Deutliche Fokus-Rahmen für Tastatur-Bedienung */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--akzent); color: #fff;
  padding: .7em 1.2em; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-schmal { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 2.5rem 0; }

/* ==================================================================
   Kopfbereich
   ================================================================== */

.top-strip {
  background: var(--akzent-dunkel);
  color: #fff;
  font-size: .85rem;
}
.top-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem 1rem; padding-top: .35rem; padding-bottom: .35rem;
}
.top-strip-claim { opacity: .95; }

.schrift-regler { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.schrift-label { opacity: .95; }
.schrift-btn {
  font: inherit; font-weight: 700; line-height: 1;
  background: rgba(255, 255, 255, .12);
  color: #fff; border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 8px; padding: .3em .55em; cursor: pointer;
}
.schrift-btn-gross { font-size: 1.1em; }
.schrift-btn:hover { background: rgba(255, 255, 255, .25); }

.site-header {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.2rem;
}

.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--text);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; flex: 0 0 auto;
  background: var(--akzent); color: #fff; border-radius: 9px;
  transition: transform .15s ease;
}
.brand-mark svg { width: 1.25rem; height: 1.25rem; }

/* Einmalige Mikro-Animation: das Häkchen zeichnet sich beim Laden selbst.
   Läuft genau einmal, danach ist Ruhe. Bei „Bewegung reduzieren“ greift die
   globale Abschaltung unten – das Häkchen ist dann sofort fertig sichtbar. */
@keyframes haken-zeichnen {
  from { stroke-dashoffset: 26; }
  to   { stroke-dashoffset: 0; }
}
.site-header .brand-mark svg path {
  stroke-dasharray: 26;
  animation: haken-zeichnen .6s ease-out .2s backwards;
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark { transform: scale(1.08); }
.brand-word { font-size: 1.3rem; font-weight: 400; letter-spacing: -.01em; }
.brand-word b { font-weight: 800; color: var(--akzent); }
.brand-dot { color: var(--text-soft); font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none; color: var(--text);
  padding: .5em .8em; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { background: var(--flaeche-soft); color: var(--text); }
.main-nav a.active { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.main-nav .nav-icon { width: 1.05em; height: 1.05em; }

.nav-stufe { position: relative; }
.nav-stufe::before {
  content: ""; width: .55em; height: .55em; border-radius: 50%;
  display: inline-block; flex: 0 0 auto;
}
.nav-gruen::before     { background: var(--gruen); }
.nav-bernstein::before { background: var(--bernstein); }
.nav-violett::before   { background: var(--violett); }

.nav-cta {
  background: var(--akzent); color: #fff !important;
}
.nav-cta:hover { background: var(--akzent-dunkel) !important; }

.nav-toggle { display: none; }

.mobile-nav { display: none; }

@media (max-width: 940px) {
  .main-nav { display: none; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 2px solid var(--linie); border-radius: 10px;
    padding: .65em .6em; cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 1.35rem; height: 2px;
    background: var(--text); border-radius: 2px;
  }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--linie);
    background: var(--flaeche);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a {
    display: block; padding: .9em 1.25rem;
    text-decoration: none; color: var(--text); font-weight: 600;
    border-bottom: 1px solid var(--linie);
  }
  .mobile-nav a:hover { background: var(--flaeche-soft); }

  .top-strip-claim { font-size: .8rem; }
}

/* ==================================================================
   Startseite
   ================================================================== */

.hero { padding: 3.5rem 0 3rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 3rem; align-items: center;
}
.hero h1 { font-size: 2.4rem; margin-bottom: .5em; }
.hero-untertitel { font-size: 1.15rem; color: var(--text-soft); max-width: 34em; }

.hero-punkte { list-style: none; margin: 1.3rem 0 1.8rem; padding: 0; display: grid; gap: .55rem; }
.hero-punkte li { display: flex; align-items: baseline; gap: .6rem; font-weight: 600; }
.hero-punkte svg { width: 1.05em; height: 1.05em; color: var(--gruen); flex: 0 0 auto; transform: translateY(.12em); }

.hero-aktionen { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-bild { text-align: center; }
.hero-bild svg { width: 100%; max-width: 420px; height: auto; }
.hero-bild img {
  width: 100%; max-width: 460px; height: auto;
  border-radius: var(--radius); border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}
.hero-bild[hidden] { display: none; }

@media (max-width: 860px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-bild { order: -1; }
  .hero-bild svg { max-width: 300px; }
}

/* --- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: .75em 1.4em; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--akzent); color: #fff; }
.btn-primary:hover { background: var(--akzent-dunkel); color: #fff; }
.btn-sekundaer {
  background: var(--flaeche); color: var(--akzent-dunkel);
  border-color: var(--akzent);
}
.btn-sekundaer:hover { background: var(--akzent-hell); }
.btn svg { width: 1.1em; height: 1.1em; }

/* --- Stufen-Karten -------------------------------------------------- */
.stufen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
@media (max-width: 860px) { .stufen-grid { grid-template-columns: 1fr; } }

.stufen-karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-top: 5px solid var(--akzent);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
}
.stufen-karte:hover { border-color: var(--akzent); color: var(--text); }
.stufen-karte-gruen     { border-top-color: var(--gruen); }
.stufen-karte-bernstein { border-top-color: var(--bernstein); }
.stufen-karte-violett   { border-top-color: var(--violett); }

.stufen-kopf { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.stufen-icon {
  width: 3rem; height: 3rem; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.stufen-icon svg { width: 1.7rem; height: 1.7rem; }
.stufen-karte-gruen .stufen-icon     { background: var(--gruen-hell); color: var(--gruen); }
.stufen-karte-bernstein .stufen-icon { background: var(--bernstein-hell); color: var(--bernstein); }
.stufen-karte-violett .stufen-icon   { background: var(--violett-hell); color: var(--violett); }

.stufen-nr { font-size: .85rem; font-weight: 700; color: var(--text-soft); display: block; }
.stufen-karte h3, .stufen-karte h2 { margin: 0; font-size: 1.3rem; }

.stufen-text { color: var(--text-soft); flex: 1; }
.stufen-fuss {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linie);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--akzent);
}
.stufen-fuss .stufen-anzahl { color: var(--text-soft); font-weight: 600; font-size: .9rem; }

/* --- Abschnitts-Köpfe ---------------------------------------------- */
.abschnitt-kopf { max-width: 46em; margin-bottom: 1.8rem; }
.abschnitt-kopf .kicker,
.page-kicker {
  display: inline-block; font-size: .85rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--akzent); margin-bottom: .4em;
}
.abschnitt-kopf p { color: var(--text-soft); }

/* --- „So funktioniert es“-Schritte ---------------------------------- */
.ablauf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 860px) { .ablauf-grid { grid-template-columns: 1fr; } }
.ablauf-schritt {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem;
}
.ablauf-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--akzent); color: #fff;
  font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem;
}
.ablauf-schritt p { color: var(--text-soft); margin: 0; }

/* --- Vertrauens-Leiste ---------------------------------------------- */
.vertrauen {
  background: var(--flaeche); border-block: 1px solid var(--linie);
}
.vertrauen-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 1.8rem 0;
}
@media (max-width: 860px) { .vertrauen-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .vertrauen-grid { grid-template-columns: 1fr; } }
.vertrauen-punkt { display: flex; gap: .8rem; align-items: flex-start; }
.vertrauen-punkt svg { width: 1.6rem; height: 1.6rem; color: var(--akzent); flex: 0 0 auto; }
.vertrauen-punkt strong { display: block; }
.vertrauen-punkt span { color: var(--text-soft); font-size: .92rem; }

/* ==================================================================
   Suche
   ================================================================== */

.suche-form { position: relative; max-width: 38em; }
.suche-zeile { display: flex; gap: .6rem; flex-wrap: wrap; }
.suche-feld {
  flex: 1 1 14em; min-width: 0; font: inherit; color: var(--text);
  padding: .75em 1em; border-radius: 12px;
  border: 2px solid var(--linie); background: var(--flaeche);
}
.suche-feld:focus { border-color: var(--akzent); outline: none; }
.suche-form .btn { flex: 0 1 auto; }

.suche-live {
  position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 40;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten);
  max-height: 24rem; overflow-y: auto;
}
.suche-live[hidden] { display: none; }

.suche-treffer { display: block; padding: .8em 1em; text-decoration: none; border-bottom: 1px solid var(--linie); }
.suche-treffer:last-child { border-bottom: 0; }
.suche-treffer:hover, .suche-treffer:focus { background: var(--akzent-hell); }
.suche-treffer-titel { font-weight: 700; color: var(--akzent-dunkel); }
.suche-treffer-kat {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-soft); display: block; margin-bottom: .15em;
}
.suche-treffer-snippet { color: var(--text-soft); font-size: .9rem; display: block; margin-top: .15em; }
.suche-leer { padding: .9em 1em; color: var(--text-soft); }

.suche-ergebnis-liste { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }

/* ==================================================================
   Kategorie-Seiten
   ================================================================== */

.page-head { padding: 2.8rem 0 2.2rem; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.page-head h1 { margin-bottom: .3em; }
.page-head .page-untertitel { font-size: 1.1rem; color: var(--text-soft); max-width: 40em; margin: 0; }

.kat-kopf { display: flex; align-items: flex-start; gap: 1.4rem; }
.kat-kopf-icon {
  width: 4rem; height: 4rem; border-radius: 16px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.kat-kopf-icon svg { width: 2.3rem; height: 2.3rem; }
.kat-gruen .kat-kopf-icon     { background: var(--gruen-hell); color: var(--gruen); }
.kat-bernstein .kat-kopf-icon { background: var(--bernstein-hell); color: var(--bernstein); }
.kat-violett .kat-kopf-icon   { background: var(--violett-hell); color: var(--violett); }

.niveau-badge {
  display: inline-block; font-size: .82rem; font-weight: 700;
  padding: .25em .8em; border-radius: 99px; margin-bottom: .6em;
}
.kat-gruen .niveau-badge     { background: var(--gruen-hell); color: var(--gruen); }
.kat-bernstein .niveau-badge { background: var(--bernstein-hell); color: var(--bernstein); }
.kat-violett .niveau-badge   { background: var(--violett-hell); color: var(--violett); }

/* Kleiner Transparenz-Hinweis unter Fotos */
.bild-hinweis {
  display: block; margin-top: .35rem;
  font-size: .78rem; color: var(--text-soft); text-align: right;
}
.kat-bild figure, .hero-bild figure { margin: 0; }
.hero-bild figure { display: inline-block; }

/* Foto-Banner der Stufen-Seiten */
.kat-bild { margin-top: 1.8rem; }
.kat-bild img {
  display: block; width: 100%; height: auto; max-height: 300px;
  object-fit: cover; object-position: center 35%;
  border-radius: var(--radius); border: 1px solid var(--linie);
}

/* Foto im Fließtext (z. B. Über-Seite) */
.inhalt-bild { margin: 1.6rem 0; }
.inhalt-bild img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--linie);
}
.inhalt-bild figcaption {
  margin-top: .5rem; font-size: .88rem; color: var(--text-soft);
}

/* Fortschritt (wird per JavaScript gefüllt) */
.fortschritt { margin-top: 1.4rem; max-width: 30em; }
.fortschritt[hidden] { display: none; }
.fortschritt-text { font-weight: 600; font-size: .95rem; margin-bottom: .4em; display: block; }
.fortschritt-balken {
  height: .8rem; background: var(--flaeche-soft);
  border: 1px solid var(--linie); border-radius: 99px; overflow: hidden;
}
.fortschritt-wert { height: 100%; width: 0; background: var(--gruen); border-radius: 99px; }

/* Lektions-Liste */
.lektion-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: lektion; }

.lektion-karte {
  position: relative;
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 1.3rem 1.4rem;
}
.lektion-karte:hover { border-color: var(--akzent); }

.lektion-karte-icon {
  width: 3.2rem; height: 3.2rem; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--akzent-hell); color: var(--akzent);
}
.lektion-karte-icon svg { width: 1.8rem; height: 1.8rem; }

.lektion-karte-body { flex: 1; }
.lektion-karte-nr { font-size: .85rem; font-weight: 700; color: var(--text-soft); }
.lektion-karte h2, .lektion-karte h3 { margin: .1em 0 .3em; font-size: 1.2rem; }
.lektion-karte h2 a, .lektion-karte h3 a { text-decoration: none; color: var(--text); }
.lektion-karte h2 a::after, .lektion-karte h3 a::after { content: ""; position: absolute; inset: 0; }
.lektion-karte h2 a:hover, .lektion-karte h3 a:hover { color: var(--akzent-dunkel); }
.lektion-karte p { margin: 0; color: var(--text-soft); }

.lektion-karte-meta {
  display: flex; gap: 1rem; align-items: center; margin-top: .6rem;
  font-size: .88rem; color: var(--text-soft); font-weight: 600;
}

.gelernt-haken {
  display: none;
  align-items: center; gap: .35rem;
  color: var(--gruen); font-weight: 700;
}
.gelernt-haken svg { width: 1.1em; height: 1.1em; }
.lektion-karte.ist-gelernt .gelernt-haken { display: inline-flex; }
.lektion-karte.ist-gelernt .lektion-karte-icon { background: var(--gruen-hell); color: var(--gruen); }

/* ==================================================================
   Lektions-Seite
   ================================================================== */

.lektion-hero { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 2.6rem 0 2rem; }
.lektion-hero-grid { display: flex; gap: 1.6rem; align-items: flex-start; }
.lektion-hero-icon {
  width: 4.4rem; height: 4.4rem; border-radius: 18px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--akzent-hell); color: var(--akzent);
}
.lektion-hero-icon svg { width: 2.5rem; height: 2.5rem; }
.lektion-hero h1 { margin-bottom: .35em; }
.lektion-kurz { font-size: 1.08rem; color: var(--text-soft); max-width: 42em; }

.lektion-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem;
  font-size: .92rem; font-weight: 600; color: var(--text-soft);
}
.lektion-meta .niveau-badge { margin: 0; }

.lektion-werkzeuge { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.3rem; }
.werkzeug-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  background: var(--flaeche); color: var(--akzent-dunkel);
  border: 2px solid var(--akzent); border-radius: 10px;
  padding: .5em 1em; cursor: pointer; text-decoration: none;
}
.werkzeug-btn:hover { background: var(--akzent-hell); }
.werkzeug-btn svg { width: 1.15em; height: 1.15em; }
.werkzeug-btn[aria-pressed="true"] { background: var(--akzent); color: #fff; }
.werkzeug-btn.ist-gelernt-btn[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); }

/* Lernziele + Inhaltsverzeichnis */
.lektion-einstieg { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.3rem; margin: 2rem 0; }
@media (max-width: 780px) { .lektion-einstieg { grid-template-columns: 1fr; } }

.ziele-box, .inhalt-box {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
}
.ziele-box h2, .inhalt-box h2 { font-size: 1.05rem; margin-bottom: .7em; }
.ziele-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.ziele-box li { display: flex; gap: .6rem; align-items: baseline; }
.ziele-box li svg { width: 1em; height: 1em; color: var(--gruen); flex: 0 0 auto; transform: translateY(.12em); }
.inhalt-box ol { margin: 0; padding-left: 1.3em; display: grid; gap: .4rem; }
.inhalt-box a { font-weight: 600; }

/* Inhalts-Blöcke */
.lektion-inhalt { max-width: 46em; }
.lektion-inhalt .prose { max-width: none; }
.l-h2 { margin: 1.8em 0 .6em; font-size: 1.4rem; scroll-margin-top: 6rem; }

.prose { color: var(--text); }
.prose strong { color: var(--text); }
.prose code {
  background: var(--flaeche-soft); border: 1px solid var(--linie);
  border-radius: 6px; padding: .1em .35em; font-size: .92em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.prose kbd {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-bottom-width: 3px; border-radius: 7px;
  padding: .12em .5em; font-size: .9em; font-weight: 700;
  font-family: inherit; white-space: nowrap;
}

.hinweis {
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.4rem 0;
  border: 1px solid var(--linie); border-left-width: 5px;
  background: var(--flaeche);
}
.hinweis-label { display: block; margin-bottom: .3em; font-size: .95rem; }
.hinweis-tipp    { border-left-color: var(--akzent);   background: var(--akzent-hell); }
.hinweis-tipp .hinweis-label { color: var(--akzent-dunkel); }
.hinweis-achtung { border-left-color: #b3382c; background: #fbeeec; }
.hinweis-achtung .hinweis-label { color: #b3382c; }
.hinweis-merke   { border-left-color: var(--gruen); background: var(--gruen-hell); }
.hinweis-merke .hinweis-label { color: var(--gruen); }
.hinweis p:last-child { margin-bottom: 0; }

.l-liste { padding-left: 1.3em; }
.l-liste li { margin-bottom: .5em; }

.tabelle-scroll { overflow-x: auto; margin: 1.4rem 0; }
.l-tabelle {
  width: 100%; border-collapse: collapse;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); overflow: hidden;
}
.l-tabelle th, .l-tabelle td {
  text-align: left; padding: .7em .9em;
  border-bottom: 1px solid var(--linie); vertical-align: top;
}
.l-tabelle th { background: var(--flaeche-soft); font-size: .92rem; }
.l-tabelle tr:last-child td { border-bottom: 0; }

/* Schritt-für-Schritt-Anleitungen */
.schritte { margin: 1.6rem 0; }
.schritte-titel { font-weight: 800; margin-bottom: .8rem; font-size: 1.05rem; }
.schritte-liste { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: .9rem; }
.schritt {
  counter-increment: schritt;
  position: relative;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.1rem 1.3rem 1.1rem 4rem;
}
.schritt::before {
  content: counter(schritt);
  position: absolute; left: 1.1rem; top: 1.05rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--akzent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.schritt-titel { display: block; margin-bottom: .25em; }
.schritt .prose p:last-child { margin-bottom: 0; }

/* Begriffs-Kästen */
.begriffe {
  background: var(--flaeche-soft); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.6rem 0;
}
.begriffe-titel { font-weight: 800; margin: 0 0 .7em; font-size: 1rem; }
.begriffe-liste { margin: 0; display: grid; gap: .7rem; }
.begriffe-eintrag dt { font-weight: 700; }
.begriffe-eintrag dd { margin: .1em 0 0; color: var(--text-soft); }

/* Quiz */
.quiz {
  margin: 3rem 0 1rem;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem;
}
.quiz .l-h2 { margin-top: 0; }
.quiz-intro { color: var(--text-soft); }
.quiz-frage { border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.1rem 0; }
.quiz-frage legend { font-weight: 700; padding: 0 .4em; }
.quiz-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--akzent-hell); color: var(--akzent-dunkel);
  font-size: .85em; margin-right: .3em;
}
.quiz-antwort {
  display: flex; gap: .6rem; align-items: baseline;
  padding: .55em .7em; border-radius: 10px; cursor: pointer;
}
.quiz-antwort:hover { background: var(--flaeche-soft); }
.quiz-antwort input { width: 1.15em; height: 1.15em; accent-color: var(--akzent); flex: 0 0 auto; }
.quiz-frage.ist-richtig { border-color: var(--gruen); background: var(--gruen-hell); }
.quiz-frage.ist-falsch  { border-color: #b3382c; background: #fbeeec; }
.quiz-erklaerung { color: var(--text-soft); margin: .5em 0 0; font-size: .95rem; }
.quiz-fuss { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; }
.quiz-ergebnis { font-weight: 700; margin: 0; }

/* Navigation zwischen Lektionen */
.lektion-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 2.5rem 0;
}
@media (max-width: 640px) { .lektion-nav { grid-template-columns: 1fr; } }
.lektion-nav-link {
  display: block; text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.lektion-nav-link:hover { border-color: var(--akzent); }
.lektion-nav-richtung { font-size: .85rem; font-weight: 700; color: var(--text-soft); display: block; }
.lektion-nav-titel { font-weight: 700; color: var(--akzent-dunkel); }
.lektion-nav-weiter { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .lektion-nav-weiter { grid-column: auto; text-align: left; } }

/* Verwandte Lektionen */
.verwandt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .verwandt-grid { grid-template-columns: 1fr; } }

/* ==================================================================
   Glossar
   ================================================================== */

.glossar-filter { margin: 0 0 1.6rem; max-width: 30em; }

.buchstaben-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.2rem 0 2rem; }
.buchstaben-nav a, .buchstaben-nav span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1rem; height: 2.1rem; padding: 0 .4em;
  border-radius: 9px; text-decoration: none; font-weight: 700;
}
.buchstaben-nav a { background: var(--flaeche); border: 1px solid var(--linie); }
.buchstaben-nav a:hover { border-color: var(--akzent); background: var(--akzent-hell); }
.buchstaben-nav span { color: var(--text-soft); opacity: .45; }

.glossar-liste { margin: 0; }
.glossar-eintrag {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: .9rem;
  scroll-margin-top: 6rem;
}
.glossar-eintrag dt { font-weight: 800; font-size: 1.08rem; }
.glossar-eintrag dd { margin: .35em 0 0; color: var(--text-soft); }
.glossar-buchstabe {
  font-size: 1.3rem; color: var(--akzent); margin: 2rem 0 .8rem;
  scroll-margin-top: 6rem;
}
.glossar-leer { color: var(--text-soft); }
.glossar-leer[hidden] { display: none; }

/* ==================================================================
   Partner-Slot, Fußbereich, Sonstiges
   ================================================================== */

.partner-slot { margin: 1.6rem 0; }
.partner-slot-box {
  border: 1px dashed var(--linie); border-radius: var(--radius);
  padding: .8rem 1.2rem; background: var(--flaeche);
}
.partner-slot-label {
  display: block; font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft);
}
.partner-slot-content { font-size: .9rem; }
.partner-slot-content:empty::after { content: ""; }

.site-footer {
  margin-top: 3rem;
  background: var(--flaeche); border-top: 1px solid var(--linie);
  font-size: .95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 2rem; padding: 2.5rem 1.25rem;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col a { display: block; color: var(--text); text-decoration: none; padding: .25em 0; }
.footer-col a:hover { color: var(--akzent); text-decoration: underline; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: .6em; }
.footer-h-abstand { margin-top: 1.4em; }
.footer-mehr { font-weight: 700; color: var(--akzent) !important; }
.footer-brand .brand-mark { margin-bottom: .6rem; }
.footer-klein { color: var(--text-soft); font-size: .88rem; }
.footer-baseline {
  border-top: 1px solid var(--linie);
  padding-top: 1.2rem; padding-bottom: 1.6rem;
  color: var(--text-soft); font-size: .85rem;
}
.footer-baseline p { margin: 0 0 .4em; }
.footer-transparenz { opacity: .8; }

/* „Nach oben“-Knopf */
.nach-oben {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-weight: 700;
  background: var(--flaeche); color: var(--text);
  border: 2px solid var(--linie); border-radius: 12px;
  padding: .6em 1em; cursor: pointer; box-shadow: var(--schatten);
}
.nach-oben:hover { border-color: var(--akzent); color: var(--akzent-dunkel); }
.nach-oben[hidden] { display: none; }

/* 404 */
.fehler-seite { text-align: center; padding: 4rem 0; }
.fehler-code { font-size: 4rem; font-weight: 800; color: var(--akzent); line-height: 1; }

/* --- Bewegung nur, wenn erwünscht ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Druckansicht: Lektionen sauber zu Papier ----------------------- */
@media print {
  .top-strip, .site-header, .site-footer, .nach-oben,
  .lektion-werkzeuge, .quiz, .partner-slot, .lektion-nav, .verwandt-abschnitt { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .lektion-hero { border-bottom: 2px solid #000; }
}
