/* =========================================================================
   GdfT Andachten – Design
   -------------------------------------------------------------------------
   Alle Farben und Schriften sind hier oben als Variablen gebündelt.
   Sobald das Logo vorliegt, müssen nur diese Werte angepasst werden,
   um die ganze Seite umzufärben.

   Aufbau „mobile first“: Die Grundregeln gelten für kleine Bildschirme
   (Smartphone). Größere Bildschirme werden über `@media (min-width: …)`
   schrittweise erweitert – nicht umgekehrt.
   ========================================================================= */

:root {
  /* --- Farben (abgeleitet aus dem Logo: Navy · Stahlblau · Gold · Pergament) --- */
  --farbe-grund: #f6f1e7;          /* Seitenhintergrund (warmes Pergament wie im Logo) */
  --farbe-flaeche: #fffdf8;        /* Karten / abgesetzte Flächen */
  --farbe-text: #29303a;           /* Fließtext */
  --farbe-text-leise: #6a6f78;     /* Nebentext, Datumsangaben */
  --farbe-primaer: #1f3550;        /* Hauptfarbe (tiefes Navy aus dem Logo-Ring) */
  --farbe-primaer-hell: #3c5f80;   /* Stahlblau (Emblem-Hintergrund) */
  --farbe-akzent: #c39a45;         /* Akzent (Gold von Kreuz und Ähren) */
  --farbe-akzent-dunkel: #a67f34;  /* Gold für Hover */
  --farbe-titel-gold: #c8981f;     /* kräftigeres Gold für die großen Überschriften */
  --farbe-titel-kontur: #1c1305;   /* dunkle Kontur, damit das Gold gut lesbar bleibt */
  --farbe-linie: #e6ddca;          /* feine Trennlinien */

  /* --- „Andacht des Tages“-Karte (hebt die heutige Andacht deutlich hervor) --- */
  --hero-grund: linear-gradient(158deg, #24395a 0%, #1d3049 55%, #172740 100%);
  --hero-text: #eef1ea;            /* heller Text auf dem dunklen Navy */
  --hero-text-leise: #b6c3d6;      /* Datum / Bibelstelle, gedämpft aber lesbar */
  --hero-rahmen: rgba(200, 154, 69, 0.55); /* zarter goldener Rahmen */
  --hero-schatten: 0 14px 34px rgba(20, 30, 55, 0.24), 0 3px 8px rgba(20, 30, 55, 0.14);

  /* --- Schriften --- */
  --schrift-titel: "Lora", Georgia, "Times New Roman", serif;
  --schrift-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-zier: "Cormorant Garamond", "Lora", Georgia, serif; /* elegant, für die Soli */

  /* --- Maße --- */
  --breite-max: 44rem;             /* maximale Lesebreite */
  --breite-max-weit: 60rem;        /* für breitere Bereiche (Kopf/Fuß) */
  --radius: 12px;
  --schatten: 0 1px 2px rgba(20, 20, 40, 0.04), 0 8px 24px rgba(20, 20, 40, 0.06);
}

/* Dezenter Dunkelmodus, wenn das Gerät ihn wünscht */
@media (prefers-color-scheme: dark) {
  :root {
    --farbe-grund: #141a22;
    --farbe-flaeche: #1c2530;
    --farbe-text: #e8e5dc;
    --farbe-text-leise: #a3a9b3;
    --farbe-primaer: #b7cae0;
    --farbe-primaer-hell: #d3e0ee;
    --farbe-akzent: #d8b264;
    --farbe-akzent-dunkel: #e6c583;
    --farbe-titel-gold: #e6c164;     /* helleres Gold für dunklen Grund */
    --farbe-titel-kontur: #100b02;   /* dunkle Kontur, hält das Gold klar lesbar */
    --farbe-linie: #2c3644;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);

    /* Karte im Dunkelmodus etwas aufgehellt, damit sie sich vom fast schwarzen
       Seitengrund als erhabene Fläche abhebt; Rahmen und Schatten kräftiger. */
    --hero-grund: linear-gradient(158deg, #2b415f 0%, #243953 55%, #1e3049 100%);
    --hero-text: #eef1ea;
    --hero-text-leise: #bcc8d9;
    --hero-rahmen: rgba(216, 178, 100, 0.6);
    --hero-schatten: 0 16px 38px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.4);
  }
}

/* --- Grundlagen --- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--farbe-grund);
  color: var(--farbe-text);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.25;
  color: var(--farbe-primaer);
}

/* --- Goldene Überschriften mit dunkler Kontur ---------------------------
   Die großen Überschriften (Andacht-Titel und Seitentitel) werden golden
   gesetzt. Damit das helle Gold auf dem hellen Pergament-Grund gut lesbar
   bleibt, bekommt es eine dünne dunkle Kontur. `paint-order: stroke fill`
   legt die Kontur HINTER die Füllung, sodass die Buchstaben nicht dünner
   wirken. Der zarte Schatten gibt zusätzlich Halt (und dient älteren
   Browsern ohne text-stroke als Rückfall). Der kleine Kicker
   „Andacht des Tages“ ist bei seiner eigenen Regel (.hero__gruss) gestylt. */
.hero__titel,
.andacht__titel,
.seite-kopf__titel {
  color: var(--farbe-titel-gold);
  -webkit-text-stroke: 1px var(--farbe-titel-kontur);
  paint-order: stroke fill;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

a {
  color: var(--farbe-primaer);
  text-decoration-color: var(--farbe-akzent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--farbe-akzent-dunkel);
}

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

/* Sprunglink für Tastatur-/Screenreader-Nutzung */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--farbe-primaer);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

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

/* --- Kopfbereich --- */

.kopf {
  border-bottom: 1px solid var(--farbe-linie);
  background: var(--farbe-flaeche);
}

/* Mobile-first: Marke oben, Navigation darunter – beides zentriert.
   Ab 40rem nebeneinander (Marke links, Navigation rechts). */
.kopf__innen {
  max-width: var(--breite-max-weit);
  margin: 0 auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

@media (min-width: 40rem) {
  .kopf__innen {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
}

/* Mobile-first: Logo über dem Namen, zentriert (kein Überlauf bei langem
   Namen). Ab 40rem Logo links neben dem Namen. */
.marke {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  text-decoration: none;
  color: var(--farbe-primaer);
}

@media (min-width: 40rem) {
  .marke {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
}

/* Logo: rund freigestellt (eigener bläulicher Hintergrund), mit dezentem
   Schatten als „Münz“-Effekt. Mobil etwas größer als am Desktop. */
.marke__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--schatten);
}

@media (min-width: 40rem) {
  .marke__logo {
    width: 52px;
    height: 52px;
  }
}

.marke__zeichen {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--farbe-primaer);
  color: var(--farbe-akzent);
  font-size: 1.3rem;
}

.marke__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.marke__name {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 1.2rem;
}

.marke__zusatz {
  font-size: 0.8rem;
  color: var(--farbe-text-leise);
  letter-spacing: 0.02em;
}

/* Mobile-first: alle vier Links nebeneinander als gleich breite „Chips“
   (Pillen). Die Spalten teilen sich den Platz prozentual (1fr = je 25 %),
   der Block ist zentriert. Jeder Link ist ein klar erkennbares Kästchen. */
.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  font-size: 0.95rem;
}

