/*
  Abschlusswerkstatt
  Gestaltung: Schwarz, Graphit und Papierweiß. Eine schmale Menüzeile, große Typografie,
  Kacheln im Raster. Einziges auffälliges Element ist der Buchungssatz im Kopf der Startseite.
  Zustände werden über die Form angezeigt (gefüllter oder leerer Punkt), nicht über Farbe.
*/

@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/host-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --graphite: #161615;
  --graphite-2: #242422;
  --lead: #64625e;
  --pencil: #9a9893;
  --paper: #f1efe9;
  --font: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 48px;
  --wide: 1024px;
  --read: 640px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--paper); color: var(--black);
  padding: 10px 16px; border-radius: 8px; font-size: 15px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Menüzeile ---------- */

.gn { position: relative; z-index: 100; background: var(--black); transition: background-color .24s ease; }
.gn.has-open { background: var(--graphite); }
.gn-bar {
  max-width: var(--wide); height: var(--nav-h); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gn-brand {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  color: var(--paper); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.012em;
}
.gn-logo { display: block; width: auto; height: 17px; transform: translateY(1px); }
.gn-list { display: flex; align-items: center; gap: clamp(22px, 3.6vw, 44px); list-style: none; margin: 0; padding: 0; }
.gn-item { display: flex; align-items: center; }
.gn-link {
  display: block; padding: 14px 0;
  color: #d4d2cc; font-size: 13px; letter-spacing: -0.005em; text-decoration: none;
  transition: color .2s ease;
}
.gn-link:hover, .gn-link[aria-current], .gn-item.is-open > .gn-link { color: var(--paper); }
.gn-link[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--lead); }
.gn-open {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; opacity: 0;
  background: none; border: 0; color: var(--paper); cursor: pointer;
}
.gn-open:focus-visible { width: 22px; height: 22px; margin-left: 2px; opacity: 1; }
.gn-open svg { transition: transform .2s ease; }
.gn-item.is-open .gn-open svg { transform: rotate(180deg); }
.gn-mail { display: inline-flex; padding: 8px; margin-right: -8px; color: #d4d2cc; transition: color .2s ease; }
.gn-mail:hover { color: var(--paper); }
.gn-burger { display: none; }

.gn-fly {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: var(--graphite);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.gn-item.is-open .gn-fly,
html:not(.js) .gn-has:hover .gn-fly,
html:not(.js) .gn-has:focus-within .gn-fly {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .26s ease, transform .26s ease, visibility 0s;
}
.gn-fly-in {
  max-width: var(--wide); margin: 0 auto; padding: 34px 22px 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
}
.gn-fly-h { margin: 0 0 14px; font-size: 13px; color: var(--pencil); }
.gn-fly-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gn-fly-big a {
  font-size: 24px; font-weight: 600; line-height: 1.17; letter-spacing: -0.022em;
  color: var(--paper); text-decoration: none;
}
.gn-fly-big a:hover, .gn-fly-big a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.gn-fly-text { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--pencil); }

.gn-curtain {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility 0s linear .24s;
}
.gn-curtain.is-on { opacity: 1; visibility: visible; transition: opacity .24s ease, visibility 0s; }

/* Mobiles Menü */
.gm {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--black); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 32px 48px;
}
.gm-list { list-style: none; margin: 0; padding: 0; }
.gm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gm-link {
  display: block; padding: 7px 0;
  font-size: 28px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.15;
  color: var(--paper); text-decoration: none;
}
.gm-toggle {
  flex: none; width: 44px; height: 44px; margin-right: -12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--pencil); cursor: pointer;
}
.gm-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.gm-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.gm-sub { list-style: none; margin: 0 0 10px; padding: 0; }
.gm-sub a { display: block; padding: 7px 0; font-size: 17px; color: var(--pencil); text-decoration: none; }
.gm-sub a[aria-current] { color: var(--paper); }
.gm-foot { margin: 36px 0 0; font-size: 15px; color: var(--pencil); }
html.menu-open, html.menu-open body { overflow: hidden; }

