/*
  Enis Albay – Field Manual
  Layout: asymmetrisches Raster mit linker Marginalspalte (Kapitel, Randnotizen) und versetzter Inhaltsspalte.
  Helle Kapitel = lesen, dunkle Petrol-Flächen = Systeme. Markergelb ist der einzige Akzent.
*/

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Hell: fast weißer Grund, Text mit hohem Kontrast (Fließtext > 12:1, Sekundärtext > 6:1) */
  --paper: #FAFAF8;
  --paper-2: #F0F1EE;
  --ink: #101214;
  --ink-2: #2D3136;
  --grey: #555B63;
  --rule: #DCDFDA;
  --control-border: #8C9198;
  /* Abschnitte im Wechsel: Weiß und ein ruhiges Hellgrau über die volle Breite */
  --band: #EEF0EB;
  --chapter-rule: transparent;
  --marker: #FFD43B;
  --on-marker: #15171A;
  /* Gelb nur als Fläche/Akzent; Linien und Fokus brauchen auf Weiß mehr Kontrast */
  --accent-line: #D9A300;
  --focus: #101214;
  --btn-bg: #101214;
  --btn-fg: #FAFAF8;
  --btn-hover-bg: #FFD43B;
  --btn-hover-fg: #101214;
  --callout-bg: #FFF5CC;
  --callout-fg: #101214;
  --callout-border: #D9A300;
  --mark-size: 0.36em;
  --mark-pos: 86%;

  --deep: #0E1A1F;
  --deep-2: #16252B;
  --deep-line: #2A3B42;
  --deep-fg: #E6ECEC;
  --deep-muted: #93A6AB;
  --deep-err: #FF9C8C;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --margin-col: 13rem;
  --col-gap: clamp(24px, 4vw, 56px);
  --max: 1320px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121619;
    --paper-2: #181D21;
    --ink: #E7EAE8;
    --ink-2: #C9CFCF;
    --grey: #9AA3A8;
    --rule: #2A3237;
    --mark-size: 0.14em;
    --mark-pos: 100%;
    --deep: #0A1417;
    --deep-2: #12222A;
    --deep-line: #24363D;
    --deep-fg: #E6ECEC;
    --deep-muted: #8EA2A7;
    --deep-err: #FF9C8C;
    --control-border: #2A3237;
    --band: #121619;
    --chapter-rule: #2A3237;
    --accent-line: #FFD43B;
    --focus: #FFD43B;
    --btn-bg: #FFD43B;
    --btn-fg: #15171A;
    --btn-hover-bg: #E7EAE8;
    --btn-hover-fg: #15171A;
    --callout-bg: #FFD43B;
    --callout-fg: #15171A;
    --callout-border: #FFD43B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121619;
  --paper-2: #181D21;
  --ink: #E7EAE8;
  --ink-2: #C9CFCF;
  --grey: #9AA3A8;
  --rule: #2A3237;
  --mark-size: 0.14em;
  --mark-pos: 100%;
  --deep: #0A1417;
  --deep-2: #12222A;
  --deep-line: #24363D;
  --deep-fg: #E6ECEC;
  --deep-muted: #8EA2A7;
  --deep-err: #FF9C8C;
  --control-border: #2A3237;
  --band: #121619;
  --chapter-rule: #2A3237;
  --accent-line: #FFD43B;
  --focus: #FFD43B;
  --btn-bg: #FFD43B;
  --btn-fg: #15171A;
  --btn-hover-bg: #E7EAE8;
  --btn-hover-fg: #15171A;
  --callout-bg: #FFD43B;
  --callout-fg: #15171A;
  --callout-border: #FFD43B;
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--marker); color: var(--on-marker); padding: 10px 14px; font-family: var(--f-display); font-weight: 700; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.wordmark .para { background: var(--marker); color: var(--on-marker); padding: 0 6px; font-weight: 700; }
.chapter-counter { font-family: var(--f-mono); font-size: 12px; color: var(--grey); margin-left: 10px; font-weight: 400; letter-spacing: 0; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { font-family: var(--f-display); font-size: 15px; text-decoration: none; }
.main-nav ul a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.header-tools { display: flex; align-items: center; gap: 10px; }

.toggle-group { display: inline-flex; border: 1px solid var(--control-border); }
.toggle-group button, .icon-btn {
  font-family: var(--f-mono);
  font-size: 12px;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 7px 9px;
  cursor: pointer;
  line-height: 1;
}
.toggle-group button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.icon-btn { border: 1px solid var(--control-border); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; padding: 0; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn .i-sun { display: none; }
.is-dark .icon-btn .i-sun { display: block; }
.is-dark .icon-btn .i-moon { display: none; }

.btn {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  padding: 12px 18px;
  display: inline-block;
  border: 0;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.btn--small { font-size: 14px; padding: 8px 12px; }
.link {
  font-family: var(--f-display);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 6px; }

.menu-btn { display: none; }

/* Aktueller Bereich im Header */
.main-nav ul a.is-current {
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* Dropdown „Schulungen“ */
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a::after { content: "▾"; font-size: 0.75em; margin-left: 5px; color: var(--grey); display: inline-block; transition: transform 160ms ease; }
.main-nav .has-sub:hover > a::after, .main-nav .has-sub:focus-within > a::after { transform: rotate(180deg); }
.subnav-drop { position: absolute; top: 100%; left: -18px; padding-top: 18px; display: none; z-index: 60; }
.main-nav .has-sub:hover .subnav-drop,
.main-nav .has-sub:focus-within .subnav-drop { display: block; }
.main-nav .subnav-drop ul { display: block; min-width: 320px; background: var(--paper); border: 1px solid var(--rule); border-top: 2px solid var(--ink); }
.main-nav .subnav-drop li + li { border-top: 1px solid var(--rule); }
.main-nav .subnav-drop a {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: baseline;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav .subnav-drop a:hover, .main-nav .subnav-drop a:focus-visible { background: var(--marker); color: var(--on-marker); text-decoration: none; }
.main-nav .subnav-drop a.is-current { text-decoration: none; box-shadow: inset 3px 0 0 var(--accent-line); }
.main-nav .subnav-drop a.is-current:hover { box-shadow: none; }
.sd-k { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--grey); }
.subnav-drop a:hover .sd-k { color: var(--on-marker); }

/* Zweite Leiste auf Unterseiten: Abschnitte der aktuellen Seite */
.page-subnav { display: grid; grid-template-rows: 1fr; border-top: 1px solid var(--rule); transition: grid-template-rows 360ms cubic-bezier(.2, .7, .2, 1), border-color 360ms ease; }
.page-subnav.is-closed { grid-template-rows: 0fr; border-top-color: transparent; transition: none; }
.psn-inner { min-height: 0; overflow: hidden; }
.psn-row { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 12px 28px; }
.psn-title { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.psn-k { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--marker); color: var(--on-marker); padding: 2px 6px; }
.page-subnav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.page-subnav ul::-webkit-scrollbar { display: none; }
.page-subnav a { display: block; padding: 12px 10px; font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); text-decoration: none; white-space: nowrap; }
.page-subnav a:hover { color: var(--ink); }
.page-subnav a.is-active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent-line); }
.page-subnav a.psn-cta { color: var(--ink); font-weight: 500; }
.detail .chapter { scroll-margin-top: 120px; }

/* ---------- Kapitelraster ---------- */
.chapter {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, 1fr);
  gap: 24px var(--col-gap);
  scroll-margin-top: 56px;
}
.chapter + .chapter { border-top: 1px solid var(--chapter-rule); }
/* Jeder zweite Abschnitt bekommt eine Fläche, ohne Wrapper: Schatten füllt die volle Breite, clip-path schneidet oben/unten ab */
main > section.chapter:nth-of-type(even) {
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.margin {
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--grey);
  display: grid;
  gap: 18px;
  align-content: start;
}
.margin .num { font-size: 13px; color: var(--ink); font-weight: 500; }
.margin .note { border-top: 1px solid var(--rule); padding-top: 10px; }
.margin .note b { display: block; color: var(--ink); font-weight: 500; }
.body { min-width: 0; }

