/* Seite /petersdom/: Über dem Grab des Apostels. Kopf der Seite mit Sprungzeile und Zeitachse über dem Foto mit den
   Lichtbahnen (bleibt beim Scrollen stehen), danach 1 Clem 5,3–4 als Leitwort auf hellem Grund und die Kuppel in Zahlen
   (src/zahlen.css). Nach den Zeichnungen (src/hinab.css): „Was gesichert ist“ und der Schluss mit dem Blick in die Kuppel
   und dem Band zum virtuellen Rundgang. Bewegung: src/szenen.js setzt --p, src/zaehlen.js lässt die Zahlen hochzählen. */
.ort-nachweis a { color: inherit; text-decoration-color: currentColor; text-underline-offset: .15em; }

/* ------------------------------------------------------------ Der Ort: über dem Grab des Apostels */
.ort { position: relative; background: var(--night); color: var(--auf-nacht); --fokus: var(--gold-hell); --fokus-gold: var(--gold-hell); }
.ort-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ort-buehne picture, .ort-foto { display: block; width: 100%; height: 100%; }
.ort-foto { object-fit: cover; transform: scale(calc(1.16 - var(--p, 0) * .16)); will-change: transform; }
.ort-buehne::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 34, .5) 0%, rgba(8, 12, 34, .35) 20%, rgba(8, 12, 34, .3) 55%, rgba(8, 12, 34, .88) 100%);
}
.ort-inhalt { position: relative; margin-top: -100vh; margin-top: -100svh; }
/* Der Kopf steht wie auf /name-fels-schluessel/ und /papstliste/ auf dem Foto (.foto-kopf in src/artikel.css); das Foto
   ist hier die Bühne dahinter, die beim Scrollen stehen bleibt. Hinter Titel und Vorspann dunkelt ein Verlauf die Kuppel
   ab und läuft unter dem Vorspann wieder aus. */
.ort-kopf {
  background: linear-gradient(180deg, transparent calc(var(--oben) * .45), rgba(8, 12, 34, .72) calc(var(--oben) + 2rem), rgba(8, 12, 34, .72) calc(100% - 7rem), transparent);
}
.ort-kopf .artikel-kopf { padding-bottom: clamp(5rem, 10vw, 7rem); }
/* Sprungzeile unter dem Vorspann: die Teile der Seite als Kapseln, auf dem Handy in zwei Reihen */
.ort-sprung { margin: 1.5rem 0 0; }
.ort-sprung ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.ort-sprung a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid rgba(236, 210, 142, .4); background: rgba(8, 12, 34, .55); color: var(--auf-nacht); text-decoration: none; text-shadow: none;
  font-family: var(--font-ui); font-size: .875rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ort-sprung a:hover { border-color: var(--gold-hell); color: var(--gold-hell); }
