/* ─────────────────────────────────────────────────────────────
   sturmgebet.at
   Palette "Himmelsblau" laut CLAUDE.md, kontrastgeprüft (WCAG AA)
   ───────────────────────────────────────────────────────────── */

:root {
  --color-bg: #f7fafd;
  --color-text: #1a2b3c;
  --color-primary: #3a7bc8;        /* große Schrift, Icons, Rahmen, Rosenkranz-Linie */
  --color-primary-dark: #2f67a8;   /* kleine Links/Fließtext – Kontrast 5,5:1 */
  --color-surface: #d6e7f7;
  --color-accent: #e8a33d;         /* nur als Hintergrund, nie als Textfarbe */
  --color-accent-hell: #f3c078;    /* helle Akzent-Variante für Abzeichen-Hintergrund mit dunkler Schrift, Kontrast 8,7:1 */
  --color-gedaempft: #5c6b7a;      /* dezentes Grau-Blau, Kontrast 5,5:1 auf Weiß */

  --flaeche: #ffffff;

  --schrift-anzeige: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --schrift-text: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite-inhalt: 64rem;
  --breite-lesen: 42rem;

  --abstand-3xs: 0.25rem;
  --abstand-2xs: 0.5rem;
  --abstand-xs: 0.75rem;
  --abstand-s: 1rem;
  --abstand-m: 1.5rem;
  --abstand-l: 2.5rem;
  --abstand-xl: 4rem;
  --abstand-2xl: 6rem;

  --rundung-s: 0.6rem;
  --rundung-m: 1.25rem;
  --rundung-l: 1.75rem;

  --schatten-weich: 0 1rem 2.5rem rgba(26, 43, 60, 0.1);
  --schatten-zart: 0 0.4rem 1.25rem rgba(26, 43, 60, 0.07);

  --hero-hoehe: min(92vh, 54rem);
  --hero-ueberlappung: 4rem; /* so viel ist die Termin-Karte von Anfang an schon über dem Bild sichtbar */
  --kopf-hoehe: 7.25rem; /* Höhe des Kopfbereichs - der fixe Hero läuft dahinter, die Platzhalter-Zeile aber nicht, das muss ausgeglichen werden */
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--schrift-text);
  font-size: 1.125rem; /* 18px Basis */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--schrift-anzeige);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 var(--abstand-m);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--abstand-m); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--breite-inhalt);
  margin: 0 auto;
  padding: 0 var(--abstand-m);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-text);
  color: #fff;
  padding: var(--abstand-xs) var(--abstand-m);
  border-radius: 0 0 var(--rundung-s) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

.seiten-kopf {
  text-align: center;
  max-width: var(--breite-lesen);
  margin: 0 auto var(--abstand-l);
}

.seiten-kopf .eyebrow { display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 var(--abstand-xs);
}

/* ── Kopfbereich / Navigation ───────────────────────────────── */
/* Hell & ruhig, keine dunkle Leiste – damit Schrift immer lesbar bleibt. */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 253, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-surface);
}

.kopf-zeile {
  max-width: var(--breite-inhalt);
  margin: 0 auto;
  min-height: var(--kopf-hoehe);
  padding: var(--abstand-xs) var(--abstand-m);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  gap: var(--abstand-xs) var(--abstand-m);
}

.wortmarke {
  order: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--schrift-anzeige);
  font-size: 1.5rem;
  font-weight: 600;
}

.wortmarke .marke-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.wortmarke svg { display: block; height: 2.4rem; width: auto; }

