/* ==========================================================================
   IT-Basischeck – Designsystem
   Papier, Tinte, Bauzaun-Orange. Archivo (variabel, schmal für Titel),
   IBM Plex Mono für Kennungen, Zahlen und Metadaten.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f1ec;
  --paper-2: #e8e6df;
  --ink: #15181b;
  --ink-2: #41474e;
  --ink-3: #636a72;
  --rule: #c8c5bb;
  --signal: #e4561b;      /* Grafik, Flächen, große Elemente */
  --signal-ink: #a63c0c;  /* Text auf Papier (Kontrast > 5:1) */
  --night: #111417;
  --night-2: #1c2025;
  --night-rule: #343a41;
  --night-text: #e9e7e1;
  --night-muted: #a7adb4;
  --signal-on-night: #ff7a3d;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --section: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--signal-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1.02; letter-spacing: -0.01em; }
strong { font-weight: 650; }
abbr { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--signal-ink);
  outline-offset: 3px;
}
.on-night :focus-visible, .footer :focus-visible { outline-color: var(--signal-on-night); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem;
  font-family: var(--mono); font-size: .875rem; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Kennungen / Mono ---------- */
.mono, .label, .kicker { font-family: var(--mono); }
.label {
  font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
}
.kicker {
  display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap;
  font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 1.5rem;
}
.kicker .no { color: var(--signal-ink); }
.kicker .no::after { content: " /"; color: var(--rule); }

/* ---------- Regionsleiste + Kopf ---------- */
.regionbar {
  background: var(--ink); color: var(--night-text);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
}
.regionbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.regionbar .tick { color: var(--signal-on-night); }
@media (max-width: 640px) { .regionbar .hide-sm { display: none; } }

.masthead { border-bottom: 1px solid var(--ink); background: var(--paper); }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; padding-block: .75rem; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-stretch: 80%; font-size: 1.25rem; letter-spacing: .01em; }
.brand__sub { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: .2rem; }

.nav ul { list-style: none; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: .55rem .8rem; text-decoration: none;
  font-family: var(--mono); font-size: .82rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 3px solid var(--signal); }
.nav .nav__cta { background: var(--ink); color: var(--paper); margin-left: .5rem; }
.nav .nav__cta:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
@media (max-width: 860px) {
  .masthead__bar { padding-bottom: .25rem; }
  .nav { width: 100%; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) .6rem; }
  .nav ul { flex-wrap: nowrap; }
  .nav a { padding: .5rem .6rem; font-size: .78rem; white-space: nowrap; }
  .nav .nav__cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav { overflow: visible; margin: 0; padding: 0 0 .5rem; }
  .nav ul { justify-content: space-between; gap: 0; }
  .nav li:last-child { display: none; }
  .nav a { padding: .5rem .35rem; font-size: .74rem; }
  .portrait { max-width: 15rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .95rem 1.3rem; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: .88rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2;
  background: var(--ink); color: var(--paper);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { width: 1.1em; height: 1.1em; }
.on-night .btn { background: var(--signal-on-night); border-color: var(--signal-on-night); color: var(--ink); }
.on-night .btn:hover { background: var(--night-text); border-color: var(--night-text); }
.on-night .btn--ghost { background: transparent; color: var(--night-text); border-color: var(--night-text); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section); border-bottom: 1px solid var(--ink); }
.section--tight { padding-block: calc(var(--section) * .6); }
.on-night { background: var(--night); color: var(--night-text); }
.on-night .label, .on-night .kicker { color: var(--night-muted); }
.on-night .kicker .no { color: var(--signal-on-night); }
.on-night a:hover { color: var(--signal-on-night); }
.on-paper-2 { background: var(--paper-2); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: 1 / -1; }
.start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }
@media (max-width: 960px) {
  .grid > * { grid-column: 1 / -1 !important; }
}