#ort, #gesichert { scroll-margin-top: 4.5rem; }
#hinab, #schichten { scroll-margin-top: 3.4rem; }
.ort-geschichte { padding: 0 max(1.25rem, env(safe-area-inset-right, 0px)) clamp(4rem, 8vw, 6rem) max(1.25rem, env(safe-area-inset-left, 0px)); }
.ort .abschnitt-kopf { text-shadow: 0 2px 24px rgba(0, 0, 0, .65); }
.ort .eyebrow { color: var(--gold-hell); }
.ort .abschnitt-lead { color: var(--auf-nacht); }
/* Verweise auf dunklem Grund: Gold statt der Farbe der Art */
.ort .ref { --c: var(--gold-hell); --c-line: rgba(236, 210, 142, .5); --c-tint: rgba(236, 210, 142, .16); }
.achse {
  --p: 0;
  list-style: none; position: relative; max-width: 46rem; margin: clamp(1rem, 10vh, 6rem) auto 0;
  padding: 2.2rem 1.4rem .6rem 1.2rem; border-radius: 22px;
  background: rgba(8, 12, 34, .72); border: 1px solid rgba(236, 210, 142, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.achse::before, .achse::after { content: ""; position: absolute; left: 2.15rem; top: 2.7rem; width: 2px; }
.achse::before { bottom: 3rem; background: rgba(236, 210, 142, .2); }
/* Die goldene Linie wächst mit dem Lesen nach unten */
.achse::after {
  height: calc((100% - 5.7rem) * var(--p)); background: linear-gradient(var(--gold-hell), var(--gold));
  box-shadow: 0 0 14px rgba(236, 210, 142, .7);
}
.achse-punkt { position: relative; padding: 0 0 2.3rem 3.3rem; }
.achse-punkt::before {
  content: ""; position: absolute; left: calc(.95rem - 8px); top: .5rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(8, 12, 34, .9);
  transition: background-color .6s ease, box-shadow .6s ease;
}
.achse-punkt.ist-sichtbar::before { background: var(--gold-hell); box-shadow: 0 0 0 4px rgba(8, 12, 34, .9), 0 0 20px rgba(236, 210, 142, .85); }
.achse-jahr { margin: 0; font-family: var(--font-kapitalis); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; color: var(--gold-hell); }
.achse-titel { margin: .15rem 0 .45rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.15; color: #fff; }
.achse-text {
  margin: 0; max-width: 36rem; color: var(--auf-nacht-2); line-height: 1.62; hyphens: auto; -webkit-hyphens: auto;
  hyphenate-limit-chars: 9 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; text-wrap: pretty;
}
/* Der lange Verweis auf Eusebius bricht um wie Text, sonst steht die Klammer danach allein in der Zeile */
.achse-text .ref { display: inline; white-space: normal; }
/* Handy: weniger Einzug, damit die Zeilen länger werden und seltener getrennt wird */
@media (max-width: 559px) {
  .ort-geschichte { padding-left: max(.75rem, env(safe-area-inset-left, 0px)); padding-right: max(.75rem, env(safe-area-inset-right, 0px)); }
  .achse { padding: 1.9rem 1.1rem .4rem .7rem; border-radius: 18px; }
  .achse::before, .achse::after { left: 1.45rem; top: 2.4rem; }
  .achse-punkt { padding-left: 2.2rem; }
  .achse-punkt::before { left: calc(.75rem - 8px); }
}
.ort-nachweis { max-width: 46rem; margin: 1.4rem auto 0; font-family: var(--font-ui); font-size: .72rem; line-height: 1.45; color: rgba(242, 236, 221, .66); text-align: center; }

/* ------------------------------------------------------------ Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  .ort-foto { transform: none !important; }
  .achse::after { height: calc(100% - 5.7rem); }
}

/* ------------------------------------------------------------ Leitwort zwischen Zeitachse und Zahlen
   1 Clem 5,3–4 auf hellem Grund, damit nicht drei nachtblaue Abschnitte aufeinander folgen; so groß wie
   .leitwort--schluss (src/site.css) */
.leitwort-band {
  background: var(--paper);
  padding: clamp(3.5rem, 9vw, 5.5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(3.5rem, 9vw, 5.5rem) max(1.25rem, env(safe-area-inset-left, 0px));
}
.leitwort-band .leitwort { max-width: 40rem; }
.leitwort-band .leitwort p { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.35; }

/* ------------------------------------------------------------ Was gesichert ist: Grabung, Quellen, offene Fragen
   Drei Karten auf Papier, jede mit einem Wort in Gold darüber; breit nebeneinander */
.gesichert {
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: clamp(3.5rem, 8vw, 6rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(3.5rem, 8vw, 6rem) max(1.25rem, env(safe-area-inset-left, 0px));
}
/* Oben zwei Fotos nebeneinander (zum Vergrößern): der Blick aus den Grotten und die Nische der Pallien; breit stehen
   sie links neben Titel und Vorspann */
.gesichert-oben { max-width: 72rem; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.gesichert-bilder { max-width: 36rem; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.gesichert-bild { margin: 0; min-width: 0; }
.gesichert-rahmen { overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); }
.gesichert-rahmen picture, .gesichert-rahmen img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gesichert-bild figcaption { margin-top: .6rem; font-family: var(--font-ui); font-size: .8rem; line-height: 1.45; color: var(--ink-2); hyphens: auto; -webkit-hyphens: auto; }
.gesichert-bild figcaption a { text-decoration-color: var(--gold-line); }
.gesichert-bild .nachweis { display: block; margin-top: .25rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .gesichert-oben { display: grid; grid-template-columns: 36rem minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
  .gesichert-oben .abschnitt-kopf { order: 2; margin: 0; text-align: left; }
  .gesichert-oben .abschnitt-lead { margin-left: 0; }
  .gesichert-bilder { gap: 1.25rem; }
}
.gesichert-liste { list-style: none; margin: 0 auto; padding: 0; max-width: 72rem; display: grid; gap: 1rem; }
@media (min-width: 900px) { .gesichert-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.gesichert-punkt {
  background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 4px 4px 16px 16px;
  padding: 1.25rem 1.3rem 1.4rem;
}
.js .gesichert-punkt:nth-child(2) { transition-delay: .1s; }
.js .gesichert-punkt:nth-child(3) { transition-delay: .2s; }
.gesichert-wort { margin: 0 0 .35rem; font-family: var(--font-ui); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.gesichert-titel { margin: 0 0 .55rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.25rem + .6vw, 1.7rem); line-height: 1.15; }
.gesichert-text {
  margin: 0; line-height: 1.62; color: var(--ink-2); hyphens: auto; -webkit-hyphens: auto;
  hyphenate-limit-chars: 9 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; text-wrap: pretty;
}
.gesichert-text a:not(.ref) { text-decoration-color: var(--gold-line); }
/* Verweise im Satz: als Text, damit das Satzzeichen danach nicht allein in die nächste Zeile rutscht */
.gesichert-text .ref, .schluss-text .ref { display: inline; }

/* ------------------------------------------------------------ Schluss: der Blick von unten in die Kuppel, darunter
   „Sehr zu empfehlen“ (virtueller Rundgang und offizielle Seite; breit Text links, Knöpfe rechts) */
.schluss {
  background: var(--night); color: var(--auf-nacht); --fokus: var(--gold-hell); --fokus-gold: var(--gold-hell);
  padding: clamp(3.5rem, 8vw, 6rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(3rem, 7vw, 4.5rem) max(1.25rem, env(safe-area-inset-left, 0px));
}
.schluss-bild { max-width: 44rem; margin: 0 auto; }
.schluss-rahmen { overflow: hidden; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.schluss-rahmen picture, .schluss-rahmen img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 760px) { .schluss-rahmen picture, .schluss-rahmen img { aspect-ratio: 3 / 2; } }
.schluss-bild figcaption { margin-top: .6rem; text-align: center; color: var(--auf-nacht-3); }
.schluss-text { max-width: 38rem; margin: clamp(2rem, 5vw, 3rem) auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.schluss .eyebrow { color: var(--gold-hell); }
.schluss .abschnitt-titel { color: #fff; }
.schluss-text p:last-child { margin: 1.1rem 0 0; font-size: 1.08em; line-height: 1.6; color: var(--auf-nacht-2); text-wrap: pretty; }
.schluss .ref { --c: var(--gold-hell); --c-line: rgba(236, 210, 142, .5); --c-tint: rgba(236, 210, 142, .16); }
.rundgang-karte {
  max-width: 60rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 22px; background: var(--night-2); border: 1px solid rgba(236, 210, 142, .28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.rundgang .eyebrow { margin: 0 0 .5rem; color: var(--gold-hell); }
.rundgang-titel { margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.1; color: var(--auf-nacht); }
.rundgang-text p:last-child { margin: 0; line-height: 1.6; color: var(--auf-nacht-2); text-wrap: pretty; }
.rundgang-knoepfe { display: flex; flex-direction: column; gap: .7rem; margin: 1.4rem 0 0; }
.rundgang-knoepfe a { justify-content: center; }
.rundgang-seite {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .6rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(236, 210, 142, .45); color: var(--auf-nacht); text-decoration: none;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600;
}
.rundgang-seite:hover { border-color: var(--gold-hell); color: var(--gold-hell); }
.rundgang-seite:focus-visible { outline-color: var(--gold-hell); }
.rundgang-knoepfe a:hover .pfeil { transform: translate(2px, -2px); }
.rundgang-sprache { margin: .1rem 0 0; font-family: var(--font-ui); font-size: .8rem; color: var(--auf-nacht-3); text-align: center; }
@media (min-width: 760px) {
  .rundgang-karte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; }
  .rundgang-knoepfe { margin: 0; }
}
