/* =========================================================================
   Hildegard von Bingen – Startseite
   Design: Farben, Typografie, Layout, Animationen
   ========================================================================= */

/* Eingebettete Schrift „Cardo“ (gleiche Darstellung auf allen Geräten) */
@import url("schrift-cardo.css");

:root {
  --gruen-dunkel: #24452f;
  --gruen: #2f5a3c;
  --wiese: #8fb26b;
  --wiese-hell: #b3cc8c;
  --wiese-dunkel: #6f9a54;
  --creme: #f7f1e3;
  --beige: #e8dcc0;
  --sand: #e6d2a3;
  --gold: #c9a24a;
  --gold-hell: #ecd08a;
  --braun: #6b4a2f;
  --braun-dunkel: #3b2a1c;
  --tinte: #2b2118;
  --rot: #9c3b2b;

  --st-belegt: #2f5a3c;
  --st-plausibel: #6b7f2f;
  --st-umstritten: #a8641f;
  --st-unsicher: #7a6a5a;

  --schrift-titel: "Cardo", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --schrift-text: "Cardo", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --schrift-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --schatten: 0 10px 30px -12px rgba(43, 33, 24, .35);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 .8em; }
a { color: var(--gruen); }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gruen-dunkel); color: var(--creme); padding: .6rem 1rem; border-radius: 6px;
  font-family: var(--schrift-ui); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--schrift-ui); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  padding: .95em 1.6em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf--gold {
  background: var(--gruen-dunkel); color: var(--creme);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .25), var(--schatten);
}
.knopf--gold:hover { background: var(--gruen); box-shadow: 0 0 0 6px rgba(201, 162, 74, .35), var(--schatten); }
.knopf--gruen { background: var(--gruen-dunkel); color: var(--creme); }
.knopf--gruen:hover { background: var(--gruen); }

/* ---------- Fortschrittsbalken ---------- */
.fortschritt { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 50; pointer-events: none; }
.fortschritt__balken {
  height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-hell));
}

/* =========================================================================
   A. EINSTIEG – eine Seite wie aus einer Handschrift
   Eine zusammenhängende Illustration (Querformat bzw. eigenes Hochformat),
   goldener Rahmen, Text auf Pergament, Weg führt unten aus dem Bild.
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: max(100svh, 46vw); /* sehr breite Bildschirme: Kopf nicht abschneiden */
  background: #efe0bb;
  display: flex; justify-content: flex-end; align-items: flex-start;
  --weg-luecke: 96px;
}
.hero__bild { position: absolute; inset: 0; }
.hero__szene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__szene--hoch { display: none; }

/* Rahmen: doppelte Goldlinie, Eckornamente, unten offen für den Weg */
.hero__rahmen { position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(168, 128, 48, .75); border-bottom: 0; }
.hero__rahmen::before { content: ""; position: absolute; inset: 5px 5px 0; border: 1px solid rgba(168, 128, 48, .38); border-bottom: 0; }
.hero__rahmen::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(168,128,48,.75) 0 calc(50% - var(--weg-luecke) / 2), transparent 0 calc(50% + var(--weg-luecke) / 2), rgba(168,128,48,.75) 0);
}
.hero__ecke { position: absolute; width: clamp(46px, 5vw, 72px); height: auto; aspect-ratio: 1; }
.hero__ecke--ol { left: -1px; top: -1px; }
.hero__ecke--or { right: -1px; top: -1px; transform: scaleX(-1); }
.hero__ecke--ul { left: -1px; bottom: -1px; transform: scaleY(-1); }
.hero__ecke--ur { right: -1px; bottom: -1px; transform: scale(-1, -1); }

