/* Startseite von tuespetrus.de. Leitbild ist die Kuppel des Petersdoms: Nachtblau mit Gold, der Fries mit blauen
   Mosaikbuchstaben, das Licht aus der Laterne. Bewegung (src/startseite.js) setzt pro Abschnitt --p (0 … 1)
   für den Scroll-Fortschritt; ohne Skript oder bei „Bewegung reduzieren“ bleibt alles ruhig und lesbar. */
.start { background: var(--paper); }
.start main { display: block; overflow-x: clip; }
.bewegung {
  position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 40;
  min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--gold-hell); border-radius: 999px;
  background: var(--night); color: var(--gold-hell); font: 600 .85rem/1.3 var(--font-ui); cursor: pointer;
  transition: opacity .3s ease, visibility .3s;
}
/* Nur bei bewegten Abschnitten im Fenster (src/startseite.js). Mit Fokus bleibt er stehen, sonst ginge der Fokus verloren. */
.bewegung.ist-fern:not(:focus) { opacity: 0; visibility: hidden; }
.bewegung:focus-visible { outline: 3px solid var(--gold-hell); outline-offset: 3px; }
/* Auf dem Handy kein schwebender Knopf über dem Text; dort gilt die Systemeinstellung „Bewegung reduzieren“ */
@media (max-width: 659px) { .bewegung { display: none; } }
/* Mit der Tastatur im verblassten Titelbild: Inhalt ganz zeigen. Nur bei :focus-visible, nicht bei :focus-within: Ein
   Klick fokussiert den Link, der Inhalt spränge um die Scroll-Verschiebung, und das Loslassen träfe ihn nicht mehr. */
.held:has(:focus-visible) .held-inhalt { opacity: 1; transform: none; }
.held:has(:focus-visible) .held-nachweis { opacity: 1; }
:root.bewegung-ruhig { scroll-behavior: auto; }
.bewegung-ruhig *, .bewegung-ruhig *::before, .bewegung-ruhig *::after { animation: none !important; transition: none !important; }
.bewegung-ruhig .held { height: auto; }
.bewegung-ruhig .held-buehne { position: relative; }
.bewegung-ruhig :is(.held-bild, .held-inhalt, .zeigen) { transform: none !important; }
.bewegung-ruhig :is(.held-inhalt, .zeigen) { opacity: 1 !important; }
.bewegung-ruhig .held-glanz { opacity: 0; }
.bewegung-ruhig .held-licht span { opacity: .6; }
.bewegung-ruhig .fries-spur { width: auto; transform: none !important; white-space: normal; justify-content: center; padding: 0 1rem; }
.bewegung-ruhig .fries-satz { display: block; white-space: normal; text-align: center; padding: .2rem 0; font-size: clamp(1.5rem, 4vw, 3.2rem); line-height: 1.25; }
.bewegung-ruhig .fries-satz .kreuz { display: inline-block; vertical-align: -.05em; margin-right: .35em; }
.bewegung-ruhig .fries-satz ~ .fries-satz { display: none; }
.held-nachweis a { color: inherit; text-decoration-color: currentColor; text-underline-offset: .15em; }

