/* ==========================================================================
   philipp-plate.com - gemeinsamer Stil aller Seiten
   Formensprache des HvR-Zielbilds: dunkle Bühnen, helle Kapitel mit Aurora,
   Lichtschweife, flache Karten, leichte Überschriften.

   Formen:   Karten 20px, Kacheln und Felder 12px, Knöpfe voll rund.
   Ebenen:   Hintergrund 0 · Inhalt 1 · Kapitelpunkte 30 · Kopfleiste 40 · Sprunglink 70
   Farbe:    Petrol und Salbei tragen, Türkis (#00b4a0) ist der feine Akzent.
   ========================================================================== */

:root {
  --nacht: #101d20;
  --petrol-tief: #16262b;
  --petrol: #1f3d44;
  --petrol-hell: #2a515b;
  --petrol-weich: #3e6b75;

  --salbei: #8fafa6;
  --salbei-100: #deeae6;
  --salbei-200: #bfd6ce;
  --salbei-300: #9cbcb2;
  --salbei-600: #577a70;
  --salbei-hauch: #edf2f0;
  --licht: #dff2ec;

  --teal: #00b4a0;
  --teal-hell: #5fdcca;

  --papier: #f7f8f7;
  --weiss: #ffffff;
  --text: #2f3a3c;
  --text-leise: #455a63;
  --text-still: #748890;
  --linie: #d8dfe1;

  --radius: 20px;
  --radius-klein: 12px;
  --rund: 999px;
  --kopf: 76px;
  --breite: 1180px;
  --rand: clamp(20px, 4vw, 32px);

  --schrift-titel: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Grundlagen ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopf);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol); }
p { margin: 0; }
p + p { margin-top: 1em; }
strong { font-weight: 600; color: var(--text); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 600;
  color: var(--text);
}
h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }

::selection { background: rgba(143, 175, 166, .35); }

:focus-visible {
  outline: 2px solid var(--salbei);
  outline-offset: 3px;
  border-radius: 8px;
}

.innen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}
.innen > * { min-width: 0; }

.ikon { width: 1em; height: 1em; flex: none; fill: currentColor; }

.sprunglink {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 70;
  padding: 10px 18px;
  border-radius: var(--rund);
  background: var(--weiss);
  color: var(--petrol);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .3s var(--ease);
}
.sprunglink:focus { transform: none; }

/* ---------- Lichtschweife (wie im HvR-Zielbild) ---------- */

.schweif-lage   { animation: schweif-treiben 9s ease-in-out infinite alternate; }
.schweif-lage-2 { animation: schweif-treiben 13s ease-in-out infinite alternate-reverse; }
.schweif-lage-3 { animation: schweif-treiben 17s ease-in-out infinite alternate; }
.glimmer        { animation: glimmer-puls 3.8s ease-in-out infinite; }
@keyframes schweif-treiben {
  from { transform: translateX(-22px); opacity: .75; }
  to { transform: translateX(22px); opacity: 1; }
}
@keyframes glimmer-puls { 0%, 100% { opacity: .12; } 50% { opacity: .9; } }

/* ---------- Kopfleiste ---------- */

.kopfleiste {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--kopf);
  color: #fff;
  overflow: hidden;
}
/* Der Grund liegt als eigene Ebene darunter, in den Tönen der Bühne, damit keine Naht entsteht.
   Über der Titelbühne ist die Leiste durchsichtig (ist-oben, von seite.js geschaltet). */
.kopfleiste::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 170% at 100% -10%, rgba(143, 175, 166, .14), transparent 65%),
    linear-gradient(90deg, #101d20 0%, #16262b 50%, #1f3d44 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  transition: opacity .35s var(--ease);
}
.kopfleiste > .schweif { position: absolute; inset: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.js .kopfleiste.ist-oben::before,
.js .kopfleiste.ist-oben > .schweif { opacity: 0; }
.kopfleiste > .schweif svg { width: 100%; height: 100%; }
.kopfleiste .innen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--schrift-titel);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.marke-zeichen {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--licht);
}

.navi { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.navi a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--rund);
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.navi a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.navi a.aktiv { color: #fff; }
.navi .navi-kontakt,
.navi .navi-kontakt.aktiv {
  margin-left: 8px;
  padding: 8px 16px;
  color: var(--petrol);
  background: #fff;
}
.navi .navi-kontakt:hover { color: var(--petrol); background: var(--licht); }

.fortschritt {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--salbei), var(--licht));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .fortschritt { animation: fortschritt linear both; animation-timeline: scroll(root); }
}
@keyframes fortschritt { to { transform: scaleX(1); } }

.menue-knopf {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
}
.menue-knopf span,
.menue-knopf span::before,
.menue-knopf span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), background-color .2s;
}
.menue-knopf span { position: relative; }
.menue-knopf span::before, .menue-knopf span::after { content: ""; position: absolute; left: 0; }
.menue-knopf span::before { top: -6px; }
.menue-knopf span::after { top: 6px; }
.menue-knopf[aria-expanded="true"] span { background: transparent; }
.menue-knopf[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Kapitelpunkte ---------- */

.kapitelpunkte {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}
.kapitelpunkte a {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(116, 136, 144, .45);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.kapitelpunkte a:hover,
.kapitelpunkte a.aktiv {
  background: var(--salbei);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(143, 175, 166, .22);
}
.kapitelpunkte span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--petrol);
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.kapitelpunkte a:hover span, .kapitelpunkte a:focus-visible span { opacity: 1; }

/* ---------- Kapitel ---------- */

.kapitel {
  position: relative;
  overflow: hidden;
  overflow: clip; /* schneidet ab, ohne Scroll-Container zu werden: sonst rechnet position: sticky falsch */
  isolation: isolate;
  padding: clamp(88px, 10vw, 128px) 0;
  scroll-margin-top: var(--kopf);
}

.kapitel.hell { --flaeche: var(--weiss); --flaeche-ton: var(--salbei-hauch); }
.kapitel.weiss { background: var(--weiss); --flaeche: var(--papier); --flaeche-ton: var(--salbei-hauch); }
.kapitel.hell::before,
.kapitel.hell::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 70vw;
  height: 70vw;
  max-width: 980px;
  max-height: 980px;
  border-radius: 50%;
  pointer-events: none;
}
/* Reine Verläufe statt Weichzeichner: der erzeugt in Chrome sichtbare Kachelkanten */
.kapitel.hell::before {
  left: -22vw;
  top: -26vw;
  background: radial-gradient(circle closest-side, rgba(143, 175, 166, .2), rgba(143, 175, 166, .08) 45%, rgba(143, 175, 166, 0));
  animation: aurora 26s ease-in-out infinite alternate;
}
.kapitel.hell::after {
  right: -24vw;
  bottom: -30vw;
  background: radial-gradient(circle closest-side, rgba(62, 107, 117, .13), rgba(62, 107, 117, .05) 45%, rgba(62, 107, 117, 0));
  animation: aurora 32s ease-in-out infinite alternate-reverse;
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 6vw, 0) scale(1.15); }
}

