/* ==========================================================================
   FrankenResQ – Stylesheet
   Farbwelt der echten Drohne: Carbon-Schwarz, Signalrot, Weiß.
   Schriften liegen lokal in /assets/fonts (kein Google-Server → DSGVO).
   ========================================================================== */

/* ---------- Schriften ---------- */
@font-face { font-family: "Saira Condensed"; font-weight: 600; font-display: swap; src: url("../assets/fonts/saira-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-display: swap; src: url("../assets/fonts/saira-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 800; font-display: swap; src: url("../assets/fonts/saira-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: dark;
  --carbon: #0b0c0e;       /* Seitengrund */
  --carbon-1: #121418;     /* Flächen */
  --carbon-2: #1a1d22;     /* erhöhte Flächen */
  --line: #2a2e35;
  --line-soft: #1f2228;
  --text: #eceef1;
  --muted: #9aa0a9;
  --red: #e3262b;          /* Signalrot – sparsam einsetzen */
  --red-hover: #f23a3f;
  --red-deep: #9e161a;
  --paper: #f3f3f1;        /* helle Sektionen */
  --paper-ink: #111214;
  --paper-muted: #5b5f66;
  --paper-line: #d9d9d5;

  --f-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --radius: 6px;
  --header-h: 68px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }
.label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--red { color: var(--red); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--carbon) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.brand-name b { color: var(--red); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--carbon); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; color: var(--text); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  body.nav-open .nav { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 0.95rem;
  padding: 11px 18px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 56px); }
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); }
.hero h1 .red { color: var(--red); }
.hero-lede { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.hero-lede strong { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .hero-head { grid-template-columns: 1fr; } }

/* ---------- 3D-Viewer ---------- */
.viewer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 42% 45%, #1b1e24 0%, #101216 55%, #0b0c0e 100%);
}
.viewer-stage { position: relative; height: clamp(440px, calc(100vh - 320px), 720px); min-width: 0; }
.viewer-canvas { position: absolute; inset: 0; }
.viewer-canvas canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.viewer-canvas canvas:active { cursor: grabbing; }

/* technisches Raster im Hintergrund */
.viewer-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 45% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 45% 50%, #000 20%, transparent 75%);
  opacity: .55;
}