.menu-knopf {
  order: 2;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: none;
  border-radius: var(--rundung-s);
  color: var(--color-text);
  font-family: var(--schrift-text);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

#menu-schalter { position: absolute; opacity: 0; pointer-events: none; }

.hauptnav {
  order: 3;
  flex-basis: 100%;
  width: 100%;
}

.hauptnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.hauptnav a,
.hauptnav button {
  display: inline-block;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 0.65rem 1rem;
  border-radius: var(--rundung-s);
  min-height: 44px;
  line-height: 1.3;
  cursor: pointer;
}

.hauptnav a:hover,
.hauptnav a:focus-visible,
.hauptnav button:hover,
.hauptnav button:focus-visible {
  background: var(--color-surface);
  color: var(--color-text);
}

.hauptnav a[aria-current="page"],
.hauptnav button[aria-current="page"] {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
}

.hauptnav .untermenu {
  position: relative;
}

.hauptnav .untermenu-liste {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: none;
  position: absolute;
  background: var(--flaeche);
  border-radius: var(--rundung-s);
  min-width: 12rem;
  box-shadow: var(--schatten-weich);
}

.hauptnav .untermenu-liste a { color: var(--color-text); }

.hauptnav .untermenu:hover .untermenu-liste,
.hauptnav .untermenu:focus-within .untermenu-liste {
  display: block;
}

@media (max-width: 760px) {
  .menu-knopf { display: inline-flex; }

  /* Am Handy ist neben dem Menü-Knopf nicht genug Platz für das große
     Icon - sonst rutscht der Knopf in die nächste Zeile. */
  .wortmarke .marke-symbol { width: 2.6rem; height: 2.6rem; }
  .wortmarke svg { height: 1.8rem; }

  /* Ohne Zeilenabstand zur (eingeklappten) Nav-Zeile, sonst landet
     dieser unsichtbare Platz unten und die Kopfzeile wirkt nicht mehr
     mittig. Der Abstand kommt stattdessen erst zurück, wenn das Menü
     tatsächlich aufgeklappt ist (siehe unten). */
  .kopf-zeile { row-gap: 0; }

  .hauptnav {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
  }

  #menu-schalter:checked ~ .hauptnav {
    max-height: 36rem;
    opacity: 1;
    margin-top: var(--abstand-xs);
  }

  .hauptnav ul {
    flex-direction: column;
    gap: 0.15rem;
    padding-top: var(--abstand-xs);
    border-top: 1px solid var(--color-surface);
    margin-top: var(--abstand-xs);
  }

  .hauptnav a { padding: 0.85rem 1rem; }

  .hauptnav .untermenu-liste {
    display: block;
    position: static;
    box-shadow: none;
    background: var(--color-surface);
    margin: 0.25rem 0 0.25rem 1rem;
    padding: 0.25rem;
  }
}

/* ── Hero ───────────────────────────────────────────────────── */

/* Bleibt beim Scrollen unverändert am Bildschirm stehen (fixed), damit
   es sich wirklich keinen Millimeter mitbewegt. Die Platzhalter-Zeile
   direkt danach ist etwas niedriger als das Bild selbst (siehe
   --hero-ueberlappung) - dadurch ist die Termin-Karte von Anfang an
   schon ein Stück sichtbar, bevor überhaupt gescrollt wird. */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  height: var(--hero-hoehe);
  min-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--abstand-m);
  text-align: center;
}

.hero-platzhalter {
  height: calc(var(--hero-hoehe) - var(--hero-ueberlappung) - var(--kopf-hoehe));
  min-height: 30rem;
}

/* Umhüllt den gesamten übrigen Seiteninhalt (inkl. Footer) in einer
   eigenen, höheren Ebene mit eigenem (blickdichtem) Hintergrund, damit
   er beim Scrollen zuverlässig über dem fixen Hero-Bild liegt und es
   irgendwann komplett zudeckt. */