.nav a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--farbe-primaer);
  background: var(--farbe-flaeche);
  border: 1.5px solid var(--farbe-primaer-hell);
  border-radius: 999px;
  padding: 0.55rem 0.35rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  border-color: var(--farbe-akzent);
  background: var(--farbe-flaeche);
  color: var(--farbe-primaer);
}

/* Aktuelle Seite: gefüllte Pille – zeigt deutlich, wo man gerade ist.
   Textfarbe = Seitengrund, damit der Kontrast in hell und dunkel stimmt. */
.nav a[aria-current="page"] {
  background: var(--farbe-primaer);
  border-color: var(--farbe-primaer);
  color: var(--farbe-grund);
}

.nav a[aria-current="page"]:hover {
  background: var(--farbe-primaer);
  border-color: var(--farbe-primaer);
  color: var(--farbe-grund);
}

/* Ab Tablet: kompakte, inhaltsbreite Pillen rechts neben der Marke. */
@media (min-width: 40rem) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    margin: 0;
    gap: 0.4rem;
    font-size: 0.95rem;
  }
  .nav a {
    padding: 0.4rem 0.85rem;
  }
}

/* --- Hauptinhalt --- */

.inhalt {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--breite-max);
  margin: 0 auto;
  padding: 2rem 1.15rem 3rem; /* mobil: etwas kompakter */
}

@media (min-width: 40rem) {
  .inhalt {
    padding: 2.5rem 1.25rem 3.5rem;
  }
}

/* --- Startseite: Willkommens-Hero (Logo + Leitvers, „Sola Scriptura“) --- */

.start-hero {
  text-align: center;
  padding: 1rem 0 2.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--farbe-linie);
}

.start-hero__logo {
  display: block;
  width: clamp(128px, 36vw, 172px);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  box-shadow: var(--schatten);
}

.start-hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--farbe-akzent-dunkel);
  margin: 0 0 1rem;
}

.start-hero__vers {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
}

.start-hero__vers p {
  font-family: var(--schrift-zier);
  font-style: italic;
  font-size: clamp(1.4rem, 4.8vw, 2rem);
  line-height: 1.35;
  color: var(--farbe-primaer);
  margin: 0 0 0.6rem;
}

