/* Sachkundepass: gemeinsame Grundlage für alle Seiten (Startseite, Login,
   Partnerbereich, Lernbereich, Verwaltung, Rechtsseiten).
   Mobile-First: Die Regeln ohne Media-Query gelten fürs Handy. Größere
   Bildschirme bekommen Ergänzungen ausschließlich über min-width.
   Aufbau: 1. Schriften  2. Tokens  3. Grundlagen  4. Bausteine  5. Seitenrahmen */

/* ── 1. Schriften (eigener Server, Lizenzen: fonts/OFL*.txt) ─────────── */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, 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-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ── 2. Tokens ───────────────────────────────────────────────────────── */
:root {
  /* Palette: Tannengrün und Messing */
  --tanne:          #1F3D2E;
  --tanne-dunkel:   #152B20;
  --tanne-hell:     #E3ECE5;
  --messing:        #B08D57;   /* nur Akzente, Linien, große Ziffern, Elemente auf dunklem Grund */
  --messing-dunkel: #7A5F33;   /* Messington als Text auf hellem Grund */
  --messing-hell:   #E2CB9C;   /* Messington als kleiner Text auf Tannengrün */
  --messing-blass:  #F0E2C2;   /* Messington als kleiner Text auf Siegelrot (5:1) */
  --siegel:         #A8392B;   /* nur Siegel: Logo, Bescheinigung, Kapitel-Stempel */

  /* Semantische Markenfarben. Bausteine nutzen nur diese, damit der
     Lernbereich sie später je Partner überschreiben kann. */
  --marke:        var(--tanne);
  --marke-dunkel: var(--tanne-dunkel);
  --marke-hell:   var(--tanne-hell);
  --fokus:        var(--tanne-dunkel);

  /* Flächen */
  --grund:       #FFFFFF;
  --flaeche:     #F2F5F2;
  --papier:      #FBFAF6;   /* Dokumente wie die Bescheinigung */
  --papier-ton:  #F4F0E6;   /* heller Papierton, sichtbar abgesetzt von Weiß: Erklärungen, Infokästen */
  --linie:       #D9E1DB;
  --linie-fein:  #E7EDE8;
  --feld-rand:   #7C8A81;   /* Eingabefelder, 3,6:1 auf Weiß */

  /* Text */
  --text:        #16211B;
  --text-leise:  #4F5D55;
  --text-hell:   #FFFFFF;   /* auf Tannengrün */
  --text-hell-leise: #C5D3C9;

  /* Status */
  --gut:          #2E7D4F;
  --gut-hell:     #E2F1E7;
  --achtung:      #8A5300;
  --achtung-hell: #F8EDD9;
  --fehler:       #B42318;
  --fehler-hell:  #FBE9E7;

  --schrift:       'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --schrift-titel: 'Schibsted Grotesk', 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --radius:    10px;
  --radius-gr: 20px;
  --schatten-klein: 0 1px 2px rgba(22, 33, 27, 0.06), 0 2px 8px rgba(22, 33, 27, 0.06);
  --schatten:       0 2px 4px rgba(22, 33, 27, 0.04), 0 12px 32px rgba(22, 33, 27, 0.10);
  --schatten-gross: 0 4px 8px rgba(22, 33, 27, 0.05), 0 24px 64px rgba(22, 33, 27, 0.16);
  --breite:    76rem;
  --text-breite: 34rem;
  --rand:      1.1rem;
  --kopf-hoehe: calc(4.25rem + 1px); /* stehender Kopf (.kopf), Maß für alles, was darunter kleben soll */
  --weich:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E");
}

/* ── 3. Grundlagen ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  font-size: 112.5%; /* 18 px Basis, für die Zielgruppe bewusst groß */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

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

h1, h2, h3 {
  font-family: var(--schrift-titel);
  color: inherit;
  margin: 0 0 0.5em;
  hyphens: manual;
  text-wrap: balance;
}
h1 { font-size: 2.1rem; line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 1.6rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: var(--marke); text-underline-offset: 0.18em; }
a:hover { color: var(--marke-dunkel); }

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