.kapitel.dunkel {
  color: #fff;
  --text: #fff;
  --text-leise: var(--salbei-100);
  --text-still: var(--salbei-300);
  --flaeche: rgba(255, 255, 255, .06);
  --flaeche-ton: rgba(143, 175, 166, .14);
  background:
    radial-gradient(ellipse 60% 50% at 70% 18%, rgba(143, 175, 166, .16), transparent 65%),
    radial-gradient(ellipse 55% 60% at 15% 85%, rgba(31, 61, 68, .5), transparent 70%),
    linear-gradient(150deg, #101d20 0%, #16262b 45%, #1f3d44 100%);
}
.kapitel.dunkel h1, .kapitel.dunkel h2, .kapitel.dunkel h3, .kapitel.dunkel h4, .kapitel.dunkel strong { color: #fff; }

.kapitel-kopf { max-width: 760px; margin-bottom: 48px; }
.kapitel-kopf.mitte { margin-inline: auto; text-align: center; }

.auge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--schrift-titel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--salbei-600);
}
.mitte .auge { justify-content: center; }
.kapitel.dunkel .auge { color: var(--salbei-300); }
.auge .punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--salbei);
  animation: puls 2.6s ease-out infinite;
}
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(143, 175, 166, .55); }
  100% { box-shadow: 0 0 0 10px rgba(143, 175, 166, 0); }
}

.lead { max-width: 680px; margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text-leise); }

/* Glanz auf einem Teil der Überschrift */
.glanz {
  background: linear-gradient(100deg, var(--salbei-200) 0%, var(--licht) 30%, #ffffff 45%, var(--salbei-200) 60%, var(--teal-hell) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glanz 9s ease-in-out infinite alternate;
}
.kapitel:not(.dunkel) .glanz {
  background-image: linear-gradient(100deg, var(--petrol-weich) 0%, var(--salbei-600) 35%, var(--teal) 55%, var(--petrol-weich) 100%);
}
@keyframes glanz { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---------- Karten, Kacheln, Chips, Knöpfe ---------- */

.karte {
  background: var(--flaeche, var(--weiss));
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.karte.ton { background: var(--flaeche-ton); }
.karte.hebt:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 61, 68, .1); }
.kapitel.dunkel .karte {
  border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.kapitel.dunkel .karte.hebt:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); border-color: rgba(143, 175, 166, .35); }

.kachel-ikon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-klein);
  background: var(--salbei-hauch);
  color: var(--petrol);
  font-size: 20px;
}
.kapitel.dunkel .kachel-ikon { background: rgba(143, 175, 166, .16); color: var(--licht); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--rund);
  background: var(--salbei-hauch);
  color: var(--petrol);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.kapitel.weiss .chip { background: var(--papier); }
.chip.akzent { background: var(--petrol); color: #fff; }
.kapitel.dunkel .chip { background: rgba(143, 175, 166, .18); color: var(--salbei-100); }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--rund);
  background: var(--petrol);
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(31, 61, 68, .22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s;
}
.knopf:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(31, 61, 68, .28); }
.knopf:active { transform: scale(.98); }
.knopf .ikon { font-size: 18px; }
.kapitel.dunkel .knopf { background: #fff; color: var(--petrol); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.knopf.leise {
  background: transparent;
  color: var(--petrol);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.knopf.leise:hover { background: var(--weiss); box-shadow: inset 0 0 0 1px var(--salbei-200), 0 10px 26px rgba(31, 61, 68, .1); }
.kapitel.dunkel .knopf.leise {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.kapitel.dunkel .knopf.leise:hover { background: rgba(255, 255, 255, .12); }
.knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

/* ---------- Titelbühne ---------- */

main { margin-top: calc(-1 * var(--kopf)); } /* die Bühne läuft unter die durchsichtige Kopfleiste */

.buehne {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--kopf) + 56px) 0 96px;
}
.buehne .netz, .buehne .wellen { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.buehne .wellen svg { width: 100%; height: 100%; }
.buehne .innen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 48px;
}
.buehne .lead { color: var(--salbei-100); font-size: 19px; max-width: 30ch; }
.buehne .unterzeile { max-width: 46ch; margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--salbei-200); }

/* Ruhiges Motiv rechts: drei feine Ringe, die sich langsam drehen (bewusst keine Zahlen, keine Prahlerei) */
.buehne-ringe {
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: center;
  pointer-events: none;
}
.js .buehne-ringe.ist-da { animation: drehen-ruhig 150s linear infinite; }
@keyframes drehen-ruhig { to { transform: rotate(360deg); } }