.start-hero__stelle {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--farbe-text-leise);
}

/* --- Startseite: Andacht des Tages -------------------------------------
   Die heutige Andacht ist das Herzstück der Startseite und wird darum als
   eigene, deutlich abgesetzte Karte auf dunklem Navy-Grund gezeigt. So hebt
   sie sich klar vom hellen Pergament der übrigen Seite ab und der Blick
   landet sofort auf ihr – statt im einheitlichen Farbbrei zu verschwimmen. */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--hero-grund);
  border: 1px solid var(--hero-rahmen);
  border-radius: 20px;
  box-shadow: var(--hero-schatten);
  padding: 2.5rem 1.5rem 2.75rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 40rem) {
  .hero {
    padding: 3rem 2.5rem 3.25rem;
  }
}

/* Feiner goldener Lichtstreifen am oberen Rand als Blickfang. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--farbe-akzent) 25%,
    var(--farbe-akzent) 75%,
    transparent
  );
}

/* „Andacht des Tages“ als goldenes Etikett – klar als Label erkennbar. */
.hero__gruss {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1c2a40;
  background: linear-gradient(180deg, #e7c169, #c8981f);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  margin: 0 0 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  -webkit-text-stroke: 0;
}

.hero__datum,
.andacht__datum {
  color: var(--farbe-text-leise);
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
}

/* Auf der dunklen Karte brauchen Datum und Bibelstelle einen helleren Ton. */
.hero .hero__datum,
.hero .hero__stelle {
  color: var(--hero-text-leise);
}

.hero__titel {
  font-size: clamp(2rem, 5.4vw, 2.9rem);
  margin: 0.35rem 0 1.1rem;
  /* Auf dunklem Grund ist das Gold von sich aus gut lesbar – die dunkle
     Kontur entfällt, ein weicher Schatten gibt stattdessen Tiefe. */
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__titel a {
  text-decoration: none;
  color: inherit;
}

.hero__losung,
.andacht__losung {
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--farbe-text);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.hero .hero__losung {
  color: var(--hero-text);
}

.hero__stelle,
.andacht__stelle {
  font-style: normal;
  color: var(--farbe-text-leise);
  font-size: 0.9em;
  white-space: nowrap;
}

.hero__aktion {
  margin: 0;
}

.knopf {
  display: inline-block;
  background: var(--farbe-primaer);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.knopf:hover {
  background: var(--farbe-primaer-hell);
  color: #fff;
}

/* Auf der Navy-Karte wird der Knopf golden – damit er als klarer
   Handlungsaufruf aus der Fläche heraussticht. */
.hero .knopf {
  background: linear-gradient(180deg, #e7c169, #c8981f);
  color: #1c2a40;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.hero .knopf:hover {
  background: linear-gradient(180deg, #f0d180, #d8a72e);
  color: #14203a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

/* --- Die fünf „Soli“ (Leitspruch im Hero) --- */

/* Eigener, ruhiger Abschnitt unter der Andachts-Karte. Als dezente Grundlage
   gedacht – darum bewusst zurückhaltender als die hervorgehobene Andacht. */
.solas {
  margin: 0 0 2.5rem;
  padding-top: 0.5rem;
  text-align: center;
}

.solas__haupt {
  font-family: var(--schrift-zier);
  font-weight: 600;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--farbe-primaer);
  letter-spacing: 0.01em;
  margin: 0;
}

.solas__unter {
  font-family: var(--schrift-zier);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--farbe-akzent-dunkel);
  margin: 0.35rem 0 0;
}

/* zarte goldene Trennlinie mit Raute */
.solas__reihe {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.4rem 0 0;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}

.solas__reihe::before {
  content: "✦";
  position: absolute;
  top: -0.05rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--farbe-akzent);
  font-size: 0.85rem;
  background: var(--farbe-grund);
  padding: 0 0.6rem;
}

.solas__reihe::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--farbe-linie);
  z-index: -1;
}

.solas__reihe li {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.solas__lat {
  font-family: var(--schrift-zier);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--farbe-primaer);
}

.solas__de {
  font-size: 0.72rem;
  color: var(--farbe-text-leise);
  letter-spacing: 0.02em;
}

/* --- Einzelne Andacht --- */

.andacht__kopf {
  text-align: center;
  margin-bottom: 2rem;
}

.andacht__titel {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  margin: 0.25rem 0 1rem;
}

.andacht__text {
  font-size: 1.08rem;
}

.andacht__text p {
  margin: 0 0 1.2rem;
}

.andacht__text strong {
  color: var(--farbe-primaer);
}

.andacht__fuss {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--farbe-linie);
}

.zurueck {
  text-decoration: none;
  font-weight: 500;
}

/* --- Listen von Andachten --- */

.liste-block {
  margin-top: 1rem;
}