/* Textblock auf Pergament */
.hero__inhalt {
  position: relative; z-index: 3;
  width: min(29rem, 40vw);
  margin: clamp(3.5rem, 9vh, 7rem) clamp(2rem, 6.5vw, 7.5rem) 0 0;
  padding: 1.9rem 2.1rem 2.1rem;
  background: rgba(250, 245, 232, .88);
  border: 1px solid rgba(168, 128, 48, .65);
  border-radius: 4px;
  box-shadow: inset 0 0 0 5px rgba(250, 245, 232, .88), inset 0 0 0 6px rgba(168, 128, 48, .35), 0 14px 34px -18px rgba(59, 42, 28, .45);
}
.hero__inhalt > * { animation: einblenden 1s ease both; }
.hero__inhalt > :nth-child(2) { animation-delay: .12s; }
.hero__inhalt > :nth-child(3) { animation-delay: .3s; }
.hero__inhalt > :nth-child(4) { animation-delay: .45s; }
.hero__inhalt > :nth-child(5) { animation-delay: .6s; }
.hero__daten {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem;
  font-family: var(--schrift-ui); font-size: .78rem; font-weight: 600; letter-spacing: .28em; color: #8a6a2e;
}
.hero__stern { color: var(--gold); letter-spacing: 0; }
.hero__titel {
  font-size: clamp(2rem, 3.3vw, 3.05rem); line-height: 1.22; color: var(--gruen-dunkel);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem;
}
/* goldene Initiale wie in einer Handschrift (bleibt Teil des Worts – für Screenreader unverändert).
   Maße aus den Cardo-Schriftmaßen berechnet (Versalhöhe .688 em, Ober-/Unterlänge .990/.364 em):
   - das H steht auf derselben Grundlinie wie „ILDEGARD“,
   - es sitzt genau mittig im Kasten (oben und unten je .2 em Luft; links/rechts
     gleich viel, die Polsterung gleicht die ungleichen Seitenränder der Glyphe aus),
   - der Kasten ragt nur so weit nach unten, dass zur zweiten Zeile deutlich Abstand bleibt. */
.hero__initiale {
  display: inline-block; vertical-align: baseline;
  font-size: 1.12em; line-height: 1.026; padding: .062em .107em 0 .173em; margin-right: .12em;
  color: #8e3f2a; background: linear-gradient(160deg, #f3dc98, #d9b45a 60%, #c9a24a);
  border: 2px solid #8e3f2a; box-shadow: inset 0 0 0 2px #f6e7bb; border-radius: 2px;
}
.hero__motto {
  clear: both; font-style: italic; font-size: clamp(1.12rem, 1.45vw, 1.35rem); line-height: 1.35; color: #6b4a2f;
  padding: .55rem 0 .65rem; margin: .4rem 0 .9rem;
  border-top: 1px solid rgba(168, 128, 48, .5); border-bottom: 1px solid rgba(168, 128, 48, .5);
}
.hero__text { font-size: 1.02rem; line-height: 1.55; margin-bottom: 1.4rem; }

