/* ── Local webfonts (see README) ── */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-v4-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-v4-latin-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-v4-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/silkscreen-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/silkscreen-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/vt323-v18-latin-regular.woff2') format('woff2');
}

:root {
  --bg: #0a0e0b;
  --fg: #cfe8cf;
  --dim: #6f8a6f;
  --accent: #5fd97a;
  --ink: var(--accent);
  --hair: rgba(95, 217, 122, 0.15);
  --hud-bg: rgba(10, 14, 11, 0.7);
  --stripe: rgba(95, 217, 122, 0.03);
  --dot: rgba(95, 217, 122, 0.7);
  --vignette: rgba(0,0,0,0.75);
  --scanline: rgba(0,0,0,0.3);
  /* Gleicher Wert wie im Chat-Widget (homelab-chatbot/widget.js), damit
     Modal- und Chat-Scrollbalken identisch aussehen. */
  --scroll-thumb: #274627;
}

.theme-light {
  --bg: #f0f4f0;
  --fg: #0a120a;
  --dim: #5a7a5a;
  --ink: #1d6b35;
  --hair: rgba(0, 0, 0, 0.12);
  --hud-bg: rgba(244, 243, 238, 0.7);
  --stripe: rgba(0,0,0,0.06);
  --dot: rgba(0,0,0,0.85);
  --vignette: rgba(0,0,0,0.08);
  --scanline: rgba(0,0,0,0.08);
  --scroll-thumb: #b7cbb7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  background: #060606;
  font-family: "JetBrains Mono", "Space Mono", ui-monospace, monospace;
  overflow: hidden;
}
.page { background: var(--bg); color: var(--fg); }

body { font-feature-settings: "ss01", "tnum"; }

.page {
  position: fixed; inset: 0;
  overflow: hidden;
  isolation: isolate;
}

/* ─────────── Background ─────────── */
.backdrop-canvas, .backdrop-empty {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.theme-light .backdrop-canvas { opacity: 0.7; mix-blend-mode: multiply; }
.backdrop-empty {
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 7px,
      var(--stripe) 7px, var(--stripe) 8px);
}

.scanlines {
  position: absolute; inset: 0;
  z-index: 8;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    var(--scanline) 3px,
    var(--scanline) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.45;
}

/* vignette + grain */
.page::before {
  content: ""; position: absolute; inset: 0; z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, var(--vignette) 100%);
}

/* ─────────── HUD top ─────────── */
.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--hair);
  background: var(--hud-bg);
  backdrop-filter: blur(4px);
}
.hud-left, .hud-right {
  display: flex; align-items: center;
  gap: 28px;
  padding: 14px 22px;
}
.logo-mark {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: 16px;
  border-radius: 2px;
}
.hud-nav {
  display: flex; gap: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}
.hud-nav .dim, .dim { color: var(--dim); }

.lab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.lab-link:hover {
  background: var(--ink);
  color: var(--bg);
}
.lab-link .lab-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 6px var(--ink);
  flex-shrink: 0;
}
.lab-link:hover .lab-dot {
  background: var(--bg);
  box-shadow: none;
}

.hud-right { gap: 14px; }
.tick {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  border-left: 1px solid var(--hair);
  padding-left: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.tick-label { color: var(--dim); }
.tick-value { color: var(--fg); }
.cta {
  margin-left: 8px;
  height: 36px;
  padding: 0 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: #000;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  display: inline-flex; align-items: center;
  border: 1.5px solid transparent;
}
.theme-light .cta { border-color: var(--ink); }

/* ─────────── Layout: wordmark ─────────── */
.layout {
  position: absolute; inset: 0;
  z-index: 5;
  display: grid;
  padding: 88px 56px 80px;
}

.layout-wordmark {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 28px;
  align-items: stretch;
  padding: 88px 40px 80px;
}

.left-rail { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding-top: 16px; }
.rail-block { display: flex; flex-direction: column; gap: 6px; }
.rail-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
}
.rail-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.rail-mono.big {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}
.signal-bars {
  display: flex; align-items: flex-end;
  gap: 2px; height: 36px; margin-top: 4px;
}
.signal-bars span {
  width: 4px;
  background: var(--accent);
  opacity: 0.85;
  animation: bar 1.2s ease-in-out infinite alternate;
}
.signal-bars span:nth-child(2n) { animation-delay: 0.1s; }
.signal-bars span:nth-child(3n) { animation-delay: 0.25s; }
.signal-bars span:nth-child(5n) { animation-delay: 0.4s; }
@keyframes bar { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

.center-stage {
  display: flex; flex-direction: column; justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
}
.quote-mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 220px; line-height: 0.7;
  color: var(--accent);
  opacity: 0.18;
  position: absolute;
  top: -20px; left: -10px;
}
.wordmark-wrap { position: relative; }
.wordmark {
  font-family: "Big Shoulders Display", "Bebas Neue", "Oswald", "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 13vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-align: center;
  font-stretch: 125%;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}