.h-display {
  font-stretch: 72%; font-weight: 800;
  font-size: clamp(2.9rem, 7.4vw, 7.25rem);
  line-height: .93; letter-spacing: -0.015em;
}
.h-section {
  font-stretch: 75%; font-weight: 780;
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  line-height: .98;
}
.h-sub { font-stretch: 85%; font-weight: 720; font-size: clamp(1.35rem, 1.6vw, 1.6rem); line-height: 1.12; }
.lead { font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 38em; }
.on-night .lead { color: var(--night-muted); }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.mark { color: var(--signal-ink); }
.on-night .mark { color: var(--signal-on-night); }
.prose { max-width: 40em; }
.prose p + h3 { margin-top: 2rem; }
.prose h3 { margin-bottom: .6rem; }

.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-bottom: clamp(2rem, 5vw, 4rem); align-items: end; }
.section-head > :first-child { grid-column: span 7; }
.section-head > :last-child:not(:first-child) { grid-column: 9 / span 4; }
@media (max-width: 960px) { .section-head > * { grid-column: 1 / -1 !important; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6.5rem); border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.hero__title { grid-column: 1 / span 8; }
.hero__aside { grid-column: 9 / span 4; padding-bottom: .4rem; }
.hero__title .h-display .hl { color: var(--signal-ink); }
.hero__aside .lead { font-size: 1.15rem; margin-bottom: 1.75rem; }
@media (max-width: 1100px) {
  .hero__title, .hero__aside { grid-column: 1 / -1; }
  .hero__aside { max-width: 40rem; }
}
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
}
.facts > div { padding: 1rem 1.25rem 1.1rem 0; border-right: 1px solid var(--rule); }
.facts > div + div { padding-left: 1.25rem; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: .3rem 0 0; font-weight: 650; font-stretch: 90%; font-size: 1.1rem; line-height: 1.3; }
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: .9rem 0; border-right: 0; border-bottom: 1px solid var(--rule); }
}

