/* ==========================================================================
   ArSec · Gestaltungssystem
   1 Grundwerte  2 Basis  3 Bausteine  4 Kopf  5 Einstieg  6 Kapitel
   7 Objektbewachung  8 Veranstaltungsschutz  9 Anfrage  10 Anhang  11 Fuß
   12 Bewegung
   ========================================================================== */

/* 1 · Grundwerte ---------------------------------------------------------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Castoro;
  src: url("assets/castoro.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Farben: Papier, Tinte, Nacht, Messing */
  --paper: #f5f3ee;
  --sand: #ebe6db;
  --white: #fffdf9;
  --ink: #14212b;
  --ink-2: #4a5761;
  --line: #d4cec2;
  --night: #121f29;
  --night-2: #1d2d38;
  --on-night: #f5f3ee;
  --on-night-2: #b4bec4;
  --brass: #7a5b2e;
  --brass-light: #d4b57b;

  /* Schrift */
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Castoro, Georgia, "Times New Roman", serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --step-3: clamp(1.3rem, 1.05rem + 1.25vw, 2.25rem);
  /* Hero-Titel und Kapiteltitel: Der Einstieg bleibt immer der typografische Höhepunkt. */
  /* Bis 75em gedeckelt, damit die Skala beim Wechsel zum geteilten Einstieg nicht springt. */
  --h1: min(3.4rem, calc((100vw - 2 * var(--pad)) / 9.5));
  --step-display: max(1.5rem, calc(var(--h1) * 0.86));
  --hero-pr: clamp(24px, 3vw, 48px);

  /* Raum */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section: clamp(80px, 10vw, 152px);
  --pad: clamp(20px, 5vw, 72px);
  --container: 1320px;
  --bar-h: 76px;
  --header-h: 77px;

  /* Form */
  --radius: 4px;
  --radius-lg: 10px;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 180ms;
  --base: 320ms;
  --slow: 900ms;
}

/* 2 · Basis --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scroll-padding-bottom: clamp(48px, 12vh, 120px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: manual;
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
p,
dd,
li {
  text-wrap: pretty;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}
.chapter--dark :focus-visible {
  outline-color: var(--brass-light);
}
[tabindex="-1"]:focus {
  outline: 2px solid transparent;
}
::selection {
  background: var(--brass-light);
  color: var(--ink);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--fast) var(--ease);
}
.skip:focus {
  transform: none;
}

/* 3 · Bausteine ----------------------------------------------------------- */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--step-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.section-title {
  font-size: var(--step-3);
  letter-spacing: -0.02em;
}

.button {
  text-wrap: balance;
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bg-hover: #24394a;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0.5em var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--base) var(--ease);
}
@media (hover: hover) {
  .button:hover {
    background: var(--btn-bg-hover);
  }
}
.button:active {
  transform: translateY(1px) scale(0.99);
}
.button--light {
  --btn-bg: var(--on-night);
  --btn-fg: var(--ink);
  --btn-bg-hover: #ffffff;
}
.button--small {
  min-height: 44px;
  padding: 0.4em var(--space-4);
  font-size: 0.9375rem;
}
.button-arrow {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--base) var(--ease);
}
.button:focus-visible .button-arrow {
  transform: translateX(4px);
}
.button:focus-visible .button-arrow--down {
  transform: translateY(3px);
}
@media (hover: hover) {
  .button:hover .button-arrow {
    transform: translateX(4px);
  }
  .button:hover .button-arrow--down {
    transform: translateY(3px);
  }
}
.button-meta {
  white-space: nowrap;
}
.button-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.nav-cta {
  gap: var(--space-2);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--fast) var(--ease);
}
.text-link:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
}

