/* ============================================================
   Design-System Kanzlei Saltan — „warm-dunkel mit hellen Inseln“
   Farben aus dem Logo: Anthrazit #232323, Weinrot #821301
   ============================================================ */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/schriften/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/schriften/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --anthrazit: #232323;
  --anthrazit-tief: #1a1a1a;
  --anthrazit-linie: #3a3a3a;
  --rot: #821301;
  --rot-dunkel: #641000;
  --rot-zart: #f4e8e6;
  --papier: #f7f4ef;          /* warmes Off-White, Inhaltsflächen */
  --papier-karte: #fffefb;    /* Karten auf Papier */
  --papier-rand: #e4ded4;
  --tinte: #26221e;           /* Text auf hell */
  --tinte-leise: #5d564d;     /* Nebentext auf hell */
  --hell: #f2efe9;            /* Text auf dunkel */
  --hell-leise: #b9b3aa;      /* Nebentext auf dunkel */

  /* Schrift */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --schrift-basis: 1.0625rem;      /* 17 px */
  --zeile: 1.6;

  /* Raster */
  --breite: 78rem;
  --breite-text: 44rem;
  --abstand-1: 0.5rem;
  --abstand-2: 1rem;
  --abstand-3: 1.5rem;
  --abstand-4: 2.5rem;
  --abstand-5: 4rem;
  --abstand-6: 6rem;
  --rundung: 0.375rem;
  --rundung-gross: 0.75rem;
  --schatten: 0 1px 2px rgb(38 34 30 / 0.06), 0 8px 24px rgb(38 34 30 / 0.07);

  /* Platzhalter-Markierung */
  --platzhalter: #ffe95c;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--schrift-basis);
  line-height: var(--zeile);
  color: var(--tinte);
  background: var(--papier);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--abstand-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); }
h3 { font-size: clamp(1.17rem, 2.4vw, 1.375rem); }

p { margin: 0 0 var(--abstand-2); max-width: var(--breite-text); }
ul, ol { padding-left: 1.25rem; }

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

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

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

::selection { background: var(--rot); color: #fff; }

.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Platzhalter nach fester Regel: gelb und auffällig */
.platzhalter,
mark.platzhalter {
  background: var(--platzhalter);
  padding: 0 0.25em;
  font-weight: 600;
}

/* ---------- Flächen ---------- */
.flaeche { padding-block: var(--abstand-5); }
.flaeche--eng { padding-block: var(--abstand-4); }
.flaeche--dunkel {
  background: var(--anthrazit);
  color: var(--hell);
}
.flaeche--dunkel h1, .flaeche--dunkel h2, .flaeche--dunkel h3 { color: #fff; }
.flaeche--dunkel a { color: #e8a79a; }
.flaeche--dunkel a:hover { color: #f3c4ba; }

.mitte {
  width: min(100% - 2 * var(--abstand-3), var(--breite));
  margin-inline: auto;
}

.vorspann {
  font-size: 1.17em;
  color: var(--tinte-leise);
  max-width: var(--breite-text);
}
.flaeche--dunkel .vorspann { color: var(--hell-leise); }

.ueberzeile {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: var(--abstand-1);
}
.flaeche--dunkel .ueberzeile { color: #d98a78; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--rundung);
  border: 2px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.knopf:active { transform: translateY(1px); }

.knopf--voll {
  background: var(--rot);
  color: #fff;
}
.knopf--voll:hover { background: var(--rot-dunkel); color: #fff; }

.knopf--rahmen {
  background: transparent;
  color: var(--tinte);
  border-color: currentColor;
}
.knopf--rahmen:hover { color: var(--rot-dunkel); }
.flaeche--dunkel .knopf--rahmen { color: var(--hell); }
.flaeche--dunkel .knopf--rahmen:hover { color: #fff; border-color: #fff; }

.knopf--breit { width: 100%; justify-content: center; }

/* ---------- Karten ---------- */
.karte {
  background: var(--papier-karte);
  border: 1px solid var(--papier-rand);
  border-radius: var(--rundung-gross);
  padding: var(--abstand-3);
  box-shadow: var(--schatten);
}
a.karte {
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
a.karte:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgb(38 34 30 / 0.07), 0 14px 34px rgb(38 34 30 / 0.11);
}
a.karte:hover h3 { color: var(--rot); }

.kartenraster {
  display: grid;
  gap: var(--abstand-3);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-block: var(--abstand-4) 0;
}

/* ---------- Formularfelder (Bausteine für Schritt 2) ---------- */
.feld { margin-bottom: var(--abstand-3); }
.feld label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}
.feld input,
.feld select,
.feld textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #b9ae9d;
  border-radius: var(--rundung);
  background: #fff;
}
.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--rot) 35%, transparent);
  border-color: var(--rot);
}
.feld .hinweis {
  font-size: 0.9rem;
  color: var(--tinte-leise);
  margin-top: 0.3rem;
}

/* ---------- Kopfbereich ---------- */
.kopf {
  background: var(--anthrazit);
  color: var(--hell);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--anthrazit-linie);
}
.kopf__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-3);
  min-height: 6.5rem;
}
@media (max-width: 54rem) { .kopf__zeile { min-height: 5.25rem; } }
.kopf__logo { display: inline-block; transition: transform 200ms ease; transform-origin: left center; }
.kopf__logo:hover, .kopf__logo:focus-visible { transform: scale(1.04); }
.kopf__logo img { height: 5rem; width: auto; display: block; }
@media (max-width: 54rem) { .kopf__logo img { height: 3rem; } }
@media (prefers-reduced-motion: reduce) { .kopf__logo { transition: none; } .kopf__logo:hover { transform: none; } }
.kopf__nav { display: flex; align-items: center; gap: 1.25rem; }
.kopf__nav a { white-space: nowrap; }
.kopf__nav a {
  color: var(--hell);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.99rem;
}
.kopf__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.3em; }
.kopf__nav .knopf { padding: 0.5rem 1rem; }

.kopf__nav .kopf__tel {
  display: inline-flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
  padding-left: var(--abstand-3);
  border-left: 1px solid var(--anthrazit-linie);
}
@media (max-width: 82rem) { .kopf__nav .kopf__tel { display: none; } }

/* Aufklappmenüs (PC) */
.navgruppe { position: relative; }
.navgruppe__kopf::after {
  content: "";
  display: inline-block;
  width: 0.38em; height: 0.38em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
  opacity: 0.75;
}
.navgruppe__liste {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--anthrazit);
  border: 1px solid var(--anthrazit-linie);
  border-top: 2px solid var(--rot);
  border-radius: 0 0 var(--rundung) var(--rundung);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