.kicker {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.h2 {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 18ch;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 56ch; color: var(--ink-2); }
.sub-h {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.sub-p { margin-top: 10px; font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); max-width: 70ch; }

.mark {
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-size: 100% var(--mark-size);
  background-position: 0 var(--mark-pos);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.04em;
}
.hero .mark { animation: sweep 900ms cubic-bezier(.2, .7, .2, 1) 300ms both; }
@keyframes sweep { from { background-size: 0% var(--mark-size); } to { background-size: 100% var(--mark-size); } }

/* ---------- 00 Einstieg ---------- */
.hero { padding-bottom: 0; }
.hero .margin { padding-top: 6px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: none;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  padding-bottom: 0.06em;
}
.hero .kicker { margin-bottom: 26px; }
.hero .sub { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; max-width: 46ch; margin: 40px 0 44px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.hero-topo { grid-column: 1 / -1; margin-top: clamp(48px, 7vw, 96px); scroll-margin-top: 64px; }
.topo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 16px; }
.topo-title { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.topo-head p { font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); }

/* Open-Source-Laufleiste: Werkzeuge wandern von links nach rechts in die Plattform */
.oss { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 80px); }
.oss-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 16px; }
.oss-title { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.oss-title span { background: var(--marker); color: var(--on-marker); padding: 0 0.15em; }
.oss-head p { font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); }
.oss-band { display: flex; align-items: stretch; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.oss-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 88%, transparent 100%);
}
.oss-track { display: flex; width: max-content; animation: oss-flow 38s linear infinite; }
.oss-band:hover .oss-track { animation-play-state: paused; }
@keyframes oss-flow { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.oss-set { list-style: none; margin: 0; padding: 0; display: flex; }
.oss-set li {
  font-family: var(--f-mono);
  font-size: 14px;
  padding: 16px 0 16px 22px;
  white-space: nowrap;
  color: var(--ink);
}
.oss-set li::after { content: "→"; margin-left: 22px; color: var(--grey); }
.oss-target {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--deep);
  color: var(--deep-fg);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.oss-target > span:first-child { color: var(--marker); margin-right: 6px; }

/* ---------- Topologie (immer dunkle Fläche) ---------- */
.topo-wrap { border: 1px solid var(--deep-line); background: var(--deep); color: var(--deep-fg); }
.topo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.topo-scroll svg { display: block; width: 100%; min-width: 760px; height: auto; }
.topo-hint { display: none; font-family: var(--f-mono); font-size: 11.5px; color: var(--deep-muted); padding: 10px 14px 0; }
.topo .edge { stroke: var(--deep-line); stroke-width: 1.4; fill: none; }
.topo .tn { cursor: pointer; outline: none; }
.topo .tn rect { fill: var(--deep-2); stroke: var(--deep-line); stroke-width: 1.2; transition: stroke 140ms ease, fill 140ms ease; }
.topo .tn text { fill: var(--deep-fg); font-family: var(--f-display); font-size: 15px; font-weight: 700; }
.topo .tn text.s { fill: var(--deep-muted); font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; }
.topo .tn:hover rect, .topo .tn:focus-visible rect { stroke: var(--marker); }
.topo .tn.is-active rect { fill: var(--marker); stroke: var(--marker); }
.topo .tn.is-active text, .topo .tn.is-active text.s { fill: #15171A; }
.topo .tn.is-new rect { stroke-dasharray: 5 4; }
.topo .base rect { fill: none; stroke: var(--deep-line); }
.topo .packet { fill: var(--marker); }
.topo-info {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 8px 32px;
  border-top: 1px solid var(--deep-line);
  padding: 20px clamp(16px, 2.5vw, 28px) 24px;
  min-height: 120px;
}
.topo-info .t { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.topo-info .t small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-muted); margin-bottom: 6px; }
.topo-info p { font-size: 1.08rem; line-height: 1.5; max-width: 64ch; }
.topo-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--grey); }
.topo-legend span::before { content: ""; display: inline-block; width: 18px; height: 10px; margin-right: 8px; vertical-align: -1px; border: 1.2px solid var(--grey); }
.topo-legend .lg-new::before { border-style: dashed; }
.topo-legend .lg-active::before { background: var(--marker); border-color: var(--marker); }