/* 4 · Kopf ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--base) var(--ease),
    box-shadow var(--base) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgb(20 33 43 / 35%);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--bar-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  margin-right: auto;
}
.brand img {
  width: 36px;
  height: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.brand-text small {
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9688rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color var(--fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--base) var(--ease);
}
.nav-link:focus-visible,
.nav-link[aria-current] {
  color: var(--ink);
}
@media (hover: hover) {
  .nav-link:hover {
    color: var(--ink);
  }
  .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.nav-link:focus-visible::after,
.nav-link[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link[aria-current]::after {
  background: var(--brass);
}
.nav-cta {
  min-height: 44px;
  padding: 0.4em var(--space-5);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.header-cta-mobile {
  display: none;
  flex: none;
  white-space: nowrap;
  overflow-wrap: normal;
}

.menu-toggle {
  flex: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-icon {
  position: relative;
  width: 22px;
  height: 12px;
}
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.7px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform var(--base) var(--ease),
    top var(--base) var(--ease);
}
.menu-icon span:first-child {
  top: 0;
}
.menu-icon span:last-child {
  top: 10px;
}
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child {
  top: 5px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

@media (max-width: 59.99em) {
  :root {
    --bar-h: 64px;
    --header-h: 65px;
  }
  /* Ohne JavaScript bleibt die Navigation als Zeile unter dem Logo sichtbar. */
  html:not(.js) .header-bar {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: var(--space-2);
  }
  html:not(.js) .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 var(--space-5);
  }
  /* Ohne JavaScript umbricht der Kopf mehrzeilig; er bleibt deshalb nicht kleben. */
  html:not(.js) .site-header {
    position: static;
  }
  html:not(.js) .nav-cta {
    margin-block: var(--space-2);
  }
  .js .header-cta-mobile {
    display: inline-flex;
  }
  .js .menu-toggle {
    display: inline-flex;
  }
  .js .header-bar {
    gap: var(--space-3);
  }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--pad) var(--space-6);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgb(20 33 43 / 45%);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity var(--base) var(--ease),
      transform var(--base) var(--ease),
      visibility 0s linear var(--base);
  }
  .js .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity var(--base) var(--ease),
      transform var(--base) var(--ease);
  }
  .js .site-header.is-open {
    border-bottom-color: var(--line);
    background: var(--paper);
  }
  .js .nav-link {
    min-height: 60px;
    white-space: normal;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 400;
    color: var(--ink);
  }
  .js .nav-link::after {
    display: none;
  }
  .js .nav-link[aria-current] {
    color: var(--brass);
  }
  .js .nav-link[aria-current]::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--pad));
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: var(--brass);
  }
  .js .nav-cta {
    margin-top: var(--space-5);
    min-height: 52px;
    white-space: normal;
  }
}
@media (max-width: 23.99em) {
  .brand-text small {
    display: none;
  }
}
/* Vergrößerter Seitentext (z. B. Textskalierung auf dem Handy) ändert die Media-Queries nicht.
   Der Kopf misst sich deshalb selbst in em und gibt Platz frei, bevor etwas herausragt. */
.site-header {
  container: kopf / inline-size;
}
@container kopf (max-width: 26em) {
  .brand-text small {
    display: none;
  }
}
@container kopf (max-width: 19.5em) {
  .js .header-cta-mobile {
    display: none;
  }
}

/* 5 · Einstieg ------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--paper);
  container-type: inline-size;
}
.hero-copy {
  padding: clamp(40px, 8vw, 72px) var(--pad) clamp(40px, 7vw, 64px);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: max(1.75rem, min(3.4rem, calc((100cqi - 2 * var(--pad)) / 9.5)));
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: initial;
}
/* Jede Zeile ist ein Block; die Schriftgröße ist so gewählt, dass sie nicht umbricht.
   Bei stark vergrößerter Browserschrift darf sie es trotzdem. */
.hero-title .line {
  display: block;
}
.hero-lead {
  margin-top: var(--space-5);
  max-width: 31em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}
.service-index {
  margin-top: clamp(var(--space-6), 4vw, var(--space-7));
  border-top: 1px solid var(--line);
}
.service-index li {
  border-bottom: 1px solid var(--line);
}
.explore {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  isolation: isolate;
}
.explore::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--space-4));
  z-index: -1;
  border-radius: var(--radius);
  background: var(--sand);
  opacity: 0;
  transition: opacity var(--base) var(--ease);
}
.explore:focus-visible {
  outline: none;
}
.explore:focus-visible::before {
  opacity: 1;
  outline: 2px solid var(--brass);
  outline-offset: 0;
}
.explore-num {
  flex: none;
  align-self: start;
  width: 2.25rem;
  padding-top: 0.2em;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--brass);
}
.explore-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.explore strong {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.explore-text > span {
  color: var(--ink-2);
}
.arrow-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    background-color var(--base) var(--ease),
    border-color var(--base) var(--ease),
    color var(--base) var(--ease);
}
.arrow-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
  transition: transform var(--base) var(--ease);
}
.explore:focus-visible .arrow-badge {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.explore:focus-visible .arrow-badge svg {
  transform: rotate(90deg) translateX(3px);
}
@media (hover: hover) {
  .explore:hover::before {
    opacity: 1;
  }
  .explore:hover .arrow-badge {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
  }
  .explore:hover .arrow-badge svg {
    transform: rotate(90deg) translateX(3px);
  }
}
.hero-media {
  position: relative;
  overflow: hidden;
  background: #0d0f10;
}
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}
.hero-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 58% 50%;
}

/* Geteilter Einstieg erst ab 75em: darunter wäre die Bildspalte so schmal,
   dass das gestickte Zeichen angeschnitten würde. */