.scroll-hinweis {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  color: var(--salbei-300);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-hinweis .ikon { font-size: 18px; animation: huepfen 1.8s ease-in-out infinite; }
@keyframes huepfen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Über mich ---------- */

.ueber-raster {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

/* Porträt im Bogen: die untere Hälfte steht in der Form, Kopf und Schultern ragen heraus.
   Die gerade Unterkante des Fotos endet mit dem Bogen, ohne Weichzeichner oder Maske. */
.portraet {
  position: relative;
  width: min(100%, 460px);
  margin: 0;
  padding-top: 28px;
  justify-self: center;
}
.portraet .bogen {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76%;
  border-radius: 50% 50% var(--radius) var(--radius) / 48% 48% var(--radius) var(--radius);
  background: linear-gradient(180deg, #e9f0ee 0%, var(--salbei-hauch) 55%, #dde8e4 100%);
  box-shadow: inset 0 0 0 1px rgba(87, 122, 112, .14), inset 0 -40px 60px rgba(87, 122, 112, .08);
}
.portraet .ring {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 108%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: drehen 90s linear infinite;
}
@keyframes drehen { to { transform: translate(-50%, -50%) rotate(360deg); } }
.portraet img { width: 100%; }
.portraet-halter { position: relative; filter: drop-shadow(0 24px 30px rgba(31, 61, 68, .22)); }

.erfahrung {
  position: absolute;
  right: -6%;
  bottom: 9%;
  z-index: 2;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px rgba(31, 61, 68, .14), inset 0 0 0 1px rgba(255, 255, 255, .7);
  animation: schweben 8s ease-in-out infinite alternate;
}
.erfahrung b {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--petrol);
  font-variant-numeric: tabular-nums;
}
.erfahrung span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-leise); }
@keyframes schweben { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

.ueber-text .lead { max-width: 62ch; font-size: 16.5px; color: var(--text-leise); }
.ueber-text .lead + .lead { margin-top: 14px; }

.steckbrief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 30px 0 26px;
  padding: 20px 22px;
}
.steckbrief div { min-width: 0; }
.steckbrief dt { font-family: var(--schrift-titel); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--salbei-600); }
.steckbrief dd { margin: 3px 0 0; font-size: 14.5px; color: var(--text); }

.merkmale h3 { margin-bottom: 10px; font-size: 13px; letter-spacing: .02em; color: var(--text-still); }

/* ---------- Kernkompetenzen ---------- */

.kapitel.schmal { padding: clamp(64px, 7vw, 92px) 0; }
.band-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: 36px;
}
.band-kopf h2 { font-size: clamp(26px, 3vw, 38px); }
.band-text { max-width: 44ch; font-size: 15.5px; line-height: 1.6; color: var(--salbei-100); }

.kompetenzen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kompetenz { padding: 22px 20px 20px; }
.kompetenz h3 { margin: 18px 0 6px; font-size: 16px; }
.kompetenz p { font-size: 13.5px; line-height: 1.55; color: var(--salbei-100); }

.regulatorik { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; }
.regulatorik > span { font-family: var(--schrift-titel); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--salbei-300); }

/* ---------- Werdegang ---------- */

/* Zeitleiste in der Mitte, Stationen abwechselnd links und rechts; die vier jüngsten ausführlich, der Rest kompakt */
.zeitleiste {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  row-gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.zeitleiste::before,
.zeitleiste::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  bottom: 24px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
}
.zeitleiste::before { background: var(--linie); }
.zeitleiste::after {
  background: linear-gradient(var(--salbei), var(--petrol-weich));
  transform: scaleY(var(--fortschritt, 0));
  transform-origin: top;
  transition: transform 1.1s var(--ease);
}
.station { position: relative; align-self: start; padding: 22px 26px 24px; }
.station:nth-child(odd) { grid-column: 1; }
.station:nth-child(even) { grid-column: 3; }
/* Jede Station belegt zwei Zeilen und beginnt eine Zeile nach der vorigen: so greifen sie versetzt ineinander
   (die Zeilen müssen ausdrücklich stehen, die Autoplatzierung würde die Karten paarweise nebeneinanderlegen) */
.station:nth-child(1) { grid-row: 1 / span 2; }
.station:nth-child(2) { grid-row: 2 / span 2; }
.station:nth-child(3) { grid-row: 3 / span 2; }
.station:nth-child(4) { grid-row: 4 / span 2; }
.station:nth-child(5) { grid-row: 5 / span 2; }
.station:nth-child(6) { grid-row: 6 / span 2; }
.station:nth-child(7) { grid-row: 7 / span 2; }
.station:nth-child(8) { grid-row: 8 / span 2; }
.station:nth-child(9) { grid-row: 9 / span 2; }
.station:nth-child(10) { grid-row: 10 / span 2; }
.station::before {
  content: "";
  position: absolute;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--weiss);
  box-shadow: inset 0 0 0 2px var(--linie);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.station::after { content: ""; position: absolute; top: 32px; width: 22px; height: 2px; background: var(--linie); }
.station:nth-child(odd)::before { right: -35px; }
.station:nth-child(odd)::after { right: -22px; }
.station:nth-child(even)::before { left: -35px; }
.station:nth-child(even)::after { left: -22px; }
.station.ist-da::before { background: var(--salbei); box-shadow: inset 0 0 0 2px var(--salbei), 0 0 0 5px rgba(143, 175, 166, .22); }
.station-zeit { display: block; font-size: 12.5px; font-weight: 600; color: var(--salbei-600); letter-spacing: .01em; }
.station h3 { margin: 6px 0 2px; font-size: 18px; }
.station-zusatz { display: block; margin-top: 2px; font-family: var(--schrift-text); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-leise); }
.station-org { margin: 4px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--petrol); }
.station p:not(.station-org) { font-size: 14.5px; color: var(--text-leise); }
.station.kompakt { padding: 16px 20px; }
.station.kompakt h3 { font-size: 15px; }
.station.kompakt .station-org { margin-bottom: 0; font-size: 13px; font-weight: 500; color: var(--text-leise); }
.station.kompakt::before { top: 20px; }
.station.kompakt::after { top: 26px; }

.station-aktuell { box-shadow: inset 0 0 0 1px rgba(143, 175, 166, .5), 0 18px 40px rgba(31, 61, 68, .08); }
.marke-aktuell {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--rund);
  background: var(--petrol);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.abschluss-reihe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1040px;
  margin: 48px auto 0;
}
.abschluss { display: flex; gap: 14px; align-items: flex-start; padding: 22px; }
.abschluss strong { display: block; font-family: var(--schrift-titel); font-size: 15px; font-weight: 600; }
.abschluss span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--text-leise); }
.abschluss em { font-style: normal; font-weight: 600; color: var(--salbei-600); }

.lebenslauf {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(143, 175, 166, .3), transparent 65%),
    linear-gradient(150deg, #16262b 0%, #1f3d44 60%, #2a515b 100%);
}
.lebenslauf h3 { color: #fff; font-size: 16px; }
.lebenslauf p { margin: 6px 0 18px; font-size: 13.5px; color: var(--salbei-100); }
.lebenslauf .knopf { height: 44px; padding: 0 20px; background: #fff; color: var(--petrol); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }

/* ---------- Gemeinderat ---------- */

.merksatz {
  position: relative;
  max-width: 880px;
  margin-top: 40px;
  padding: 26px 30px 26px 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  font-family: var(--schrift-titel);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: #fff;
}
.merksatz::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--licht), var(--salbei));
}