/* ---------- 01 Warum ---------- */
.situations { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: sit; border-top: 2px solid var(--ink); }
.situations li {
  counter-increment: sit;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 8px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.situations li::before { content: counter(sit, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; color: var(--grey); }
.situations .q { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: -0.015em; }
.situations .a { font-size: 1.02rem; color: var(--ink-2); }
.situations .a::before { content: "→ "; font-family: var(--f-mono); color: var(--grey); }

/* ---------- 02 Leistungen ---------- */
.services { margin-top: 40px; border-top: 2px solid var(--ink); }
.svc-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 14rem) minmax(0, 1fr) auto;
  gap: 12px 36px;
  align-items: baseline;
  padding: 38px 0;
  border-bottom: 1px solid var(--rule);
}
.svc-n { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1; letter-spacing: -0.03em; color: var(--grey); font-variant-numeric: tabular-nums; }
.svc-row h3 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.svc-body p { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.45; color: var(--ink); max-width: 40ch; }
.svc-body .svc-l { margin-top: 12px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6; color: var(--grey); max-width: none; }
.svc-row .link { white-space: nowrap; font-size: 17px; }

.topics-block { margin-top: clamp(56px, 7vw, 88px); }
.layers { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.layer {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 17rem) minmax(0, 1fr);
  gap: 6px 28px;
  padding: 22px 14px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background-color 160ms ease, color 160ms ease;
}
.layer .n { font-family: var(--f-mono); font-size: 13px; color: var(--grey); }
.layer h4 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.layer h4 small { display: block; font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.layer p { font-size: 1.04rem; color: var(--ink-2); }
.layer:hover { background: var(--marker); color: var(--on-marker); }
.layer:hover .n, .layer:hover h4 small, .layer:hover p { color: var(--on-marker); }

/* ---------- 03 Zusammenarbeit ---------- */
.first-call {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 32px 0 8px;
  padding: 20px 22px;
  background: var(--callout-bg);
  color: var(--callout-fg);
  border-left: 4px solid var(--callout-border);
}
.first-call strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; }
.first-call .mono { font-size: 13px; }
.stairs { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.stairs li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 14rem) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  margin-left: calc(var(--i, 0) * clamp(0px, 3vw, 44px));
  align-items: baseline;
}
.stairs li::before { content: counter(step); font-family: var(--f-mono); font-size: 13px; color: var(--grey); }
.stairs h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.stairs p { color: var(--ink-2); font-size: 1.02rem; }
.stairs .out { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--grey); margin-top: 6px; }