.inhalt-ueber-hero {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero::before {
  background-image: url("/assets/img/fatima-hero.jpg");
  background-image: image-set(url("/assets/img/fatima-hero.webp") type("image/webp"), url("/assets/img/fatima-hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  filter: brightness(0.95);
}

.hero::after {
  /* Nur oben (wo der Text sitzt) abgedunkelt, darunter klart es rasch auf -
     das Foto soll gut zu sehen sein, nicht nur die Textlesbarkeit sichern. */
  background: linear-gradient(
    180deg,
    rgba(20, 32, 46, 0.72) 0%,
    rgba(20, 32, 46, 0.45) 30%,
    rgba(20, 32, 46, 0.15) 55%,
    rgba(20, 32, 46, 0.05) 100%
  );
}

.hero-inhalt {
  max-width: 44rem;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(10, 20, 30, 0.45);
}

.hero .eyebrow {
  color: #fff;
  opacity: 0.85;
}

.hero blockquote {
  margin: 0;
  font-family: var(--schrift-anzeige);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.45;
}

.hero cite {
  display: block;
  margin-top: var(--abstand-s);
  font-style: normal;
  opacity: 0.85;
}

main {
  padding-top: var(--abstand-xl);
  padding-bottom: var(--abstand-2xl);
}

/* Seiten mit Hero-Bild (z. B. Home) brauchen keinen zusätzlichen oberen Abstand -
   das Hero-Bild reicht selbst bis an den Kopfbereich heran. */
main.main-ohne-oben { padding-top: 0; }

section + section { margin-top: var(--abstand-2xl); }

/* ── Termin-Karte ─────────────────────────────────────────────
   Schließt direkt (ohne Lücke) an das Hero-Bild an - oben eckig,
   damit es wirkt, als würde die Karte aus dem Bild herauswachsen. */

.termin-naechster-bereich {
  margin-top: 0;
}

.termin-naechster,
.termin-entfaellt {
  background: var(--flaeche);
  border-radius: 0 0 var(--rundung-l) var(--rundung-l);
  padding: var(--abstand-l);
  box-shadow: var(--schatten-weich);
}

.termin-abzeichen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--abstand-s);
}

.abzeichen {
  display: inline-block;
  background: var(--color-accent-hell);
  color: var(--color-text);
  border: 1.5px solid var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.termin-entfaellt .abzeichen { background: var(--color-surface); color: var(--color-text); border-color: var(--color-surface); }

/* Kleine Variante fürs Mitlaufen im Fließtext, z. B. neben "Heilige Messe". */
.abzeichen-klein {
  display: inline-block;
  margin-left: 0.85rem;
  vertical-align: 0.1em;
  background: var(--color-accent-hell);
  color: var(--color-text);
  border: 1.5px solid var(--color-accent);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Sondertitel (z. B. ein Jubiläum) ist ein seltener Ausnahmefall und soll
   deutlich mehr auffallen als die normale Nummerierung. */
.sondertitel {
  display: inline-block;
  background: var(--color-accent-hell);
  color: var(--color-text);
  border: 1.5px solid var(--color-accent);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  margin: 0 0 var(--abstand-s);
}

.termin-pfarrer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.35rem;
  font-family: var(--schrift-anzeige);
  color: var(--color-text);
  margin-bottom: var(--abstand-m);
}

/* Gleiche dezente Behandlung wie "1010 Wien" im Ablauf, damit der
   Unterschied zum eigentlichen Pfarrernamen gut erkennbar ist. */
.anrede {
  font-family: var(--schrift-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-gedaempft);
}

.ablauf-liste {
  --einzug: 7.8rem;
  --linie-x: 4.8rem; /* Mittelpunkt von Linie und Punkten, von der Liste aus gemessen; linker Rand der Punkte auf Höhe des ersten Buchstabens des Pfarrernamens (nur Desktop, siehe Media Query) */
  list-style: none;
  margin: var(--abstand-m) 0 0;
  padding: 0 0 0 var(--einzug);
  position: relative;
}

.ablauf-liste::before {
  content: "";
  position: absolute;
  left: var(--linie-x);
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--color-surface);
  transform: translateX(-50%);
}

.ablauf-liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  padding: 0.65rem 0;
}

.ablauf-zeit {
  position: relative;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 4rem;
  padding-top: 0.1rem;
  color: var(--color-primary-dark);
}

.ablauf-programm {
  font-weight: 700;
  font-size: 1.2rem;
}

/* Kirche + Ort stehen nur bei Programmpunkten, zu denen sie angegeben
   sind (z. B. 1./2. Rosenkranz) - bei Prozession/Messe fehlen beide
   einfach ganz. Am Desktop rücken sie dadurch direkt an den
   Programmtext heran statt in einer fixen, weit entfernten Spalte. */
.ablauf-kirche {
  color: var(--color-text);
  opacity: 0.8;
}

.ablauf-ort {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gedaempft);
}

.ablauf-zeit::before {
  content: "";
  position: absolute;
  left: calc(var(--linie-x) - var(--einzug));
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--flaeche);
  transform: translate(-50%, -50%);
}

.weitere-termine { margin-top: var(--abstand-l); text-align: center; }

.weitere-termine h2 { font-size: 1.1rem; }

.weitere-termine-liste {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 28rem;
  text-align: left;
  background: var(--flaeche);
  border-radius: var(--rundung-m);
  box-shadow: var(--schatten-zart);
  overflow: hidden;
}

.weitere-termine-liste li {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.85rem 1.25rem;
  line-height: 1.4;
}

.weitere-termine-liste li + li {
  border-top: 1px solid var(--color-surface);
}