@media (max-width: 833px) {
  .gn-list, .gn-mail { display: none; }
  .gn-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -12px; padding: 0;
    background: none; border: 0; color: var(--paper); cursor: pointer;
  }
  .gn-burger span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .25s ease; }
  .gn-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .gn-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- Bereichsleiste ---------- */

.ln {
  position: sticky; top: 0; z-index: 80;
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--graphite-2);
}
.ln-in {
  max-width: var(--wide); height: 52px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ln-title { font-size: 19px; font-weight: 600; letter-spacing: -0.016em; color: var(--paper); text-decoration: none; }
.ln-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ln-list a { font-size: 13px; color: var(--pencil); text-decoration: none; transition: color .2s ease; }
.ln-list a:hover, .ln-list a[aria-current] { color: var(--paper); }
.ln-toggle { display: none; }

@media (max-width: 833px) {
  .ln-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -12px;
    background: none; border: 0; color: var(--paper); cursor: pointer;
  }
  .ln-toggle svg { transition: transform .2s ease; }
  .ln.is-open .ln-toggle svg { transform: rotate(180deg); }
  .ln-list {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 22px 18px; background: var(--black);
    border-bottom: 1px solid var(--graphite-2);
  }
  .ln.is-open .ln-list { display: flex; }
  .ln-list a { display: block; padding: 10px 0; font-size: 17px; }
}

/* ---------- Bausteine ---------- */

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.012em; white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pill-fill { background: var(--paper); color: var(--black); }
.pill-fill:hover { background: #fff; }
.pill-line { color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.pill-line:hover { background: var(--paper); color: var(--black); }
.pill-sm { min-height: 36px; padding: 0 17px; font-size: 15px; }

.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--pencil); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-live::before { background: var(--paper); }
.status-soon::before { box-shadow: inset 0 0 0 1.5px var(--pencil); }

/* ---------- Startseite: Buchungssatz ---------- */

.hero { padding: clamp(76px, 12vw, 156px) 20px clamp(84px, 11vw, 140px); text-align: center; overflow: hidden; }
.entry-wrap {
  display: inline-flex; flex-direction: column; align-items: stretch; max-width: 100%;
  margin: 0; font-size: clamp(30px, 9.4vw, 108px); font-weight: 650; line-height: 1.03; letter-spacing: -0.042em;
}
.entry { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: .27em; }
.entry .d { text-align: right; }
.entry .an { text-align: center; }
.entry .c { text-align: left; }
.entry-rule { display: block; position: relative; height: max(7px, .1em); margin-top: .2em; }
.entry-rule::before, .entry-rule::after {
  content: ""; position: absolute; left: 0; right: 0; height: max(1.5px, .02em);
  background: var(--paper); transform-origin: left center;
}
.entry-rule::before { top: 0; }
.entry-rule::after { bottom: 0; }
.hero-sub {
  max-width: 36ch; margin: clamp(30px, 4.4vw, 48px) auto 0;
  font-size: clamp(19px, 2.1vw, 24px); line-height: 1.36; letter-spacing: -0.016em; color: var(--pencil);
}
.hero .pills { margin-top: clamp(28px, 3.4vw, 38px); }

@media (prefers-reduced-motion: no-preference) {
  .entry-rule::before, .entry-rule::after { animation: summenstrich .95s cubic-bezier(.62, 0, .32, 1) both; }
  .entry-rule::before { animation-delay: .3s; }
  .entry-rule::after { animation-delay: .46s; }
}
@keyframes summenstrich { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Kacheln ---------- */

.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 12px 12px; }
.mosaic-one { grid-template-columns: minmax(0, 1fr); max-width: 1180px; margin: 0 auto; }
.tile {
  display: flex; flex-direction: column; align-items: center; min-height: 600px; min-width: 0;
  padding: 56px 28px 0; background: var(--graphite); text-align: center; overflow: hidden;
}
.tile-wide { grid-column: 1 / -1; min-height: 0; padding-bottom: clamp(56px, 7vw, 92px); }
.t-xl { margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 650; line-height: 1.05; letter-spacing: -0.038em; }
.t-l { margin: 0; font-size: clamp(32px, 3.6vw, 44px); font-weight: 650; line-height: 1.08; letter-spacing: -0.032em; }
.t-tag { margin: 10px 0 0; max-width: 30ch; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; letter-spacing: -0.018em; }
.tile-wide .t-tag { font-size: clamp(21px, 2.5vw, 28px); max-width: 32ch; }
.t-text { margin: 18px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--pencil); }
.tile .status { margin-top: 16px; }
.tile .pills { margin-top: 22px; }
.tile-visual { width: 100%; max-width: 460px; margin-block: auto; padding: 44px 0 52px; }