/* Haltung (drei Karten) und Themen (fünf Kacheln): alles sichtbar, nichts versteckt */
.reihe-titel {
  margin: 56px 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--salbei-300);
}
.haltung { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.haltung-karte { padding: 26px 26px 24px; }
.haltung-karte h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.haltung-karte p { font-size: 14.5px; line-height: 1.65; color: var(--salbei-100); }
.punkte {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.punkte li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--salbei-200); }
.punkte .ikon { margin-top: 3px; font-size: 15px; color: var(--teal-hell); }

.themen-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
.thema-kachel { padding: 22px 20px 20px; }
.thema-kachel h3 { margin: 16px 0 6px; font-size: 16px; }
.thema-kachel p { font-size: 13.5px; line-height: 1.55; color: var(--salbei-100); }

.gr-unten { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; margin-top: 56px; }
.gr-unten > * { min-width: 0; }

.spd-karte { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.spd-kopf { display: flex; align-items: center; gap: 14px; }
/* Das Original-Logo (roter Schriftzug) steht auf einer weißen Platte, wie es die Marke vorsieht */
.spd-logo {
  display: inline-flex;
  flex: none;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
}
.spd-logo img { width: auto; height: 32px; }
.spd-kopf b { display: block; font-family: var(--schrift-titel); font-size: 16px; font-weight: 600; color: #fff; }
.spd-kopf small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--salbei-300); }
.spd-karte > p { font-size: 14px; color: var(--salbei-100); }
.spd-karte .knopf { align-self: flex-start; margin-top: auto; height: 44px; padding: 0 20px; }