@media (min-width: 75em) {
  :root {
    /* Hero-Titel aus der Breite der Textspalte (Spalte 1–6 des Seitenrasters). */
    --gutter: max(var(--pad), (100vw - var(--container)) / 2);
    --h1: min(5.5rem, calc(((100vw - 2 * var(--gutter) + var(--space-5)) / 2 - var(--hero-pr)) / 9.5));
  }
  /* Die Bildkante liegt genau auf der Linie von Spalte 7 (Lead, Karten, Anfrage).
     Die Höhe ist zusätzlich an die Bildbreite gebunden, damit das Zeichen ganz sichtbar bleibt. */
  .hero {
    --g: max(var(--pad), (100% - var(--container)) / 2);
    grid-template-columns: calc(var(--g) + (100% - 2 * var(--g) + var(--space-5)) / 2) minmax(0, 1fr);
    min-height: calc(100svh - var(--header-h));
  }
  /* Das Bild füllt die Spalte, bestimmt aber nicht die Höhe des Einstiegs.
     Sehr breite, flache Fenster erhalten den Querformat-Ausschnitt (siehe <source>). */
  .hero-media picture {
    position: absolute;
    inset: 0;
  }
  .hero-copy {
    display: flex;
    align-items: center;
    padding-inline: 0;
    padding-block: var(--space-8);
  }
  /* Der Text beginnt exakt am Seitenraster, das Bild läuft bis zum Rand. */
  .hero-copy-inner {
    width: 100%;
    margin-left: max(var(--pad), calc((100cqi - var(--container)) / 2));
    padding-right: var(--hero-pr);
  }
  .hero-title {
    font-size: max(
      1.75rem,
      min(
        5.5rem,
        calc(
          ((100cqi - 2 * max(var(--pad), (100cqi - var(--container)) / 2) + var(--space-5)) / 2 - var(--hero-pr)) /
            9.5
        )
      )
    );
  }
  /* Hochformat-Ausschnitt: das gestickte Zeichen sitzt mittig und bleibt vollständig. */
  .hero-media img {
    aspect-ratio: auto;
    object-position: 50% 48%;
  }
}
/* Querformat-Ausschnitt (sehr breite, flache Fenster): Zeichen steht rechts im Motiv. */
@media (min-width: 75em) and (min-aspect-ratio: 21/10) {
  .hero-media img {
    object-position: 100% 50%;
  }
}

/* 6 · Kapitel ------------------------------------------------------------- */
.chapter {
  padding-block: var(--section);
}
.chapter--light {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.chapter--dark {
  background: var(--night);
  color: var(--on-night);
}
.chapter--dark .lead,
.chapter--dark p {
  color: var(--on-night-2);
}
.chapter--sand {
  background: var(--sand);
}
.chapter-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-7), 7vw, var(--space-9));
}
@media (min-width: 60em) {
  .chapter-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: end;
  }
  .chapter-head {
    row-gap: var(--space-6);
  }
  .chapter-head .display {
    grid-column: 1 / -1;
  }
  .chapter-head .lead {
    grid-column: 7 / span 6;
  }
}
.chapter-head > * {
  min-width: 0;
}
/* Kapitelnummer: großes Ziffernbild als redaktioneller Auftakt (rein dekorativ). */
.chapter-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 2rem + 7vw, 8.5rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--brass);
  font-variant-numeric: lining-nums;
}
.chapter--dark .chapter-num {
  color: var(--brass-light);
}
@media (min-width: 60em) {
  .chapter-head .chapter-num {
    grid-column: 1 / -1;
  }
}
.kicker {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brass);
}
.chapter--dark .kicker {
  color: var(--brass-light);
}
/* Stimmungsbilder: volle Inhaltsbreite, ehrlich beschriftet. */
.mood {
  margin-top: clamp(var(--space-7), 6vw, var(--space-9));
}
.mood img {
  width: 100%;
  /* height:auto, sonst gewinnt das height-Attribut gegen das Seitenverhältnis */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--night);
}
@media (min-width: 37.5em) {
  .mood:not(.mood--patrol) img {
    aspect-ratio: 21 / 9;
  }
  .mood--einlass img {
    object-position: center bottom;
  }
}
.mood figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.mood figcaption::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.mood--dark figcaption {
  color: var(--on-night-2);
}
.chapter-cta {
  margin-top: clamp(var(--space-7), 6vw, var(--space-8));
}
/* Lange Handlungsaufforderungen auf schmalen Bildschirmen: volle Breite, ruhiger Umbruch.
   Unter 26em steht nur „Anfrage vorbereiten“; die Leistung bleibt Teil des zugänglichen Namens. */
@media (max-width: 25.99em) {
  .cta-detail {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 37.49em) {
  .chapter-cta .button {
    hyphens: manual;
    text-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    padding-block: 14px;
    line-height: 1.3;
  }
}

/* 7 · Objektbewachung ----------------------------------------------------- */
.mood + .object-grid {
  margin-top: clamp(var(--space-7), 6vw, var(--space-9));
}
.object-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}
.agreements,
.case {
  min-width: 0;
}
@media (min-width: 60em) {
  .object-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: start;
  }
  .agreements {
    grid-column: 1 / span 5;
  }
  .case {
    grid-column: 7 / span 6;
  }
}
.facts {
  margin-top: var(--space-6);
}
.fact {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}
.fact:last-child {
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fact dd {
  max-width: 38em;
  color: var(--ink-2);
}
/* Tablet: Begriff links, Erklärung rechts – kein gestrecktes Mobil-Layout. */
@media (min-width: 37.5em) and (max-width: 59.99em) {
  .fact {
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: var(--space-5);
  }
}

.case {
  container: fall / inline-size;
  --rail: #b9ad97;
  --node: 15px;
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow:
    0 1px 0 rgb(20 33 43 / 4%),
    0 30px 60px -40px rgb(20 33 43 / 30%);
  border: 1px solid #e3ddd1;
}
.case-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brass);
}
.case-kicker::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.case-title {
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.flow {
  margin-top: var(--space-6);
}
.flow-step {
  position: relative;
  padding: 0 0 var(--space-5) calc(var(--node) + var(--space-4));
}
.flow-step::before {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 0.5px);
  top: calc(var(--node) + 4px);
  bottom: 2px;
  width: 1px;
  background: var(--rail);
  transform-origin: top;
}
.flow-node {
  position: absolute;
  left: 0;
  top: 4px;
  width: var(--node);
  height: var(--node);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}