/* Einstiegsknopf: Gold, dunkle Schrift */
.knopf--hero {
  background: linear-gradient(180deg, #f2dc9c, #dcbc68); color: var(--tinte);
  border: 1px solid #a9822f; padding: .9em 1.5em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 18px -10px rgba(59, 42, 28, .6);
}
.knopf--hero:hover { background: linear-gradient(180deg, #f7e6b4, #e3c77c); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 4px rgba(201, 162, 74, .3), 0 10px 20px -10px rgba(59, 42, 28, .6); }
.knopf--hero:active { transform: translateY(0); }
.knopf__pfeil { display: inline-block; transition: transform .3s ease; }
.knopf--hero:hover .knopf__pfeil { transform: translateY(3px); }

.hero__hinweis {
  position: absolute; left: 30px; bottom: 26px; z-index: 3; margin: 0; max-width: 21rem;
  font-family: var(--schrift-ui); font-size: .7rem; line-height: 1.35; color: #4a3a28;
  background: rgba(247, 241, 227, .78); padding: .25rem .55rem; border-radius: 4px;
}

/* Lebendigkeit: sehr langsam, nur Transform/Opacity */
.e-wolke { animation: e-zug 90s ease-in-out infinite alternate; }
.e-wolke--2 { animation-duration: 120s; animation-delay: -40s; }
.e-wolke--3 { animation-duration: 100s; animation-delay: -70s; }
.e-licht g { animation: e-licht 9s ease-in-out infinite alternate; }
.e-wiegen { transform-box: fill-box; transform-origin: 50% 100%; animation: e-wiegen 7s ease-in-out infinite alternate; }
.e-wiegen--2 { animation-duration: 8.5s; animation-delay: -3s; }
.e-glitzern { animation: e-glitzern 4.5s ease-in-out infinite alternate; }
.e-voegel { animation: e-voegel 45s ease-in-out infinite alternate; }
.hero.ist-ruhend * { animation-play-state: paused !important; }
@keyframes e-zug { from { transform: translateX(-30px); } to { transform: translateX(46px); } }
@keyframes e-licht { from { opacity: .45; } to { opacity: 1; } }
@keyframes e-wiegen { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
@keyframes e-glitzern { from { opacity: .25; } to { opacity: .95; } }
@keyframes e-voegel { from { transform: translate(0, 0); } to { transform: translate(-70px, -16px); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hochformat: Text oben, eigene Bildkomposition darunter */
/* Kleinere Fenster, Tablets (hoch und quer) und Handys: Text und Bild untereinander,
   damit der Textkasten nie auf dem Bild bzw. auf Hildegard liegt. Der Bildbereich ist
   so hoch, dass Hildegard samt Heiligenschein vollständig sichtbar bleibt
   (Querbild: mind. 47 % der Breite, Hochbild: mind. 96 % der Breite). */
@media (max-width: 1199px), (max-height: 520px) {
  .hero { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; min-height: 100svh; }
  .hero__bild { order: 2; position: relative; inset: auto; flex: 1 0 auto; min-height: max(400px, 50svh, 47vw); }
  .hero__inhalt {
    order: 1; width: auto; max-width: 36rem; align-self: center; text-align: center;
    margin: clamp(2.2rem, 6vh, 4rem) 1.6rem 0; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .hero__daten { justify-content: center; margin-bottom: .5rem; }
  .hero__titel { font-size: clamp(1.75rem, 8.4vw, 2.6rem); letter-spacing: .05em; }
  .hero__motto { font-size: clamp(1.05rem, 4.6vw, 1.3rem); padding: .45rem 0 .5rem; margin: .3rem auto .7rem; max-width: 22rem; }
  .hero__text { font-size: .98rem; margin-bottom: 1.1rem; }
  .hero__hinweis { left: auto; right: 22px; top: 8px; bottom: auto; max-width: 13rem; text-align: right; font-size: .66rem; }
}
/* Smartphone: eigene Hochformat-Komposition (Tablets hoch nutzen das Querbild unter dem Text) */
@media (max-width: 720px) {
  .hero__bild { min-height: max(400px, 50svh, 96vw); }
  .hero__szene--quer { display: none; }
  .hero__szene--hoch { display: block; }
  .hero__rahmen { inset: 9px; }
  .hero__ecke { width: 40px; }
}
@media (max-width: 360px) {
  .hero__text { font-size: .93rem; }
}

/* =========================================================================
   EINFÜHRUNG + LEGENDE – auf der Wiese, der Weg läuft weiter
   ========================================================================= */
.einfuehrung { background: #c3d79c; color: var(--tinte); position: relative; z-index: 1; }
/* Stoßkante zum Lebensweg: 1 px Rasen über die Kante hinaus, damit bei gebrochenen
   Bildschirm-Maßstäben (Zoom, Tablets) keine helle Linie zwischen den Abschnitten bleibt.
   Der Weg (js/einstieg.js) reicht weiter hinunter und liegt darüber. */
.einfuehrung::before { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 2px; background: #c3d79c; pointer-events: none; }
/* dasselbe an der Oberkante zum Einstiegsbild (liegt unter dem Weg) */
.einfuehrung::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #c3d79c; pointer-events: none; z-index: -1; }
.einfuehrung__weg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.einfuehrung__inner {
  position: relative; z-index: 1;
  max-width: 72rem; margin: 0 auto; padding: 3.2rem 1.5rem 3.6rem;
  display: grid; grid-template-columns: 1fr 150px 1fr; align-items: start;
}
.einfuehrung__text { grid-column: 1; }
.legende { grid-column: 3; }
.einfuehrung__text, .legende {
  background: rgba(250, 245, 232, .94); border: 1px solid rgba(168, 128, 48, .55); border-radius: 4px;
  box-shadow: inset 0 0 0 4px rgba(250, 245, 232, .94), inset 0 0 0 5px rgba(168, 128, 48, .28), 0 10px 26px -16px rgba(43, 33, 24, .45);
  padding: 1.4rem 1.6rem 1.3rem;
}
.einfuehrung h2 { font-size: 1.7rem; color: var(--gruen-dunkel); }
.einfuehrung strong { color: var(--gruen-dunkel); }
.legende h3 { font-size: 1.25rem; color: var(--gruen-dunkel); }
.legende__intro { font-size: .95rem; }
.legende__liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.legende__liste li { display: flex; align-items: baseline; gap: .7rem; }

/* Status-Marken (Legende und Stationen) */
.marke {
  display: inline-flex; align-items: center; gap: .35em; flex: none;
  font-family: var(--schrift-ui); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22em .65em .22em .5em; border-radius: 999px; color: #fff; line-height: 1.3;
}
.marke::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.55) inset; }
.marke--belegt { background: var(--st-belegt); }
.marke--plausibel { background: var(--st-plausibel); }
.marke--umstritten { background: var(--st-umstritten); }
.marke--unsicher { background: var(--st-unsicher); }
.marke--belegt::before { content: "✓"; background: none; box-shadow: none; width: auto; height: auto; font-size: 1em; }
.marke--umstritten::before { content: "⇄"; background: none; box-shadow: none; width: auto; height: auto; font-size: 1em; }
.marke--plausibel::before { content: "~"; background: none; box-shadow: none; width: auto; height: auto; font-size: 1.1em; }
.marke--unsicher::before { content: "?"; background: none; box-shadow: none; width: auto; height: auto; font-size: 1em; }

/* =========================================================================
   B–D. DER LEBENSWEG
   ========================================================================= */
.lebensweg {
  position: relative; overflow: hidden;
  background: #a9c584;
  min-height: 100vh; /* wird per JS auf die volle Weglänge gesetzt */
}
.landschaft { position: absolute; left: 0; top: 0; display: block; }

/* Hildegard */
.hildegard {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: var(--h-breite, 64px); height: calc(var(--h-breite, 64px) * 92 / 60);
  will-change: transform; pointer-events: none;
  filter: drop-shadow(0 2px 0 rgba(247, 241, 227, .9)) drop-shadow(0 4px 8px rgba(43, 33, 24, .3));
}
.hildegard__richtung { width: 100%; height: 100%; transition: transform .28s ease; transform-origin: 50% 90%; }
.hildegard__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hildegard .h-koerper { transform-box: fill-box; transform-origin: 50% 100%; }
.hildegard.laeuft .h-koerper { animation: wippen .44s ease-in-out infinite alternate; }
.hildegard.laeuft .h-fuss--vorne { animation: schritt .44s ease-in-out infinite alternate; }
.hildegard.laeuft .h-fuss--hinten { animation: schritt .44s ease-in-out infinite alternate-reverse; }
@keyframes wippen { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-1.8px) rotate(1.5deg); } }
@keyframes schritt { from { transform: translateX(-3.5px); } to { transform: translateX(3.5px); } }

/* Stationen */
.stationen { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.station {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  width: var(--st-breite, 380px);
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.station.sichtbar { opacity: 1; transform: none; }

.station__bild {
  position: relative; display: block; width: 100%; aspect-ratio: 248 / 196; overflow: visible;
  transition: transform .35s cubic-bezier(.2,.8,.3,1.2), filter .35s ease;
  transform-origin: 50% 85%; z-index: 2;
}
.station__bild svg { width: 100%; height: 100%; overflow: visible; display: block; }
.station__nr {
  position: absolute; bottom: -4px; z-index: 2;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--schrift-titel); font-weight: 700; font-size: 1.1rem;
  color: var(--creme); background: var(--gruen-dunkel);
  border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(247,241,227,.8);
}
/* Nummernschild auf der dem Weg zugewandten Seite (Karte links → Weg rechts), innerhalb der Karte */
.station--links .station__nr { right: 1%; }
.station--rechts .station__nr { left: 1%; }

/* Pergament-Schild unter der Illustration */
.station__schild {
  position: relative; margin: -4px 6% 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(#f8f2e2, #f1e6cb);
  border: 1px solid #cdb88a; border-radius: 4px;
  padding: 1.05rem 1.15rem .9rem;
  box-shadow: var(--schatten);
  transition: border-color .3s ease, box-shadow .3s ease;
}
/* Rollen oben und unten – wirkt wie ein Pergament */
.station__schild::before, .station__schild::after {
  content: ""; position: absolute; left: -10px; right: -10px; height: 11px; border-radius: 6px;
  background: linear-gradient(#e7d6ae, #c9ae76 60%, #b39663);
  border: 1px solid #9c8152;
}
.station__schild::before { top: -7px; }
.station__schild::after { bottom: -7px; }

.station__meta {
  display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline;
  font-family: var(--schrift-ui); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--braun); margin-bottom: .3rem;
}
.station__zeit { font-weight: 700; color: var(--rot); }
.station__titel { font-size: 1.4rem; margin: 0 0 .25rem; color: var(--gruen-dunkel); }
.station__link { color: inherit; text-decoration: none; }
/* Der Titel-Link deckt das ganze Pergament-Schild ab (::after relativ zu .station__schild).
   Das Bild darüber ist ein eigener Link zum selben Ziel (tabindex="-1", für Maus und Touch) –
   so ist die ganze Station anklickbar, aber nur ein Link pro Station in der Tab-Reihenfolge. */
.station__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 8px; }
.station__link:focus-visible { outline: none; }
.station:focus-within .station__schild { outline: 3px solid var(--gold); outline-offset: 4px; }
.station__teaser { font-style: italic; font-size: 1.05rem; color: var(--braun-dunkel); margin-bottom: .45rem; }
.station__info { font-size: .93rem; margin-bottom: .55rem; }
.station__frage {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: .93rem; font-weight: 600; color: var(--gruen);
  border-top: 1px dashed #cdb88a; padding-top: .5rem; margin-bottom: .55rem;
}
.station__frage::before {
  content: "?"; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem;
  background: var(--gold); color: var(--creme); font-family: var(--schrift-ui);
}
.station__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.station__hinweis { font-family: var(--schrift-ui); font-size: .74rem; color: #6d5a45; }
.station__mehr {
  margin-left: auto; font-family: var(--schrift-ui); font-size: .82rem; font-weight: 700;
  color: var(--gruen-dunkel); white-space: nowrap;
  display: inline-flex; align-items: center; gap: .3em;
}
.station__mehr span { transition: transform .25s ease; display: inline-block; }

/* Hover-Effekt: Gebäude hebt sich, goldenes Leuchten */
@media (hover: hover) {
  .station:hover .station__bild {
    transform: translateY(-8px) scale(1.04);
    filter: drop-shadow(0 0 14px rgba(236, 208, 138, .95)) drop-shadow(0 10px 10px rgba(43,33,24,.18));
  }
  .station:hover .station__schild { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.35), var(--schatten); }
  .station:hover .station__mehr span { transform: translateX(4px); }
}
.station.aktiv .station__nr { background: var(--gold); color: var(--tinte); border-color: var(--gruen-dunkel); }

/* Landschafts-Beschriftungen */
.landschaft .ort-label {
  font-family: var(--schrift-titel); font-style: italic; font-weight: 600; fill: #2f4a28;
  letter-spacing: .04em; paint-order: stroke; stroke: rgba(236, 242, 214, .9); stroke-width: 5px; stroke-linejoin: round;
}
.landschaft .wasser-label {
  font-family: var(--schrift-titel); font-style: italic; font-weight: 600; fill: #f7f1e3; letter-spacing: .3em;
  paint-order: stroke; stroke: #6f99a2; stroke-width: 6px; stroke-linejoin: round;
}

/* Scroll-Hinweis am Wegbeginn */
.weg-hinweis {
  position: absolute; z-index: 7; transform: translateX(-50%);
  font-family: var(--schrift-ui); font-size: .85rem; font-weight: 600; color: var(--creme);
  background: rgba(36, 69, 47, .9); padding: .5rem .9rem; border-radius: 999px;
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  transition: opacity .5s ease; box-shadow: var(--schatten);
}
.weg-hinweis.weg { opacity: 0; pointer-events: none; }
.weg-hinweis__maus {
  width: 14px; height: 20px; border: 2px solid var(--gold-hell); border-radius: 8px; position: relative;
}
.weg-hinweis__maus::after {
  content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 5px; margin-left: -1px;
  background: var(--gold-hell); border-radius: 2px; animation: rad 1.4s ease-in-out infinite;
}
@keyframes rad { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }

.noscript { position: relative; z-index: 8; max-width: 40rem; margin: 2rem auto; background: var(--creme); padding: 1.5rem; border-radius: 10px; }

/* =========================================================================
   AUSKLANG + FUSSZEILE
   ========================================================================= */
.ausklang { background: linear-gradient(#5f8c97, #4e7a85 40%, var(--gruen-dunkel)); color: var(--creme); }
.ausklang__inner { max-width: 44rem; margin: 0 auto; padding: 4rem 1.5rem 4.5rem; text-align: center; }
.ausklang__kicker { font-family: var(--schrift-ui); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--gold-hell); }
.ausklang h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ausklang p { font-size: 1.05rem; }
.ausklang .knopf { margin-top: 1rem; border-color: var(--gold); }

/* ---------- Abschluss: Überleitung zu den Projektinformationen ---------- */
#abschluss.abschluss { background: var(--gruen-dunkel); color: var(--creme); }   /* nur Startseite */
.abschluss__inner { max-width: 44rem; margin: 0 auto; padding: .5rem 1.5rem 7rem; text-align: center; }   /* unten Platz für die schwebende Steuerung */
.abschluss__zier {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: var(--gold); font-size: 1rem; margin-bottom: 1.6rem;
}
.abschluss__zier span { flex: 0 1 9rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.abschluss__zier span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.abschluss__titel { font-size: clamp(1.5rem, 3.2vw, 2rem); font-style: italic; font-weight: 600; color: var(--gold-hell); margin-bottom: .4rem; }
.abschluss__text { font-size: 1.05rem; color: var(--beige); margin-bottom: .9rem; }
.abschluss__autor { font-family: var(--schrift-titel); font-style: italic; font-size: 1.3rem; color: var(--creme); margin-bottom: 1.9rem; }
.abschluss__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1rem; }
.abschluss .knopf--gruen { border-color: var(--gold); background: transparent; }
.abschluss .knopf--gruen:hover { background: var(--gruen); }
.abschluss__knopf { min-height: 48px; }
@media (max-width: 480px) { .abschluss__knopf { width: 100%; justify-content: center; } }

/* ---------- Anhang: Quellen & Projektinformationen ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.projekt { background: linear-gradient(var(--gruen-dunkel), #e9dcbc 7rem); padding: 2.2rem 1rem 6.5rem; scroll-margin-top: 0; }
.projekt[hidden] { display: none; }
.projekt__seite {
  position: relative; max-width: 58rem; margin: 0 auto; padding: 1.4rem clamp(1.1rem, 4vw, 3.2rem) 2.6rem;
  background: #fbf6e8; color: var(--tinte); border-radius: 4px;
  box-shadow: 0 0 0 1px #d9c595, 0 0 0 7px #fbf6e8, 0 0 0 8px #c9a24a, var(--schatten);
}
.projekt__leiste { display: flex; justify-content: flex-start; margin-bottom: .4rem; }
.projekt__zurueck {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .4rem .9rem .4rem .6rem;
  font-family: var(--schrift-ui); font-size: .92rem; font-weight: 600; color: var(--gruen-dunkel);
  background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
}
.projekt__zurueck:hover { background: #f1e6c8; border-color: #d9c595; }
.projekt__kopf { text-align: center; padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid #d9c595; }
.projekt__kicker { font-family: var(--schrift-ui); text-transform: uppercase; letter-spacing: .24em; font-size: .78rem; color: #8a6a2e; margin-bottom: .3rem; }
.projekt__kopf h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--gruen-dunkel); margin-bottom: 1rem; }
.projekt__kopf h2:focus { outline: none; }
.projekt__inhalt { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .5rem; font-family: var(--schrift-ui); font-size: .92rem; }
.projekt__inhalt a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px;
  color: var(--gruen-dunkel); text-decoration: none; border: 1px solid #d9c595; background: #fffaf0;
}
.projekt__inhalt a:hover { background: #f1e6c8; }
.projekt__teil { scroll-margin-top: 1rem; }
.projekt__teil + .projekt__teil { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid #e3d5b0; }
.projekt__teil h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--gruen-dunkel); margin-bottom: 1rem; }
.projekt__teil h3:focus { outline: none; }
.projekt__teil h3::before { content: "✦ "; color: var(--gold); font-size: .7em; vertical-align: .15em; }

/* Über dieses Projekt */
.projekt__ueber { max-width: 44rem; margin-left: auto; margin-right: auto; text-align: center; }
#ueber-titel { text-align: center; }
.projekt__text p { font-size: 1.04rem; line-height: 1.65; margin-bottom: .7rem; }
.projekt__name {
  font-family: var(--schrift-titel); font-size: 1.35rem !important; font-style: italic; color: var(--gruen-dunkel);
  text-align: center; margin: .2rem 0 .9rem !important;
}
.projekt__name:not(.projekt__name--werkzeug) { font-size: 1.75rem !important; font-weight: 700; }
.projekt__name--werkzeug { font-style: normal; font-size: 1.2rem !important; color: var(--braun); }
.projekt__name--werkzeug span { font-size: .85em; color: #7a6a5a; }

/* Quellenverzeichnis */
.projekt__hinweis, .projekt__hinweis p { font-family: var(--schrift-ui); font-size: .9rem; line-height: 1.55; color: #5a4632; }
.projekt__hinweis { margin-bottom: 1.2rem; }
.projekt__hinweis p + p { margin-top: .4rem; }
.qv { list-style: none; margin: 0; padding: 0; }
.qv li {
  position: relative; padding: .75rem 0 .75rem 1.3rem; border-bottom: 1px dotted #d9c595;
  font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere;
}
.qv li::before { content: ""; position: absolute; left: .2rem; top: 1.38rem; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.qv__autor { font-weight: 700; color: var(--gruen-dunkel); }
.qv cite { font-style: italic; }
.qv__link {
  display: inline-block; margin-left: .2rem; padding: 0 .1rem; font-family: var(--schrift-ui); font-size: .85rem;
  color: #6b4a2f; text-decoration: underline; text-decoration-color: #c9a24a; text-underline-offset: 3px;
}
.qv__link:hover { color: var(--gruen-dunkel); }
.qv__wo { display: block; margin-top: .3rem; font-family: var(--schrift-ui); font-size: .8rem; color: #7a6a5a; }
.qv__wo a {
  display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; margin: 0 .05rem;
  border-radius: 50%; background: #f1e6c8; border: 1px solid #d9c595; color: var(--gruen-dunkel);
  font-weight: 700; text-decoration: none; font-size: .78rem; position: relative;
}
.qv__wo a::after { content: ""; position: absolute; inset: -8px -3px; }   /* größere Trefferfläche, ohne die Zeile aufzublähen */
.qv__wo a:hover, .qv__wo a:focus-visible { background: var(--gruen-dunkel); color: var(--creme); }
.qv--klein li { font-size: .95rem; }
.projekt__fuss {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem;
  margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid #d9c595;
}
.knopf--hell { background: #fffaf0; color: var(--gruen-dunkel); border-color: #d9c595; }
.knopf--hell:hover { background: #f1e6c8; }
@media (max-width: 480px) { .projekt__fuss .knopf { width: 100%; justify-content: center; } }

.fusszeile {
  background: var(--braun-dunkel); color: var(--beige); font-family: var(--schrift-ui); font-size: .85rem;
  padding: 1.6rem 1.5rem 5.5rem; text-align: center;
}
.fusszeile p { max-width: 52rem; margin: 0 auto .4rem; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
/* Leiste rechts */
.leiste {
  position: fixed; right: 3px; top: 50%; transform: translateY(-50%); z-index: 40;
  height: min(74vh, 560px); width: 44px;   /* Punktmitte bleibt 25 px vom Rand; breitere Trefferfläche (N-12) */
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.leiste.an { opacity: 1; pointer-events: auto; }
.leiste__spur {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px;
  background: rgba(36, 69, 47, .25); border-radius: 3px; overflow: hidden;
}
.leiste__fuellung { width: 100%; height: 100%; background: var(--gold); transform-origin: 50% 0; transform: scaleY(0); }
.leiste__punkte { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.leiste__punkte li { position: absolute; left: 0; width: 100%; transform: translateY(-50%); }
/* Trefferfläche 44 × 44 px (bzw. so hoch, wie der Abstand zum Nachbarpunkt erlaubt – --abst setzt js/app.js),
   sichtbar bleibt nur der kleine Punkt (::before) – N-12 */
.leiste__punkt {
  display: grid; place-items: center; position: relative; margin: 0 auto;
  width: 44px; height: min(44px, calc(var(--abst, .09) * min(74vh, 560px)));
  border-radius: 50%; -webkit-tap-highlight-color: transparent;
}
.leiste__punkt::before {
  content: ""; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%;
  background: var(--creme); border: 2px solid var(--gruen-dunkel);
  transition: transform .2s ease, background-color .2s ease;
}
.leiste__punkt:focus-visible { outline: none; }
.leiste__punkt:hover::before, .leiste__punkt:focus-visible::before { transform: scale(1.35); }
.leiste__punkt:focus-visible::before { box-shadow: 0 0 0 3px var(--gold); }
.leiste__punkt.besucht::before { background: var(--gold); }
.leiste__punkt.aktiv::before { background: var(--gruen-dunkel); box-shadow: 0 0 0 3px var(--gold); }
.leiste__punkt .leiste__tip {
  position: absolute; right: calc(50% + 17px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-family: var(--schrift-ui); font-size: .78rem; font-weight: 600;
  background: var(--gruen-dunkel); color: var(--creme); padding: .3rem .6rem; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.leiste__punkt:hover .leiste__tip, .leiste__punkt:focus-visible .leiste__tip { opacity: 1; }

/* Schwebende Steuerung */
.steuerung {
  position: fixed; left: 16px; bottom: 16px; z-index: 45;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.steuerung.an { opacity: 1; transform: none; pointer-events: auto; }
.steuerung__menue {
  display: flex; align-items: center; gap: .65rem; cursor: pointer;
  font-family: var(--schrift-ui); text-align: left;
  background: rgba(247, 241, 227, .95); color: var(--tinte);
  border: 1px solid var(--gold); border-radius: 999px; padding: .45rem 1rem .45rem .5rem;
  box-shadow: var(--schatten); max-width: min(78vw, 22rem);
}
.steuerung__menue:hover { background: #fff; }
.steuerung__icon {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; background: var(--gruen-dunkel); position: relative;
}
.steuerung__icon::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: var(--creme); box-shadow: 0 -5px 0 var(--creme), 0 5px 0 var(--creme);
}
.steuerung__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.steuerung__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--braun); font-weight: 700; }
.steuerung__status { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nach-oben {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  background: var(--gruen-dunkel); color: var(--creme); border: 2px solid var(--gold);
  font-size: 1.25rem; box-shadow: var(--schatten);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background-color .2s;
}
.nach-oben.an { opacity: 1; transform: none; pointer-events: auto; }
.nach-oben:hover { background: var(--gruen); }

/* Panel mit allen Stationen */
.panel {
  position: fixed; left: 16px; bottom: 76px; z-index: 60;
  width: min(92vw, 24rem); max-height: min(75vh, 40rem); overflow: auto;
  background: var(--creme); border: 1px solid var(--gold); border-radius: 14px;
  box-shadow: 0 20px 50px -15px rgba(43,33,24,.5);
  padding: 1rem 1rem 1.1rem; font-family: var(--schrift-ui);
  animation: einblenden .25s ease both;
}
.panel[hidden] { display: none; }
.panel__kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.panel__kopf h2 { font-size: 1.2rem; margin: 0; color: var(--gruen-dunkel); }
.panel__zu { border: 0; background: none; font-size: 1.1rem; cursor: pointer; padding: .3rem .5rem; border-radius: 6px; color: var(--tinte); min-width: 40px; min-height: 40px; }
.panel__liste { list-style: none; margin: 0; padding: 0; }
.panel__liste a {
  display: grid; grid-template-columns: 2rem 1fr; gap: .1rem .6rem; align-items: center;
  padding: .5rem .5rem; border-radius: 8px; text-decoration: none; color: var(--tinte);
}
.panel__liste a:hover, .panel__liste a:focus-visible { background: var(--beige); }
.panel__liste .nr {
  grid-row: span 2; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gruen-dunkel); color: var(--creme); font-weight: 700; font-size: .85rem;
}
.panel__liste a.aktiv .nr { background: var(--gold); color: var(--tinte); }
.panel__liste .t { font-family: var(--schrift-titel); font-weight: 600; font-size: 1rem; }
.panel__liste .z { font-size: .75rem; color: var(--braun); }
.panel__start { display: block; margin-top: .6rem; padding: .5rem; font-weight: 600; text-decoration: none; color: var(--gruen-dunkel); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .leiste { display: none; }
  /* Einführung: Karten untereinander, der Weg schwenkt an den rechten Rand */
  .einfuehrung__inner { grid-template-columns: 1fr; gap: 1.4rem; padding: 130px 64px 130px 1rem; }
  .einfuehrung__text, .legende { grid-column: 1; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .steuerung { left: 10px; bottom: 10px; }
  .nach-oben { right: 10px; bottom: 10px; }
  .steuerung__menue { max-width: calc(100vw - 5.5rem); }
  .station__schild { margin: -4px 3% 0; padding: .9rem .9rem .8rem; }
  .station__titel { font-size: 1.2rem; }
  .station__teaser { font-size: .98rem; }
  .station__info, .station__frage { font-size: .88rem; }
  .station__nr { width: 2rem; height: 2rem; font-size: .95rem; }
}

/* Weniger Bewegung, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  .station { transition: none; opacity: 1; transform: none; }
  .hildegard.laeuft .h-koerper, .hildegard.laeuft .h-fuss--vorne, .hildegard.laeuft .h-fuss--hinten { animation: none; }
  .hero__inhalt > *, .panel { animation: none; }
  .e-wolke, .e-licht g, .e-wiegen, .e-glitzern, .e-voegel, .knopf__pfeil { animation: none !important; transition: none; }
  .station__bild { transition: none; }
}
