/* =========================================================================
   Gerüstet für den Tag – Design „Tafel“ (Variante 1b)
   -------------------------------------------------------------------------
   Ersetzt src/css/style.css. Aufbau mobile first.

   Idee: „Heute“ steht auf einer dunklen Navy-Bühne (voller Breite, mit
   Datumsspalte), der Andachtstext liegt darunter auf ruhiger Creme-Fläche.
   Gold ist reine Auszeichnungsfarbe (Rubriken, Knopf, Hairlines) – es wird
   nie mehr für Überschriften mit Kontur benutzt.
   ========================================================================= */

:root {
  /* Flächen */
  --grund: #fbf8f1;          /* Lesefläche / Seitengrund */
  --flaeche: #f2ecdf;        /* abgesetzte Kästen, Tags */
  --buehne: #0f1b2d;         /* Navy: Kopf, Hero, Zitatkästen */
  --buehne-tief: #0b131f;

  /* Text */
  --text: #20232b;
  --text-lese: #2f3129;      /* Andachtstext (Lora) */
  --text-leise: #6f6858;     /* Rubriken, Nebentext – kontraststark genug */
  --text-zart: #78705f;      /* Datum, Bibelstelle in Listen */
  --auf-buehne: #fbf8f1;
  --auf-buehne-leise: #9fb0c8;

  /* Akzent */
  --gold: #e2c785;           /* nur auf dunklem Grund */
  --gold-dunkel: #8a6f2c;    /* Rubriken/Links auf hellem Grund (AA) */

  --linie: #e8e1d2;
  --linie-stark: #d8d0bd;

  /* Schriften */
  --display: "Cormorant Garamond", Georgia, serif;   /* Titel */
  --lese: "Lora", Georgia, serif;                    /* Andachtstext, Losung */
  --ui: "Inter", system-ui, -apple-system, sans-serif; /* Navigation, Rubriken */

  --mass: 34em;              /* Lesemaß */
  --rand: 1.25rem;           /* Seitenrand mobil */
  --radius: 3px;
}

@media (min-width: 48rem) {
  :root { --rand: 2.5rem; }
}

/* --- Dunkelmodus ---------------------------------------------------------
   Zwei identische Wertblöcke: Systemvorgabe (ohne ausdrückliche Hell-Wahl)
   und ausdrückliche Dunkel-Wahl über den Schalter. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #141a22;
    --flaeche: #1c2530;
    --buehne: #0b131f;
    --buehne-tief: #080e17;
    --text: #e8e5dc;
    --text-lese: #e4e1d7;
    --text-leise: #a8a297;
    --text-zart: #9b968a;
    --gold-dunkel: #d8b264;
    --linie: #2c3644;
    --linie-stark: #384456;
  }
}

:root[data-theme="dark"] {
  --grund: #141a22;
  --flaeche: #1c2530;
  --buehne: #0b131f;
  --buehne-tief: #080e17;
  --text: #e8e5dc;
  --text-lese: #e4e1d7;
  --text-leise: #a8a297;
  --text-zart: #9b968a;
  --gold-dunkel: #d8b264;
  --linie: #2c3644;
  --linie-stark: #384456;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

a { color: var(--text); text-decoration-color: var(--gold-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--gold-dunkel); }
img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 20;
  background: var(--buehne); color: var(--auf-buehne);
  padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; }

/* Rubrik: das wiederkehrende kleine Großbuchstaben-Label. */
.rubrik {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dunkel);
  margin: 0;
}

/* =========================================================================
   Kopf – liegt auf der Bühne, deshalb immer dunkel
   ========================================================================= */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--buehne);
}

.kopf__innen {
  position: relative; /* Anker für die Abo-/Installieren-Menüs (s. u.) –
    dadurch hängt ihre Position nicht davon ab, in welcher Zeile ihr Knopf
    bei umgebrochenem Kopf gerade steht, und sie ragen nie über den Rand hinaus. */
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.9rem var(--rand);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

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

.marke__logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(226, 199, 133, 0.45);
}

.marke__text { display: flex; flex-direction: column; }

.marke__name {
  font-family: var(--ui);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.marke__zusatz {
  font-size: 0.72rem;
  color: var(--auf-buehne-leise);
  letter-spacing: 0.02em;
}

/* Navigation: mobil unter dem Markenblock als eigene Zeile. */
.nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(226, 199, 133, 0.2);
}