/* unsichtbare Brücke, damit das Menü beim Herunterfahren mit der Maus offen bleibt */
.navgruppe::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.4rem; }
.navgruppe__liste { margin-top: 1.4rem; }
.navgruppe:hover .navgruppe__liste,
.navgruppe:focus-within .navgruppe__liste {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.kopf__nav .navgruppe__liste a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  white-space: nowrap;
}
.kopf__nav .navgruppe__liste a:hover,
.kopf__nav .navgruppe__liste a:focus-visible {
  background: var(--anthrazit-tief);
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .navgruppe__liste { transition: none; }
}

.kopf__klapp { display: none; }

@media (max-width: 54rem) {
  .kopf__nav { display: none; }
  .kopf__klapp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px solid var(--anthrazit-linie);
    color: var(--hell);
    font: inherit;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    border-radius: var(--rundung);
    cursor: pointer;
  }
  .kopf__menue[hidden] { display: none; }
  .kopf__menue {
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem 0 1rem;
  }
  .kopf__menue a {
    color: var(--hell);
    text-decoration: none;
    font-weight: 600;
    padding: 0.55rem 0.25rem;
    border-radius: var(--rundung);
  }
  .kopf__menue a:hover { background: var(--anthrazit-tief); }
  .kopf__menuegruppe summary {
    color: var(--hell);
    font-weight: 600;
    padding: 0.55rem 0.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .kopf__menuegruppe summary::-webkit-details-marker { display: none; }
  .kopf__menuegruppe summary::after {
    content: "";
    width: 0.45em; height: 0.45em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 0.4rem;
    transition: transform 0.15s ease;
  }
  .kopf__menuegruppe[open] summary::after { transform: rotate(225deg); }
  .kopf__menuegruppe a {
    display: block;
    padding-left: 1.1rem;
    font-weight: 500;
    color: var(--hell-leise);
    border-left: 2px solid var(--anthrazit-linie);
    margin-left: 0.3rem;
    border-radius: 0;
  }
}
@media (min-width: 54.0625rem) {
  .kopf__menue { display: none !important; }
}