.viewer-pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  background: rgba(11, 12, 14, .82);
  color: var(--text);
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500;
  display: grid; place-items: center;
  pointer-events: auto; cursor: pointer;
  opacity: 0;
  transition: opacity .25s, background .15s, border-color .15s;
}
.viewer.is-ready .pin { opacity: 1; }
.viewer.is-ready .pin.is-behind { opacity: .28; }
.pin:hover, .pin.is-active { background: var(--red); border-color: var(--red); color: #fff; opacity: 1 !important; }
.viewer.has-selection .pin:not(.is-active) { opacity: .2; }

.viewer-toolbar {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  pointer-events: none;
}
.viewer-toolbar > * { pointer-events: auto; }
.tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius);
  background: rgba(18, 20, 24, .85); border: 1px solid var(--line);
  color: var(--text); font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; backdrop-filter: blur(6px);
}
.tool:hover { border-color: var(--muted); }
.tool[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tool svg { width: 14px; height: 14px; }
.viewer-hint { margin-left: auto; font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: .04em; pointer-events: none; }

.viewer-note {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.viewer-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.viewer.no-webgl .viewer-stage { display: grid; place-items: center; }
.viewer.no-webgl .viewer-stage::after {
  content: "3D-Ansicht in diesem Browser nicht verfügbar – die Stückliste rechts zeigt alle Bauteile.";
  color: var(--muted); padding: 24px; text-align: center; max-width: 36ch; position: relative;
}
.viewer.no-webgl .viewer-toolbar { display: none; }

/* Ladezustand & Bauteile ohne 3D-Geometrie */
.viewer.is-loading .viewer-stage::after {
  content: "3D-Modell wird geladen …";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.bom-item.not-in-model .bom-name::after {
  content: "nicht im CAD";
  margin-left: 8px; padding: 1px 6px; border: 1px dashed var(--line); border-radius: 3px;
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  vertical-align: 2px; white-space: nowrap;
}

/* Stückliste */
.bom {
  border-left: 1px solid var(--line);
  background: rgba(14, 16, 19, .9);
  display: flex; flex-direction: column;
  max-height: clamp(440px, calc(100vh - 320px), 720px);
  min-height: 0;
}
.bom-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 20px 12px; border-bottom: 1px solid var(--line);
}
.bom-head h2 { font-size: 1.35rem; }
.bom-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bom-list li { border-bottom: 1px solid var(--line-soft); }
.bom-item {
  width: 100%; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 1px;
  text-align: left; background: none; border: 0; color: var(--text);
  padding: 11px 20px; cursor: pointer; font: inherit;
}
.bom-item:hover { background: var(--carbon-2); }
.bom-pos { grid-row: span 2; font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); padding-top: 3px; }
.bom-name { font-weight: 600; font-size: 0.94rem; line-height: 1.3; }
.bom-spec { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.bom-item[aria-expanded="true"] { background: var(--carbon-2); box-shadow: inset 3px 0 0 var(--red); }
.bom-item[aria-expanded="true"] .bom-pos { color: var(--red); }
.bom-text { padding: 0 20px 14px 62px; background: var(--carbon-2); font-size: 0.88rem; color: #c9cdd3; line-height: 1.5; }

@media (max-width: 980px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer-stage { height: min(100vw, 560px); min-height: 380px; }
  .bom { border-left: 0; border-top: 1px solid var(--line); max-height: 330px; }
  .viewer-hint { display: none; }
  .viewer-toolbar { left: 10px; right: 10px; bottom: 10px; gap: 6px; }
  .tool { padding: 7px 10px; font-size: 0.66rem; }
  .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 0.6rem; }
}

/* ---------- CTA unter dem Viewer ---------- */
.cta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 16px;
}
.cta {
  position: relative;
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
  min-height: 170px; padding: 26px 28px;
  border-radius: 10px; text-decoration: none;
  transition: transform .2s ease, background .2s;
}
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.cta p { max-width: 44ch; font-size: 0.98rem; }
.cta .arrow { position: absolute; right: 26px; top: 26px; width: 30px; height: 30px; transition: transform .2s; }
.cta:hover .arrow { transform: translate(4px, -4px); }
.cta--support { background: var(--red); color: #fff; }
.cta--support:hover { background: var(--red-hover); }
.cta--support p { color: rgba(255,255,255,.88); }
.cta--info { background: var(--carbon-1); border: 1px solid var(--line); }
.cta--info:hover { background: var(--carbon-2); }
.cta--info p { color: var(--muted); }
@media (max-width: 720px) { .cta-row { grid-template-columns: 1fr; } .cta { min-height: 0; } }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.section-head .label { margin-bottom: 14px; display: block; }
.section-head p { color: var(--muted); max-width: 58ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Kennzahlen – wie ein Datenblatt */
.specs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.spec { padding: 26px 22px 24px 0; }
.spec + .spec { padding-left: 22px; border-left: 1px solid var(--line); }
.spec-value { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.spec-value small { font-size: .5em; font-weight: 600; margin-left: 4px; color: var(--muted); }
.spec-label { margin-top: 10px; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.specs-foot { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 980px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec, .spec + .spec { padding: 22px 16px 20px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .spec:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-soft); }
  .spec:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* Einsatzszenarien */
.scenarios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.scenario { background: var(--carbon); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.scenario svg { width: 30px; height: 30px; color: var(--red); }
.scenario h3 { font-size: 1.55rem; }
.scenario p { color: var(--muted); font-size: 0.93rem; }
.scenario .label { margin-top: auto; }
@media (max-width: 980px) { .scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .scenarios { grid-template-columns: 1fr; } }

/* Zwei-Spalten-Text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.split p + p { margin-top: 1em; }
.split .muted, .muted { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Fortschritt / Phasen */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: phase; }
.phase { position: relative; padding: 30px 20px 0 0; }
.phase::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); }
.phase::after { content: ""; position: absolute; left: 0; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--carbon); border: 2px solid var(--line); }
.phase.is-current::before { background: linear-gradient(90deg, var(--red) 55%, var(--line) 55%); }
.phase.is-current::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(227, 38, 43, .18); }
.phase .label { display: block; margin-bottom: 10px; }
.phase h3 { font-size: 1.5rem; margin-bottom: 10px; }
.phase p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.phase .status { display: inline-block; margin-top: 14px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.phase.is-current .status { border-color: var(--red); color: var(--red); }
@media (max-width: 980px) {
  .phases { grid-template-columns: 1fr; gap: 0; }
  .phase { padding: 0 0 30px 34px; }
  .phase::before { left: 5px; right: auto; top: 6px; bottom: 0; width: 3px; height: auto; }
  .phase.is-current::before { background: linear-gradient(180deg, var(--red) 55%, var(--line) 55%); }
  .phase::after { top: 0; left: 0; }
}

/* ---------- Helle Sektion (Unterstützen) ---------- */
.section--paper { background: var(--paper); color: var(--paper-ink); border-top: 0 !important; }
.section--paper .label { color: var(--paper-muted); }
.section--paper .section-head p, .section--paper .muted { color: var(--paper-muted); }
.section--paper .btn--ghost { color: var(--paper-ink); border-color: var(--paper-line); }
.section--paper .btn--ghost:hover { border-color: var(--paper-ink); }
.section--paper :focus-visible { outline-color: var(--paper-ink); }

.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-item { border-top: 3px solid var(--paper-ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.offer-item h3 { font-size: 1.7rem; }
.offer-item p { color: var(--paper-muted); font-size: 0.95rem; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member { display: flex; flex-direction: column; gap: 4px; }
.member-photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--carbon-1); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--line); margin-bottom: 12px; max-width: 100%;
}
.member-photo svg { width: 40%; height: auto; }
.member-photo span { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; color: var(--line); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.member:hover .member-photo span { color: var(--red); }
.member h3 { font-family: var(--f-body); text-transform: none; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.member p { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Unterseiten ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.6rem); margin: 14px 0 22px; }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 56px 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc .label { margin-bottom: 12px; }
.toc a { text-decoration: none; color: var(--muted); font-size: 0.92rem; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--red); }
@media (max-width: 980px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

.prose { max-width: 72ch; }
.prose section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 22px; }
.prose h3 { font-size: 1.45rem; margin: 32px 0 12px; }
.prose p { color: #c6cad0; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2em; color: #c6cad0; margin: 14px 0 0; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--red); }
.prose ul + p { margin-top: 1em; }

.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--carbon-1); }
td:first-child { color: var(--muted); white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.callout { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); background: var(--carbon-1); font-size: 0.93rem; color: #c6cad0; }
.callout strong { color: var(--text); }

/* Architektur-Diagramm */
.arch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.arch-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--carbon-1); }
.arch-col.is-later { border-style: dashed; background: transparent; }
.arch-col h3 { margin: 6px 0 12px !important; font-size: 1.3rem !important; }
.arch-col ul { list-style: none; padding: 0 !important; margin: 0 !important; font-size: 0.86rem; }
.arch-col li { padding: 5px 0; border-top: 1px solid var(--line-soft); margin: 0 !important; }
@media (max-width: 720px) { .arch { grid-template-columns: 1fr; } }

/* Fehlerfälle */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-family: var(--f-mono); font-size: 0.76rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; color: #c6cad0; }

/* Unterstützen-Seite */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--carbon-1); }
.tier h3 { margin: 0 !important; font-size: 1.6rem !important; }
.tier p { font-size: 0.92rem; }
.tier.is-key { border-color: var(--red); }

.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--carbon-1); }
.contact-box .mail { font-family: var(--f-mono); font-size: 1.05rem; color: var(--text); }

.pending { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 3px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid .label { display: block; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); max-width: 34ch; margin-top: 12px; }
.footer-grid p strong { color: var(--text); font-weight: 500; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 128px; height: 128px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