/* ------------------------------------------------------------ Titelbild: Blick hinauf in die Kuppel */
.held { position: relative; height: 170vh; height: 170svh; background: var(--night); color: var(--auf-nacht); --fokus: var(--gold-hell); --fokus-gold: var(--gold-hell); }
.held-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.held-bild {
  position: absolute; inset: -3%;
  transform-origin: 50% 30%;
  transform: scale(calc(1.03 + var(--p, 0) * .42)) rotate(calc(var(--p, 0) * 10deg));
  will-change: transform;
}
.held-bild picture, .held-foto { display: block; width: 100%; height: 100%; }
.held-foto { object-fit: cover; }
.held-schleier {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 30%, rgba(8, 12, 34, 0) 0%, rgba(8, 12, 34, .2) 50%, rgba(8, 12, 34, .78) 100%),
    linear-gradient(180deg, rgba(8, 12, 34, .6) 0%, rgba(8, 12, 34, 0) 22%, rgba(8, 12, 34, .18) 52%, rgba(8, 12, 34, .9) 88%, var(--night) 100%);
}
/* Lichtbahnen aus den Fenstern, wie am Vormittag im Petersdom */
.held-licht { position: absolute; inset: 0; mix-blend-mode: screen; opacity: calc(.6 + var(--p, 0) * .4); pointer-events: none; }
.held-licht span {
  position: absolute; top: -25%; left: var(--x); width: var(--w); height: 160%;
  background: linear-gradient(180deg, rgba(255, 240, 205, 0) 0%, rgba(255, 236, 196, .26) 30%, rgba(255, 236, 196, .07) 72%, rgba(255, 236, 196, 0) 100%);
  transform: rotate(22deg); transform-origin: 50% 0; filter: blur(9px);
  animation: strahl 12s ease-in-out var(--d) infinite alternate;
}
@keyframes strahl { from { opacity: .3; translate: -2vw 0; } to { opacity: 1; translate: 2vw 0; } }
/* Je weiter man scrollt, desto heller wird das Licht der Laterne */
.held-glanz {
  position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255, 247, 226, .95) 0, rgba(255, 238, 198, .5) 11%, rgba(255, 236, 190, 0) 44%);
  opacity: calc(var(--p, 0) * 1.25 - .15);
}
.held-staub { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.held-inhalt {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 5rem max(1.25rem, env(safe-area-inset-right, 0px)) calc(3.5rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  opacity: calc(1 - var(--p, 0) * 2.4);
  transform: translateY(calc(var(--p, 0) * -14vh));
}
.held-zeile {
  margin: 0 0 1rem; max-width: 22rem; font-family: var(--font-ui); font-size: .75rem; font-weight: 600; letter-spacing: .22em;
  line-height: 1.6; text-transform: uppercase; color: var(--gold-hell); text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
  animation: auftauchen 1.2s .2s ease both;
}
@media (min-width: 600px) { .held-zeile { max-width: none; } }
.held-titel {
  margin: 0; font-family: var(--font-kapitalis); font-weight: 600; font-kerning: none;
  font-size: clamp(2.9rem, 10.5vw, 8.25rem); line-height: .98; letter-spacing: .07em; color: var(--gold-hell);
}
.held-buchstaben { position: relative; display: inline-block; text-shadow: 0 2px 0 rgba(70, 44, 6, .55), 0 14px 44px rgba(0, 0, 0, .6); }
.held-wort { display: inline-block; white-space: nowrap; }
.held-wort > span {
  display: inline-block;
  animation: buchstabe 1.2s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.4s + var(--i) * 80ms);
}
@keyframes buchstabe { from { opacity: 0; transform: translateY(.32em) scale(.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* Goldglanz, der über die Buchstaben wandert */
.held-buchstaben::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  color: transparent; text-shadow: none;
  background: linear-gradient(105deg, transparent 0 42%, rgba(255, 251, 236, .95) 50%, transparent 58% 100%);
  background-size: 280% 100%; background-position: 140% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: glanz 8s 2.4s ease-in-out infinite;
}
@keyframes glanz { 0% { background-position: 140% 0; } 45%, 100% { background-position: -40% 0; } }
.held-zitat {
  margin: 1.5rem auto 0; max-width: 34rem; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 1rem + .9vw, 1.65rem); line-height: 1.35; color: var(--auf-nacht);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
  animation: auftauchen 1.4s 1.5s ease both;
}
.held-zitat cite {
  display: block; margin-top: .45rem; font-family: var(--font-ui); font-style: normal; font-size: .78rem;
  font-weight: 600; letter-spacing: .16em; color: var(--gold-hell);
}
/* Verweise auf dunklem Grund: Gold statt Rot */
.held .ref { --c: var(--gold-hell); --c-line: rgba(236, 210, 142, .5); --c-tint: rgba(236, 210, 142, .16); }
.held-weiter {
  margin-top: 2.2rem; display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; padding: .3rem .8rem;
  color: var(--auf-nacht-2); text-decoration: none; border-radius: 999px;
  font-family: var(--font-ui); font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  animation: auftauchen 1.2s 2.3s ease both;
}
.held-weiter:hover { color: var(--gold-hell); }
.held-weiter svg { width: 1.35rem; height: 1.35rem; animation: wippen 2.4s ease-in-out infinite; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.held-nachweis {
  position: absolute; right: max(.75rem, env(safe-area-inset-right, 0px)); bottom: .55rem; margin: 0;
  /* ab 660 px steht rechts unten der Knopf „Bewegung pausieren“; der Nachweis rückt dann nach links */
  font-family: var(--font-ui); font-size: .66rem; color: rgba(242, 236, 221, .62);
  opacity: calc(1 - var(--p, 0) * 3);
}

/* ------------------------------------------------------------ Das Wort: die Inschrift als umlaufendes Mosaikband, darunter
   Mt 16,18–19 in wenigen Sätzen; die Knöpfe zu /name-fels-schluessel/ und /petersdom/ stehen am Ende von „Rede und Antwort“ */
.fries { position: relative; background: var(--night); color: var(--auf-nacht); --fokus: var(--gold-hell); --fokus-gold: var(--gold-hell); padding: 0 0 clamp(4rem, 9vw, 6.5rem); overflow: hidden; scroll-margin-top: 3.6rem; }
/* Gesims mit Zahnschnitt darüber, Stuckprofil darunter (wie im Tambour) */
.fries-gesims {
  height: 22px;
  background:
    linear-gradient(180deg, #f3ecdb 0 5px, rgba(0, 0, 0, .25) 5px 6px, transparent 6px),
    repeating-linear-gradient(90deg, #ebe2cc 0 13px, #9a8b6c 13px 15px, #6e6249 15px 20px);
}
.fries-gesims--unten { height: 12px; background: linear-gradient(180deg, #8a7650 0 2px, #f1ead9 2px 6px, #c3b494 6px 10px, #6f5d3a 10px); }
.fries-band {
  position: relative; overflow: hidden; background-color: var(--gold); background-size: 150px auto;
  padding: clamp(.55rem, 1.5vw, 1.1rem) 0;
  box-shadow: inset 0 12px 20px rgba(60, 38, 6, .38), inset 0 -12px 20px rgba(60, 38, 6, .38);
}
/* Glanz, der über das Gold wandert */
.fries-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 249, 225, .9) 45%, transparent 60%);
  background-size: 320% 100%; animation: glanz-band 10s linear infinite;
}
@keyframes glanz-band { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.fries-spur { display: flex; width: max-content; white-space: nowrap; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.fries-satz {
  display: inline-flex; align-items: center; gap: .5em; padding-right: .5em;
  font-family: var(--font-kapitalis); font-weight: 700; font-kerning: none;
  font-size: clamp(2.3rem, 6.6vw, 5.6rem); line-height: 1.12; letter-spacing: .07em;
}
.fries-buchstaben { color: var(--lapis); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fries-buchstaben.mosaik-blau {
    color: transparent; background-size: 84px auto; -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .45)) drop-shadow(0 -1px 0 rgba(40, 24, 2, .25));
  }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .fries-buchstaben.mosaik-blau { background: none; }
}
.fries-inhalt {
  max-width: 46rem; margin: 0 auto; text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) max(1.25rem, env(safe-area-inset-right, 0px)) 0 max(1.25rem, env(safe-area-inset-left, 0px));
}
.fries-inhalt .eyebrow { color: var(--gold-hell); }
.fries-inhalt .abschnitt-titel { color: #fff; }
.fries-inhalt .abschnitt-lead { color: var(--auf-nacht); }
.fries .ref { --c: var(--gold-hell); --c-line: rgba(236, 210, 142, .5); --c-tint: rgba(236, 210, 142, .16); }

/* ------------------------------------------------------------ Abschnitte allgemein */
.beitraege, .anliegen {
  padding: clamp(4rem, 9vw, 7.5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(4rem, 9vw, 7rem) max(1.25rem, env(safe-area-inset-left, 0px));
  scroll-margin-top: 3rem;
}

/* ------------------------------------------------------------ Beiträge */
.beitraege {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--gold-tint), transparent 70%), var(--sheet);
  border-block: 1px solid var(--rule);
}
.rubrik { max-width: 72rem; margin: 0 auto; display: grid; gap: 1.25rem; scroll-margin-top: 5rem; }
.rubrik + .rubrik { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .rubrik { grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; align-items: start; } }
.rubrik-titel { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.15; }
.rubrik-text { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
/* Nur eine Rubrik sichtbar: ohne eigene Spalte für den Namen, die Karten nebeneinander wie die Themen */
@media (min-width: 900px) { .rubrik--allein { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1100px) {
  .rubrik--allein .karten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rubrik--allein .karte-titel { font-size: clamp(1.8rem, 1.2rem + 1vw, 2.2rem); }
  .rubrik--allein .karte-link { display: flex; flex-direction: column; }
  .rubrik--allein .karte-text { font-size: 1rem; line-height: 1.6; }
  .rubrik--allein .karte-weiter { margin-top: auto; padding-top: 1.5rem; align-self: flex-start; }
}

/* ------------------------------------------------------------ Anliegen */
.anliegen { background: var(--paper); }
.anliegen-text { max-width: 40rem; margin: clamp(2rem, 5vw, 3rem) auto 0; }
.anliegen-text p { margin: 0 0 1em; line-height: 1.68; hyphens: auto; -webkit-hyphens: auto; }
.anliegen-text a:not(.ref) { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold-line); text-underline-offset: .18em; }
.anliegen-text a:not(.ref):hover { color: var(--gold-text); text-decoration-color: currentColor; }
.anliegen-uebersicht { display: grid; gap: 1.25rem; margin: 1.75em 0 0; }
.anliegen-uebersicht dt { margin: 0 0 .3rem; font-family: var(--font-ui); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.anliegen-uebersicht dd { margin: 0; line-height: 1.68; hyphens: auto; -webkit-hyphens: auto; }

/* ------------------------------------------------------------ Themen: jede Themenseite als Karte mit dem Foto aus ihrem Kopf */
.themen {
  padding: clamp(3.5rem, 8vw, 6.5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(4rem, 9vw, 7rem) max(1.25rem, env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: 1px solid var(--rule); scroll-margin-top: 3rem;
}
.themen-karten { max-width: 72rem; margin: 0 auto; display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .themen-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .themen-karten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thema-link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 18px; color: inherit; text-decoration: none;
  background: var(--sheet); border: 1px solid var(--rule-strong); transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.thema-link:hover { box-shadow: var(--shadow); border-color: var(--gold-line); transform: translateY(-3px); }
.thema-bild { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.thema-bild picture, .thema-foto { display: block; width: 100%; height: 100%; }
.thema-foto { object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.thema-link:hover .thema-foto { transform: scale(1.04); }
/* Goldener Mosaikstreifen unter dem Foto, wie über den Karten der Beiträge (Muster aus mosaikCss() in scripts/seite.mjs) */
.thema-bild::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background-color: var(--gold); background-size: 96px auto; }
.thema-text { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.thema-wort { margin: 0; font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.thema-titel { margin: .35rem 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.1; }
.thema-kurz { margin: .7rem 0 0; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.thema-link .karte-weiter { margin-top: auto; padding-top: 1.1rem; }
.thema-link:hover .karte-weiter .pfeil { transform: translateX(5px); }
/* Bliebe in der letzten Reihe eine Karte allein, steht die erste quer über die ganze Breite. Ist eine Karte so breit,
   steht das Foto links und der Text daneben (Container-Abfrage auf die Breite der Karte). */
.thema { container-type: inline-size; }
@supports (container-type: inline-size) {
  @media (min-width: 700px) and (max-width: 1099px) { .themen-karten:has(> :nth-child(2n + 1):last-child) > :first-child { grid-column: 1 / -1; } }
  @media (min-width: 1100px) { .themen-karten:has(> :nth-child(3n + 1):last-child) > :first-child { grid-column: 1 / -1; } }
}
@container (min-width: 44rem) {
  .thema-link { flex-direction: row; }
  .thema-bild { flex: 0 0 56%; aspect-ratio: auto; min-height: 20rem; }
  .thema-bild picture { position: absolute; inset: 0; }
  .thema-bild::after { top: 0; left: auto; width: 6px; height: auto; }
  .thema-text { justify-content: center; padding: clamp(1.75rem, 4cqi, 2.75rem); }
  .thema-titel { font-size: clamp(2rem, 1.4rem + 2cqi, 2.6rem); }
  .thema-kurz { max-width: 30rem; font-size: 1.05rem; }
  .thema-link .karte-weiter { margin-top: 0; padding-top: 1.4rem; }
}
/* Unter den Rezensionen: alle Einwände nach Thema */
.beitraege-weiter { max-width: 72rem; margin: clamp(2rem, 5vw, 3rem) auto 0; text-align: center; }

/* ------------------------------------------------------------ Die Reihe: Anriss, ausführlich auf /papstliste/
   Zwei Bänder aus Medaillons (die ersten und die letzten Päpste) laufen beim Scrollen gegeneinander (--p aus szenen.js);
   jedes Band verschiebt sich um genau so viel, wie es breiter ist als der Bildschirm. */
.reihe-anriss {
  position: relative; overflow: hidden; color: var(--auf-nacht); text-align: center; --fokus: var(--gold-hell); --fokus-gold: var(--gold-hell);
  background: radial-gradient(ellipse 80% 55% at 50% 55%, rgba(46, 66, 140, .5), transparent 70%), var(--night);
  padding: clamp(4rem, 9vw, 7rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(4rem, 9vw, 6.5rem) max(1.25rem, env(safe-area-inset-left, 0px));
  scroll-margin-top: 3rem;
}
.reihe-anriss .abschnitt-kopf { margin-bottom: clamp(2rem, 5vw, 3rem); }
.reihe-anriss .eyebrow { color: var(--gold-hell); }
.reihe-anriss .abschnitt-titel { color: #fff; }
.reihe-anriss .abschnitt-lead { color: var(--auf-nacht-2); }
.reihe-baender {
  display: grid; gap: clamp(.6rem, 2vw, 1rem); margin: 0 calc(-1 * max(1.25rem, env(safe-area-inset-left, 0px)));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.reihe-band { display: flex; gap: clamp(.6rem, 2vw, 1.1rem); width: max-content; will-change: transform; }
.reihe-band--a { transform: translateX(calc(var(--p, .5) * -1 * max(0px, 100% - 100vw))); }
.reihe-band--b { transform: translateX(calc((1 - var(--p, .5)) * -1 * max(0px, 100% - 100vw))); }
.reihe-band img {
  display: block; width: clamp(3.6rem, 2.6rem + 3vw, 5.4rem); height: auto; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); transition: transform .3s ease;
}
.reihe-baender:hover .reihe-band img:hover { transform: scale(1.12); }
.reihe-weiter { margin: clamp(2rem, 5vw, 3rem) 0 0; }

/* ------------------------------------------------------------ Weniger Bewegung: ruhige, vollständig lesbare Fassung */
@media (prefers-reduced-motion: reduce) {
  .held { height: auto; }
  .held-buehne { position: relative; }
  .held-bild, .held-inhalt { transform: none !important; }
  .reihe-band img { transition: none; }
  .held-inhalt { opacity: 1 !important; }
  .held-glanz { opacity: 0; }
  .held-licht span { animation: none; opacity: .6; }
  .fries-spur { width: auto; transform: none !important; white-space: normal; justify-content: center; padding: 0 1rem; }
  .fries-satz { display: block; white-space: normal; text-align: center; padding: .2rem 0; font-size: clamp(1.5rem, 4vw, 3.2rem); line-height: 1.25; }
  .fries-satz .kreuz { display: inline-block; vertical-align: -.05em; margin-right: .35em; }
  .fries-satz ~ .fries-satz { display: none; }
  .fries-band::after { animation: none; }
}
@media (min-width: 660px) { .held-nachweis { right: auto; left: max(.75rem, env(safe-area-inset-left, 0px)); } }