/* ---------- Held (Startseite) ---------- */
.held {
  position: relative;
  background: var(--anthrazit-tief);
  color: var(--hell);
  overflow: hidden;
}
/* Säule und roter Strich wie im Logo: Säule | Strich | Text */
.held__marke { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 2.75rem; }
/* Kopfleiste und Startbereich breiter als der Inhalt; Spalten im Goldenen Schnitt (1,618 : 1) */
@media (min-width: 64rem) {
  .held > .mitte, .kopf > .mitte { width: min(100% - 2 * var(--abstand-4), 90rem); }
  .kopf__nav { gap: 1.75rem; }
}
.held__saeule { width: 9rem; height: auto; }
.held__text { position: relative; padding-left: 2.75rem; }
.held__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3.5rem;
  bottom: -3.5rem;
  width: 1.5px;
  background: linear-gradient(180deg, transparent 0, #9a2a17 28%, #9a2a17 72%, transparent 100%);
}
@media (min-width: 64rem) {
  .held__text .held__knoepfe { gap: 0.75rem; }
  .held__text .held__knoepfe .knopf { padding-inline: 1.1rem; }
}
@media (min-width: 64.0625rem) and (max-width: 80rem) {
  .held__marke { gap: 0 1.75rem; }
  .held__saeule { width: 6rem; }
  .held__text { padding-left: 1.75rem; }
  .held__raster { column-gap: var(--abstand-4); }
}
@media (max-width: 64rem) {
  .held__marke { display: block; }
  .held__saeule { display: none; }
  .held__text { padding-left: 0; }
  .held__text::before { display: none; }
}
.held__raster {
  display: grid;
  gap: var(--abstand-4);
  align-items: center;
  padding-block: var(--abstand-5);
}
@media (min-width: 54rem) {
  .held__raster {
    grid-template-columns: 1.618fr 1fr;
    column-gap: var(--abstand-5);
    min-height: min(calc(100svh - 6.5rem - 6rem), 46rem);
  }
}
@media (max-width: 53.9375rem) {
  .held__medien {
    max-width: 30rem;
    margin-inline: auto;
  }
  .held__medien img,
  .held__medien video { aspect-ratio: 3 / 4; }
}
.held h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  color: #fff;
  margin-bottom: var(--abstand-3);
}
.held__satz {
  font-size: 1.22em;
  color: var(--hell-leise);
  max-width: 36rem;
}
.held__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand-2);
  margin-top: var(--abstand-4);
}
.held .knopf--rahmen { color: var(--hell); }
.held .knopf--rahmen:hover { color: #fff; border-color: #fff; }
.held__sprachen {
  margin-top: var(--abstand-3);
  color: var(--hell-leise);
  font-size: 0.97rem;
  letter-spacing: 0.04em;
}
.held__medien {
  position: relative;
  border-radius: var(--rundung-gross);
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  max-height: 44rem;
}
.held__medien img,
.held__medien video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ---------- Vertrauensleiste ---------- */
.vertrauen {
  background: var(--anthrazit);
  border-top: 1px solid var(--anthrazit-linie);
  color: var(--hell);
  padding-block: var(--abstand-3);
}
.vertrauen__raster {
  display: grid;
  gap: var(--abstand-3);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  text-align: center;
}
.vertrauen__wert {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  color: #fff;
}
.vertrauen__wort { color: var(--hell-leise); font-size: 0.95rem; }
.vertrauen__wort a { color: #e8a79a; text-underline-offset: 0.2em; }
.vertrauen__wort a:hover { color: #f3c4ba; }

/* ---------- Einstiege (drei Wege) ---------- */
.einstieg { border-top: 4px solid var(--rot); }
.einstieg h2, .einstieg h3 { margin-top: var(--abstand-1); font-size: 1.35rem; }
.einstieg p { color: var(--tinte-leise); }
.einstieg .knopf { margin-top: var(--abstand-1); }

/* ---------- Ablauf in drei Schritten ---------- */
.ablauf {
  counter-reset: schritt;
  display: grid;
  gap: var(--abstand-3);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: var(--abstand-4);
  padding: 0;
  list-style: none;
}
.ablauf li { counter-increment: schritt; }
.ablauf li::before {
  content: counter(schritt, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 650;
  color: var(--rot);
  line-height: 1;
  margin-bottom: var(--abstand-1);
}

/* ---------- Mandantenstimmen ---------- */
.stimme {
  border-left: 4px solid var(--rot);
  border-radius: 0 var(--rundung-gross) var(--rundung-gross) 0;
}
.stimme blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.stimme figcaption {
  margin-top: var(--abstand-2);
  color: var(--tinte-leise);
  font-size: 0.92rem;
}
.sterne { color: var(--rot); letter-spacing: 0.1em; }

/* ---------- Kontaktbalken ---------- */
.kontaktbalken {
  background: var(--rot);
  color: #fff;
}
.kontaktbalken h2 { color: #fff; }
.kontaktbalken .mitte {
  display: grid;
  gap: var(--abstand-3);
  align-items: center;
  padding-block: var(--abstand-4);
}
@media (min-width: 54rem) {
  .kontaktbalken .mitte { grid-template-columns: 1fr auto; }
}
.kontaktbalken p { color: #f6d9d1; margin: 0; }
.kontaktbalken__knoepfe { display: flex; flex-wrap: wrap; gap: var(--abstand-2); }
.kontaktbalken .knopf--voll { background: #fff; color: var(--rot); }
.kontaktbalken .knopf--voll:hover { background: var(--papier); color: var(--rot-dunkel); }
.kontaktbalken .knopf--rahmen { color: #fff; }

/* ---------- Fußbereich ---------- */
.fuss {
  background: var(--anthrazit-tief);
  color: var(--hell-leise);
  padding-block: var(--abstand-5) var(--abstand-4);
  font-size: 0.97rem;
}
.fuss a { color: var(--hell); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss__raster {
  display: grid;
  gap: var(--abstand-4);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.fuss__logo img { height: 3.4rem; width: auto; margin-bottom: var(--abstand-2); }
.fuss h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.fuss__orte {
  margin-top: var(--abstand-4);
  font-size: 0.85rem;
  line-height: 1.9;
}
.fuss__orte + .fuss__unten { margin-top: var(--abstand-2); }
.fuss__unten {
  margin-top: var(--abstand-4);
  padding-top: var(--abstand-3);
  border-top: 1px solid var(--anthrazit-linie);
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand-2) var(--abstand-4);
  justify-content: space-between;
}

/* ---------- Mobiler Kontaktknopf (schmal, am Seitenende ausgeblendet) ---------- */
.handyleiste {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  background: rgb(26 26 26 / 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--anthrazit-linie);
  padding: 0.5rem var(--abstand-3) calc(0.5rem + env(safe-area-inset-bottom));
  transition: transform 200ms ease;
}
.handyleiste.versteckt { transform: translateY(110%); }
.handyleiste__raster {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
}
.handyleiste .knopf { padding: 0.55rem 0.5rem; font-size: 0.95rem; justify-content: center; }
.handyleiste .knopf--rahmen { color: var(--hell); }
@media (max-width: 54rem) {
  .handyleiste { display: block; }
  body { padding-bottom: 3.6rem; }
}

/* ---------- Themenseite ---------- */
.thema__kopf { padding-block: var(--abstand-4); }
.thema__kopf h1 { max-width: 48rem; }
.thema__stand { color: var(--hell-leise); font-size: 0.92rem; }

.kasten {
  background: var(--papier-karte);
  border: 1px solid var(--papier-rand);
  border-left: 5px solid var(--rot);
  border-radius: var(--rundung);
  padding: var(--abstand-3);
  margin-block: var(--abstand-3);
  max-width: var(--breite-text);
}
.kasten--frist {
  background: var(--rot-zart);
  border-color: var(--rot);
}
.kasten--frist .frist__zahl {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 650;
  color: var(--rot);
  display: block;
  line-height: 1.15;
}
.kasten--frist .frist__norm { font-size: 0.85rem; color: var(--tinte-leise); }

/* Inhaltsverzeichnis: Handy oben zum Aufklappen, PC rechts mitlaufend */
.inhaltsverzeichnis {
  max-width: var(--breite-text);
  margin-block: var(--abstand-3);
  border: 1px solid var(--papier-rand);
  border-radius: var(--rundung);
  background: var(--papier-karte);
  padding: 0.75rem 1rem;
}
.inhaltsverzeichnis summary { cursor: pointer; font-weight: 650; }
.inhaltsverzeichnis ol { margin: 0.6rem 0 0.2rem; padding-left: 1.2rem; }
.inhaltsverzeichnis li { margin-bottom: 0.35rem; }
.inhaltsverzeichnis a { text-decoration: none; }
.inhaltsverzeichnis a:hover { text-decoration: underline; }
@media (min-width: 64rem) { .inhaltsverzeichnis--mobil { display: none; } }
.seitennav { display: none; }
@media (min-width: 64rem) {
  .seitennav { display: block; margin-bottom: var(--abstand-3); }
  .seitennav__titel {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--tinte-leise); margin: 0 0 0.6rem;
  }
  .seitennav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--papier-rand); }
  .seitennav a {
    display: block;
    padding: 0.32rem 0 0.32rem 0.9rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--tinte-leise);
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.35;
    transition: color 150ms ease, border-color 150ms ease;
  }
  .seitennav a:hover { color: var(--tinte); }
  .seitennav a[aria-current="true"] { color: var(--rot); border-left-color: var(--rot); font-weight: 600; }
}

.thema__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--abstand-5);
  align-items: start;
}
@media (min-width: 64rem) {
  .thema__raster { grid-template-columns: minmax(0, 1fr) 20rem; }
  .thema__seite { position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow-y: auto; scrollbar-width: none; }
}

.autorenbox {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--abstand-2);
  align-items: center;
  margin-block: var(--abstand-4);
  max-width: var(--breite-text);
}
.autorenbox img {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}
.autorenbox p { margin: 0; font-size: 0.95rem; }

/* ---------- Rechtsgebiete (redaktionell, ohne Kartenschatten) ---------- */
.gebiete {
  display: grid;
  gap: 0 var(--abstand-5);
  margin-top: var(--abstand-4);
}
@media (min-width: 48rem) {
  .gebiete { grid-template-columns: 1fr 1fr; }
}
.gebiet {
  display: block;
  padding: var(--abstand-3) 0 var(--abstand-4);
  border-top: 1px solid var(--anthrazit-linie);
  color: var(--hell);
  text-decoration: none;
}
.flaeche--dunkel a.gebiet { color: var(--hell); }
.gebiet__nr {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #d98a78;
  letter-spacing: 0.08em;
}
.gebiet h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.35rem 0 0.6rem;
  transition: color 160ms ease;
}
.gebiet p { color: var(--hell-leise); margin-bottom: var(--abstand-2); }
.gebiet__mehr {
  font-weight: 650;
  font-size: 0.95rem;
  color: #e8a79a;
}
.gebiet__mehr::after { content: " →"; transition: margin 160ms ease; }
.gebiet:hover h3 { color: #fff; }
.gebiet:hover .gebiet__mehr::after { margin-left: 0.3rem; }

/* ---------- Über mich (asymmetrisch) ---------- */
.ueber {
  display: grid;
  gap: var(--abstand-4);
  align-items: center;
}
@media (min-width: 54rem) {
  .ueber { grid-template-columns: 0.8fr 1.2fr; gap: var(--abstand-6); }
}
.ueber__bild {
  max-width: 26rem;
  position: relative;
}
.ueber__bild::after {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--rot);
  border-radius: var(--rundung-gross);
  z-index: -1;
}
.ueber__bild img {
  border-radius: var(--rundung-gross);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  width: 100%;
}
.ueber__fakten {
  list-style: none;
  padding: 0;
  margin: var(--abstand-3) 0 var(--abstand-4);
  display: grid;
  gap: 0.5rem;
}
.ueber__fakten li {
  padding-left: 1.4rem;
  position: relative;
}
.ueber__fakten li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.75rem;
  height: 2px;
  background: var(--rot);
}