@media (max-width: 833px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 540px; padding-top: 48px; }
  .tile-wide { min-height: 0; }
}

/* Frühschicht der Agenten */
.shift {
  position: relative; list-style: none; width: 100%; max-width: var(--wide);
  margin: clamp(52px, 7vw, 84px) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: left;
}
.shift::before { content: ""; position: absolute; left: 0; right: 0; top: 35px; height: 1px; background: var(--lead); }
.shift-item { position: relative; padding-right: 28px; }
.shift-time { display: block; height: 24px; font-size: 15px; color: var(--pencil); }
.shift-dot {
  position: relative; display: block; width: 11px; height: 11px; margin: 6px 0 22px;
  border-radius: 50%; background: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--pencil);
}
.shift-item.is-you .shift-dot { background: var(--paper); box-shadow: 0 0 0 6px rgba(241, 239, 233, .12); }
.shift-name { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.016em; }
.shift-name a { text-decoration: none; }
.shift-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.shift-text { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--pencil); }
.shift-note { margin: 44px 0 0; font-size: 14px; color: var(--pencil); text-align: center; }

@media (max-width: 833px) {
  .shift { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .shift::before { top: 10px; bottom: 14px; left: 5px; right: auto; width: 1px; height: auto; }
  .shift-item { padding: 0 0 30px 34px; }
  .shift-item:last-child { padding-bottom: 0; }
  .shift-time { height: auto; }
  .shift-dot { position: absolute; left: 0; top: 6px; margin: 0; }
  .shift-name { margin-top: 2px; }
}

/* Schema Kaufpreisallokation */
.ppa { margin: 0; text-align: left; }
.ppa-body { position: relative; }
.ppa-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: center; height: 36px; }
.ppa-lab { font-size: 14px; color: var(--pencil); }
.ppa-track { position: relative; height: 18px; }
.ppa-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--from) * 1%); width: calc(var(--len) * 1%); }
.ppa-assets { background: #bdbbb4; }
.ppa-debt { background: repeating-linear-gradient(135deg, var(--pencil) 0 1.5px, transparent 1.5px 5px); box-shadow: inset 0 0 0 1px var(--pencil); }
.ppa-gw { box-shadow: inset 0 0 0 1.5px var(--paper); }
.ppa-total { margin-top: 12px; }
.ppa-total .ppa-lab { color: var(--paper); font-weight: 600; }
.ppa-total .ppa-bar { background: var(--paper); }
.ppa-total .ppa-track::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 5px;
  border-top: 1.5px solid var(--paper); border-bottom: 1.5px solid var(--paper);
}
.ppa-guide {
  position: absolute; top: 4px; bottom: 54px;
  left: calc(126px + (100% - 126px) * var(--at) / 100);
  border-left: 1px dashed var(--lead);
}
.ppa-cap { margin: 30px 0 0; font-size: 14px; color: var(--pencil); text-align: center; }