.flow-step strong {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.flow-step p {
  max-width: 34em;
  margin-top: var(--space-1);
  color: var(--ink-2);
  font-size: 0.97rem;
}
/* Gabelung: von der Schiene (Knotenmitte) waagerecht zur Mitte beider Ergebnis-Symbole.
   Symbolmitte = Rahmen 1px + Innenabstand 16px + halbe Symbolbreite 14px. */
.fork {
  --icon-x: 31px;
  position: relative;
  height: 28px;
}
.fork::before,
.fork::after {
  content: "";
  position: absolute;
  border-color: var(--rail);
  border-style: solid;
  border-width: 0;
}
.fork::before {
  left: calc(var(--node) / 2 - 0.5px);
  top: 0;
  width: calc(var(--icon-x) - var(--node) / 2 + 1px);
  height: 15px;
  border-width: 0 0 1px 1px;
  border-bottom-left-radius: 6px;
}
.fork::after {
  left: calc(var(--icon-x) - 0.5px);
  right: calc(50% - var(--space-4) / 2 - var(--icon-x) - 0.5px);
  top: 14px;
  height: 14px;
  border-width: 1px 1px 0 1px;
  border-top-right-radius: 6px;
}
.case-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4) calc(var(--node) + var(--space-4));
}
.case-choice-label {
  flex-basis: 100%;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}
.choice {
  min-height: 40px;
  padding: 0.35em var(--space-4);
  border: 1px solid #b9ad97;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}
@media (hover: hover) {
  .choice:hover {
    border-color: var(--ink);
  }
}
.choice[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.outcome {
  transition:
    opacity var(--base) var(--ease),
    box-shadow var(--base) var(--ease),
    border-color var(--base) var(--ease);
}
.case[data-choice="ja"] .outcome--no,
.case[data-choice="nein"] .outcome--yes {
  opacity: 0.38;
}
.case[data-choice="ja"] .outcome--yes,
.case[data-choice="nein"] .outcome--no {
  border-color: var(--ink);
  box-shadow: 0 12px 28px -18px rgb(20 33 43 / 45%);
}
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.outcome {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid #e3ddd1;
}
.outcome-icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-3);
  padding: 5px;
  border-radius: 50%;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.outcome--yes .outcome-icon {
  background: #dfe8df;
  stroke: #2f5a3c;
}
.outcome--no .outcome-icon {
  background: #efe1d6;
  stroke: #8a3f22;
}
.outcome strong {
  display: block;
  font-weight: 600;
}
.outcome p {
  max-width: 34em;
  margin-top: var(--space-1);
  font-size: 0.97rem;
  color: var(--ink-2);
}
/* Schmale Karte (Handy, 960–1199px): Ergebnisse untereinander, beide hängen an derselben Schiene. */
@container fall (max-width: 30em) {
  .fork {
    --indent: calc(var(--node) + var(--space-4));
    height: 12px;
  }
  .fork::before {
    top: -3px;
    width: 0;
    height: 16px;
    border-width: 0 0 0 1px;
    border-radius: 0;
  }
  .fork::after {
    display: none;
  }
  .outcomes {
    --indent: calc(var(--node) + var(--space-4));
    grid-template-columns: minmax(0, 1fr);
    padding-left: var(--indent);
  }
  .outcome {
    position: relative;
  }
  /* Abzweig: von der Schiene waagerecht zur Symbolmitte (Innenabstand 16px + 14px). */
  .outcome::before,
  .outcome:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--node) / 2 - 0.5px - var(--indent) - 1px);
    border: 0 solid var(--rail);
  }
  .outcome::before {
    top: -1px;
    width: calc(var(--indent) - var(--node) / 2 + 1.5px);
    height: 31px;
    border-width: 0 0 1px 1px;
  }
  .outcome + .outcome::before {
    top: calc(-1px - var(--space-4));
    height: calc(31px + var(--space-4));
  }
  .outcome:last-child::before {
    border-bottom-left-radius: 6px;
  }
  .outcome:not(:last-child)::after {
    top: 30px;
    bottom: -1px;
    border-left-width: 1px;
  }
}

/* 7b · Rundgang (Grundriss) --------------------------------------------- */
/* Der Kontrollgang zeichnet sich beim Scrollen in den Grundriss ein.
   Ohne JavaScript oder bei reduzierter Bewegung ist die Route vollständig sichtbar. */