.leise { color: var(--text-leise); }
.klein { font-size: 0.9rem; }
/* Nur für Screenreader sichtbar */
.unsichtbar { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 4. Bausteine ────────────────────────────────────────────────────── */

/* Schaltflächen
   .knopf          gefüllt, etwa 52 px hoch
   .knopf-klein    kleinere Variante, etwa 44 px (Kopf, Listen)
   .knopf-hell     umrandet, zweitrangig
   .knopf-pfeil    mit Pfeil rechts, gleitet beim Hover leicht nach rechts
   .pfeil-link     Textlink mit Pfeil
   Radius wie die Karten. Hover nur über die Farbe, kein Schatten, kein Glow. */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.4rem;
  border: 1.5px solid var(--marke);
  border-radius: var(--radius);
  background: var(--marke);
  color: var(--text-hell);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.knopf:hover { background: var(--marke-dunkel); border-color: var(--marke-dunkel); color: var(--text-hell); }
.knopf[disabled] { opacity: 0.6; cursor: wait; }

.knopf-klein { min-height: 2.45rem; padding: 0.4rem 1rem; font-size: 0.95rem; gap: 0.5rem; }

.knopf-hell { background: transparent; color: var(--marke); }
.knopf-hell:hover { background: var(--marke-hell); border-color: var(--marke-dunkel); color: var(--marke-dunkel); }

.knopf-breit { width: 100%; }

/* Reihe von Knöpfen, bricht auf dem Handy um */
.aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Pfeil als Maske, damit er die Textfarbe übernimmt und nicht von der Schrift abhängt */
.knopf-pfeil::after, .pfeil-link::after {
  content: '';
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--pfeil) center / contain no-repeat;
  mask: var(--pfeil) center / contain no-repeat;
  transition: transform 0.2s var(--weich);
}
.knopf-pfeil:hover::after, .pfeil-link:hover::after { transform: translateX(3px); }

.pfeil-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  font-weight: 600;
  text-decoration: none;
}
.pfeil-link:hover { text-decoration: underline; }

/* Formulare */
.feld { margin-bottom: 1.1rem; }
.feld label, .feld legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.feld .hinweis { display: inline; margin-left: 0.3rem; font-weight: 400; color: var(--text-leise); font-size: 0.9rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="url"],
input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--feld-rand);
  border-radius: var(--radius);
  background: var(--grund);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--text-leise); }
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--marke);
  box-shadow: 0 0 0 4px var(--marke-hell);
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.auswahl {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius);
  background: var(--grund);
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.auswahl input { width: 1.3rem; height: 1.3rem; accent-color: var(--marke); flex: none; }
.auswahl:has(input:checked) { border-color: var(--marke); background: var(--marke-hell); }
.auswahl:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 3px; }
/* Mit Titel und Erklärung darunter */
/* In einem .feld bleibt die Auswahl eine Fläche, keine Feldbeschriftung */
.feld label.auswahl { display: flex; margin-bottom: 0.5rem; font-weight: 400; }
.auswahl-text { align-items: flex-start; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.auswahl-text input { margin-top: 0.2rem; }
.auswahl-text strong { display: block; }
.auswahl-text .leise { display: block; line-height: 1.45; }
.auswahl-aus { opacity: 0.55; cursor: not-allowed; }
/* Nach dem Prüfen (Lernmodus, Durchsicht): richtig, falsch gewählt, richtig aber nicht gewählt */
/* :has() im Selektor, damit der Zustand vor der Markierung "gewählt" gilt */
.auswahl.ist-richtig, .auswahl.ist-richtig:has(input:checked) { border-color: var(--gut); background: var(--gut-hell); }
.auswahl.ist-falsch, .auswahl.ist-falsch:has(input:checked) { border-color: var(--fehler); background: var(--fehler-hell); }
.auswahl.ist-fehlend { border-color: var(--gut); border-style: dashed; }
.auswahl.ist-richtig, .auswahl.ist-falsch, .auswahl.ist-fehlend { cursor: default; }
.auswahl-zeichen { margin-left: auto; flex: none; font-weight: 700; font-size: 0.9rem; }
.ist-richtig .auswahl-zeichen, .ist-fehlend .auswahl-zeichen { color: var(--gut); }
.ist-falsch .auswahl-zeichen { color: var(--fehler); }

/* Auswahl als Chip: Checkbox bleibt für Tastatur und Screenreader erhalten.
   Eckiges Kästchen, weil Mehrfachauswahl (ein Kreis hieße: nur eins). */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--feld-rand);
  border-radius: var(--radius);
  background: var(--grund);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.feld .chip { display: inline-flex; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  flex: none;
}
.chip:hover { border-color: var(--marke); }
.chip:has(input:checked) { background: var(--marke); border-color: var(--marke); color: var(--text-hell); }
.chip:has(input:checked)::before {
  background: var(--text-hell);
  border-color: var(--text-hell);
  box-shadow: inset 0 0 0 3px var(--marke);
}
.chip:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 3px; }
/* Ältere Browser ohne :has(): Kästchen sichtbar lassen statt eigener Marke */
@supports not selector(:has(a)) {
  .chip input { position: static; opacity: 1; width: 1.2rem; height: 1.2rem; accent-color: var(--marke); }
  .chip::before { display: none; }
}