/* Wordmark font variants */
.wm-pixel {
  font-family: "Silkscreen", "VT323", monospace;
  font-weight: 700;
  font-size: clamp(56px, 11vw, 200px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  font-stretch: 100%;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  font-smooth: never;
}
.wm-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(60px, 11vw, 200px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-stretch: 100%;
}
.wm-block {
  font-family: "Big Shoulders Display", "Bebas Neue", sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 13vw, 260px);
  letter-spacing: -0.04em;
  font-stretch: 125%;
}
.tower-letters.wm-pixel { font-size: clamp(48px, 7vw, 100px); line-height: 1; }
.tower-letters.wm-mono { font-size: clamp(48px, 7vw, 100px); line-height: 1; letter-spacing: -0.04em; }
.tower-letters.wm-block { font-size: clamp(60px, 9vw, 120px); }
.wordmark-glitch::before,
.wordmark-glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%;
  color: var(--accent);
  mix-blend-mode: screen;
  pointer-events: none;
}
.wordmark-glitch::before {
  text-shadow: 3px 0 #ff00d4;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-a 4s steps(1) infinite;
  color: transparent;
  -webkit-text-stroke: 0;
}
.wordmark-glitch::after {
  text-shadow: -3px 0 #00d4ff;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-b 4s steps(1) infinite;
  color: transparent;
}
@keyframes glitch-a {
  0%, 92%, 100% { transform: translate(0,0); opacity: 0; }
  93% { transform: translate(-2px, 1px); opacity: 1; }
  95% { transform: translate(3px, -1px); opacity: 1; }
  97% { transform: translate(0,0); opacity: 0; }
}
@keyframes glitch-b {
  0%, 92%, 100% { transform: translate(0,0); opacity: 0; }
  94% { transform: translate(2px, -1px); opacity: 1; }
  96% { transform: translate(-2px, 1px); opacity: 1; }
  97% { transform: translate(0,0); opacity: 0; }
}
.wordmark-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 6px,
      rgba(0,0,0,0.35) 6px,
      rgba(0,0,0,0.35) 8px);
  pointer-events: none;
  z-index: 2;
}
.theme-light .wordmark-wrap::before { display: none; }

.wordmark-sub {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--fg);
}
.wordmark-sub .bullet {
  color: var(--ink);
  font-size: 8px;
}
.tagline {
  margin-top: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  max-width: 600px;
  text-align: center;
}