.nav a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--auf-buehne-leise);
  border-radius: 2px;
}
.nav a:hover { color: var(--auf-buehne); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--auf-buehne); box-shadow: inset 0 -2px 0 var(--gold); }

@media (min-width: 48rem) {
  .nav {
    order: 0; flex-basis: auto; gap: 1.25rem;
    margin: 0; padding: 0; border: 0;
  }
  .nav a { flex: none; padding: 0.35rem 0; font-size: 0.8rem; }
  .marke__name { font-size: 0.68rem; }
}

/* Abo-Knopf, Installieren-Knopf und Designschalter sitzen rechts im Kopf. */
.abo, .installieren, .thema-schalter { flex: none; }

/* Auf der Leseseite ("Andacht lesen") mobil die zweite Kopfzeile
   (Navigation) weglassen – mehr Platz zum Lesen. Am Desktop steht die
   Navigation ohnehin in einer Zeile und bleibt sichtbar. */
@media (max-width: 47.99rem) {
  .kopf--lesen .nav { display: none; }
}

.abo__knopf {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(226, 199, 133, 0.5);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font: 500 0.66rem/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.abo__knopf::-webkit-details-marker { display: none; }
.abo__knopf:hover { background: rgba(226, 199, 133, 0.12); }
.abo__zeichen { width: 14px; height: 14px; }

.abo__menue {
  position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 40;
  width: min(19rem, calc(100vw - 2rem));
  background: var(--grund);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(11, 19, 31, 0.25);
  padding: 1rem;
  text-align: left;
}
.abo__titel {
  margin: 0 0 0.75rem;
  font: 500 0.66rem/1 var(--ui);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dunkel);
}
.abo__option {
  display: block; padding: 0.6rem 0; text-decoration: none; color: var(--text);
  border-top: 1px solid var(--linie);
}
.abo__option-name { display: block; font-weight: 600; font-size: 0.9rem; }
.abo__option-info { display: block; font-size: 0.8rem; color: var(--text-leise); }