.figure-fence { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.figure-fence svg { width: 100%; height: auto; }
.figure-fence figcaption, .fig-caption {
  font-family: var(--mono); font-size: .78rem; color: var(--ink-2); line-height: 1.5;
  border-top: 1px solid var(--ink); padding: .8rem 0 1.4rem; display: flex; gap: 1rem;
}
.fig-caption b, .figure-fence figcaption b { font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (max-width: 700px) {
  .figure-fence svg { height: 230px; width: auto; max-width: none; margin-left: 50%; transform: translateX(-50%); }
  .figure-fence { overflow: hidden; }
}

/* ---------- Angriffs-Log ---------- */
.log {
  background: var(--night); color: var(--night-text);
  font-family: var(--mono); font-size: .86rem; line-height: 1.5;
  border: 1px solid var(--ink);
}
.log__head { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--night-rule); color: var(--night-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.log ol { list-style: none; }
.log li { display: grid; grid-template-columns: 4.2rem 7.5rem 1fr; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--night-rule); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--night-muted); }
.log .tag { color: var(--signal-on-night); }
.log__foot { padding: .7rem 1rem; color: var(--night-muted); font-size: .74rem; border-top: 1px solid var(--night-rule); }
@media (max-width: 560px) {
  .log li { grid-template-columns: 3.6rem 1fr; }
  .log li span:last-child { grid-column: 1 / -1; }
}

/* ---------- Artefakte (Bericht / Checkliste) ---------- */
.artifacts { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 960px) { .artifacts { grid-template-columns: 1fr; } }
.sheet {
  background: #fbfaf7; border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: .95rem;
}
.sheet__head { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.sheet__title { padding: 1.1rem 1.1rem .4rem; }
.sheet__title h3 { font-stretch: 80%; font-size: 1.6rem; }
.sheet__title p { color: var(--ink-2); font-size: .92rem; margin: .4rem 0 0; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sheet th, .sheet td { text-align: left; padding: .55rem 1.1rem; border-top: 1px solid var(--rule); vertical-align: top; }
.sheet thead th { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-top: 1px solid var(--ink); }
.sheet td.n { font-family: var(--mono); color: var(--ink-3); width: 3rem; }
.state { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .78rem; white-space: nowrap; }
.state::before { content: ""; width: .7rem; height: .7rem; border: 1.5px solid var(--ink); flex: none; }
.state--ok::before { background: var(--ink); }
.state--part::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.state--open::before { border-color: var(--signal); background: repeating-linear-gradient(45deg, var(--signal) 0 1.5px, transparent 1.5px 4px); }
.sheet__foot { padding: .8rem 1.1rem; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.checklist { list-style: none; }
.checklist li { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .7rem; align-items: start; padding: .7rem 1.1rem; border-top: 1px solid var(--rule); }
.checklist .box { width: 1rem; height: 1rem; border: 1.5px solid var(--ink); margin-top: .2rem; }
.checklist .box.is-done { background: var(--ink); box-shadow: inset 0 0 0 2px #fbfaf7; }
.prio { font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .4rem; border: 1px solid var(--ink); white-space: nowrap; margin-top: .1rem; }
.prio--now { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.artifact-note { margin-top: 1rem; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }

/* ---------- Prüffelder-Index ---------- */
.fields { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); border-top: 1px solid var(--ink); }
.fields li { display: grid; grid-template-columns: 3rem 2.25rem 1fr; gap: 1rem; align-items: start; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.fields .n { font-family: var(--mono); font-size: .85rem; color: var(--signal-ink); padding-top: .25rem; }
.fields .ico { width: 2rem; height: 2rem; color: var(--ink); }
.fields h3 { font-stretch: 88%; font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }
.fields p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 860px) { .fields { grid-template-columns: 1fr; } }

/* Detail-Prüffelder (Angebot) */
.field-detail { border-top: 1px solid var(--ink); }
.field-row { display: grid; grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3.2fr); gap: var(--gap); padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.field-row .n { font-family: var(--mono); font-size: 2.4rem; font-weight: 400; line-height: 1; color: var(--signal-ink); letter-spacing: -.03em; }
.field-row .ico { width: 2.25rem; height: 2.25rem; margin-bottom: .8rem; }
.field-row h3 { font-stretch: 82%; font-size: 1.5rem; margin-bottom: .45rem; }
.field-row .q { color: var(--ink-2); margin: 0; }
.field-row ul { list-style: none; }
.field-row ul li { position: relative; padding-left: 1.3rem; margin-bottom: .35rem; font-size: .98rem; }
.field-row ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .65rem; height: 1px; background: var(--ink); }
.field-row .todo { border-left: 3px solid var(--signal); padding: .1rem 0 .1rem 1rem; font-size: .95rem; }
.field-row .todo .label { display: block; margin-bottom: .3rem; }
@media (max-width: 1100px) {
  .field-row { grid-template-columns: 4rem 1fr 1fr; }
  .field-row .todo { grid-column: 2 / -1; }
}
@media (max-width: 700px) {
  .field-row { grid-template-columns: 1fr; gap: .9rem; }
  .field-row .todo { grid-column: auto; }
  .field-row .n { font-size: 1.6rem; }
}

/* ---------- Abgrenzung ---------- */
.notlist { list-style: none; border-top: 1px solid var(--night-rule); }
.notlist li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); padding: 1.6rem 0; border-bottom: 1px solid var(--night-rule); align-items: center; }
.notlist .word { font-stretch: 70%; font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: 1.05; display: flex; gap: .3em; align-items: center; }
.notlist .word .k { font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-on-night); width: 3.2rem; flex: none; }
.notlist .word s { text-decoration-thickness: .08em; text-decoration-color: var(--signal-on-night); }
.notlist p { margin: 0; color: var(--night-muted); }
.notlist p strong { color: var(--night-text); }
@media (max-width: 760px) { .notlist li { grid-template-columns: 1fr; gap: .6rem; } }
.notlist--paper { border-top-color: var(--ink); }
.notlist--paper li { border-bottom-color: var(--rule); }
.notlist--paper .word { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.notlist--paper .word .k { color: var(--signal-ink); }
.notlist--paper .word s { text-decoration-color: var(--signal); }
.notlist--paper p { color: var(--ink-2); }
.notlist--paper p strong { color: var(--ink); }

/* ---------- Ablauf-Strecke ---------- */
.route { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.route li { position: relative; padding: 3.1rem 1.5rem 0 0; }
.route li::before { content: ""; position: absolute; left: 0; right: 0; top: .9rem; height: 2px; background: var(--ink); }
.route li:last-child::before { background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); }
.route li::after { content: ""; position: absolute; left: 0; top: .35rem; width: 1.15rem; height: 1.15rem; background: var(--paper); border: 2px solid var(--ink); }
.route li.is-free::after { background: var(--signal); border-color: var(--signal); }
.route .n { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-ink); display: block; margin-bottom: .5rem; }
.route h3 { font-stretch: 85%; font-size: 1.35rem; margin-bottom: .5rem; }
.route p { color: var(--ink-2); font-size: .97rem; }
.route .meta { font-family: var(--mono); font-size: .76rem; color: var(--ink); border-top: 1px solid var(--rule); padding-top: .6rem; margin-top: .8rem; }
.on-paper-2 .route li::after { background: var(--paper-2); }
.on-paper-2 .route li.is-free::after { background: var(--signal); }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; }
  .route li { padding: 0 0 2rem 2.6rem; }
  .route li::before { left: .5rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .route li:last-child::before { background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 14px); }
  .route li::after { top: 0; }
}