/* Leasingrechner-Vorschau */
.lease { text-align: center; }
.lease-cap { margin: 0; font-size: 15px; color: var(--pencil); }
.lease-num {
  display: inline-block; margin: 6px 0 0; padding-bottom: 6px;
  font-size: clamp(40px, 4.6vw, 58px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em;
  border-bottom: 5px double var(--paper);
}
.lease-chart { display: block; width: 100%; height: auto; margin-top: 30px; overflow: visible; }
.lease-chart .area { fill: var(--graphite-2); }
.lease-chart .line { fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round; }
.lease-chart .base { stroke: var(--lead); stroke-width: 1; }
.lease-chart .end { fill: var(--paper); }
.lease-chart text { fill: var(--pencil); font-family: var(--font); font-size: 12px; }
.lease-meta { margin: 16px 0 0; font-size: 14px; color: var(--pencil); }

/* Prüfzeichen */
.checks { list-style: none; max-width: 340px; margin: 0 auto; padding: 0; display: grid; gap: 24px; text-align: left; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; }
.checks strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.016em; }
.checks span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--pencil); }

/* Unterschriftenblock */
.sig { max-width: 320px; margin: 0 auto; text-align: left; }
.sig-place { margin: 0; font-size: 17px; color: var(--pencil); }
.sig-name { margin: 72px 0 0; padding-top: 10px; border-top: 1px solid var(--paper); font-size: 17px; }

/* ---------- Unterseiten ---------- */

.ph { padding: clamp(64px, 10vw, 128px) 22px clamp(40px, 6vw, 68px); text-align: center; }
.ph-title { margin: 0; font-size: clamp(44px, 7.6vw, 88px); font-weight: 650; line-height: 1.02; letter-spacing: -0.042em; }
.ph-tag { margin: 14px auto 0; max-width: 28ch; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }
.ph .status { margin-top: 24px; }

.prose { max-width: var(--read); margin: 0 auto; padding: 0 22px clamp(64px, 9vw, 108px); }
.prose p { margin: 0 0 1.05em; font-size: 19px; line-height: 1.6; letter-spacing: -0.013em; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .doc a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Artikel */
.article { max-width: var(--read); margin: 0 auto; padding: 0 22px clamp(56px, 8vw, 96px); }
.article p, .article li, .article dd { font-size: 18px; line-height: 1.62; letter-spacing: -0.011em; color: #e4e2dc; }
.article p { margin: 0 0 1em; }
.article a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article .lead { font-size: clamp(21px, 2.3vw, 24px); line-height: 1.45; letter-spacing: -0.018em; color: var(--paper); }
.article-meta { font-size: 14px !important; color: var(--pencil) !important; margin-top: 18px !important; }
.article section { scroll-margin-top: calc(var(--nav-h) + 64px); }
.article h2 {
  display: flex; align-items: baseline; gap: 14px;
  margin: 72px 0 18px; font-size: clamp(26px, 3vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em;
}
.h-no { flex: none; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--pencil); font-variant-numeric: tabular-nums; }
.article h3 { margin: 32px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }
.article strong { color: var(--paper); font-weight: 600; }
.article code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--graphite-2); }

.part {
  margin: 72px 0 -40px !important; padding-top: 18px; border-top: 1px solid var(--graphite-2);
  font-size: 13px !important; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--pencil) !important;
}

.toc { margin: 40px 0 0; padding: 22px 0 6px; border-top: 1px solid var(--graphite-2); border-bottom: 1px solid var(--graphite-2); }
.article .toc-h { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--pencil); }
.toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 32px; }
.toc-list li { display: flex; counter-increment: toc; break-inside: avoid; padding: 0 0 12px; font-size: 16px; line-height: 1.35; }
.toc-list li::before { content: counter(toc, decimal-leading-zero); flex: none; width: 30px; padding-top: 2px; font-size: 13px; color: var(--pencil); font-variant-numeric: tabular-nums; }
.toc-list a { color: var(--paper); text-decoration: none; }
.toc-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.src { margin: 26px 0 0; border-top: 1px solid var(--graphite-2); }
.src > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--graphite-2); }
.src dt { font-size: 17px; font-weight: 600; line-height: 1.45; }
.src dt a { color: var(--paper); }
.src dd { margin: 0; font-size: 16px !important; line-height: 1.55 !important; color: #cfcdc7 !important; }

.docs { margin: 0 0 1em; padding: 0; list-style: none; }
.docs li { position: relative; padding: 0 0 0 22px; margin: 0 0 14px; }
.docs li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 9px; height: 1px; background: var(--paper); opacity: .6; }