.abo__mail-zeile { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.abo__mail-feld, .abo__mail-knopf {
  font: 400 0.9rem/1.2 var(--ui);
  padding: 0.6rem 0.7rem;
  border-radius: 2px;
}
.abo__mail-feld {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--linie-stark);
  background: var(--grund); color: var(--text);
}
.abo__mail-knopf {
  flex: none; border: 0; cursor: pointer;
  background: var(--buehne); color: var(--auf-buehne); font-weight: 600;
}
.abo__mail-knopf:hover { background: #1d3049; }
.abo__mail-hinweis { margin: 0.6rem 0 0; font-size: 0.72rem; color: var(--text-leise); }
.abo__mail-status { margin: 0.5rem 0 0; font-size: 0.82rem; }
.abo__mail-status:empty { display: none; }
.abo__mail-status.erfolg { color: var(--gold-dunkel); }
.abo__mail-status.fehler { color: #c0392b; }
.abo__trenner { border: 0; border-top: 1px solid var(--linie); margin: 0.75rem 0; }

/* Installieren-Knopf: gleiche Bauweise wie der Abo-Knopf (<details>/<summary>). */
.installieren__knopf {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(226, 199, 133, 0.5);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font: 500 0.66rem/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.installieren__knopf::-webkit-details-marker { display: none; }
.installieren__knopf:hover { background: rgba(226, 199, 133, 0.12); }
.installieren__zeichen { width: 14px; height: 14px; }

.installieren__menue {
  position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 40;
  width: min(19rem, calc(100vw - 2rem));
  background: var(--grund);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(11, 19, 31, 0.25);
  padding: 1rem;
  text-align: left;
}
.installieren__titel {
  margin: 0 0 0.6rem;
  font: 500 0.66rem/1 var(--ui);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dunkel);
}
.installieren__info { margin: 0; font-size: 0.85rem; color: var(--text-leise); }
.installieren__schritte { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--text-leise); }
.installieren__schritte li + li { margin-top: 0.4rem; }
.installieren__aktion {
  display: block; width: 100%; margin-top: 0.75rem;
  border: 0; border-radius: 2px; cursor: pointer;
  padding: 0.6rem 0.7rem;
  background: var(--buehne); color: var(--auf-buehne); font-weight: 600; font-size: 0.9rem;
}
.installieren__aktion:hover { background: #1d3049; }
.installieren__aktion:disabled { opacity: 0.6; cursor: default; }

.thema-schalter { display: none; border: 0; background: none; padding: 0; cursor: pointer; }
.js .thema-schalter { display: inline-flex; align-items: center; }
.thema-schalter__spur {
  position: relative; display: inline-block;
  width: 2.9rem; height: 1.6rem; border-radius: 999px;
  border: 1px solid rgba(226, 199, 133, 0.45);
}
.thema-schalter__knopf {
  position: absolute; top: 50%; left: 2px; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--gold); color: var(--buehne);
  transition: left 0.22s ease, transform 0.22s ease;
}
.thema-schalter__icon { grid-area: 1 / 1; width: 0.8rem; height: 0.8rem; transition: opacity 0.2s ease; }
.thema-schalter__icon--mond { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thema-schalter__knopf { left: calc(100% - 2px); transform: translate(-100%, -50%); }
  :root:not([data-theme="light"]) .thema-schalter__icon--sonne { opacity: 0; }
  :root:not([data-theme="light"]) .thema-schalter__icon--mond { opacity: 1; }
}
:root[data-theme="dark"] .thema-schalter__knopf { left: calc(100% - 2px); transform: translate(-100%, -50%); }
:root[data-theme="dark"] .thema-schalter__icon--sonne { opacity: 0; }
:root[data-theme="dark"] .thema-schalter__icon--mond { opacity: 1; }

/* =========================================================================
   Bühne: „Andacht des Tages“ (Startseite) und Seitenköpfe
   ========================================================================= */

.buehne {
  background: var(--buehne);
  color: var(--auf-buehne);
  padding: 2rem 0 2.75rem;
}

.buehne__innen {
  max-width: 64rem; margin: 0 auto; padding: 0 var(--rand);
}

/* Datumsspalte: mobil eine Zeile über dem Titel, ab Tablet eine Spalte
   links mit goldener Trennlinie. */
.heute { display: grid; gap: 1rem; }

@media (min-width: 48rem) {
  .heute { grid-template-columns: 5.5rem 1fr; gap: 0; }
  .heute__datum {
    border-right: 1px solid rgba(226, 199, 133, 0.28);
    padding-right: 1.1rem;
  }
  .heute__inhalt { padding-left: 1.75rem; }
}

.heute__tag {
  font-family: var(--display);
  font-size: 2.5rem; line-height: 1; margin: 0;
  color: var(--gold);
}
.heute__monat {
  margin: 0.35rem 0 0;
  font: 500 0.66rem/1.5 var(--ui);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--auf-buehne-leise);
}

@media (max-width: 47.99rem) {
  .heute__datum { display: flex; align-items: baseline; gap: 0.6rem; }
  .heute__tag { font-size: 1.6rem; }
  .heute__monat { margin: 0; }
}

.heute__rubrik { color: var(--gold); }

.heute__titel {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  margin: 0.7rem 0 0;
  color: var(--auf-buehne);
  text-wrap: pretty;
}
.heute__titel a { color: inherit; text-decoration: none; }

.heute__losung {
  font-family: var(--lese);
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.13rem);
  line-height: 1.65;
  color: #c7d3e2;
  max-width: 30em;
  margin: 1.1rem 0 0;
  text-wrap: pretty;
}
.heute__stelle {
  display: block;
  margin-top: 0.8rem;
  font: 500 0.66rem/1 var(--ui);
  font-style: normal;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--auf-buehne-leise);
}