/* Fallenfeld gegen Bots, für Menschen unsichtbar */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen: getönte Fläche mit feinem Rahmen in derselben Farbe */
.meldung {
  padding: 0.85rem 1rem;
  border: 1px solid var(--marke);
  border-radius: var(--radius);
  background: var(--marke-hell);
  margin-bottom: 1.2rem;
}
.meldung-fehler { border-color: var(--fehler); background: var(--fehler-hell); }
.meldung-gut { border-color: var(--gut); background: var(--gut-hell); }
.meldung:empty { display: none; }

/* Karte */
.karte {
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gr);
  padding: 1.5rem var(--rand);
}

/* Fortschrittsbalken: natives <progress>, Klasse .achtung für Rückstand */
progress {
  display: block;
  width: 100%;
  height: 0.65rem;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--marke-hell);
  color: var(--marke);
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--marke-hell); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--marke); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--marke); border-radius: 999px; }
progress.achtung { background: var(--achtung-hell); }
progress.achtung::-webkit-progress-bar { background: var(--achtung-hell); }
progress.achtung::-webkit-progress-value { background: var(--achtung); }
progress.achtung::-moz-progress-bar { background: var(--achtung); }

/* Siegel (Startseite, Bescheinigung, Kapitel-Stempel im Lernportal).
   Immer im Rot des Siegels, unabhängig von der Partnerfarbe. Größe setzt die Seite. */
.siegel { width: 2.6rem; height: 2.6rem; flex: none; transform: rotate(-8deg); }
.siegel-rand { fill: none; stroke: var(--messing); stroke-width: 2.5; }
.siegel-flaeche { fill: var(--siegel); }
.siegel-zacken { fill: none; stroke: #FFFFFF; stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 2 2.5; }
.siegel-pass { fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; }

/* Person als Initialen-Kreis */
.initiale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--marke-hell);
  color: var(--marke-dunkel);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Kleine Statusmarke (Partnerbereich, Verwaltung) */
.marke-status { display: inline-block; font-size: 0.9rem; font-weight: 600; padding: 0.1rem 0.65rem; border-radius: 999px; background: var(--marke-hell); color: var(--marke-dunkel); }
.marke-status.aus { background: var(--fehler-hell); color: var(--fehler); }
.marke-status.gut { background: var(--gut-hell); color: var(--gut); }
.marke-status.warn { background: var(--achtung-hell); color: var(--achtung); }