.right-rail {
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 16px;
}
.vstack {
  display: flex; flex-direction: column;
  align-items: flex-end;
  border-right: 1px solid var(--hair);
  padding-right: 14px;
  gap: 4px;
  min-width: 120px;
}
.vstack-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}
.vstack-val {
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
.accent-ink { color: var(--ink); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ─────────── Corner brackets ─────────── */
.bracket { display: none; }

/* ─────────── HUD bottom ─────────── */
.hud-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
  background: var(--hud-bg);
  backdrop-filter: blur(4px);
  font-size: 11px;
  letter-spacing: 0.15em;
}
.hud-b-left, .hud-b-center, .hud-b-right {
  padding: 14px 22px;
  display: flex; align-items: center; gap: 18px;
}
.hud-b-left { justify-content: flex-start; }
.hud-b-right { justify-content: flex-end; }
.hud-b-center {
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  overflow: hidden;
  justify-content: center;
}
.ticker {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
  animation: ticker 40s linear infinite;
  will-change: transform;
}
.ticker-group {
  display: flex;
  gap: 22px;
  padding-right: 22px;
  flex-shrink: 0;
}
.ticker .bullet { color: var(--accent); font-size: 8px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────── Responsive ─────────── */
@media (max-width: 1100px) {
  .layout-wordmark {
    grid-template-columns: minmax(140px, 170px) minmax(0, 1fr) minmax(140px, 170px);
    gap: 20px;
    padding: 100px 28px 90px;
  }
  .vstack { min-width: 0; padding-right: 10px; }
  .vstack-val { font-size: 15px; }
  .hud-nav { gap: 14px; }
  .tick { padding-left: 10px; }
  .cta { padding: 0 14px; height: 32px; font-size: 11px; }
}

.wordmark-sub, .tagline, .grid-sub, .mono-bottom, .rail-mono, .rail-kicker, .vstack-label, .vstack-val, .tower-mark, .tick-label, .tick-value, .hud-nav {
  text-shadow:
    0 0 4px var(--bg), 0 0 4px var(--bg),
    0 0 4px var(--bg), 0 0 4px var(--bg);
}

@media (max-width: 820px) {
  .backdrop-canvas { opacity: 0.35; }
  .theme-light .backdrop-canvas { opacity: 0.28; }
  .layout-wordmark {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 90px 20px 80px;
    gap: 18px;
  }
  .left-rail { flex-direction: row; flex-wrap: nowrap; gap: 0; padding-top: 0; overflow: hidden; justify-content: space-between; }
  .left-rail .rail-block { min-width: 0; flex: 0 1 auto; }
  .left-rail .rail-mono { font-size: 10px; }
  .left-rail .rail-mono.big { font-size: 36px; }
  .left-rail .rail-kicker { font-size: 9px; }
  .right-rail { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-top: 0; }
  .vstack { border-right: none; border-top: 1px solid var(--hair); padding-right: 0; padding-top: 6px; align-items: flex-start; }
  .hud-left, .hud-right { gap: 12px; padding: 12px 14px; }
  .hud-nav { gap: 10px; font-size: 10px; }
  .lab-link { height: 30px; padding: 0 14px; font-size: 11px; letter-spacing: 0.14em; gap: 6px; }
  .hud-right .tick { font-size: 9px; padding-left: 8px; }
  .vstack-spacer { display: none; }
  .quote-mark { display: none; }
  .center-stage { padding: 0; }
  .hud-bottom { grid-template-columns: 1fr; }
  .hud-b-left, .hud-b-right { display: none; }
  .hud-b-center { border: none; padding: 10px 14px; }
}

@media (max-width: 560px) {
  .layout-wordmark {
    padding: 80px 16px 70px;
  }
  .wordmark { font-size: clamp(48px, 16vw, 120px); }
  .wm-pixel { font-size: clamp(40px, 14vw, 110px); }
  .wm-mono { font-size: clamp(40px, 14vw, 110px); }
  .wm-block { font-size: clamp(56px, 17vw, 140px); }
  .hud-left { gap: 10px; padding: 10px 12px; }
  .hud-right { padding: 10px 12px; }
  .bracket { width: 16px; height: 16px; }
  .bracket-tl, .bracket-tr { top: 8px; }
  .bracket-bl, .bracket-br { bottom: 8px; }
  .bracket-tl, .bracket-bl { left: 8px; }
  .bracket-tr, .bracket-br { right: 8px; }
  .wordmark-sub { flex-wrap: wrap; gap: 8px; font-size: 10px; letter-spacing: 0.15em; }
  .tagline { font-size: 10px; }
}

/* ─────────── Interaction overlay ─────────── */
.interaction-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 98px; /* one button height above the bottom HUD bar */
  z-index: 20;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

/* All buttons: identical ghost style with solid bg for readability over dots */
.ibt {
  height: 28px;
  padding: 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ibt:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Mobile: stacked, full-width, well above bottom HUD */
@media (max-width: 820px) {
  .interaction-bar {
    flex-direction: column;
    gap: 7px;
    /* Der Stapel wächst nach oben: jeder Button kostet 37px. Mit dem fünften
       lief die Oberkante in die Subline unter dem Wordmark, daher 160 -> 120. */
    bottom: 120px;
    width: 72vw;
    left: 50%;
    transform: translateX(-50%);
  }
  .ibt {
    width: 100%;
    text-align: center;
    height: 30px;
  }
}

/* Modal overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.15s ease;
}
.theme-light .modal-backdrop { background: rgba(0,0,0,0.45); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  border: 1px solid var(--hair);
  background: var(--bg);
  padding: 32px 36px;
  min-width: 320px;
  max-width: 480px;
  width: 90vw;
  position: relative;
  font-family: "JetBrains Mono", monospace;
}
.modal-kicker {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.modal-title {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--fg);
  margin-bottom: 22px;
  font-weight: 700;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--dim);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  font-family: inherit;
}
.modal-close:hover { color: var(--fg); }

/* REQUEST ACCESS states */
.access-idle {}
.access-loading .progress-bar-wrap {
  display: block;
}
.progress-bar-wrap {
  display: none;
  width: 100%;
  height: 2px;
  background: var(--hair);
  margin: 18px 0;
  position: relative;
  overflow: hidden;
}
.progress-bar-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--ink);
  animation: prog 2.4s cubic-bezier(0.4,0,0.6,1) forwards;
}
@keyframes prog {
  0%   { width: 0%; }
  60%  { width: 72%; }
  85%  { width: 88%; }
  100% { width: 88%; }
}
.access-log {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.access-log .log-line { animation: logfade 0.3s ease; }
@keyframes logfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.access-log .log-accent { color: var(--ink); }
.modal-submit {
  margin-top: 20px;
  height: 32px;
  padding: 0 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.modal-submit:hover:not(:disabled) {
  background: var(--fg);
  color: var(--bg);
}
.modal-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* OK close button */
.modal-ok {
  margin-top: 20px;
  height: 32px;
  padding: 0 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--hair);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.modal-ok:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* MORE INFO / REDACTED */
.redacted-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.redacted-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.redacted-label { color: var(--dim); min-width: 80px; }
.redacted-value {
  background: var(--fg);
  color: var(--fg);
  padding: 3px 10px;
  letter-spacing: 0.05em;
  user-select: none;
  cursor: default;
  transition: background 0.15s, color 0.15s;
  font-weight: 700;
  border-radius: 1px;
}
.redacted-value:hover {
  background: transparent;
  color: var(--fg);
  outline: 1px solid var(--hair);
}
.redacted-note {
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--dim);
}

/* VERIFY IDENTITY */
.verify-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.verify-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--dim);
  text-transform: uppercase;
}
.verify-input {
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.verify-input:focus { border-color: var(--fg); }
.verify-input::placeholder { color: var(--dim); }
.verify-confirmed {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink);
  text-align: center;
  padding: 20px 0 4px;
  line-height: 1.8;
}
.verify-confirmed .vc-sub {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-top: 8px;
  letter-spacing: 0.2em;
}