/* ---------- Fotofläche (Vorbild: Kontaktabschnitt der Startseite) ---------- */
.fotoflaeche {
  position: relative;
  color: var(--hell);
  overflow: hidden;
  isolation: isolate;
  background: var(--anthrazit-tief);
}
.fotoflaeche__bild { position: absolute; inset: 0; z-index: -2; }
.fotoflaeche__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(1);
}
.fotoflaeche::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(20 20 20 / 0.88), rgb(20 20 20 / 0.78));
}
.fotoflaeche__inhalt { padding-block: var(--abstand-6); }
.fotoflaeche h2, .fotoflaeche h3 { color: #fff; }
.fotoflaeche .ueberzeile { color: #d98a78; }

/* Variante: Hochformat-Foto rechts als Streifen (PC), Vollbild auf dem Handy */
@media (min-width: 64rem) {
  .fotoflaeche--seitlich .fotoflaeche__bild { left: auto; width: 46%; }
  .fotoflaeche--seitlich .fotoflaeche__bild img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  }
  .fotoflaeche--seitlich::before {
    background: linear-gradient(90deg, rgb(20 20 20 / 0.97) 0, rgb(20 20 20 / 0.97) 52%, rgb(20 20 20 / 0.25) 100%);
  }
  .fotoflaeche--seitlich .fotoflaeche__inhalt > * { max-width: 40rem; }
  .fotoflaeche--seitlich .spalten--vier { grid-template-columns: 1fr 1fr; gap: var(--abstand-4) var(--abstand-4); }
}

/* ---------- Spalten mit roter Linie (hell und auf Fotofläche) ---------- */
.spalten {
  display: grid;
  gap: var(--abstand-4);
  margin-top: var(--abstand-4);
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .spalten--vier { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 54rem) {
  .spalten { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .spalten--vier { grid-template-columns: repeat(4, 1fr); gap: var(--abstand-3); }
}
.spalte {
  border-left: 2px solid var(--rot);
  padding-left: var(--abstand-3);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.spalte h3 { font-size: 1.5rem; margin-top: 0; }
.spalte p { color: var(--tinte-leise); }
.spalte > a:not(.knopf) { font-weight: 650; text-underline-offset: 0.25em; margin-top: auto; }
.spalte > .knopf { margin-top: auto; }
.spalte__nr {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 650;
  line-height: 1;
  color: var(--rot);
  margin-bottom: var(--abstand-1);
}
.spalte__mehr::after { content: " →"; transition: margin 160ms ease; }
.spalte__mehr:hover::after { margin-left: 0.3rem; }
.fotoflaeche .spalte p { color: var(--hell-leise); }
.fotoflaeche .spalte > a:not(.knopf) { color: #fff; }
.fotoflaeche .spalte > a:not(.knopf):hover { color: #f3c4ba; }
.fotoflaeche .spalte__nr { color: #d98a78; font-size: 0.95rem; letter-spacing: 0.08em; }

.flaeche--abgesetzt { background: #efebe4; }

/* ---------- Bewegung ---------- */
.einblenden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 450ms ease;
}
.einblenden.sichtbar { opacity: 1; transform: none; }

/* Übergänge zwischen Seiten (View Transitions, moderne Browser; andere laden normal) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms ease both seite-weg; }
::view-transition-new(root) { animation: 320ms ease both seite-her; }
@keyframes seite-weg { to { opacity: 0; transform: translateY(-6px); } }
@keyframes seite-her { from { opacity: 0; transform: translateY(8px); } }

/* Kopfzeile wird beim Scrollen schlanker */
.kopf { transition: box-shadow 250ms ease, background-color 250ms ease; }
.kopf__zeile { transition: min-height 250ms ease; }
.kopf__logo img { transition: height 250ms ease; }
.kopf--klein { box-shadow: 0 6px 24px rgb(0 0 0 / 0.28); background: rgb(35 35 35 / 0.97); }
.kopf--klein .kopf__zeile { min-height: 4.4rem; }
.kopf--klein .kopf__logo img { height: 3.3rem; }

/* Rote Akzentlinie unter Abschnittsüberschriften, zieht sich beim Einblenden auf */
.flaeche h2.einblenden::after,
.fotoflaeche h2.einblenden::after,
.thema__text h2.einblenden::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1) 150ms;
}
.fotoflaeche h2.einblenden::after { background: #c0442c; }
.einblenden.sichtbar::after { transform: scaleX(1); }

/* Langsamer Zoom auf Standbildern in Fotoflächen (Schleifen bewegen sich selbst) */
.fotoflaeche__bild img { transform: scale(1.06); transition: transform 9s cubic-bezier(.2,.6,.2,1); }
.fotoflaeche.bild-an .fotoflaeche__bild img { transform: scale(1); }

/* Auftakt der Startseite */
.held__text > * { animation: auftakt 700ms cubic-bezier(.2,.7,.2,1) both; }
.held__text > *:nth-child(2) { animation-delay: 80ms; }
.held__text > *:nth-child(3) { animation-delay: 160ms; }
.held__text > *:nth-child(4) { animation-delay: 240ms; }
.held__text > *:nth-child(5) { animation-delay: 320ms; }
.held__saeule { animation: auftakt 900ms cubic-bezier(.2,.7,.2,1) both; }
.held__text::before { animation: strich 1200ms cubic-bezier(.2,.7,.2,1) 150ms both; }
@keyframes strich { from { opacity: 0; transform: scaleY(0.6); } }
.held__medien { animation: auftakt-bild 1100ms cubic-bezier(.2,.7,.2,1) 120ms both; }
@keyframes auftakt { from { opacity: 0; transform: translateY(16px); } }
@keyframes auftakt-bild { from { opacity: 0; transform: scale(0.97); } }

/* Themenlisten: Pfeil gleitet beim Überfahren */
.themenliste__eintrag h2::after { content: " →"; color: var(--rot); opacity: 0; margin-left: -0.4rem; transition: opacity 180ms ease, margin 180ms ease; }
.themenliste__eintrag:hover h2::after, .themenliste__eintrag:focus-visible h2::after { opacity: 1; margin-left: 0.2rem; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .fotoflaeche__bild img { transform: none; }
  .einblenden::after { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .einblenden { opacity: 1; transform: none; transition: none; }
  .handyleiste { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Formulare (Mandatsaufnahme online)
   ============================================================ */
.formular-seite { padding-block: var(--abstand-4) var(--abstand-5); }
.formular-rahmen {
  max-width: 44rem;
  margin-inline: auto;
}
.formular {
  background: var(--papier-karte);
  border: 1px solid var(--papier-rand);
  border-radius: var(--rundung-gross);
  box-shadow: var(--schatten);
  padding: var(--abstand-4) var(--abstand-3);
}
@media (min-width: 40rem) { .formular { padding: var(--abstand-4); } }

.fortschritt {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--abstand-3);
  counter-reset: fs;
}
.fortschritt li {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--papier-rand);
  transition: background-color 200ms ease;
}
.fortschritt li.erledigt, .fortschritt li.aktiv { background: var(--rot); }
.fortschritt__text {
  font-size: 0.9rem;
  color: var(--tinte-leise);
  margin-bottom: var(--abstand-1);
}

.schritt { border: 0; padding: 0; margin: 0; min-width: 0; }
.schritt[hidden] { display: none; }
.schritt legend {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: var(--abstand-3);
}
.schritt__knoepfe {
  display: flex;
  justify-content: space-between;
  gap: var(--abstand-2);
  margin-top: var(--abstand-4);
  padding-top: var(--abstand-3);
  border-top: 1px solid var(--papier-rand);
}
.schritt__knoepfe .knopf--rahmen { color: var(--tinte-leise); border-color: var(--papier-rand); }
.schritt__knoepfe :only-child { margin-left: auto; }

.feldreihe { display: grid; gap: 0 var(--abstand-2); }
@media (min-width: 34rem) { .feldreihe { grid-template-columns: 1fr 1fr; } }
.feldreihe--plz { grid-template-columns: 7rem 1fr; }

.feld .pflicht { color: var(--rot); }
.feld input[aria-invalid="true"],
.feld select[aria-invalid="true"],
.feld textarea[aria-invalid="true"] { border-color: var(--rot); background: #fff8f6; }
.feld__fehler {
  color: var(--rot);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.feld__fehler:empty { display: none; }

/* Auswahl als große Kacheln (Radio/Checkbox) */
.auswahl { display: grid; gap: 0.5rem; margin-bottom: var(--abstand-3); }
.auswahl--zwei { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.auswahl label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--papier-rand);
  border-radius: var(--rundung);
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.auswahl label:hover { border-color: #b9ae9d; }
.auswahl input { accent-color: var(--rot); width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.auswahl label:has(input:checked) { border-color: var(--rot); background: #fdf6f4; }
.auswahl__titel { font-weight: 650; margin-bottom: 0.5rem; display: block; }

.abhaengig[hidden] { display: none; }

/* Upload */
.upload__knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.upload__knoepfe label { cursor: pointer; }
.upload__knoepfe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload__knoepfe label:focus-within { outline: 3px solid var(--rot); outline-offset: 2px; }
.upload__liste {
  list-style: none;
  padding: 0;
  margin: var(--abstand-2) 0 0;
  display: grid;
  gap: 0.5rem;
}
.upload__liste li {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--papier-rand);
  border-radius: var(--rundung);
  background: #fff;
  font-size: 0.93rem;
}
.upload__liste img, .upload__pdf {
  width: 3.5rem; height: 3.5rem;
  object-fit: cover;
  border-radius: 4px;
  background: var(--papier);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.8rem; color: var(--rot);
}
.upload__liste button {
  background: none; border: 0; color: var(--tinte-leise);
  font: inherit; cursor: pointer; text-decoration: underline;
}

/* Fristanzeige */
.fristanzeige {
  margin-block: var(--abstand-2) var(--abstand-3);
  padding: var(--abstand-3);
  border-radius: var(--rundung);
  background: var(--rot-zart);
  border-left: 5px solid var(--rot);
}
.fristanzeige[hidden] { display: none; }
.fristanzeige__datum {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--rot);
  display: block;
  margin: 0.2rem 0 0.4rem;
}
.fristanzeige p { margin: 0 0 0.4rem; font-size: 0.95rem; }
.fristanzeige__klein { font-size: 0.85rem !important; color: var(--tinte-leise); }
.fristanzeige--ohne { background: #f1efe9; border-left-color: var(--tinte-leise); }

/* Vollmacht und Unterschrift */
.vollmacht {
  max-height: 18rem;
  overflow-y: auto;
  padding: var(--abstand-3);
  border: 1px solid var(--papier-rand);
  border-radius: var(--rundung);
  background: #fff;
  font-size: 0.93rem;
  margin-bottom: var(--abstand-3);
}
.vollmacht h3 { font-size: 1.1rem; }
.vollmacht ul { padding-left: 1.1rem; }
.unterschrift { margin-bottom: var(--abstand-3); }
.unterschrift canvas {
  display: block;
  width: 100%;
  height: 11rem;
  border: 1.5px dashed #b9ae9d;
  border-radius: var(--rundung);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.unterschrift__leiste {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--tinte-leise);
  margin-top: 0.35rem;
}
.unterschrift__leiste button {
  background: none; border: 0; color: var(--rot);
  font: inherit; font-weight: 600; cursor: pointer;
}
.hinweis-kasten {
  font-size: 0.9rem;
  color: var(--tinte-leise);
  background: var(--papier);
  border-radius: var(--rundung);
  padding: 0.75rem 1rem;
  margin-bottom: var(--abstand-3);
}
.einwilligung label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.einwilligung input { accent-color: var(--rot); width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; }

.formular__status {
  margin-top: var(--abstand-2);
  font-weight: 600;
}
.formular__status--fehler { color: var(--rot); }

/* Eingangsbestätigung */
.bestaetigung { text-align: left; }
.bestaetigung__haken {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--rot); color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: var(--abstand-2);
}
.bestaetigung ul { padding-left: 1.2rem; }
.bestaetigung li { margin-bottom: 0.35rem; }

/* Wegweiser „Fall schildern“ */
.wegweiser { display: grid; gap: var(--abstand-3); margin-top: var(--abstand-4); }
@media (min-width: 54rem) { .wegweiser { grid-template-columns: repeat(3, 1fr); } }

/* Vorschau der Original-Vollmacht */
.vollmacht-vorlage { margin: 0 0 var(--abstand-2); }
.vollmacht-vorlage img {
  width: 100%;
  max-width: 34rem;
  border: 1px solid var(--papier-rand);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  background: #fff;
}
.vollmacht-vorlage figcaption { font-size: 0.9rem; color: var(--tinte-leise); margin-top: 0.6rem; }
.vollmacht-details { margin-bottom: var(--abstand-3); }
.vollmacht-details summary { cursor: pointer; font-weight: 600; color: var(--rot); margin-bottom: 0.5rem; }

/* ---------- Themenseiten: Ergänzungen ---------- */
.brotkrumen {
  font-size: 0.88rem;
  color: var(--tinte-leise);
  padding-block: 0.7rem;
}
.brotkrumen a { color: var(--tinte-leise); }
.kasten__titel { font-size: 1.1rem; margin-bottom: 0.5rem; }
.kasten ol { margin: 0; padding-left: 1.2rem; }
.kasten li { margin-bottom: 0.3rem; }
.kasten--frist p { margin: 0.2rem 0; }
.thema__text h2, .thema__text .kasten { scroll-margin-top: 6.5rem; }
.thema__text h2 { margin-top: var(--abstand-4); }
.thema__text h3 { margin-top: var(--abstand-3); }
.thema__text ul, .thema__text ol { max-width: var(--breite-text); }
.thema__text li { margin-bottom: 0.35rem; }
.kontaktbox-mobil { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: var(--abstand-3); }
@media (min-width: 64rem) { .kontaktbox-mobil { display: none; } }
.fehlerliste { padding-left: 1.3rem; }
.fehlerliste li::marker { color: var(--rot); font-weight: 700; }
.ablauf--klein { margin-top: var(--abstand-2); }
.ablauf--klein li::before { font-size: 1.8rem; }
.faq details {
  border-top: 1px solid var(--papier-rand);
  padding: 0.85rem 0;
  max-width: var(--breite-text);
}
.faq details:last-child { border-bottom: 1px solid var(--papier-rand); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rot); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { margin-top: 0.6rem; }
.rechtsgrundlagen { font-size: 0.9rem; color: var(--tinte-leise); margin-block: var(--abstand-3); }
.rechtsgrundlagen summary { cursor: pointer; font-weight: 600; }
.verwandt { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.verwandt a { font-weight: 600; text-decoration: none; }
.verwandt a::before { content: "→ "; }
.verwandt a:hover { text-decoration: underline; }

/* Übersicht je Rechtsgebiet */
.themenliste {
  display: grid;
  gap: 0 var(--abstand-5);
}
@media (min-width: 48rem) { .themenliste { grid-template-columns: 1fr 1fr; } }
.themenliste__eintrag {
  display: block;
  padding: var(--abstand-3) 0;
  border-top: 1px solid var(--papier-rand);
  color: var(--tinte);
  text-decoration: none;
}
.themenliste__eintrag h2 { font-size: 1.3rem; margin-bottom: 0.35rem; transition: color 150ms ease; }
.themenliste__eintrag p { color: var(--tinte-leise); margin: 0; font-size: 0.97rem; }
.themenliste__eintrag:hover h2 { color: var(--rot); }
.themenliste__eintrag h3 { font-size: 1.15rem; margin-bottom: 0.25rem; transition: color 150ms ease; }
.themenliste__eintrag h3::after { content: " →"; color: var(--rot); opacity: 0; transition: opacity 180ms ease; }
.themenliste__eintrag:hover h3 { color: var(--rot); }
.themenliste__eintrag:hover h3::after, .themenliste__eintrag:focus-visible h3::after { opacity: 1; }
@media (min-width: 64rem) { .themenliste--start { grid-template-columns: repeat(4, 1fr); gap: 0 var(--abstand-4); } }

/* Fristenrechner */
.rechner { max-width: 40rem; }

/* Bußgeldrechner */
.bussgeld-ergebnis {
  margin-block: var(--abstand-3);
  padding: var(--abstand-3);
  border-radius: var(--rundung);
  background: var(--rot-zart);
  border-left: 5px solid var(--rot);
}
.bussgeld-ergebnis__raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--abstand-2);
  margin-bottom: var(--abstand-2);
}
.bussgeld-ergebnis__raster span:last-child { display: block; font-size: 0.9rem; color: var(--tinte-leise); }
.bussgeld-ergebnis__wert {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 650;
  color: var(--rot);
}
.bussgeld-ergebnis p { margin: 0 0 0.4rem; font-size: 0.95rem; }

/* Tabellen in Themenseiten */
.thema__text table {
  width: 100%;
  max-width: var(--breite-text);
  border-collapse: collapse;
  margin: var(--abstand-2) 0 var(--abstand-3);
  font-size: 0.95rem;
  background: var(--papier-karte);
  border: 1px solid var(--papier-rand);
  border-radius: var(--rundung);
  overflow: hidden;
}
.thema__text th, .thema__text td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--papier-rand);
}
.thema__text th { background: #efebe4; font-weight: 650; }
.thema__text tr:last-child td { border-bottom: 0; }
@media (max-width: 30rem) {
  .thema__text table { font-size: 0.88rem; }
  .thema__text th, .thema__text td { padding: 0.45rem 0.5rem; }
}

/* ---------- Inhaltsseiten (Über mich, Kontakt, Orte) ---------- */
.seite__text { max-width: 60rem; }
.seite__text > h2:first-child { margin-top: 0; }
.ueber--seite { align-items: start; margin-bottom: var(--abstand-4); }
.ueber--seite .ueber__bild { max-width: 15rem; }
@media (min-width: 54rem) { .ueber--seite .ueber__bild { max-width: 20rem; } }
.ueber--seite .ueber__bild video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--rundung-gross);
  background: #1d1d1f;
  display: block;
}
.ueber--seite .ueber__text h2:first-child { margin-top: 0; }
.dateiliste { list-style: none; padding: 0; display: grid; gap: var(--abstand-2); }
.dateiliste li { margin: 0; }
.bewertungen { display: grid; gap: var(--abstand-3); margin-block: var(--abstand-3); }
@media (min-width: 54rem) { .bewertungen { grid-template-columns: repeat(3, 1fr); } }
.bewertung {
  border-left: 3px solid var(--rot);
  padding: 0.25rem 0 0.25rem var(--abstand-2);
}
.bewertung p { margin: 0 0 0.4rem; }

/* ---------- Kontaktsymbole (Footer, Kontaktseite) ---------- */
.kontaktsymbole {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}
.kontaktsymbole li { margin: 0; }
.kontaktsymbole span { font-size: 0.72rem; }
@media (min-width: 26rem) { .kontaktsymbole span { font-size: inherit; } }
.kontaktsymbole a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.25rem;
  min-height: 4.25rem;
  border: 1px solid var(--anthrazit-linie);
  border-radius: var(--rundung-gross);
  color: var(--hell);
  text-decoration: none;
  font-size: 0.8rem;
  transition: border-color 160ms ease, background 160ms ease;
}
.kontaktsymbole a:hover, .kontaktsymbole a:focus-visible { border-color: var(--rot); background: rgb(130 19 1 / 0.18); color: #fff; }
.kontaktsymbole svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kontaktsymbole--hell a { border-color: var(--papier-rand); color: var(--tinte); background: var(--papier-karte); }
.kontaktsymbole--hell a:hover, .kontaktsymbole--hell a:focus-visible { border-color: var(--rot); background: var(--rot-zart); color: var(--rot-dunkel); }
.fuss .kontaktsymbole { margin-top: var(--abstand-4); }
@media (min-width: 54rem) {
  .kontaktsymbole { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .kontaktsymbole a { flex-direction: row; min-height: 0; padding: 0.5rem 0.9rem; font-size: 0.9rem; }
  .kontaktsymbole svg { width: 1.2rem; height: 1.2rem; }
}
.seite__text .kontaktsymbole { margin-block: 0 var(--abstand-4); max-width: var(--breite-text); }

/* ---------- Seitenkopf mit Foto ---------- */
.thema__kopf.fotoflaeche { padding-block: var(--abstand-5); }
@media (min-width: 64rem) {
  .thema__kopf.fotoflaeche--seitlich { min-height: 22rem; display: flex; align-items: center; }
  .thema__kopf.fotoflaeche--seitlich > .mitte > * { max-width: 34rem; }
}

.thema__eil {
  margin-top: var(--abstand-3);
  padding: var(--abstand-2) var(--abstand-3);
  border-left: 3px solid #c0442c;
  background: rgb(20 20 20 / 0.55);
  border-radius: 0 var(--rundung) var(--rundung) 0;
}
.thema__eil p { margin: 0 0 0.75rem; color: var(--hell); }

/* ---------- Videoschleifen (stumm, als Bewegtbild über dem Standbild) ---------- */
.fotoflaeche__bild .schleife {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
@media (min-width: 64rem) {
  .fotoflaeche--seitlich .fotoflaeche__bild .schleife {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  }
}
.ueber--seite .ueber__bild .schleife { filter: grayscale(1); }
@media (prefers-reduced-motion: reduce) {
  .fotoflaeche__bild .schleife { display: none; }
  .ueber--seite .ueber__bild .schleife { animation: none; }
}

/* Ganzes Motiv zeigen (z. B. Sanduhr): schmaler Hochformat-Streifen statt Ausschnitt, Ränder weich ausgeblendet */
@media (min-width: 64rem) {
  .fotoflaeche__bild--ganz img,
  .fotoflaeche__bild--ganz .schleife {
    position: absolute;
    top: 0;
    right: 8%;
    left: auto;
    width: auto;
    height: 100%;
    aspect-ratio: 9 / 16;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%) !important;
  }
}

/* Querformat (Kanzleischild): breiterer Bildstreifen, kürzerer Übergang */
@media (min-width: 64rem) {
  .fotoflaeche--quer .fotoflaeche__bild { width: 56%; }
  .fotoflaeche--quer .fotoflaeche__bild img,
  .fotoflaeche--quer .fotoflaeche__bild .schleife {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  }
  .fotoflaeche--quer::before {
    background: linear-gradient(90deg, rgb(20 20 20 / 0.97) 0, rgb(20 20 20 / 0.97) 42%, rgb(20 20 20 / 0.3) 100%);
  }
}

.hinweis-klein { font-size: 0.88rem; color: var(--tinte-leise); margin-top: var(--abstand-3); }

/* Sprechzeiten */
.sprechzeiten { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.5rem; margin: 0 0 var(--abstand-3); max-width: 22rem; }
.sprechzeiten dt { font-weight: 600; }
.sprechzeiten dd { margin: 0; }

/* Kartenausschnitt Kontakt (eigenes Bild, keine Einbettung) */
.karte-lage { margin: 0 0 var(--abstand-3); max-width: 45rem; }
.karte-lage > a { position: relative; display: block; border-radius: var(--rundung-gross); overflow: hidden; border: 1px solid var(--papier-rand); }
.karte-lage img { display: block; width: 100%; height: auto; filter: grayscale(0.9) contrast(1.05); transition: filter 200ms ease; }
.karte-lage > a:hover img { filter: grayscale(0.4); }
.karte-lage__punkt {
  position: absolute; width: 1.4rem; height: 1.4rem; margin: -1.4rem 0 0 -0.7rem;
  background: var(--rot); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
}
.karte-lage figcaption { font-size: 0.92rem; margin-top: 0.6rem; color: var(--tinte-leise); }
.karte-lage small { font-size: 0.8rem; }

/* WhatsApp-Knopf in der Handyleiste (nur Symbol) */
.handyleiste__wa { padding-inline: 0.75rem !important; }
.handyleiste__wa svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Lesefortschritt (Themenseiten) ---------- */
.lesefortschritt {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: #c0442c;
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Nach oben (nur PC) ---------- */
.nach-oben {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 40;
  width: 2.9rem; height: 2.9rem;
  display: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--anthrazit-linie);
  border-radius: 50%;
  background: var(--anthrazit);
  color: var(--hell);
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
  opacity: 0; transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background 150ms ease;
}
.nach-oben:hover { background: var(--rot); }
@media (min-width: 64rem) { .nach-oben { display: flex; } }
.nach-oben--an { opacity: 1; transform: none; }
.nach-oben:not(.nach-oben--an) { pointer-events: none; }

/* ---------- Startseite: Schreiben erhalten ---------- */
.abschnitt__vorspann { color: var(--tinte-leise); max-width: var(--breite-text); margin: -0.5rem 0 var(--abstand-4); }
.schreiben { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .schreiben { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .schreiben { grid-template-columns: repeat(4, 1fr); } }
.schreiben__eintrag {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem;
  min-height: 6.2rem;
  padding: 1rem 1.1rem;
  background: var(--papier-karte);
  border: 1px solid var(--papier-rand);
  border-left: 3px solid var(--papier-rand);
  border-radius: var(--rundung);
  color: var(--tinte);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.schreiben__eintrag:hover, .schreiben__eintrag:focus-visible {
  border-left-color: var(--rot);
  transform: translateY(-2px);
  box-shadow: var(--schatten);
}
.schreiben__titel { font-weight: 650; font-size: 1.05rem; line-height: 1.3; }
.schreiben__eintrag:hover .schreiben__titel { color: var(--rot); }
.schreiben__frist {
  align-self: flex-start;
  font-size: 0.82rem; font-weight: 700;
  color: var(--rot);
  background: var(--rot-zart);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.schreiben__info { font-size: 0.88rem; color: var(--tinte-leise); }
@media (prefers-reduced-motion: reduce) { .schreiben__eintrag { transition: none; } .schreiben__eintrag:hover { transform: none; } }

/* ---------- Suche ---------- */
.kopf__suche {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 1px solid var(--anthrazit-linie); border-radius: 999px;
  color: var(--hell); font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.4rem 0.85rem; cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.kopf__suche:hover { border-color: var(--hell-leise); color: #fff; }
.kopf__suche-mobil {
  display: none;
  margin-left: auto;
  background: none; border: 1.5px solid var(--anthrazit-linie); border-radius: var(--rundung);
  color: var(--hell); padding: 0.5rem 0.6rem; cursor: pointer; line-height: 0;
}
@media (max-width: 54rem) { .kopf__suche-mobil { display: inline-flex; } }
@media (max-width: 82rem) { .kopf__suche span { display: none; } .kopf__suche { padding: 0.45rem 0.55rem; } }

.suche {
  width: min(100% - 2rem, 42rem);
  max-height: min(80vh, 40rem);
  margin: 8vh auto auto;
  padding: 0;
  border: 1px solid var(--anthrazit-linie);
  border-top: 2px solid var(--rot);
  border-radius: var(--rundung-gross);
  background: var(--anthrazit);
  color: var(--hell);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
  overflow: hidden;
}
.suche[open] { display: flex; flex-direction: column; animation: suche-auf 180ms ease-out; }
@keyframes suche-auf { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.suche::backdrop { background: rgb(20 20 20 / 0.65); backdrop-filter: blur(3px); }
.suche__kopf {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--anthrazit-linie);
  color: var(--hell-leise);
}
.suche__feld {
  flex: 1; min-width: 0;
  -webkit-appearance: none; appearance: none;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: 1.15rem; color: #fff;
}
.suche__feld::placeholder { color: var(--hell-leise); opacity: 0.8; }
/* eigene Lupe und Löschkreuz der Browser ausblenden (Safari zeigt sonst eine zweite Lupe) */
.suche__feld::-webkit-search-decoration,
.suche__feld::-webkit-search-cancel-button,
.suche__feld::-webkit-search-results-button,
.suche__feld::-webkit-search-results-decoration { -webkit-appearance: none; display: none; }
.suche__zu {
  border: 1px solid var(--anthrazit-linie); border-radius: var(--rundung);
  background: var(--anthrazit-tief); color: var(--hell-leise);
  font: inherit; font-size: 0.8rem; padding: 0.2rem 0.5rem; cursor: pointer;
}
.suche__zu:hover { color: #fff; border-color: var(--hell-leise); }
.suche__ergebnisse { overflow-y: auto; }
.suche__ergebnisse ul { list-style: none; margin: 0; padding: 0.4rem; }
.suche__treffer {
  display: block; padding: 0.7rem 0.8rem; border-radius: var(--rundung);
  border-left: 2px solid transparent;
  color: var(--hell); text-decoration: none;
}
.suche__treffer:hover, .suche__treffer:focus-visible, .suche__treffer--an { background: var(--anthrazit-tief); border-left-color: #c0442c; }
.suche__titel { display: block; font-weight: 650; color: #fff; }
.suche__treffer:hover .suche__titel, .suche__treffer--an .suche__titel { color: #f3c4ba; }
.suche__text { display: block; font-size: 0.9rem; color: var(--hell-leise); margin-top: 0.15rem; line-height: 1.45; }
.suche__text mark { background: none; color: #f3c4ba; font-weight: 700; }
.suche__leer { padding: 1.2rem 1.1rem; margin: 0; color: var(--hell-leise); }
.suche__fuss { margin: 0; padding: 0.6rem 1.1rem; font-size: 0.78rem; color: var(--hell-leise); border-top: 1px solid var(--anthrazit-linie); }
@media (prefers-reduced-motion: reduce) { .suche[open] { animation: none; } }

/* ---------- Themenseiten auf breiten Bildschirmen: breiterer Rahmen, Inhaltsverzeichnis rechts außen ---------- */
@media (min-width: 80rem) {
  .thema__raster.mitte,
  .mitte.thema__mittig { width: min(100% - 2 * var(--abstand-4), 90rem); }
  .thema__raster.mitte { grid-template-columns: minmax(0, 1fr) 19rem; column-gap: var(--abstand-5); }
  /* Text breiter und mittig im Platz links vom Inhaltsverzeichnis */
  .thema__raster > .thema__text { --breite-text: 52rem; width: 100%; max-width: 52rem; justify-self: center; }
}