/* Ergebnis der Prüfseite: Angaben als Liste aus Begriff und Wert */
.pruef-ergebnis { margin: 1.25rem 0 0; }
.pruef-titel { margin: 0 0 0.6rem; font-weight: 700; }
.pruef-angaben { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; }
.pruef-angaben dt { color: var(--text-leise); }
.pruef-angaben dd { margin: 0; font-weight: 600; }

/* ── 5. Seitenrahmen: Kopf, schmale Seiten, Textseiten, Fuß ──────────── */

/* Kopf: bleibt beim Scrollen oben. Inhalt kommt aus src/utils/rahmen.js,
   Verwaltung und Partnerbereich haben einen eigenen, schlichteren Kopf. */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--linie-fein);
}
/* Am Handy gibt die Marke nach (ein Logo wird kleiner). Reicht der Platz
   selbst für den Schriftzug nicht, rutschen die Knöpfe in die nächste Zeile. */
.kopf .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: calc(var(--kopf-hoehe) - 1px);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
/* Sprungziele nicht unter dem stehenden Kopf verstecken */
[id] { scroll-margin-top: calc(var(--kopf-hoehe) + 1rem); }

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.marke:hover { color: var(--text); }
/* Im Kopf am Handy: die Marke füllt den Platz neben den Knöpfen und schrumpft
   mit, aber nie unter den Schriftzug. Ab 45em wieder in ihrer vollen Breite. */
.kopf .marke { flex: 1 1 0%; min-width: min-content; }
.marke-zeichen { width: 2rem; height: 2rem; flex: none; }
.marke-name { display: block; font-family: var(--schrift-titel); font-size: 1.15rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.marke-zusatz { display: none; }
/* Hochgeladenes Logo aus der Verwaltung, ersetzt Zeichen, Schriftzug und
   Zusatzzeile. Die Höhe setzt /portal-stil.css nach den Einstellungen,
   hier steht nur der Rückfallwert. */
.marke-bild { width: auto; height: 40px; max-width: 100%; object-fit: contain; object-position: left center; }
.marke-bild ~ .marke-zusatz { display: none; }

/* Navigation: am Handy im Menü, ab breiten Bildschirmen ausgeschrieben */
.haupt-nav, .kopf-aktionen { display: none; }
.nav-liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.75rem; }
.nav-liste a, .menue-liste a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.nav-liste a:hover, .menue-liste a:hover { color: var(--marke); }
.nav-liste a[aria-current="page"] { color: var(--marke); box-shadow: inset 0 -2px 0 var(--messing); }

.kopf-trenner { width: 1px; height: 1.75rem; background: var(--linie); }
.anmelden-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--text-leise);
  font-weight: 600;
  text-decoration: none;
}
.anmelden-link:hover { color: var(--marke); }
.anmelden-link svg, .anmelden-symbol svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

/* Handy: Anmelden-Symbol und Menü-Knopf */
.kopf-handy { display: flex; align-items: center; gap: 0.25rem; }
.anmelden-symbol, .menue-knopf {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.anmelden-symbol:hover, .menue-knopf:hover { background: var(--marke-hell); color: var(--marke-dunkel); }
.anmelden-symbol svg { width: 1.35rem; height: 1.35rem; }
.menue-knopf { list-style: none; }
.menue-knopf::-webkit-details-marker { display: none; }
.menue-knopf svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menue-zu, .menue[open] .menue-auf { display: none; }
.menue[open] .menue-zu { display: block; }
.menue[open] .menue-knopf { background: var(--marke-hell); }

/* Aufgeklapptes Menü: volle Breite unter dem Kopf */
.menue-inhalt {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.5rem var(--rand) 1.25rem;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  box-shadow: var(--schatten);
}
.menue-liste { list-style: none; margin: 0; padding: 0; }
.menue-liste li + li { border-top: 1px solid var(--linie-fein); }
.menue-liste a { display: flex; min-height: 3rem; font-size: 1.05rem; }
.menue-aktionen {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--linie);
}