/* ---------- 04 Schulungen ---------- */
.trainings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 2px solid var(--ink); }
.training { padding-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.training:first-child { padding-right: clamp(28px, 5vw, 80px); border-right: 1px solid var(--rule); }
.training + .training { padding-left: clamp(28px, 5vw, 80px); }
.training .roman { font-weight: 400; font-size: clamp(3.5rem, 7vw, 6rem); line-height: 0.8; letter-spacing: -0.02em; color: var(--grey); }
.training h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.training h3 small { display: block; font-size: 0.62em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); margin-top: 6px; }
.training .what { color: var(--ink-2); font-size: 1.06rem; max-width: 46ch; }
.specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 10px; }
.specs span:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--rule); }
.specs span:nth-last-child(2)::after { content: none; }
.specs .price { color: var(--ink); font-weight: 500; flex-basis: 100%; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topics li { padding-left: 24px; position: relative; font-size: 1.02rem; }
/* Einheitliches Aufzählungszeichen für alle Listen: kleine Raute in Akzentfarbe */
.topics li::before,
.dash-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent-line);
  transform: rotate(45deg);
}
.topics li.new::after { content: attr(data-badge); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--marker); color: var(--on-marker); padding: 1px 5px; margin-left: 8px; vertical-align: 2px; }
.training .actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: auto; padding-top: 10px; }
.price-note { margin-top: 28px; font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); max-width: 80ch; }

/* ---------- 05 Über mich ---------- */
.about-intro {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 30ch;
}
.about-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 4vw, 56px); margin-top: 28px; }
.about-text p { font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); }
.about-part { margin-top: clamp(56px, 7vw, 88px); }