.patrol {
  --route: 0;
  margin-top: clamp(var(--space-8), 8vw, 160px);
  padding-top: clamp(var(--space-7), 6vw, var(--space-9));
  border-top: 1px solid var(--line);
}
.patrol-intro,
.patrol-copy {
  display: grid;
  gap: var(--space-3);
}
.patrol-note {
  max-width: 34em;
  color: var(--ink-2);
}
.patrol-intro .mood {
  margin-top: var(--space-4);
}
.patrol-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: clamp(var(--space-7), 5vw, var(--space-8));
}
.patrol-plan {
  position: sticky;
  top: var(--header-h);
  z-index: 1;
  padding-block: var(--space-3);
  background: var(--paper);
}
.plan {
  width: 100%;
  height: auto;
  overflow: visible;
}
.plan-site rect,
.plan-site path {
  fill: var(--white);
  stroke: #b9ad97;
  stroke-width: 1.5;
}
.plan-site path {
  fill: color-mix(in srgb, var(--sand) 60%, var(--white));
  stroke-dasharray: 6 5;
}
.plan-rooms path {
  fill: none;
  stroke: #cfc7b7;
  stroke-width: 1.5;
}
.plan-rooms .plan-door {
  stroke: var(--paper);
  stroke-width: 5;
}
.plan-labels text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink-2);
  text-anchor: middle;
}
@media (max-width: 37.49em) {
  .plan-labels text {
    font-size: 26px;
  }
}
.plan-route-track,
.plan-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-route-track {
  stroke: #d9d1c2;
  stroke-width: 2;
  stroke-dasharray: 2 6;
}
.plan-route {
  stroke: var(--brass);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js .patrol[data-live] .plan-route {
  stroke-dashoffset: calc(1 - var(--route));
}
.stop circle {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 1.5;
  transition:
    fill var(--base) var(--ease),
    stroke var(--base) var(--ease);
}
.stop text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  transition: fill var(--base) var(--ease);
}
@media (min-width: 37.5em) {
  .plan-labels text,
  .stop text {
    font-size: 16px;
  }
  .stop text {
    transform: translateY(1px);
  }
}
@media (max-width: 37.49em) {
  .stop circle {
    r: 21px;
  }
  .stop text {
    font-size: 26px;
    transform: translateY(5px);
  }
}
.stop.is-reached circle,
html:not(.js) .stop circle {
  fill: var(--ink);
}
.stop.is-reached text,
html:not(.js) .stop text {
  fill: var(--white);
}
.stops {
  display: grid;
}
.stop-item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  column-gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
  transition: opacity var(--base) var(--ease);
}
.stop-item:last-child {
  border-bottom: 1px solid var(--line);
}
.stop-time {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--brass);
}
.stop-item strong {
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
}
.stop-item p {
  margin-top: var(--space-1);
  color: var(--ink-2);
}
.js .patrol[data-live] .stop-item:not(.is-reached) {
  opacity: 0.9;
}
@media (min-width: 60em) {
  .patrol-intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: start;
  }
  .patrol-copy {
    grid-column: 1 / span 5;
  }
  .patrol-intro .mood {
    grid-column: 7 / span 6;
    margin-top: 0;
  }
  .patrol-body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: start;
  }
  .patrol-aside {
    position: sticky;
    grid-column: 1 / span 7;
    top: calc(var(--header-h) + var(--space-5));
  }
  .patrol-aside .chapter-cta {
    margin-top: var(--space-5);
  }
  .patrol-plan {
    position: static;
    padding: 0;
    background: none;
  }
  .stops {
    grid-column: 9 / span 4;
  }
  /* Genug Scrollweg, damit die Route Station für Station entsteht. */
  .js .patrol[data-live] .stop-item {
    min-height: clamp(8rem, 19vh, 12rem);
    align-content: center;
  }
}
@media (max-width: 59.99em) {
  .patrol-aside {
    display: contents;
  }
  .patrol-aside .chapter-cta {
    order: 1;
    margin-top: 0;
  }
  .patrol-plan {
    border-bottom: 1px solid var(--line);
  }
  .js .patrol[data-live] .stop-item {
    align-content: center;
    min-height: 26vh;
  }
}

/* 8 · Veranstaltungsschutz ------------------------------------------------ */
.chapter--dark .section-title {
  color: var(--on-night);
}
.phases {
  --mark: 15px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
}
/* Zeitachse: grau als Spur, Messing zeichnet sich beim Erscheinen ein. */
.phases::before,
.phases::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--on-night) 22%, transparent);
}
.phases::after {
  background: var(--brass-light);
}
.phase {
  position: relative;
  min-width: 0;
}
.phase-mark {
  position: absolute;
  width: var(--mark);
  height: var(--mark);
  border: 1.5px solid var(--brass-light);
  border-radius: 50%;
  background: var(--night);
  z-index: 1;
  transition:
    background-color var(--base) var(--ease),
    transform var(--base) var(--ease);
}
.chapter--dark .phase-label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brass-light);
}
html:not(.js) .phase-mark {
  background: var(--brass-light);
}
.phase h4 {
  margin-top: var(--space-2);
  font-size: var(--step-1);
  color: var(--on-night);
  letter-spacing: -0.01em;
}
.phase h4 + p {
  margin-top: var(--space-2);
  max-width: 30em;
}