/* Verwaltung und Partnerbereich: Schaltflächen rechts im Kopf */
.kopf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* Schmale Seiten: Login, Passwort */
.schmal {
  max-width: 28rem;
  margin: 2rem auto 3rem;
  padding: 0 var(--rand);
}
.schmal h1 { font-size: 1.85rem; }
.schmal .karte { box-shadow: var(--schatten); border-color: transparent; }
.schmal .unten { margin-top: 1.2rem; text-align: center; }
.bereich-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

/* Fließtextseiten: Impressum, Datenschutz, Ratgeber (dazu public/css/ratgeber.css) */
.text-seite { max-width: 46rem; margin: 2.5rem auto 3.5rem; padding: 0 var(--rand); }
.text-seite h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.text-seite h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.text-seite address { font-style: normal; margin-bottom: 1em; }
.text-seite ul, .text-seite ol { padding-left: 1.3rem; margin: 0 0 1em; }
.text-seite li { margin-bottom: 0.3rem; }
.text-seite code { font-size: 0.9em; background: var(--flaeche); padding: 0.1em 0.35em; border-radius: 4px; }

/* Fuß: mehrspaltig auf dunklem Tannengrün, oben eine feine Messinglinie */
.fuss {
  margin-top: auto;
  background: var(--tanne-dunkel);
  border-top: 1px solid var(--messing);
  color: var(--text-hell-leise);
  font-size: 0.95rem;
  --fokus: var(--messing-hell);
}
.fuss .huelle { padding-top: 3rem; }
.fuss a { color: var(--text-hell); text-decoration: none; }
.fuss a:hover { color: var(--messing-hell); text-decoration: underline; }
.fuss p { margin: 0; }
.fuss-raster { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
/* Weißes Logo direkt auf dem dunklen Grund, genau so breit wie der Satz darunter:
   Der Block ist so breit wie die längste Zeile (fit-content), das Logo füllt ihn.
   width: 0 mit min-width: 100%, damit das Bild die Breite nicht selbst vorgibt. */
.fuss-marke { width: fit-content; max-width: 100%; }
.fuss-marke .marke { display: block; }
.marke-fuss-bild { width: 0; min-width: 100%; height: auto; }
/* Umbruch fest nach "zur"; ab 45em bleibt jede Zeile ganz, am Handy darf sie umbrechen */
.fuss .fuss-satz { margin-top: 1rem; color: var(--text-hell); }
.fuss .fuss-zusatz { margin-top: 0.4rem; font-size: 0.85rem; }
.fuss-titel {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--messing-hell);
}
.fuss-links { list-style: none; margin: 0; padding: 0; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.fuss-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}
.fuss-copy strong { color: var(--text-hell); }

/* ── Größere Bildschirme ─────────────────────────────────────────────── */
@media (min-width: 45em) {
  :root { --rand: 2rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  .marke-zusatz {
    display: block;
    font-size: 0.8rem;
    color: var(--text-leise);
    margin-top: 0.3rem;
  }
  .marke-name { font-size: 1.3rem; }
  .kopf .marke { flex: none; }
  .marke-bild { max-width: 62vw; }
  .karte { padding: 2rem; }
  .schmal { margin-top: 4rem; }
  .fuss-raster { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
  .fuss-marke { grid-column: 1 / -1; }
  .fuss .fuss-satz { white-space: nowrap; }
}

@media (min-width: 64em) {
  .fuss-raster { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .fuss-marke { grid-column: auto; }
}

/* Ausgeschriebene Navigation erst, wenn Logo, Links und Schaltflächen
   nebeneinander Platz haben (mit "Ratgeber" ab 1216 px) */
@media (min-width: 76em) {
  .kopf-handy { display: none; }
  .haupt-nav { display: block; margin-left: auto; }
  .kopf-aktionen { display: flex; align-items: center; gap: 1.25rem; margin-left: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