/* IMPRESSUM — legal text: readable first, styled second.
   Scrolls inside the box so the modal chrome stays put on short screens. */
.legal-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Scrollbalken wie im Chat-Widget. width = vertikaler Balken, height =
   horizontaler — beide setzen, sonst bekommt der horizontale die
   Default-Dicke des Browsers (~15px). */
.legal-block::-webkit-scrollbar { width: 8px; height: 8px; }
.legal-block::-webkit-scrollbar-track { background: transparent; }
.legal-block::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.legal-block::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
  background-clip: content-box;
}
/* Firefox kennt die Pseudo-Elemente nicht und bekommt hier die Standard-
   Properties. Nicht beides gleichzeitig setzen: in Chromium 121+ gewinnt
   scrollbar-color und die ::-webkit-Regeln würden ignoriert. */
@supports not selector(::-webkit-scrollbar) {
  .legal-block {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
  }
}
.legal-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Fließtext statt Anschrift: Absätze brauchen mehr Abstand als Adresszeilen. */
.legal-prose { gap: 24px; }
.legal-prose .legal-group { gap: 10px; }
.legal-prose .legal-line { color: var(--fg); }
.legal-h {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.legal-line {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--fg);
}
/* Unfilled placeholder — deliberately loud, so it cannot go live unnoticed. */
.legal-ph {
  color: var(--ink);
  outline: 1px dashed var(--hair);
  padding: 0 4px;
}
.legal-note {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--dim);
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}

/* ── Chat-Platzhalter ──
   Steht an der Stelle des Widget-Toggles, bis app.js (Abschnitt 6) widget.js
   nachgeladen hat. Die Farben sind absichtlich hart kodiert statt aus der
   Palette: sie spiegeln #fam-chat-toggle in widget.js, das seine Werte
   ebenfalls fest inline trägt und nicht auf das Theme der Seite reagiert.
   Ändert sich der Toggle dort, muss dieser Block mit — sonst springt der
   Button beim Tausch sichtbar um. */
.chat-stub {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #0a0e0b;
  color: #5fd97a;
  border: 1px solid #5fd97a;
  border-radius: 4px;
  padding: 10px 16px;
  font-family: "JetBrains Mono", monospace;
  /* Der Toggle im Widget ist ein <div> ohne font-size und erbt damit die 16px
     vom body. Ein <button> erbt das nicht, also hier explizit. */
  font-size: 16px;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(95, 217, 122, 0.25);
}