.liste-block__titel,
.seite-kopf__titel {
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
}

.andacht-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.andacht-liste__link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--farbe-flaeche);
  border: 1px solid var(--farbe-linie);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.andacht-liste__link:hover {
  border-color: var(--farbe-akzent);
  box-shadow: var(--schatten);
}

.andacht-liste__datum {
  font-size: 0.82rem;
  color: var(--farbe-text-leise);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.andacht-liste__titel {
  font-family: var(--schrift-titel);
  font-size: 1.2rem;
  color: var(--farbe-primaer);
}

.andacht-liste__stelle {
  font-size: 0.9rem;
  color: var(--farbe-text-leise);
  font-style: italic;
}

.liste-block__mehr {
  margin-top: 1.5rem;
}

.liste-block__mehr a {
  text-decoration: none;
  font-weight: 500;
}

/* --- Seite „Nach Bibelstelle“ --- */

.buch-index {
  margin-bottom: 2.5rem;
}

.buch-gruppe {
  margin-bottom: 1.75rem;
}

.buch-gruppe__titel {
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}

/* Kachelraster der Bücher – mobil zwei Spalten, ab Tablet mehr */
.buch-raster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 30rem) {
  .buch-raster {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 48rem) {
  .buch-raster {
    grid-template-columns: repeat(4, 1fr);
  }
}

.buch-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--farbe-linie);
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Bücher mit Andachten: anklickbar, hervorgehoben */
a.buch-chip--aktiv {
  background: var(--farbe-flaeche);
  color: var(--farbe-primaer);
  text-decoration: none;
  font-weight: 500;
  border-color: var(--farbe-akzent);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.buch-chip--aktiv:hover {
  box-shadow: var(--schatten);
  transform: translateY(-1px);
}

/* Bücher ohne Andachten: dezent, nicht anklickbar */
.buch-chip--leer {
  color: var(--farbe-text-leise);
  background: transparent;
  opacity: 0.6;
  justify-content: center;
}

.buch-chip__zahl {
  flex-shrink: 0;
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--farbe-primaer);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

/* Detail-Abschnitte je Buch */
.buch-abschnitt {
  margin-top: 2.5rem;
  scroll-margin-top: 1rem;
}

.buch-abschnitt__titel {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--farbe-linie);
}

.kapitel-block {
  margin-bottom: 1.75rem;
}

.kapitel-block__titel {
  font-size: 1.05rem;
  color: var(--farbe-akzent-dunkel);
  margin: 0 0 0.75rem;
}

/* --- Einfache Seiten (Archiv, Über) --- */

.seite-kopf {
  margin-bottom: 2rem;
}

.seite-kopf__titel {
  font-size: clamp(1.8rem, 4.5vw, 2.3rem);
  margin: 0 0 0.5rem;
}

.seite-kopf__text {
  color: var(--farbe-text-leise);
  margin: 0;
}

.fliesstext p {
  margin: 0 0 1.2rem;
}

/* --- Fußbereich --- */

.fuss {
  flex-shrink: 0;
  border-top: 1px solid var(--farbe-linie);
  background: var(--farbe-flaeche);
  margin-top: auto;
}

.fuss__innen {
  max-width: var(--breite-max-weit);
  margin: 0 auto;
  padding: 1.5rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  color: var(--farbe-text-leise);
  font-size: 0.9rem;
}

@media (min-width: 40rem) {
  .fuss__innen {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
}

.fuss__zeile {
  margin: 0;
}

/* Fuß-Navigation: mobil zentriert, Links deutlich unterstrichen (klar
   als anklickbar erkennbar). */
.fuss__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.1rem;
}

.fuss__nav a {
  color: var(--farbe-primaer);
  text-decoration: underline;
  text-decoration-color: var(--farbe-akzent);
  text-underline-offset: 3px;
  padding: 0.35rem 0.25rem;
}

.fuss__nav a:hover {
  color: var(--farbe-akzent-dunkel);
}

@media (min-width: 40rem) {
  .fuss__nav {
    justify-content: flex-end;
    gap: 1.2rem;
  }
  .fuss__nav a {
    padding: 0;
  }
}

/* --- Sichere Bereiche auf Geräten mit Aussparung (Notch) --- */
/* Da der Viewport mit „viewport-fit=cover“ bis an die Kanten reicht, sorgen
   diese Regeln dafür, dass Inhalte im Quer- wie Hochformat nicht unter der
   Aussparung verschwinden. Der Design-Innenabstand bleibt Mindestmaß. */
@supports (padding: max(0px)) {
  .kopf__innen,
  .fuss__innen,
  .inhalt {
    padding-left: max(1.15rem, env(safe-area-inset-left));
    padding-right: max(1.15rem, env(safe-area-inset-right));
  }
}