/* Entfällt ein Termin, gibt es keine zweite Zeile (keinen Pfarrer) -
   die Mindesthöhe sorgt dafür, dass die Zeile trotzdem gleich hoch
   bleibt wie die anderen, "Entfällt" wandert dafür nach oben neben
   das Datum (siehe .weitere-oben). */
.weitere-mit-details { min-height: 4.4rem; }

.weitere-oben {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.weitere-datum { font-weight: 600; }

.weitere-pfarrer {
  color: var(--color-text);
  opacity: 0.75;
}

.weitere-status {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gedaempft);
}

/* ── Karten (Aktuelles, Eucharistie) ──────────────────────────── */

.karten-liste {
  display: grid;
  gap: var(--abstand-m);
}

@media (min-width: 700px) {
  .karten-liste { grid-template-columns: 1fr 1fr; }
}

.karte {
  background: var(--flaeche);
  border-radius: var(--rundung-m);
  padding: var(--abstand-m);
  box-shadow: var(--schatten-zart);
  display: flex;
  flex-direction: column;
}

.karte blockquote {
  margin: var(--abstand-s) 0;
  padding-left: var(--abstand-s);
  border-left: 3px solid var(--color-surface);
  flex-grow: 1;
}

.karte figcaption {
  font-size: 0.95rem;
  opacity: 0.75;
}

.karte .button { margin-top: auto; align-self: flex-start; }

.karte.zentriert { text-align: center; align-items: center; }
.karte.zentriert .button { align-self: center; }

/* ── Botschaften (Medjugorje) ──────────────────────────────────── */

.botschaft-neueste {
  position: relative;
  background: var(--flaeche);
  border-radius: var(--rundung-l);
  padding: var(--abstand-l);
  box-shadow: var(--schatten-weich);
  overflow: hidden;
}

.botschaft-neueste::before {
  content: "“";
  position: absolute;
  top: -2rem;
  left: 1rem;
  font-family: var(--schrift-anzeige);
  font-size: 12rem;
  line-height: 1;
  color: var(--color-surface);
  z-index: 0;
}

.botschaft-neueste > * { position: relative; z-index: 1; }

.botschaft-neueste blockquote {
  font-family: var(--schrift-anzeige);
  font-size: 1.3rem;
  line-height: 1.6;
}

.botschaft-bild {
  margin-top: var(--abstand-m);
  border-radius: var(--rundung-m);
  max-height: 22rem;
  object-fit: cover;
  width: 100%;
}

.botschaften-archiv { margin-top: var(--abstand-2xl); }

.botschaften-archiv > h2 {
  text-align: center;
  margin-bottom: var(--abstand-l);
}

.botschaften-archiv h3 {
  font-family: var(--schrift-text);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-dark);
  border-top: 1px solid var(--color-surface);
  padding-top: var(--abstand-m);
  margin-bottom: var(--abstand-m);
}

.botschaften-archiv-liste {
  display: grid;
  gap: var(--abstand-m);
  margin-bottom: var(--abstand-l);
}

.botschaft {
  background: var(--flaeche);
  border-radius: var(--rundung-m);
  padding: var(--abstand-m);
  box-shadow: var(--schatten-zart);
}

.botschaft blockquote { margin: 0; }

.anlass {
  display: inline-block;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

/* ── Bildakzente ──────────────────────────────────────────────── */

.bild-akzent {
  border-radius: var(--rundung-m);
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: var(--abstand-m);
}

.abschnitt-mit-bild .bild-akzent { margin-bottom: 0; }

.abschnitt-mit-bild {
  display: grid;
  gap: var(--abstand-l);
  align-items: center;
}

@media (min-width: 700px) {
  .abschnitt-mit-bild { grid-template-columns: 1.1fr 0.9fr; }
}

/* ── Fließtext- / Feature-Seiten ──────────────────────────────── */

.text-seite { max-width: var(--breite-lesen); margin: 0 auto; }
.text-seite .blocksatz { text-align: justify; }

.feature-seite {
  max-width: var(--breite-lesen);
  margin: 0 auto;
  text-align: center;
}

.feature-seite ul {
  text-align: left;
  display: inline-block;
  margin: 0 auto var(--abstand-m);
  padding-left: 1.25rem;
}

.feature-seite ul li { margin-bottom: 0.4rem; }

.zentriert { text-align: center; }

/* ── Ressourcen-/Link-Karte (z. B. Weltapostolat) ─────────────── */

.ressourcen-karte {
  max-width: var(--breite-lesen);
  margin: 0 auto var(--abstand-l);
  background: var(--flaeche);
  border-radius: var(--rundung-m);
  padding: var(--abstand-m) var(--abstand-l);
  box-shadow: var(--schatten-zart);
}

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

.link-liste li + li { border-top: 1px solid var(--color-surface); }

.link-liste a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-m);
  padding: 0.85rem 0;
  min-height: 44px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.link-liste a::after {
  content: "→";
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.link-liste a:hover,
.link-liste a:focus-visible {
  color: var(--color-primary-dark);
}

/* ── Historischer Brief (Sühneandachten) ──────────────────────── */

.brief {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--flaeche);
  border-radius: var(--rundung-l);
  box-shadow: var(--schatten-weich);
  overflow: hidden;
}