/* ---------- Region ---------- */
.region-map { border: 1px solid var(--ink); background: #fbfaf7; }
.region-map svg { width: 100%; height: auto; }
.region-map .fig-caption { padding: .7rem 1rem; }
.towns { list-style: none; columns: 2; column-gap: var(--gap); margin-top: 1.5rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.towns li { font-family: var(--mono); font-size: .85rem; padding: .3rem 0; break-inside: avoid; display: flex; justify-content: space-between; border-bottom: 1px dotted var(--rule); }
.towns li span:last-child { color: var(--ink-2); }

/* ---------- Person ---------- */
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } }
.portrait { width: 100%; border: 1px solid var(--ink); background: var(--paper-2); aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center; max-width: 26rem; }
.portrait svg { width: 70%; }
.portrait .ph { position: absolute; left: 0; right: 0; bottom: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: .55rem .8rem; border-top: 1px solid var(--ink); background: #fbfaf7; display: flex; justify-content: space-between; }
.cv { list-style: none; border-top: 1px solid var(--ink); margin-top: 2rem; }
.cv li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.cv .when { font-family: var(--mono); font-size: .85rem; color: var(--signal-ink); padding-top: .15rem; }
.cv h3 { font-stretch: 90%; font-size: 1.12rem; font-weight: 700; margin-bottom: .2rem; }
.cv p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 560px) { .cv li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Kontakt-Ledger ---------- */
.ledger { list-style: none; border-top: 1px solid currentColor; }
.ledger > li { display: grid; grid-template-columns: 3rem minmax(0, 3fr) minmax(0, 5fr) 8.5rem; gap: var(--gap); align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--night-rule); }
.ledger .ico { width: 2rem; height: 2rem; }
.ledger > li > .placeholder-tag { justify-self: end; }
.ledger h3 { font-stretch: 85%; font-size: 1.45rem; }
.ledger p { margin: 0; }
.ledger .val { font-family: var(--mono); font-size: 1rem; }
.ledger .val a { text-decoration: none; border-bottom: 1px solid currentColor; }
.ledger .sub { color: var(--night-muted); font-size: .92rem; margin-top: .25rem; }
:not(.on-night) > .ledger > li, .ledger--paper > li { border-bottom-color: var(--rule); }
.ledger--paper .sub { color: var(--ink-2); }
@media (max-width: 860px) {
  .ledger > li { grid-template-columns: 2.5rem 1fr; }
  .ledger > li > :nth-child(n+3) { grid-column: 2 / -1; }
}
.placeholder-tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .45rem; border: 1px dashed currentColor; color: var(--signal-ink); vertical-align: middle;
}
.on-night .placeholder-tag { color: var(--signal-on-night); }
.booking {
  border: 2px dashed var(--signal); padding: clamp(1.25rem, 3vw, 2rem);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(228, 86, 27, .06) 14px 16px);
}
.booking h3 { font-stretch: 82%; font-size: 1.6rem; margin: .8rem 0 .5rem; }
.booking .slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin: 1.25rem 0; }
.booking .slots span { border: 1px solid var(--rule); background: var(--paper); font-family: var(--mono); font-size: .8rem; padding: .6rem .4rem; text-align: center; color: var(--ink-3); }
@media (max-width: 560px) { .booking .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .booking .slots span:nth-child(n+7) { display: none; } }