.knopf {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 2px;
  background: var(--gold);
  color: var(--buehne);
  font: 600 0.85rem/1 var(--ui);
  text-decoration: none;
}
.knopf:hover { background: #f0d9a2; color: var(--buehne); }

@media (max-width: 29.99rem) {
  .knopf { display: block; text-align: center; }
}

/* Seitenkopf (Archiv, Bibel, Über) – dieselbe Bühne, kleiner. */
.seite-kopf {
  background: var(--buehne);
  color: var(--auf-buehne);
  padding: 1.5rem 0 2rem;
}
.seite-kopf__innen {
  max-width: 64rem; margin: 0 auto; padding: 0 var(--rand);
  border-top: 1px solid rgba(226, 199, 133, 0.22);
  padding-top: 1.4rem;
}
.seite-kopf__titel {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0.6rem 0 0;
  color: var(--auf-buehne);
}
.seite-kopf__text {
  margin: 0.6rem 0 0;
  max-width: 34em;
  font-size: 0.88rem;
  color: var(--auf-buehne-leise);
}

/* =========================================================================
   Inhalt
   ========================================================================= */

main#inhalt { flex: 1 0 auto; }

.inhalt {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem var(--rand) 3rem;
}

/* Zweispaltiger Unterbau der Startseite (Liste + Seitenspalte). */
.start-raster { display: grid; gap: 2rem; }

@media (min-width: 56rem) {
  .start-raster { grid-template-columns: 1fr 14rem; gap: 2.75rem; }
}

/* Abschnittsüberschrift mit Hairline. */
.block__kopf {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.block__kopf::after {
  content: ""; flex: 1; height: 1px; background: var(--linie);
}
.block__titel {
  font-family: var(--ui);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-leise);
  margin: 0;
}

/* Andachtsliste: Zeilen, keine Karten. */
.andacht-liste { list-style: none; margin: 0; padding: 0; }

.andacht-liste__link {
  display: grid; gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--linie);
  text-decoration: none; color: inherit;
}
.andacht-liste__link:hover { border-bottom-color: var(--gold-dunkel); }
.andacht-liste__link:hover .andacht-liste__titel { color: var(--gold-dunkel); }

.andacht-liste__titel {
  font-family: var(--lese);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}
.andacht-liste__datum, .andacht-liste__stelle {
  font-size: 0.72rem;
  color: var(--text-zart);
  font-style: normal;
}

@media (min-width: 40rem) {
  .andacht-liste__link {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.75rem;
  }
  .andacht-liste__datum { order: 2; white-space: nowrap; }
  .andacht-liste__stelle { order: 3; grid-column: 2; text-align: right; }
  .andacht-liste__titel { grid-row: 1; }
}

.liste-block__mehr { margin: 1.25rem 0 0; }
.liste-block__mehr a {
  font: 500 0.8rem/1 var(--ui);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dunkel);
  padding-bottom: 4px;
}

/* Seitenspalte: Leitvers + Abo. */
.kasten {
  background: var(--flaeche);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
}
.kasten + .kasten { margin-top: 0.85rem; }
.kasten--rahmen { background: transparent; border: 1px solid var(--linie); }

.kasten__vers {
  font-family: var(--lese);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-lese);
  margin: 0.7rem 0 0;
}
.kasten__quelle {
  margin: 0.7rem 0 0;
  font: 500 0.66rem/1 var(--ui);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-leise);
}
.kasten__text { margin: 0.5rem 0 0.8rem; font-size: 0.85rem; color: var(--text-leise); }

/* =========================================================================
   Einzelne Andacht – die Leseseite
   ========================================================================= */

.andacht { display: grid; gap: 0.75rem; position: relative; }

@media (min-width: 48rem) {
  .andacht { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0; }
  .andacht__rand { padding-top: 0.4rem; }
  .andacht__spalte {
    border-left: 1px solid var(--linie);
    padding-left: 1.75rem;
    max-width: var(--mass);
  }
}

/* Teilen-Knopf: mobil rechtsbündig über dem Titel, am Desktop rechts neben
   der Lesespalte (in der freien Fläche). */
.andacht__aktion { display: flex; justify-content: flex-end; margin: 0 0 0.6rem; }
@media (min-width: 48rem) {
  .andacht__aktion { position: absolute; top: 0.4rem; right: 0; margin: 0; }
}
.teilen {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 600 0.72rem/1 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-leise);
  background: transparent;
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.teilen:hover { color: var(--text); border-color: var(--gold-dunkel); }
.teilen.teilen--ok { color: var(--gold-dunkel); border-color: var(--gold-dunkel); }
.teilen__icon { width: 15px; height: 15px; flex: none; }

.andacht__rand p {
  margin: 0 0 0.9rem;
  font: 500 0.66rem/1.6 var(--ui);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-zart);
}
.andacht__rand p.rubrik { color: var(--gold-dunkel); }

.andacht__titel {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  margin: 0;
  color: var(--text);
  text-wrap: pretty;
}

.andacht__losung {
  font-family: var(--lese);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-leise);
  margin: 1.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--linie);
  text-wrap: pretty;
}
.andacht__stelle {
  display: block;
  margin-top: 0.7rem;
  font: 500 0.66rem/1 var(--ui);
  font-style: normal;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-leise);
}