@media (max-width: 74.99em) {
  .phases {
    padding-left: calc(var(--mark) + var(--space-5));
  }
  .phases::before,
  .phases::after {
    left: calc(var(--mark) / 2 - 0.5px);
    top: 6px;
    bottom: var(--rail-end, 6px);
    width: 1px;
  }
  .phases::after {
    transform-origin: top;
  }
  .phase-mark {
    left: calc(-1 * (var(--mark) + var(--space-5)));
    top: 3px;
  }
}
.timeline {
  margin-top: clamp(var(--space-7), 6vw, var(--space-9));
}
.timeline-head .section-title {
  margin-top: var(--space-2);
}
.phase-time {
  font-variant-numeric: tabular-nums;
  color: var(--on-night);
  margin-right: var(--space-1);
}
.timeline-note {
  margin-top: var(--space-6);
  font-size: var(--step--1);
}
/* Mittlere Breiten: Titel links, senkrechte Zeitachse rechts auf der Linie von Spalte 7. */
@media (min-width: 60em) and (max-width: 74.99em) {
  .timeline-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: start;
  }
  .timeline-head {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
  .timeline .phases,
  .timeline-note {
    grid-column: 7 / span 6;
  }
  .timeline .phases {
    margin-top: 0;
  }
}
@media (min-width: 75em) {
  .phase h4 {
    max-inline-size: 15ch;
  }
}
@media (min-width: 75em) {
  .phases {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--space-6);
    padding-top: calc(var(--mark) + var(--space-5));
  }
  .phases::before,
  .phases::after {
    left: 0;
    right: calc((100% - 3 * var(--space-6)) / 4 - var(--mark) / 2);
    top: calc(var(--mark) / 2 - 0.5px);
    height: 1px;
  }
  /* Label, Titel und Text stehen in allen vier Spalten auf gemeinsamen Zeilen. */
  .phases {
    grid-template-rows: repeat(3, auto);
    row-gap: 0;
  }
  .phase {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-content: start;
  }
  .phases::after {
    transform-origin: left;
  }
  .phase-mark {
    top: calc(-1 * (var(--mark) + var(--space-5)));
    left: 0;
  }
}

/* 8b · Zeitachse als Scroll-Szene ---------------------------------------- */
/* Ab 75em und ausreichender Höhe bleibt die Achse stehen, während man scrollt:
   die Linie läuft durch, die aktuelle Phase hebt sich ab, das Licht wechselt in die Nacht. */
@media (min-width: 75em) and (min-height: 44em) and (prefers-reduced-motion: no-preference) {
  .js .timeline[data-live] {
    --p: 0;
    height: 260vh;
  }
  .js .timeline[data-live] .timeline-stage {
    position: sticky;
    top: var(--header-h);
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    background:
      linear-gradient(180deg, rgb(212 181 123 / calc(0.1 * (1 - var(--p)))), transparent 55%);
  }
  .js .timeline[data-live] .timeline-inner {
    width: min(100% - 2 * var(--pad), var(--container));
  }
  .js .timeline[data-live] .phases::after {
    transform: scaleX(var(--p));
    transition: none;
  }
  .js .timeline[data-live] .phase {
    opacity: 0.85;
    transition: opacity var(--base) var(--ease);
  }
  .js .timeline[data-live] .phase.is-current,
  .js .timeline[data-live] .phase.is-past {
    opacity: 1;
  }
  .js .timeline[data-live] .phase.is-past .phase-mark,
  .js .timeline[data-live] .phase.is-current .phase-mark {
    background: var(--brass-light);
  }
  .js .timeline[data-live] .phase.is-current .phase-mark {
    transform: scale(1.35);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brass-light) 22%, transparent);
  }
}

/* 9 · Kontaktangaben im Fuß ---------------------------------------------- */
/* Platzhalter sind als solche erkennbar: gestrichelt unterstrichen. */
.is-placeholder {
  text-decoration: underline dashed color-mix(in srgb, var(--brass-light) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.footer-data {
  display: grid;
  gap: var(--space-3);
}
.footer-data dt {
  font-size: var(--step--1);
  color: var(--on-night-2);
}
.footer-data dd {
  color: var(--on-night);
}
.footer-data-phone dd {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
}
.footer-note {
  margin-top: var(--space-4);
  font-size: var(--step--1);
}

/* 10 · Anhang ------------------------------------------------------------- */
.appendix {
  padding-block: clamp(var(--space-8), 7vw, var(--space-9));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.appendix-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--space-5);
}
.appendix-block {
  min-width: 0;
}
.appendix-title {
  font-size: var(--step-3);
  letter-spacing: -0.02em;
}
.appendix-block {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.appendix-block h3 {
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}
.appendix-block h4 {
  margin-top: var(--space-4);
  font-size: 1rem;
}
.appendix-block p {
  margin-top: var(--space-2);
  max-width: 36em;
  color: var(--ink-2);
}
.appendix-block p strong {
  color: var(--ink);
  font-weight: 600;
}
@media (min-width: 60em) {
  .appendix-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .appendix-title {
    grid-column: 1 / span 4;
  }
  #impressum {
    grid-column: 5 / span 4;
  }
  #datenschutz {
    grid-column: 9 / span 4;
  }
}