.anliegen { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
.anliegen h4 { margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.anliegen p { font-size: 14px; color: var(--salbei-100); }
.anliegen .knopf { margin-top: auto; height: 44px; padding: 0 20px; }

/* ---------- Kontakt ---------- */

.kontakt-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.kontakt-karte { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.kontakt-karte .lbl {
  font-family: var(--schrift-titel);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--salbei-600);
}
.kontakt-karte .wert { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.kontakt-karte .wert a { color: var(--text); text-decoration: none; transition: color .2s; }
.kontakt-karte .wert a:hover { color: var(--petrol-weich); }
.kontakt-karte .sub { font-size: 13px; color: var(--text-leise); }

.kontakt-aktion { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 44px; }
.netzwerke { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.netzwerke a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px 0 14px;
  border-radius: var(--rund);
  background: var(--weiss);
  box-shadow: inset 0 0 0 1px var(--linie);
  color: var(--text-leise);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, box-shadow .3s, transform .3s var(--ease);
}
.netzwerke a:hover { color: var(--petrol); box-shadow: inset 0 0 0 1px var(--salbei-200), 0 10px 22px rgba(31, 61, 68, .08); transform: translateY(-2px); }
.netzwerke .ikon { font-size: 18px; }

/* ---------- Fußzeile ---------- */

.fusszeile {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  background: linear-gradient(90deg, #16262b 0%, #1f3d44 50%, #2a515b 100%);
}
.fusszeile .innen { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.fusszeile nav { display: flex; gap: 22px; }
.fusszeile a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s; }
.fusszeile a:hover { color: #fff; }

/* ---------- Einblenden ---------- */

.js .auf {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .auf.ist-da { opacity: 1; transform: none; }

/* ---------- Unterlagen-Seiten (z. B. /steuer): Kennzahlen, Listen, Monatskacheln, Tabellen, Dateien ---------- */

.kennzahlen {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  padding: 16px 0 36px;
}
.kennzahl {
  position: relative;
  z-index: 1;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.kennzahl:nth-child(even) { margin-top: 40px; }
.kennzahl .kachel-ikon { margin-bottom: 16px; }
.kennzahl b {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.kennzahl > span:not(.kachel-ikon) { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--salbei-100); }
.kennzahlen-bogen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: drehen 120s linear infinite;
}

.zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.liste-karte { padding: 26px; }
.liste-karte h3 { margin-bottom: 16px; font-size: 20px; letter-spacing: -.02em; }
.punktliste { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.punktliste li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 14.5px; line-height: 1.6; color: var(--text-leise); }
.punktliste b { display: block; margin-bottom: 2px; font-family: var(--schrift-titel); font-size: 15px; font-weight: 600; color: var(--text); }
.nummer {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-klein);
  background: var(--salbei-hauch);
  color: var(--petrol);
  font-family: var(--schrift-titel);
  font-size: 14px;
  font-weight: 600;
}
.kapitel.dunkel .nummer { background: rgba(143, 175, 166, .16); color: var(--licht); }
.kapitel.dunkel .punktliste li { color: var(--salbei-100); }
.kapitel.dunkel .punktliste b { color: #fff; }

.monate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.monat { padding: 18px 16px 16px; }
.monat .mon { font-family: var(--schrift-titel); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--salbei-300); }
.monat b { display: block; margin: 10px 0 2px; font-family: var(--schrift-titel); font-size: 34px; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.monat b small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--salbei-200); }
.monat .betrag { font-size: 14px; color: var(--salbei-100); font-variant-numeric: tabular-nums; }
.monat .hotel { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--salbei-300); }
.monat .balken { height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.monat .balken i { display: block; height: 100%; width: var(--anteil, 50%); background: linear-gradient(90deg, var(--salbei), var(--teal-hell)); transform-origin: left; transition: transform 1.2s var(--ease); }
.js .monat.auf:not(.ist-da) .balken i { transform: scaleX(0); }

.tabelle-karte { padding: 8px 10px 4px; overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabelle th { padding: 12px 14px; text-align: left; font-family: var(--schrift-titel); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--salbei-600); border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 13px 14px; vertical-align: top; color: var(--text-leise); border-bottom: 1px solid var(--linie); }
.tabelle td:first-child { color: var(--text); font-weight: 500; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle tr.block td { padding-top: 22px; font-family: var(--schrift-titel); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--salbei-600); border-bottom: 0; }
.tabelle tr.summe td { font-weight: 600; color: var(--text); background: var(--salbei-hauch); }
/* Aufklappbare Zusammensetzung einer Summenzeile */
.summe-details summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.summe-details summary::-webkit-details-marker { display: none; }
.summe-details summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--salbei-600); border-bottom: 1.5px solid var(--salbei-600); transform: rotate(-45deg); transition: transform .2s; flex: none; }
.summe-details[open] summary::before { transform: rotate(45deg); }
.summe-details summary::after { content: "Zusammensetzung"; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--salbei-600); }
.summe-details[open] summary::after { content: "schließen"; }
.summe-details div { margin-top: 8px; font-size: 13.5px; font-weight: 400; line-height: 1.6; color: var(--text-leise); }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--rund); font-size: 12px; font-weight: 600; white-space: nowrap; }
.status.fertig { background: #ddefe8; color: #2e5f52; }
.status.klaeren { background: #fff1d6; color: #7a5a12; }
.status.nicht { background: #ebebeb; color: #5a5f61; }
.status.offen { background: #e3eef5; color: #2a515b; }

.dateien { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.datei-haupt {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(143, 175, 166, .3), transparent 65%),
    linear-gradient(150deg, #16262b 0%, #1f3d44 60%, #2a515b 100%);
}
.datei-haupt h3 { font-size: 20px; color: #fff; }
.datei-haupt p { margin-top: 6px; font-size: 14px; color: var(--salbei-100); }
.datei-haupt .knopf { background: #fff; color: var(--petrol); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.datei-gruppe { padding: 22px 24px; }
.datei-gruppe h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 16px; }
.datei-liste { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.datei-liste a { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 12px; border-radius: var(--radius-klein); color: var(--text); font-size: 14px; text-decoration: none; transition: background-color .2s; }
.datei-liste a:hover { background: var(--salbei-hauch); }
.datei-liste .ikon { flex: none; font-size: 18px; color: var(--salbei-600); }
.datei-liste span { flex: 1; min-width: 0; line-height: 1.4; }
.datei-liste small { flex: none; min-width: 64px; margin-left: 8px; text-align: right; font-size: 12.5px; color: var(--text-still); font-variant-numeric: tabular-nums; }

/* Analysetabelle: Filterzeile, Schnellfilter, sortierbare Köpfe, Summenzeile */
.filterzeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
/* Filter als Pillen: Beschriftung links, Auswahl rechts, eigener Pfeil statt Systemoptik */
.filter {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 0 0 16px;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  background: var(--weiss);
  transition: border-color .2s, box-shadow .2s;
}
.filter:hover { border-color: var(--salbei); }
.filter:focus-within { border-color: var(--salbei); box-shadow: 0 0 0 3px rgba(143, 175, 166, .22); }
.filter > span { font-family: var(--schrift-titel); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--salbei-600); white-space: nowrap; }
.filter select, .filter input {
  height: 100%;
  margin: 0;
  padding: 0 16px 0 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23577a70'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  cursor: pointer;
}
/* Eigene Aufklappliste (seite tabelle.js versteckt das native select und bedient es über Knopf und Liste) */
.filter { position: relative; }
.filter select.versteckt { display: none; }
.auswahl {
  height: 100%;
  padding: 0 38px 0 12px;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23577a70'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--rund);
}
.auswahl:focus-visible { outline: none; }
.auswahl[aria-expanded="true"] { color: var(--petrol); }
.auswahl-liste {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 100%;
  max-height: 340px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--linie);
  border-radius: 16px;
  background: var(--weiss);
  box-shadow: 0 18px 40px rgba(31, 61, 68, .14);
  animation: auswahl-ein .18s var(--ease);
}
.auswahl-liste[hidden] { display: none; }
@keyframes auswahl-ein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.auswahl-liste li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}
.auswahl-liste li:hover, .auswahl-liste li.aktiv { background: var(--salbei-hauch); }
.auswahl-liste li[aria-selected="true"] { color: var(--petrol); font-weight: 600; }
.auswahl-liste li[aria-selected="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.filter.suche { flex: 1 1 240px; }
.filter.suche input { width: 100%; }
.filter input::placeholder { color: var(--text-still); font-weight: 400; }
.filter input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.filterzeile .knopf { height: 42px; padding: 0 18px; font-size: 13.5px; }
.filterzeile .abstand { flex: 1; }
.schnellfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-knopf {
  padding: 6px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  background: var(--weiss);
  color: var(--petrol);
  font-family: var(--schrift-text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.chip-knopf:hover { border-color: var(--salbei); }
.chip-knopf[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.tabelle th button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
.tabelle th.sortiert button { color: var(--petrol); }
.tabelle .zweck { display: block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabelle .beleg-link { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--salbei-600); }
.status-reihe { display: flex; flex-wrap: wrap; gap: 4px; }
.summenzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 14px 8px; font-size: 14px; color: var(--text-leise); }
.summenzeile b { color: var(--text); }
.tabelle-rahmen { max-height: 640px; overflow: auto; }
.tabelle-rahmen thead th { position: sticky; top: 0; background: var(--weiss); z-index: 1; }

@media (max-width: 980px) {
  .monate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zweispaltig, .dateien { grid-template-columns: 1fr; }
  .filter { flex: 1 1 45%; }
  .filter select { width: 100%; }
}

/* Lange Passage (Fließtext) */
.passage { max-width: 78ch; }
.passage h3 { margin: 30px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.passage h3:first-child { margin-top: 0; }
.passage p { font-size: 16px; line-height: 1.72; color: var(--text-leise); }
.passage p + p { margin-top: 14px; }
.passage strong { color: var(--text); }
.passage .karte { margin: 18px 0; }
@media (max-width: 860px) {
  .kennzahlen-bogen { display: none; }
  .kennzahl { padding: 16px 16px 14px; }
  .kennzahl b { font-size: 20px; }
}
@media (max-width: 560px) {
  .monate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Haus (/haus): Titelbild, Galerie, Großansicht, Kinomodus ----------
   Bilder liegen auf tiefem Petrol wie im Kino. Das Titelbild zeigt erst das 3D-Modell,
   dann wischt ein Lichtstreifen das Foto darüber (Maske und Lichtkante teilen dieselbe
   Verlaufsgeometrie und laufen deshalb deckungsgleich). */

.haus-seite { background: #0b1518; }

.haus-buehne { display: block; padding: 0; background: #0b1518; }
.haus-buehne-bild { position: absolute; inset: 0; z-index: 0; transform-origin: 58% 60%; }
.haus-buehne-bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.js .haus-buehne-bild { opacity: 0; transition: opacity 1.4s var(--ease); }
.js .haus-buehne.ist-bereit .haus-buehne-bild { opacity: 1; animation: haus-heran 24s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes haus-heran { from { transform: scale(1.14); } to { transform: scale(1.02); } }

.js .haus-foto {
  -webkit-mask-image: linear-gradient(105deg, #000 40%, transparent 50%);
  mask-image: linear-gradient(105deg, #000 40%, transparent 50%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 84% 0;
  mask-position: 84% 0;
}
.haus-lichtkante {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 44.2%, rgba(255, 255, 255, .95) 45%, transparent 45.8%),
    linear-gradient(105deg, transparent 40%, rgba(191, 227, 218, .32) 45%, transparent 50%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 84% 0;
  mix-blend-mode: screen;
}
.haus-buehne.ist-enthuellt .haus-foto { animation: haus-enthuellen 3.2s cubic-bezier(.65, 0, .35, 1) .9s both; }
.haus-buehne.ist-enthuellt .haus-lichtkante { animation: haus-lichtkante 3.2s cubic-bezier(.65, 0, .35, 1) .9s both; }
.haus-buehne.ist-enthuellt.zeigt-modell .haus-foto { animation: haus-verhuellen 2s cubic-bezier(.65, 0, .35, 1) both; }
.haus-buehne.ist-enthuellt.zeigt-modell .haus-lichtkante { animation: haus-lichtkante-zurueck 2s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes haus-enthuellen {
  from { -webkit-mask-position: 84% 0; mask-position: 84% 0; }
  to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
@keyframes haus-verhuellen {
  from { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
  to { -webkit-mask-position: 84% 0; mask-position: 84% 0; }
}
@keyframes haus-lichtkante {
  0% { background-position: 84% 0; opacity: 0; }
  10%, 86% { opacity: 1; }
  100% { background-position: 0% 0; opacity: 0; }
}
@keyframes haus-lichtkante-zurueck {
  0% { background-position: 0% 0; opacity: 0; }
  12%, 86% { opacity: 1; }
  100% { background-position: 84% 0; opacity: 0; }
}

.haus-schleier {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 21, 24, .6) 0%, rgba(11, 21, 24, 0) 24%),
    radial-gradient(ellipse 62% 58% at 12% 92%, rgba(11, 21, 24, .72), rgba(11, 21, 24, 0) 70%),
    linear-gradient(0deg, rgba(11, 21, 24, .9) 0%, rgba(11, 21, 24, .4) 24%, rgba(11, 21, 24, 0) 50%);
}
.haus-buehne .innen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--kopf) + 40px);
  padding-bottom: clamp(64px, 10vh, 112px);
}
.haus-buehne h1 { max-width: 12ch; font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -.04em; }
.haus-buehne .lead { max-width: 36ch; margin-top: 16px; color: #fff; font-size: clamp(17px, 1.5vw, 21px); }
.haus-buehne .knopf-zeile { margin-top: 26px; }
.haus-buehne .auge,
.oeffner-text .auge {
  width: fit-content;
  padding: 7px 14px 7px 12px;
  border-radius: var(--rund);
  background: rgba(11, 21, 24, .42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--salbei-100);
}

.haus-umschalter {
  position: absolute;
  right: var(--rand);
  bottom: clamp(28px, 5vh, 48px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: var(--rund);
  background: rgba(11, 21, 24, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.haus-umschalter:hover:not(:disabled) { background: rgba(11, 21, 24, .7); box-shadow: inset 0 0 0 1px rgba(191, 214, 206, .5); }
.haus-umschalter:disabled { cursor: default; }
.haus-umschalter-punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-hell);
  box-shadow: 0 0 0 3px rgba(95, 220, 202, .22);
}
.haus-umschalter:disabled .haus-umschalter-punkt { animation: puls 1.6s ease-out infinite; }

/* Filterleiste: klebt unter der Kopfleiste, solange die Galerie im Bild ist */
.galerie { position: relative; background: #0b1518; }
.filterleiste {
  position: sticky;
  top: var(--kopf);
  z-index: 35;
  padding: 12px 0;
  background: rgba(11, 21, 24, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.filterleiste .innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-chips {
  display: flex;
  gap: 6px;
  min-width: 0;
  margin: -4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--rund);
  background: rgba(255, 255, 255, .06);
  color: var(--salbei-100);
  font-family: var(--schrift-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.filter-chip span { color: var(--salbei-300); font-size: 12px; font-variant-numeric: tabular-nums; }
.filter-chip:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.filter-chip[aria-pressed="true"] { background: #fff; color: var(--petrol); }
.filter-chip[aria-pressed="true"] span { color: var(--salbei-600); }
.knopf.klein { height: 38px; padding: 0 18px; font-size: 13.5px; gap: 8px; }
.filterleiste .knopf {
  flex: none;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.filterleiste .knopf:hover { background: rgba(255, 255, 255, .16); }

/* Kapitel: ein Öffner über die volle Breite, darunter das Raster */
.kapitel.haus-kapitel {
  padding: 0 0 clamp(64px, 8vw, 112px);
  scroll-margin-top: calc(var(--kopf) + 62px);
  background: radial-gradient(ellipse 55% 26% at 88% 100%, rgba(31, 61, 68, .45), transparent 70%), #0b1518;
}
.oeffner {
  position: relative;
  height: min(86vh, 58vw);
  min-height: 360px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.oeffner .bild { position: absolute; inset: 0; border-radius: 0; }
.oeffner .bild::after {
  opacity: 1;
  background:
    linear-gradient(0deg, #0b1518 0%, rgba(11, 21, 24, .55) 24%, rgba(11, 21, 24, 0) 56%),
    linear-gradient(180deg, rgba(11, 21, 24, .55) 0%, rgba(11, 21, 24, 0) 22%);
}
.oeffner .bild-titel {
  left: auto;
  right: var(--rand);
  bottom: clamp(32px, 5vw, 68px);
  padding: 8px 14px;
  border-radius: var(--rund);
  background: rgba(11, 21, 24, .4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  opacity: .9;
  transform: none;
}
.oeffner-text { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 64px); z-index: 2; pointer-events: none; }
.oeffner-text h2 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1; letter-spacing: -.045em; }
.oeffner-text .lead { max-width: 42ch; margin-top: 14px; color: var(--salbei-100); }
.oeffner-text .innen { padding-right: 220px; }
@supports (animation-timeline: view()) {
  .oeffner .bild img { animation: oeffner-ruhe linear both; animation-timeline: view(); animation-range: entry 0% exit 70%; }
  @keyframes oeffner-ruhe { from { transform: scale(1.16); } to { transform: scale(1); } }
}

.raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.raster .bild { grid-column: span 2; aspect-ratio: 16 / 9; }
.raster .bild.halb { grid-column: span 3; }
.raster .bild.gross { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }

.bild {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-klein);
  background: #16262b var(--lqip) center / cover no-repeat;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .9s var(--ease), transform 1.4s var(--ease);
}
.js .bild img { opacity: 0; }
.js .bild img.ist-geladen { opacity: 1; }
.bild::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(11, 21, 24, .8) 0%, rgba(11, 21, 24, 0) 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.bild-titel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 13px;
  z-index: 2;
  font-family: var(--schrift-titel);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.oeffner .bild-titel { left: auto; }
.raster .bild:hover img { transform: scale(1.05); }
.raster .bild:hover::after, .raster .bild:focus-visible::after { opacity: 1; }
.raster .bild:hover .bild-titel, .raster .bild:focus-visible .bild-titel { opacity: 1; transform: none; }
.raster .bild.gross .bild-titel { left: 22px; bottom: 18px; font-size: 18px; }
.bild:focus-visible { outline-offset: 4px; }
@media (hover: none) {
  .raster .bild::after, .raster .bild .bild-titel { opacity: 1; transform: none; }
}

.haus-schluss { text-align: center; }
.haus-schluss .netz { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.haus-schluss .kapitel-kopf { margin-bottom: 0; }
.haus-schluss .lead { margin-inline: auto; }
.haus-schluss .knopf-zeile { justify-content: center; }
.haus-hinweis { max-width: 62ch; margin: 40px auto 0; color: var(--salbei-300); font-size: 13.5px; line-height: 1.65; }

/* Großansicht: PhotoSwipe im Stil der Seite */
.pswp {
  --pswp-bg: #0b1518;
  --pswp-placeholder-bg: #16262b;
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: rgba(11, 21, 24, .4);
  --pswp-icon-stroke-color: transparent;
  --pswp-preloader-color: rgba(143, 175, 166, .25);
  --pswp-preloader-color-secondary: var(--licht);
  font-family: var(--schrift-text);
}
.pswp__top-bar {
  height: 76px;
  padding: 16px 16px 0 20px;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(180deg, rgba(11, 21, 24, .75), rgba(11, 21, 24, 0));
}
.pswp .pswp__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: var(--rund);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #fff;
  opacity: 1;
  transition: background-color .2s;
}
.pswp .pswp__button:hover, .pswp .pswp__button:focus-visible { background: rgba(255, 255, 255, .18); }
.pswp .pswp__button .pswp__icn { position: static; width: 20px; height: 20px; margin: 0; color: inherit; fill: currentColor; transform: none; }
.pswp .pswp__button--zoom { display: none; }
.pswp--zoom-allowed .pswp__button--zoom { display: grid; }
.pswp__button--zoom .pswp__icn + .pswp__icn,
.pswp--zoomed-in .pswp__button--zoom .pswp__icn:first-child { display: none; }
.pswp--zoomed-in .pswp__button--zoom .pswp__icn + .pswp__icn { display: block; }
.pswp .pswp__button--arrow {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  background: rgba(11, 21, 24, .4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pswp .pswp__button--arrow .pswp__icn { width: 22px; height: 22px; }
.pswp__preloader .pswp__icn { position: static; }
.pswp__button--arrow--prev { left: 20px; }
.pswp__button--arrow--next { right: 20px; }
.pswp__counter {
  height: 44px;
  margin: 0;
  color: var(--salbei-200);
  font-family: var(--schrift-titel);
  font-size: 13px;
  font-weight: 600;
  line-height: 44px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: none;
  opacity: 1;
}
.pswp__titel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin-left: 12px;
  padding-left: 14px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14);
}
.pswp__titel span {
  color: var(--salbei-300);
  font-family: var(--schrift-titel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pswp__titel b {
  overflow: hidden;
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pswp__preloader { display: grid; place-items: center; width: 44px; height: 44px; }
.pswp__filmstreifen {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 6px;
  max-width: min(92vw, 1000px);
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  overflow-x: auto;
  scrollbar-width: none;
  transform: translateX(-50%);
}
.pswp__filmstreifen::-webkit-scrollbar { display: none; }
.pswp__filmstreifen button {
  flex: none;
  width: 80px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #16262b;
  opacity: .42;
  cursor: pointer;
  transition: opacity .25s, box-shadow .25s;
}
.pswp__filmstreifen button:hover { opacity: .85; }
.pswp__filmstreifen button.aktiv { opacity: 1; box-shadow: 0 0 0 2px var(--licht); }
.pswp__filmstreifen img { width: 100%; height: 100%; object-fit: cover; }
.pswp--zoomed-in .pswp__filmstreifen { opacity: 0; pointer-events: none; }

/* Kinomodus */
.kino { position: fixed; inset: 0; z-index: 100001; overflow: hidden; background: #05090a; color: #fff; }
.kino[hidden] { display: none; }
html.kino-offen, html.kino-offen body { overflow: hidden; }
.kino-ebene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; will-change: opacity, transform; }
.kino-ebene.ist-vorne { z-index: 1; opacity: 1; }
.kino-ebene img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.kino-ebene.kb-1 { animation: kino-kb-1 8.8s linear both; }
.kino-ebene.kb-2 { animation: kino-kb-2 8.8s linear both; }
.kino-ebene.kb-3 { animation: kino-kb-3 8.8s linear both; }
.kino-ebene.kb-4 { animation: kino-kb-4 8.8s linear both; }
@keyframes kino-kb-1 { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes kino-kb-2 { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1.02); } }
@keyframes kino-kb-3 { from { transform: scale(1.04) translate(1.5%, 0); } to { transform: scale(1.13) translate(-1.5%, 1%); } }
@keyframes kino-kb-4 { from { transform: scale(1.13) translate(-1.5%, -1%); } to { transform: scale(1.03) translate(1%, 0); } }
.kino-schleier {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5, 9, 10, .78) 0%, rgba(5, 9, 10, 0) 40%),
    linear-gradient(180deg, rgba(5, 9, 10, .5) 0%, rgba(5, 9, 10, 0) 18%);
}
.kino-fortschritt { position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 3px; background: rgba(255, 255, 255, .08); }
.kino-fortschritt span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--salbei), var(--licht));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.kino-fortschritt span.laeuft { animation: kino-lauf var(--dauer, 7s) linear forwards; }
@keyframes kino-lauf { to { transform: scaleX(1); } }
.kino.ist-pausiert .kino-ebene,
.kino.ist-pausiert .kino-fortschritt span { animation-play-state: paused; }
.kino-zaehler {
  position: absolute;
  top: 22px;
  right: clamp(20px, 4vw, 56px);
  z-index: 3;
  color: var(--salbei-200);
  font-family: var(--schrift-titel);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: opacity .5s;
}
.kino-text { position: absolute; left: clamp(20px, 5vw, 72px); bottom: clamp(32px, 8vh, 84px); z-index: 3; max-width: min(70vw, 900px); }
.kino-text .auge { margin-bottom: 12px; color: var(--salbei-200); }
.kino-titel { font-family: var(--schrift-titel); font-size: clamp(32px, 4.8vw, 68px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.kino-text.ist-neu { animation: kino-text-ein 1.6s var(--ease) .3s both; }
@keyframes kino-text-ein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kino-knoepfe {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(32px, 8vh, 84px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity .5s;
}
.kino-knopf {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.kino-knopf:hover { background: rgba(255, 255, 255, .2); }
.kino-knopf .ikon { font-size: 20px; }
.kino-knopf.gross { width: 62px; height: 62px; background: #fff; color: var(--petrol); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.kino-knopf.gross:hover { transform: scale(1.05); background: #fff; }
.kino-knopf .ikon-abspielen, .kino.ist-pausiert .kino-knopf .ikon-pause { display: none; }
.kino.ist-pausiert .kino-knopf .ikon-abspielen { display: block; }
.kino.ist-ruhig { cursor: none; }
.kino.ist-ruhig .kino-knoepfe, .kino.ist-ruhig .kino-zaehler { opacity: 0; }

@media (max-width: 860px) {
  .haus-buehne .innen { padding-bottom: 104px; }
  .haus-umschalter { left: var(--rand); right: auto; bottom: 32px; }
  .filterleiste .knopf { display: none; }
  .oeffner-text .innen { padding-right: var(--rand); }
  .oeffner .bild-titel { top: calc(var(--kopf) + 70px); bottom: auto; }
}
@media (max-width: 700px) {
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .raster .bild, .raster .bild.halb { grid-column: span 1; }
  .raster .bild.gross, .raster .bild.mobil-voll { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
  .bild { border-radius: 10px; }
  .bild-titel { left: 10px; right: 10px; bottom: 8px; font-size: 12.5px; }
  .raster .bild.gross .bild-titel { left: 12px; bottom: 10px; font-size: 14px; }
  .oeffner { height: auto; min-height: 0; aspect-ratio: 1; }
  .haus-buehne-bild img { object-position: 32% 50%; }
  .oeffner .bild-titel { display: none; }
  .filter-chip { height: 34px; padding: 0 13px; font-size: 13px; }
  .pswp__top-bar { padding: 10px 10px 0 16px; }
  /* Titel unter dem Bild statt in der Leiste; der Rahmen der Großansicht ist Bezug für fixed */
  .pswp__titel { position: fixed; left: 16px; right: 16px; bottom: 24px; margin: 0; padding: 0; box-shadow: none; }
  .pswp__titel b { font-size: 19px; white-space: normal; }
  .pswp .pswp__button--zoom { display: none; }
}
@media (max-width: 700px), (max-height: 560px) {
  .pswp__filmstreifen { display: none; }
}
@media (orientation: portrait) {
  .kino-ebene img { object-fit: contain; }
  .kino-text { right: 20px; bottom: 120px; }
  .kino-knoepfe { left: 50%; right: auto; bottom: 36px; transform: translateX(-50%); }
}

/* ---------- Mobil ---------- */

@media (max-width: 1100px) {
  .kapitelpunkte { display: none; }
}

@media (max-width: 980px) {
  .gr-unten { grid-template-columns: 1fr; }
  .kontakt-raster { grid-template-columns: 1fr 1fr; }
  .abschluss-reihe { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 860px) {
  :root { --kopf: 66px; }
  .menue-knopf { display: grid; order: 3; }
  .kopfleiste { overflow: visible; }
  .navi {
    position: absolute;
    top: calc(var(--kopf) - 4px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(160deg, #16262b, #1f3d44);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .35s var(--ease);
  }
  .navi.ist-offen { opacity: 1; transform: none; pointer-events: auto; }
  .navi a { padding: 12px 14px; font-size: 16px; }
  .navi .navi-kontakt { margin: 6px 0 0; text-align: center; }

  .buehne { min-height: 0; padding: calc(var(--kopf) + 40px) 0 64px; }
  .buehne .innen, .ueber-raster { grid-template-columns: 1fr; }
  .buehne-ringe { display: none; }
  .scroll-hinweis { display: none; }
  .portraet { width: min(80vw, 380px); }
  .erfahrung { right: 0; }
  .steckbrief { grid-template-columns: 1fr; }

  /* Zeitleiste einspaltig, Linie links */
  .zeitleiste { grid-template-columns: 36px minmax(0, 1fr); row-gap: 16px; }
  .zeitleiste::before, .zeitleiste::after { left: 17px; margin-left: 0; }
  .station:nth-child(odd), .station:nth-child(even) { grid-column: 2; grid-row: auto; }
  .station:nth-child(odd)::before, .station:nth-child(even)::before { left: -25px; right: auto; }
  .station:nth-child(odd)::after, .station:nth-child(even)::after { left: -18px; right: auto; width: 18px; }
  .station { padding: 18px 18px 20px; }
}

@media (max-width: 560px) {
  .kontakt-raster { grid-template-columns: 1fr; }
  .knopf-zeile .knopf { flex: 1 1 auto; }
}

/* ---------- Ruhige Darstellung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .fortschritt { display: none; }
}