/* ---------- Datenblatt ---------- */
.spec { border-top: 1px solid var(--ink); margin: 0; }
.spec > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--gap); padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-top: .2rem; }
.spec dd { margin: 0; font-size: 1.05rem; }
.spec dd .muted { display: block; font-size: .92rem; }
@media (max-width: 560px) { .spec > div { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- Seitenkopf Unterseiten ---------- */
.pagehead { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--ink); }
.pagehead .h-display { font-size: clamp(2.7rem, 6.4vw, 6rem); max-width: 14ch; }
.pagehead .lead { margin-top: 1.5rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1.5rem; gap: 1rem; padding: 1.15rem 0; font-weight: 680; font-stretch: 90%; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 1.3rem; line-height: 1; text-align: right; color: var(--signal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 3rem 1.25rem 0; color: var(--ink-2); max-width: 46em; }

/* ---------- Rechtliches ---------- */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal .h-section { margin-bottom: 1.5rem; }
.notice {
  border: 2px dashed var(--signal); padding: 1.25rem 1.4rem; margin: 2rem 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(228, 86, 27, .06) 14px 16px);
  max-width: 46rem;
}
.notice p:last-child { margin-bottom: 0; }
.legal dl { border-top: 1px solid var(--ink); max-width: 46rem; margin: 0; }
.legal dl > div { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.legal dt { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding-top: .15rem; }
.legal dd { margin: 0; }
.legal h2 { font-stretch: 85%; font-size: 1.4rem; margin: 2.5rem 0 .8rem; }
.legal ol, .legal ul.list { padding-left: 1.2rem; max-width: 46rem; }
.legal li { margin-bottom: .45rem; }
.tbd { font-family: var(--mono); font-size: .9em; color: var(--signal-ink); }
@media (max-width: 560px) { .legal dl > div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Abschluss-CTA ---------- */
.closer { padding-block: clamp(3.5rem, 7vw, 6rem); }
.closer .h-section { max-width: 16ch; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--night-text); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: var(--gap); padding-bottom: 3rem; }
.footer .brand__sub { color: var(--night-muted); }
.footer p { color: var(--night-muted); max-width: 26rem; margin-top: 1rem; font-size: .95rem; }
.footer h2 { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted); margin-bottom: .9rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .45rem; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--signal-on-night); text-decoration: underline; }
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1px solid var(--night-rule); }
.footer__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.1rem 1.5rem; font-family: var(--mono); font-size: .74rem; color: var(--night-muted); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .attack { stroke-dasharray: 4 6; animation: probe 2.4s linear infinite; }
  @keyframes probe { to { stroke-dashoffset: -40; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .regionbar, .nav, .footer, .skip { display: none; }
  body { background: #fff; }
}

/* Kontakt-Seite: Ledger ohne Statusspalte */
.ledger--paper > li { grid-template-columns: 3rem minmax(0, 2fr) minmax(0, 5fr); }
@media (max-width: 860px) { .ledger--paper > li { grid-template-columns: 2.5rem 1fr; } }