/* Der Andachtstext selbst: Lora, großzügige Zeilenhöhe, ruhiges Maß. */
.andacht__text {
  font-family: var(--lese);
  font-size: 1.13rem;
  line-height: 1.8;
  color: var(--text-lese);
  margin-top: 1.9rem;
}
.andacht__text p { margin: 0 0 1.35em; text-wrap: pretty; }
.andacht__text strong { font-weight: 600; color: var(--text); }
.andacht__text em { font-style: italic; }

/* Ein Absatz, der nur aus einem hervorgehobenen Satz besteht, wird zum
   freigestellten Zitat (kein Markup nötig, wenn man <blockquote> nutzt). */
.andacht__text blockquote {
  margin: 1.6em 0;
  padding: 1.4em 0;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--text);
}
.andacht__text blockquote p:last-child { margin: 0; }

/* Frage zum Mitnehmen */
.frage {
  margin: 2rem 0 0;
  background: var(--buehne);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.frage__rubrik { color: var(--gold); }
.frage__text {
  font-family: var(--lese);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--auf-buehne);
  margin: 0.7rem 0 0;
  text-wrap: pretty;
}

.schlagwoerter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.schlagwort {
  font: 500 0.72rem/1 var(--ui);
  color: var(--text-leise);
  background: var(--flaeche);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}
.schlagwort:hover { color: var(--text); }

/* Vorige / Nächste */
.andacht__fuss { margin-top: 2.5rem; }

.nachbarn { display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .nachbarn { grid-template-columns: 1fr 1fr; } }

.nachbar {
  display: block;
  background: var(--flaeche);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}
.nachbar:hover { background: var(--linie); }
.nachbar--naechste { text-align: right; }
.nachbar__label {
  display: block; margin-bottom: 0.4rem;
  font: 500 0.63rem/1 var(--ui);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dunkel);
}
.nachbar__titel { font-family: var(--lese); font-weight: 500; font-size: 0.98rem; line-height: 1.35; color: var(--text); }

/* =========================================================================
   Archiv
   ========================================================================= */

.archiv-suche { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.archiv-suche__feld {
  flex: 1; min-width: 0;
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  background: var(--grund);
  color: var(--text);
  font: 400 0.95rem/1.2 var(--ui);
  padding: 0.75rem 0.85rem;
}

.filter { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.filter a {
  display: inline-block;
  font: 500 0.72rem/1 var(--ui);
  color: var(--text-leise);
  background: var(--flaeche);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}
.filter a[aria-current] { background: var(--gold); color: var(--buehne); }

/* Monatsgruppe: Monat als Marginalie links. */
.monat { display: grid; gap: 0.4rem; margin-top: 1.75rem; }

@media (min-width: 48rem) {
  .monat { grid-template-columns: 7.5rem 1fr; gap: 0; }
  .monat__kopf { padding-top: 0.9rem; }
  .monat__liste { border-left: 1px solid var(--linie); padding-left: 1.5rem; }
}

.monat__name {
  margin: 0;
  font: 500 0.66rem/1.5 var(--ui);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dunkel);
}
.monat__anzahl { margin: 0.25rem 0 0; font-size: 0.72rem; color: var(--text-zart); }

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

.monat__link {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--linie);
  text-decoration: none; color: inherit;
}
.monat__link:hover { border-bottom-color: var(--gold-dunkel); }
.monat__tag { font-family: var(--display); font-size: 1.25rem; color: var(--gold-dunkel); }
.monat__titel { font-family: var(--lese); font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.monat__stelle { font-size: 0.72rem; color: var(--text-zart); grid-column: 2; }

@media (min-width: 40rem) {
  .monat__link { grid-template-columns: 2rem 1fr auto; }
  .monat__stelle { grid-column: 3; white-space: nowrap; }
}

/* =========================================================================
   Nach Bibelstelle
   ========================================================================= */

.buch-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 2rem;
}
@media (min-width: 34rem) { .buch-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .buch-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.buch-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.4rem;
  border: 1px solid var(--linie);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  font: 500 0.82rem/1.2 var(--ui);
  color: var(--text-zart);
}
a.buch-chip--aktiv { color: var(--text); text-decoration: none; border-color: var(--linie-stark); }
a.buch-chip--aktiv:hover { border-color: var(--gold-dunkel); }
.buch-chip__zahl { font: 600 0.66rem/1 var(--ui); color: var(--gold-dunkel); }
.buch-chip--leer { opacity: 0.75; }