.brief picture { display: block; }

.brief-bild {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.brief-text {
  padding: var(--abstand-l);
  font-family: var(--schrift-anzeige);
  font-size: 1.05rem;
  line-height: 1.8;
}

.brief-signatur {
  margin-top: var(--abstand-l);
  font-style: italic;
}

.platzhalter {
  background: #fff3cd;
  color: #6b5100;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

/* ── Fußzeile ─────────────────────────────────────────────────── */

footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--abstand-xl) 0;
  margin-top: var(--abstand-2xl);
}

.fuss-zeile {
  display: grid;
  gap: var(--abstand-m);
  text-align: center;
}

@media (min-width: 700px) {
  .fuss-zeile { grid-template-columns: repeat(3, 1fr); text-align: left; }
}

footer a { color: #fff; }
footer .wortmarke { color: #fff; }
footer p { margin: 0 0 0.4rem; }
footer p:last-child { margin-bottom: 0; }

.fuss-marke-kopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

@media (min-width: 700px) {
  .fuss-marke-kopf { justify-content: flex-start; }
}

/* Icon und Text zusammen vergrößert (nicht nur das Icon), damit das
   Icon nicht größer als der Text wird - das sah unzentriert aus. */
.fuss-marke-kopf .wortmarke { font-size: 2.4rem; line-height: 1; }

.fuss-icon svg {
  display: block;
  position: relative;
  top: 0;
  height: 2.4rem;
  width: auto;
  color: #fff;
}

.fuss-marke p { margin-top: 0.75rem; opacity: 0.8; }

/* ── Buttons ──────────────────────────────────────────────────── */

.button {
  display: inline-block;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--rundung-s);
  min-height: 44px;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 700px) {
  .hero, .hero-platzhalter { min-height: 26rem; }
  :root { --hero-hoehe: min(78vh, 40rem); --hero-ueberlappung: 3rem; --kopf-hoehe: 5rem; }
  .termin-naechster, .termin-entfaellt, .botschaft-neueste { padding: var(--abstand-m); }

  /* Am Handy ist neben dem langen Datum kein Platz mehr für "Entfällt" -
     daher hier wieder untereinander statt nebeneinander. */
  .weitere-oben {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  /* Am Handy keine Einrückung - dafür ist der Bildschirm zu schmal. */
  .ablauf-liste {
    --einzug: 1.5rem;
    --linie-x: 0.25rem;
  }

  /* Am Handy: alles untereinander statt nebeneinander, und "1010 Wien"
     (falls vorhanden) ganz oben, noch vor dem Programmpunkt. */
  .ablauf-liste li {
    flex-direction: column;
    gap: 0.35rem;
  }

  .ablauf-ort { order: 1; }
  .ablauf-programm { order: 2; }
  .ablauf-kirche { order: 3; }

  /* Primizsegen-Abzeichen unter statt neben "Heilige Messe". */
  .abzeichen-klein {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-top: 0.3rem;
  }

  /* Neupriester-Abzeichen über statt neben dem Pfarrernamen. */
  .termin-pfarrer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .termin-pfarrer .abzeichen-klein {
    order: -1;
    margin-top: 0;
  }

  /* Die Pillenform aus der Desktop-Version wirkt am Handy unschön, sobald
     der Text in mehrere Zeilen umbricht (wird zu einer gequetschten
     Kapsel). Am Handy daher als ruhiges, rechteckiges Banner. */
  .sondertitel {
    display: block;
    border-radius: var(--rundung-m);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hauptnav { transition: none; }
}