.cases { margin-top: 24px; display: grid; border-top: 1px solid var(--rule); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px clamp(24px, 4vw, 56px); padding: 28px 0; border-bottom: 1px solid var(--rule); }
.case h4 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.case h4 small { display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.case .role { margin-top: 12px; font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); }
.case p { font-size: 1.04rem; color: var(--ink-2); }
.case .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 12px; }
.case .tags span { border: 1px solid var(--rule); padding: 3px 8px; }

.principles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); counter-reset: pr; }
.principles li { counter-increment: pr; padding: 22px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 12px; align-content: start; }
.principles li::before { content: counter(pr, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; color: var(--grey); grid-row: span 2; padding-top: 4px; }
.principles h4 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.principles p { color: var(--ink-2); font-size: 1.02rem; }

/* ---------- Dunkle Kapitel ---------- */
.deep { background: var(--deep); color: var(--deep-fg); }
.deep .chapter { border-top: 0; }
.deep .margin { color: var(--deep-muted); }
.deep .margin .num, .deep .margin .note b { color: var(--deep-fg); }
.deep .margin .note { border-color: var(--deep-line); }
.deep .lead { color: var(--deep-muted); }
.deep .btn, .price-block .btn { background: var(--marker); color: var(--on-marker); }
.deep .link { text-decoration-color: var(--marker); }
.deep :focus-visible, .topo-wrap :focus-visible, .price-block :focus-visible { outline-color: var(--marker); }
.deep .btn:hover { background: var(--deep-fg); color: var(--deep); }

/* ---------- 06 Kontakt ---------- */
.contact .h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 14ch; margin-bottom: 36px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.steps-h { margin-top: 36px; font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-muted); }
.steps { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: st; border-top: 1px solid var(--deep-line); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--deep-line); font-size: 1.02rem; }
.steps li::before { content: counter(st); font-family: var(--f-mono); font-size: 13px; color: var(--marker); padding-top: 3px; }

.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-family: var(--f-display); font-size: 14px; font-weight: 600; color: var(--deep-fg); }
.field .opt { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--deep-muted); margin-left: 6px; text-transform: lowercase; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-family: var(--f-body);
  font-size: 1.04rem;
  color: var(--deep-fg);
  background: var(--deep-2);
  border: 1px solid var(--deep-line);
  border-radius: 0;
  padding: 12px 14px;
  line-height: 1.4;
  transition: border-color 140ms ease;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form textarea::placeholder { color: var(--deep-muted); opacity: 0.8; }
.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2393A6AB' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.contact-form option { background: var(--deep-2); color: var(--deep-fg); }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: var(--deep-muted); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--marker); box-shadow: 0 0 0 1px var(--marker); }
.contact-form [aria-invalid="true"] { border-color: var(--deep-err); }
/* Fester Platz für die Fehlermeldung, damit nichts verrutscht */
.err { display: block; font-family: var(--f-mono); font-size: 12px; line-height: 16px; min-height: 16px; color: var(--deep-err); }
.field { gap: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 0.95rem; color: var(--deep-muted); max-width: 60ch; }
.privacy a { color: var(--deep-fg); text-decoration-color: var(--marker); text-underline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { padding: 16px 18px; background: var(--deep-2); border-left: 3px solid var(--marker); font-size: 1.04rem; }
.form-status.is-error { border-left-color: var(--deep-err); }
.form-status strong { display: block; font-family: var(--f-display); font-size: 1.15rem; margin-bottom: 4px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px var(--col-gap);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--grey);
}
.footer-inner p { max-width: 44ch; }
.footer-inner .claim { font-family: var(--f-display); font-size: 15px; color: var(--ink); font-weight: 600; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Detailseiten der Schulungen ---------- */
.hero--detail { padding-bottom: clamp(56px, 8vw, 104px); }
.hero .detail-h1 { font-size: clamp(2.2rem, 5.2vw, 4.8rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; }
@media (max-width: 880px) { .hero .detail-h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: -8px 0 28px; font-family: var(--f-mono); font-size: 13px; color: var(--grey); }
.price-line strong { white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); }
.practice { margin-top: 36px; max-width: 60ch; padding: 14px 18px; border-left: 3px solid var(--accent-line); background: var(--paper-2); font-size: 1rem; color: var(--ink-2); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(28px, 4vw, 64px); margin-top: 28px; align-items: start; }
.prose p, .prose-p { font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); }
.prose p + p { margin-top: 16px; }
.mini-h { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dash-list li { padding-left: 24px; position: relative; font-size: 1.06rem; }

.not-for { padding: 18px 20px; border: 1px solid var(--rule); }
.not-for p { color: var(--ink-2); font-size: 1.02rem; }
.sub-block { margin-top: clamp(56px, 7vw, 88px); }
.sub-block > .two-col { margin-top: 20px; }
.fine { margin-top: 22px; font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); max-width: 80ch; }