/* 11 · Fuß ---------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-8) var(--space-6);
  background: var(--night);
  color: var(--on-night-2);
  font-size: 0.9688rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  color: var(--on-night);
  font-weight: 600;
  font-size: 1.0625rem;
}
.footer-brand img {
  width: 32px;
  height: auto;
  filter: brightness(0) invert(0.94);
}
.footer-about p {
  margin-top: var(--space-2);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10em), max-content));
  gap: var(--space-5) var(--space-7);
}
.footer-nav > div {
  display: grid;
  align-content: start;
}
.footer-heading {
  margin-bottom: var(--space-2);
  line-height: 1.6;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brass-light);
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-night);
  transition: color var(--fast) var(--ease);
}
.footer-nav a:focus-visible {
  color: var(--brass-light);
}
@media (hover: hover) {
  .footer-nav a:hover {
    color: var(--brass-light);
  }
}
.site-footer :focus-visible {
  outline-color: var(--brass-light);
}
.footer-legal {
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--on-night) 14%, transparent);
  font-size: var(--step--1);
}
@media (min-width: 60em) {
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
  }
  .footer-about {
    grid-column: 1 / span 4;
  }
  .footer-contact {
    grid-column: 5 / span 4;
  }
  .footer-nav {
    grid-column: 9 / span 4;
    justify-content: end;
    column-gap: var(--space-7);
  }
  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60em) and (max-width: 74.99em) {
  .footer-about {
    grid-column: 1 / span 6;
  }
  .footer-contact {
    grid-column: 7 / span 6;
  }
  .footer-nav {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

/* 12 · Bewegung ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Einstieg: Zeilen, Text und Bild bauen sich nacheinander auf. */
  .hero-title .line,
  .hero-lead,
  .service-index li {
    animation: rise var(--slow) var(--ease) both;
  }
  .hero-title .line:nth-child(2) {
    animation-delay: 90ms;
  }
  .hero-lead {
    animation-delay: 200ms;
  }
  .service-index li:nth-child(1) {
    animation-delay: 300ms;
  }
  .service-index li:nth-child(2) {
    animation-delay: 380ms;
  }
  .hero-media img {
    animation: unveil 1400ms var(--ease) both;
  }
  /* Text ist ab dem ersten Bild lesbar; er setzt sich nur leicht. */
  @keyframes rise {
    from {
      transform: translateY(14px);
    }
  }
  /* Das Bild ist sofort da und setzt sich aus leichter Nähe zurück. */
  @keyframes unveil {
    from {
      transform: scale(1.06);
      filter: brightness(0.7);
    }
  }
  /* Stimmungsbilder öffnen sich beim Erscheinen von unten nach oben. */
  .js .mood[data-reveal] img {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.04);
    transition:
      clip-path 1200ms var(--ease),
      transform 1600ms var(--ease);
  }
  .js .mood[data-reveal].is-visible img {
    clip-path: inset(0);
    transform: none;
  }

  /* Abschnitte erscheinen beim Scrollen. Ohne JavaScript bleibt alles sichtbar. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity var(--slow) var(--ease),
      transform var(--slow) var(--ease);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  .js .object-grid > [data-reveal]:nth-child(2) {
    transition-delay: 120ms;
  }

  /* Planungsbeispiel: Verbindungslinien zeichnen sich nacheinander. */
  .js .case .flow-step::before {
    transform: scaleY(0);
    transition: transform 600ms var(--ease-in-out);
  }
  .js .case .flow-node,
  .js .case .outcome {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 500ms var(--ease),
      transform 500ms var(--ease);
  }
  .js .case .fork::before,
  .js .case .fork::after {
    opacity: 0;
    transition: opacity 500ms var(--ease);
  }
  .js .case.is-visible .flow-step::before {
    transform: none;
  }
  .js .case.is-visible .flow-node,
  .js .case.is-visible .outcome,
  .js .case.is-visible .fork::before,
  .js .case.is-visible .fork::after {
    opacity: 1;
    transform: none;
  }
  .js .case.is-visible .flow-step:nth-child(1) .flow-node {
    transition-delay: 120ms;
  }
  .js .case.is-visible .flow-step:nth-child(1)::before {
    transition-delay: 220ms;
  }
  .js .case.is-visible .flow-step:nth-child(2) .flow-node {
    transition-delay: 420ms;
  }
  .js .case.is-visible .flow-step:nth-child(2)::before {
    transition-delay: 520ms;
  }
  .js .case.is-visible .fork::before,
  .js .case.is-visible .fork::after {
    transition-delay: 720ms;
  }
  .js .case.is-visible .outcome:nth-child(1) {
    transition-delay: 820ms;
  }
  .js .case.is-visible .outcome:nth-child(2) {
    transition-delay: 900ms;
  }

  /* Zeitachse breit: die Messinglinie läuft gleichmäßig durch, jede Marke füllt sich,
     sobald die Linie sie erreicht (Marken bei 0, ¼, ½, ¾ der Linie). */
  @media (min-width: 75em) {
    .js [data-timeline]:not([data-live]) .phases::after {
      transform: scaleX(0);
      transition: transform 1600ms linear 300ms;
    }
    .js [data-timeline]:not([data-live]).is-visible .phases::after {
      transform: none;
    }
    .js [data-timeline]:not([data-live]).is-visible .phase-mark {
      background: var(--brass-light);
      transform: scale(1.15);
    }
    .js [data-timeline]:not([data-live]) .phase:nth-child(1) .phase-mark {
      transition-delay: 300ms;
    }
    .js [data-timeline]:not([data-live]) .phase:nth-child(2) .phase-mark {
      transition-delay: 700ms;
    }
    .js [data-timeline]:not([data-live]) .phase:nth-child(3) .phase-mark {
      transition-delay: 1100ms;
    }
    .js [data-timeline]:not([data-live]) .phase:nth-child(4) .phase-mark {
      transition-delay: 1500ms;
    }
  }
  /* Zeitachse schmal: jede Phase erscheint einzeln, wenn sie ins Bild kommt. */
  @media (max-width: 74.99em) {
    .js [data-timeline] .phases::after {
      display: none;
    }
    .js [data-timeline] .phase {
      opacity: 0;
      transform: translateY(16px);
      transition:
        opacity 700ms var(--ease),
        transform 700ms var(--ease);
    }
    .js [data-timeline] .phase.is-visible {
      opacity: 1;
      transform: none;
    }
    .js [data-timeline] .phase.is-visible .phase-mark {
      background: var(--brass-light);
      transition-delay: 250ms;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .phase-mark {
    background: var(--brass-light);
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
@media print {
  .site-header,
  .skip,
  .case-choice {
    display: none;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 13 · Große Browserschrift ---------------------------------------------- */
/* Alle Umbruchpunkte sind in em angegeben und folgen damit der eingestellten Grundschrift.
   Lange Wörter trennen an den im Text gesetzten weichen Trennstellen (&shy;). */
@media (max-width: 19.99em) {
  .js .header-cta-mobile {
    display: none;
  }
}
.explore-text {
  grid-template-columns: minmax(0, 1fr);
}
.explore strong,
.footer-brand span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.js .nav-link,
.footer-nav a {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Nur bei sehr großer Grundschrift (unter 20em Breite): automatische Silbentrennung. */
@media (max-width: 19.9em) {
  body {
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
  }
}
/* 14 · Erzwungene Farben (Hochkontrast) ----------------------------------- */
@media (forced-colors: active) {
  .choice[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
  .nav-link[aria-current]::after,
  .phases::before,
  .phases::after {
    background: CanvasText;
  }
  .phase-mark,
  .flow-node {
    forced-color-adjust: none;
    border-color: CanvasText;
  }
  .menu-icon span,
  .case-kicker::before,
  .flow-step::before,
  .js .nav-link[aria-current]::before {
    forced-color-adjust: none;
    background: CanvasText;
  }
  .button {
    border-color: ButtonText;
  }
  .explore:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 3px;
  }
}

/* 15 · Menü (mobil) ------------------------------------------------------- */
/* Menü-Abdunklung (mobil) */
@media (max-width: 59.99em) {
  html.menu-open {
    overflow: hidden;
  }
  .js .site-header::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: -1;
    background: rgb(18 31 41 / 0.32);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--base) var(--ease),
      visibility 0s linear var(--base);
  }
  .js .site-header.is-open::after {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--base) var(--ease);
  }
  /* Ohne JavaScript klebt der Kopf nicht; Sprungziele brauchen dann keinen Versatz. */
  html:not(.js) {
    scroll-padding-top: 0;
  }
}
/* Sehr niedrige Fenster (z. B. 400 % Zoom): Kopf scrollt mit. */
@media (max-height: 30em) {
  /* relativ statt statisch: Der Kopf bleibt über dem Inhalt, das Menü liegt nicht darunter. */
  .site-header {
    position: relative;
  }
  html {
    scroll-padding-top: 0;
  }
  .patrol-aside,
  .js .patrol-plan {
    position: static;
  }
}

/* 16 · Fehlerseite (404) -------------------------------------------------- */
.notfound {
  display: grid;
  align-content: center;
  gap: var(--space-5);
  min-height: 100svh;
  padding-block: var(--space-8);
}
.notfound-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
}
.notfound .button {
  justify-self: start;
}

/* 17 · Vergrößerter Seitentext ohne angepasste Media-Queries --------------- */
/* Misst der Inhalt weniger als 20em, trennen lange Wörter sauber statt mitten im Wort zu brechen. */
main {
  container: inhalt / inline-size;
}
@container inhalt (max-width: 20em) {
  * {
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
  }
}