.note { margin: 28px 0 0 !important; padding: 20px 22px; border-radius: 16px; background: var(--graphite); font-size: 16px !important; line-height: 1.55 !important; color: #d8d6d0 !important; }

.prompt { margin: 28px 0; border-radius: 18px; background: var(--graphite); overflow: hidden; }
.prompt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--graphite-2);
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--pencil);
}
.copy {
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 980px; cursor: pointer;
  background: var(--graphite-2); color: var(--paper); font: inherit; font-size: 13px; font-weight: 500;
  transition: background-color .2s ease;
}
.copy:hover { background: #33322f; }
.copy:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.prompt pre {
  margin: 0; padding: 20px 22px 24px; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; color: #e4e2dc; tab-size: 2;
}

.steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 8px 52px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--lead);
  display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--paper);
}
.steps > li::after { content: ""; position: absolute; left: 16px; top: 42px; bottom: 6px; width: 1px; background: var(--graphite-2); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 8px; }

.close { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--graphite-2); }

@media (max-width: 600px) {
  .toc-list { columns: 1; }
  .src > div { grid-template-columns: minmax(0, 1fr); }
  .article p, .article li { font-size: 17px; }
  .steps > li { padding-left: 46px; }
}

.panel { background: var(--graphite); padding: clamp(56px, 8vw, 96px) 22px; margin: 0 12px 12px; }
.panel .ppa, .panel .checks, .panel .sig { max-width: 460px; margin: 0 auto; }
.panel .shift { margin-top: 0; }

.index { max-width: var(--wide); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 22px clamp(72px, 10vw, 120px); }
.index-h { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.022em; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite-2); }
.index-list li { border-bottom: 1px solid var(--graphite-2); }
.index-link {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(130px, auto);
  align-items: baseline; gap: 24px; padding: 26px 0; text-decoration: none;
}
.index-name { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.index-desc { font-size: 17px; line-height: 1.45; color: var(--pencil); }
.index-link .status { justify-self: end; }
.index-link:hover .index-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.index-after { margin: 22px 0 0; font-size: 15px; color: var(--pencil); }
.after-note { margin: 0; padding: 22px 22px clamp(72px, 10vw, 120px); font-size: 15px; color: var(--pencil); text-align: center; }
.end-space { height: clamp(56px, 8vw, 96px); }

@media (max-width: 833px) {
  .index-link { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .index-link .status { justify-self: start; margin-top: 6px; }
}

/* Rechtliches */
.doc { max-width: var(--read); margin: 0 auto; padding: 0 22px clamp(64px, 9vw, 108px); }
.doc h2 { margin: 56px 0 14px; font-size: 28px; font-weight: 600; letter-spacing: -0.022em; }
.doc section:first-child h2 { margin-top: 0; }
.doc address span { display: block; }
.doc h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 600; }
.doc p, .doc address { margin: 0 0 12px; font-size: 17px; line-height: 1.6; font-style: normal; color: #dddbd5; }
.doc .muted { color: var(--pencil); font-size: 15px; }
.page-rechtliches .ph-title { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.035em; }
.page-rechtliches .ph-tag { font-size: 17px; color: var(--pencil); }

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

.gf { color: var(--pencil); font-size: 13px; line-height: 1.5; }
.gf-in { max-width: var(--wide); margin: 0 auto; padding: 40px 22px 34px; }
.gf-note { margin: 0 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--graphite-2); }
.gf-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.gf-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--paper); }
.gf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gf-col a { color: var(--pencil); text-decoration: none; }
.gf-col a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.gf-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--graphite-2);
}
.gf-legal p { margin: 0; }
.gf-legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.gf-legal a { color: var(--pencil); text-decoration: none; }
.gf-legal a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 833px) {
  .gf-map { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