/* Hervorhebung des Buches, in dem gerade gelesen wird. */
.buch-fokus {
  background: var(--buehne);
  color: var(--auf-buehne);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 0 0 1.75rem;
}
.buch-fokus__rubrik { color: var(--gold); }
.buch-fokus__vers {
  font-family: var(--display);
  font-size: 1.5rem; line-height: 1.35;
  margin: 0.7rem 0 0;
}
.buch-fokus__balken { display: flex; gap: 4px; margin: 1.2rem 0 0; }
.buch-fokus__balken span { height: 5px; border-radius: 3px; background: rgba(226, 199, 133, 0.45); }
.buch-fokus__balken span[data-voll] { background: var(--gold); }
.buch-fokus__balken span[data-rest] { background: rgba(159, 176, 200, 0.22); }
.buch-fokus__info { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--auf-buehne-leise); }

.kapitel-liste { list-style: none; margin: 0; padding: 0; }
.kapitel-link {
  display: grid; gap: 0.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--linie);
  text-decoration: none; color: inherit;
}
.kapitel-link:hover { border-bottom-color: var(--gold-dunkel); }
.kapitel-nr { font-family: var(--display); font-size: 1.15rem; color: var(--text); }
.kapitel-info { font-size: 0.85rem; color: var(--text-leise); }
.kapitel-anzahl { font: 500 0.7rem/1 var(--ui); letter-spacing: 0.06em; color: var(--gold-dunkel); }

@media (min-width: 40rem) {
  .kapitel-link { grid-template-columns: 7rem 1fr auto; align-items: baseline; gap: 1rem; }
  .kapitel-anzahl { white-space: nowrap; }
}

/* =========================================================================
   Fließtext (Über) und Fuß
   ========================================================================= */

.fliesstext { max-width: var(--mass); font-family: var(--lese); font-size: 1.08rem; line-height: 1.8; color: var(--text-lese); }
.fliesstext p { margin: 0 0 1.3em; text-wrap: pretty; }

.fuss {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--linie);
}
.fuss__innen {
  max-width: 64rem; margin: 0 auto;
  padding: 1.1rem var(--rand);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-leise);
}
.fuss__zeile { margin: 0; }
.fuss__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.fuss__nav a { color: inherit; text-decoration: none; }
.fuss__nav a:hover { color: var(--gold-dunkel); }

@supports (padding: max(0px)) {
  .kopf__innen, .fuss__innen, .inhalt, .buehne__innen, .seite-kopf__innen {
    padding-left: max(var(--rand), env(safe-area-inset-left));
    padding-right: max(var(--rand), env(safe-area-inset-right));
  }
}

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

/* =========================================================================
   Langform-Text (Datenschutz, Über): Überschriften & Listen im Fließtext
   ========================================================================= */
.fliesstext h2 {
  font-size: 1.5rem;
  margin: 1.9em 0 0.4em;
}
.fliesstext h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.35em;
}
.fliesstext h2:first-child,
.fliesstext h3:first-child { margin-top: 0; }
.fliesstext ul { margin: 0 0 1.3em; padding-left: 1.2em; }
.fliesstext li { margin: 0 0 0.4em; }
.fliesstext a { color: var(--gold-dunkel); }

/* =========================================================================
   Kontaktformular (im „Tafel“-Design)
   ========================================================================= */
.kontakt {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: var(--mass);
}
.kontakt__feld {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.kontakt__label {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.kontakt input,
.kontakt textarea {
  width: 100%;
  box-sizing: border-box;
  font: 400 0.95rem/1.4 var(--ui);
  color: var(--text);
  background: var(--grund);
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
}
.kontakt textarea {
  resize: vertical;
  min-height: 8rem;
}
.kontakt input:focus,
.kontakt textarea:focus {
  outline: 2px solid var(--gold-dunkel);
  outline-offset: 1px;
  border-color: var(--gold-dunkel);
}
.kontakt__hinweis {
  font-size: 0.8rem;
  color: var(--text-leise);
}
/* Honigtopf: für Menschen unsichtbar, für Bots im DOM vorhanden. */
.kontakt__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.kontakt__knopf {
  align-self: flex-start;
  font: 600 0.85rem/1 var(--ui);
  cursor: pointer;
  color: var(--auf-buehne);
  background: var(--buehne);
  border: 0;
  border-radius: 2px;
  padding: 0.85rem 1.4rem;
}
.kontakt__knopf:hover { background: #1d3049; }
.kontakt__datenschutz {
  font-size: 0.8rem;
  color: var(--text-leise);
  margin: 0;
}