.goals { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: g; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.goals li { counter-increment: g; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; line-height: 1.35; letter-spacing: -0.01em; }
.goals li::before { content: counter(g, decimal-leading-zero); font-family: var(--f-mono); font-weight: 400; font-size: 13px; color: var(--grey); padding-top: 3px; }

.day + .day { margin-top: clamp(40px, 5vw, 64px); }
.day-head h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 28px 0 14px; }
.timetable { border-top: 2px solid var(--ink); }
.tt-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 7.5rem; gap: 6px 22px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.tt-row time { font-family: var(--f-mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tt-row h4 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.tt-row p { font-size: 1.02rem; color: var(--ink-2); }
.tt-row .fmt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); text-align: right; }
.tt-row .fmt.lab span { background: var(--marker); color: var(--on-marker); padding: 2px 6px; }
.tt-row.pause h4 { font-weight: 500; color: var(--grey); margin: 0; }

.labs { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: lab; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.labs li { counter-increment: lab; padding: 18px 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.labs li::before { content: "Lab " counter(lab); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.labs b { font-family: var(--f-display); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.labs span { color: var(--ink-2); font-size: 1rem; }

.frame-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 64px); margin-top: 32px; align-items: start; }
.facts-table { margin: 0; border-top: 2px solid var(--ink); }
.facts-table > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts-table dt { font-family: var(--f-mono); font-size: 12.5px; color: var(--grey); padding-top: 3px; }
.facts-table dd { margin: 0; font-size: 1.04rem; }
.price-block { background: var(--deep); color: var(--deep-fg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 10px; align-content: start; }
.price-block .amount { white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.8rem); letter-spacing: -0.045em; line-height: 0.9; color: var(--marker); }
.price-block .unit { font-family: var(--f-mono); font-size: 12.5px; color: var(--deep-muted); margin-bottom: 10px; }
.price-block .mini-h { color: var(--deep-muted); margin: 10px 0 0; }
.price-block p { font-size: 1.02rem; }
.price-block .btn { justify-self: start; margin-top: 14px; }
.price-block .btn:hover { background: var(--deep-fg); color: var(--deep); }

.faq { margin-top: 32px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; font-size: 20px; text-align: right; color: var(--grey); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.faq details p { padding: 0 3rem 22px 0; font-size: 1.06rem; color: var(--ink-2); max-width: 70ch; }

.next { display: grid; gap: 6px; margin-top: clamp(48px, 6vw, 72px); padding: 22px 24px; border: 1px solid var(--rule); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.next-k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.next-t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.next:hover { background: var(--marker); color: var(--on-marker); }
.next:hover .next-k { color: var(--on-marker); }

@media (max-width: 880px) {
  .goals { grid-template-columns: minmax(0, 1fr); }
  .facts-table > div { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 1.05rem; }
.legal .todo { background: var(--marker); color: var(--on-marker); padding: 14px 16px; font-family: var(--f-mono); font-size: 13px; margin-bottom: 28px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .mark { animation: none; }
  .layer, .btn, .topo .tn rect { transition: none; }
  .topo .packet { display: none; }
  .oss-track { animation: none; width: auto; }
  .oss-viewport { -webkit-mask-image: none; mask-image: none; }
  .oss-set { flex-wrap: wrap; }
  .oss-set[aria-hidden="true"] { display: none; }
}

/* ---------- Navigation: Menü-Button, sobald fünf Punkte nicht mehr passen ---------- */
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; display: none; flex-direction: column; align-items: stretch; gap: 10px; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 600; }
  .main-nav .btn { text-align: center; }
  /* Im Menü stehen die Unterseiten fest eingerückt unter „Schulungen“ */
  .main-nav .has-sub > a::after { display: none; }
  .subnav-drop { position: static; display: block; padding: 0; }
  .main-nav .subnav-drop ul { min-width: 0; background: transparent; border: 0; }
  .main-nav .subnav-drop li + li { border-top: 0; }
  .main-nav .subnav-drop a { padding: 10px 0 10px 16px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--rule); white-space: normal; grid-template-columns: 2.75rem minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .psn-title { display: none; }
  .page-subnav ul { margin-left: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-subnav, .main-nav .has-sub > a::after { transition: none; }
}

/* ---------- Schmal ---------- */
@media (max-width: 1020px) {
  :root { --margin-col: 10rem; }
  .main-nav ul { gap: 16px; }
}
@media (max-width: 880px) {
  body { font-size: 17px; }
  h1, h2, h3, h4 { hyphens: auto; -webkit-hyphens: auto; }
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .margin { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px 20px; }
  .margin .num { grid-column: 1 / -1; }
  .hero .margin { order: 2; }
  .hero .hero-topo { order: 3; }
  .hero .oss { order: 4; }
  .situations li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .situations .a { grid-column: 2; }
  .svc-row { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 28px 0; }
  .svc-row .svc-body, .svc-row .link { grid-column: 2; }
  .oss-target { padding: 0 12px; font-size: 13px; }
  .two-col, .frame-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-row { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .tt-row .fmt { grid-column: 2; text-align: left; }
  .layer { grid-template-columns: 2.5rem minmax(0, 1fr); padding-inline: 8px; }
  .layer p { grid-column: 2; }
  .stairs li { grid-template-columns: 2rem minmax(0, 1fr); margin-left: calc(var(--i, 0) * 10px); }
  .stairs p { grid-column: 2; }
  .trainings { grid-template-columns: minmax(0, 1fr); }
  .training:first-child { padding-right: 0; border-right: 0; padding-bottom: 40px; }
  .training + .training { padding-left: 0; border-top: 1px solid var(--rule); }
  .about-text { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .field-row, .field-row--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .topo-hint { display: block; }
  .topo-info { grid-template-columns: minmax(0, 1fr); }
  .chapter-counter { display: none; }
}
@media (max-width: 420px) {
  .header-tools .toggle-group button { padding: 7px 7px; }
  .wordmark { font-size: 17px; }
}

/* ---------- Impressum ---------- */
.legal-page .h2 { margin-bottom: 32px; }
.legal-facts { max-width: 820px; }
.legal-facts dd { line-height: 1.6; }
/* Platzhalter, die vor Veröffentlichung ersetzt werden müssen */
.ph { background: var(--callout-bg); color: var(--callout-fg); box-shadow: inset 0 -2px 0 var(--callout-border); padding: 0 4px; font-family: var(--f-mono); font-size: 0.9em; }

/* ---------- Datenschutzerklärung ---------- */
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 56px 0 14px; padding-top: 18px; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.legal-doc h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.legal-doc p { font-size: 1.04rem; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.legal-doc p + p, .legal-doc p + .dash-list, .legal-doc .dash-list + p { margin-top: 12px; }
.legal-doc .dash-list { margin-top: 12px; gap: 8px; }
.legal-doc .dash-list li { font-size: 1.02rem; }
.legal-doc .lead { margin-bottom: 32px; color: var(--ink-2); }
.legal-doc .address { padding: 14px 18px; border-left: 3px solid var(--accent-line); background: var(--paper-2); }
.toc { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 16px 0; }
.toc ol { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 40px; font-family: var(--f-mono); font-size: 13px; line-height: 2; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.legal-table th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); padding: 10px 16px 10px 0; border-bottom: 2px solid var(--ink); }
.legal-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.legal-table td:first-child { font-weight: 600; color: var(--ink); width: 38%; }
.notice { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--accent-line); }
@media (max-width: 700px) { .toc ol { columns: 1; } }
.legal-doc h3 { margin-top: 28px; }
