/**
 * site.css - Gemeinsames Stylesheet: Schriften, Farben, Layout und alle Komponenten der Plattform.
 *
 * @author  Marc Berginz
 * @created 12.11.2026
 * @version 1.0.1
 *
 * Aenderungen:
 *   1.0.1  13.11.2026  Marc Berginz  Lange Woerter und Adressen brechen in der Fragenliste von Ask a Senior und in der Zeile "Erkanntes Thema" um, statt die Seite zu verbreitern
 *   1.0.0  12.11.2026  Marc Berginz  Erstfassung
 */

/* ==========================================================================
   1. Schriften (lokal eingebunden, keine externen Aufrufe)
   ========================================================================== */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ==========================================================================
   2. Farben, Masse, Schriftgrade
   ========================================================================== */
:root {
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Cascadia Mono", "Courier New", monospace;

  --navy-950: #071A30;
  --navy-900: #0C2340;
  --navy-800: #15335A;
  --navy-700: #244A7A;
  --navy-300: #9FB3CE;
  --navy-200: #C4D1E2;

  --blue-700: #0B49AE;
  --blue-600: #1259D1;
  --blue-100: #E1EBFB;

  --ink: #16212E;
  --ink-2: #435265;
  --ink-3: #5E6D82;
  --canvas: #F0F2F5;
  --surface: #FFFFFF;
  --line: #D5DAE1;
  --line-2: #B2BBC7;

  --ok: #14773F;
  --ok-soft: #E2F3E9;
  --warn: #96580A;
  --warn-soft: #FFEFD0;
  --warn-fill: #DE9A1F;
  --crit: #C0261B;
  --crit-soft: #FCE6E4;

  --radius: 3px;
  --wrap: 1180px;
}

/* ==========================================================================
   3. Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
}

main { flex: 1 0 auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul[class], ol[class] { list-style: none; }

a { color: var(--blue-600); text-underline-offset: 2px; }
a:hover { color: var(--blue-700); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, canvas { max-width: 100%; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #FFFFFF; }

[hidden] { display: none !important; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: #FFFFFF; color: var(--ink); border-radius: var(--radius); }
.skip:focus { left: 16px; }

.noscript { margin: 0; padding: 14px 24px; background: var(--warn-soft); color: var(--ink); text-align: center; }

.stack > * + * { margin-top: 16px; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.note { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   4. Kopfzeile
   ========================================================================== */
.topbar {
  position: relative; z-index: 20;
  min-height: 56px;
  background: var(--navy-900);
  color: #FFFFFF;
  border-bottom: 1px solid var(--navy-800);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 56px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #FFFFFF; }
.brand__mark { width: 28px; height: 28px; flex: none; border-radius: 5px; }
.brand__name { font-weight: 700; letter-spacing: -0.01em; }
.brand__product { color: var(--navy-200); }

.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { padding: 17px 12px; font-size: 15px; color: var(--navy-200); text-decoration: none; }
.nav a:hover { color: #FFFFFF; background: var(--navy-800); }
.nav a[aria-current="page"] { color: #FFFFFF; box-shadow: inset 0 -3px 0 #FFFFFF; }

.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 11px 4px 10px;
  border: 1px solid var(--navy-700); border-radius: 999px;
  font-size: 13.5px; color: var(--navy-200); text-decoration: none; white-space: nowrap;
}
.pill:hover { border-color: var(--navy-300); color: #FFFFFF; }

.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.dot--ok { background: #3DD68C; }
.dot--warn { background: #FFC24B; }
.dot--crit { background: #FF6B5E; }

.plan-badge {
  padding: 2px 7px; border-radius: 2px;
  background: #F6C445; color: #3B2A00;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
}

.menu-btn {
  display: none; height: 34px; padding: 0 12px;
  background: transparent; color: #FFFFFF;
  border: 1px solid var(--navy-700); border-radius: var(--radius);
  font-size: 14px;
}

@media (max-width: 900px) {
  .brand__product { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 4px 24px 12px;
    background: var(--navy-900); border-bottom: 1px solid var(--navy-800);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--navy-800); }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { background: transparent; }
  .nav a[aria-current="page"] { box-shadow: none; font-weight: 600; }
}
@media (max-width: 520px) {
  .pill { font-size: 0; gap: 0; padding: 9px; }
  .pill .dot { width: 10px; height: 10px; }
}

/* ==========================================================================
   5. Schaltflaechen und Formulare
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--blue-600); color: #FFFFFF; }
.btn--primary:hover { background: var(--blue-700); color: #FFFFFF; }
.btn--secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink-3); background: var(--canvas); color: var(--ink); }
.btn--light { background: #FFFFFF; color: var(--navy-900); }
.btn--light:hover { background: var(--blue-100); color: var(--navy-900); }
.btn--on-dark { background: transparent; border-color: var(--navy-300); color: #FFFFFF; }
.btn--on-dark:hover { background: var(--navy-800); color: #FFFFFF; }
.btn--large { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }

.field { display: grid; gap: 6px; }
.label { font-size: 14.5px; font-weight: 600; }
.hint { font-size: 13.5px; color: var(--ink-3); }

.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input--number { max-width: 160px; font-variant-numeric: tabular-nums; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.check input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: var(--blue-600); }

.choices { display: grid; gap: 8px; }
.choices legend { margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }

.range { width: 100%; accent-color: var(--blue-600); }

/* ==========================================================================
   6. Startseite
   ========================================================================== */
.hero { background: var(--navy-900); color: #FFFFFF; padding: 72px 0 84px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero__lead { margin-top: 22px; max-width: 30ch; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.4; color: var(--navy-200); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 28px; font-size: 14px; color: var(--navy-300); }

.console {
  background: var(--surface); color: var(--ink);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 28px 56px -28px rgba(2, 10, 24, .8);
}
.console__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.console__head strong { color: var(--ink); font-weight: 600; }
.console__clock { font-variant-numeric: tabular-nums; }
.console__alert {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 14px 18px;
  background: var(--canvas); color: var(--ink-3);
  font-weight: 700; letter-spacing: .01em;
  transition: background-color .25s, color .25s;
}
.console__alert[data-tone="crit"] { background: var(--crit); color: #FFFFFF; }
.console__alert[data-tone="ok"] { background: var(--ok); color: #FFFFFF; }
.console__alert span { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.console__list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.console__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 12px 18px; font-size: 14px; color: var(--ink-2);
}

.state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state--ok { color: var(--ok); }
.state--warn { color: var(--warn); }
.state--crit { color: var(--crit); }
.state--pending { color: var(--ink-3); font-weight: 400; }

.section { padding: 56px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.h2 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.lede { margin-top: 6px; max-width: 62ch; color: var(--ink-2); }

.band { background: var(--surface); border-block: 1px solid var(--line); }

.search { position: relative; width: min(100%, 340px); }
.search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 38px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.chip {
  min-height: 34px; padding: 0 13px;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #FFFFFF; }
.chips--tight { margin-bottom: 0; }

.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.feature {
  display: flex; flex-direction: column;
  padding: 20px 20px 16px;
  background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-top: 3px solid var(--navy-900); border-radius: var(--radius);
}
.feature:hover { border-color: var(--blue-600); color: inherit; }
.feature:hover .feature__name { color: var(--blue-600); text-decoration: underline; }
.feature__icon { font-size: 28px; line-height: 1; }
.feature__name { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.feature__desc { margin-top: 6px; margin-bottom: 18px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.feature__facts { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13.5px; }
.feature__facts dt { color: var(--ink-3); }
.feature__facts dd { font-weight: 600; }

.group + .group { margin-top: 36px; }
.group__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.group__name { font-size: 18px; font-weight: 600; }
.group__text { font-size: 14.5px; color: var(--ink-3); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tile {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px;
  background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tile:hover { border-color: var(--blue-600); color: inherit; }
.tile:hover .tile__title { color: var(--blue-600); text-decoration: underline; }
.tile__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--canvas); border-radius: var(--radius);
  font-size: 22px; line-height: 1;
}
.tile__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.tile__desc { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

.badge {
  padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap;
}

.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.promise { padding-top: 12px; border-top: 2px solid var(--ink); }
.promise__title { font-size: 16.5px; font-weight: 600; }
.promise__text { margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

.empty { padding: 28px 24px; color: var(--ink-3); }

/* ==========================================================================
   7. Unterseiten: Seitenkopf, Arbeitsbereich, Panels
   ========================================================================== */
.pagehead { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.pagehead__row { margin-top: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.pagehead__icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 28px; line-height: 1;
}
.pagehead__row--plain { grid-template-columns: minmax(0, 1fr); }
.pagehead h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.pagehead__desc { margin-top: 4px; max-width: 72ch; color: var(--ink-2); }

.workspace { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.workspace > * { min-width: 0; }
.workspace--single { grid-template-columns: minmax(0, 1fr); }
.workspace--wide-first { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.workspace--chat { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.workspace--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel + .panel--below { margin-top: 20px; }
.panel__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--line);
  font-size: 15.5px; font-weight: 600; line-height: 1.3;
}
.panel__head span { font-weight: 400; font-size: 14px; color: var(--ink-3); }
.panel__body { padding: 20px; }
.panel__foot { padding: 14px 20px; border-top: 1px solid var(--line); }

.related { padding-top: 48px; }
.related__title { margin-bottom: 14px; font-size: 18px; font-weight: 600; }

/* ==========================================================================
   8. Befund, Analyseschritte, Protokoll
   ========================================================================== */
.verdict { padding: 20px 24px 24px; border-left: 6px solid var(--line-2); }
.verdict[data-tone="ok"] { border-left-color: var(--ok); }
.verdict[data-tone="warn"] { border-left-color: var(--warn-fill); }
.verdict[data-tone="crit"] { border-left-color: var(--crit); }
.verdict__label { font-size: 15px; font-weight: 400; color: var(--ink-3); }
.verdict__text {
  margin-top: 6px;
  font-size: clamp(64px, 11vw, 136px); line-height: .92; font-weight: 700; letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.verdict__text--long { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
.verdict__note { margin-top: 16px; max-width: 58ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

.facts { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.facts > div { padding-top: 12px; }
.facts dt { font-size: 13.5px; color: var(--ink-3); }
.facts dd { margin-top: 2px; font-weight: 600; }

.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
/* Zeile mit frei eingegebenem Text: lange Woerter umbrechen statt ueberlaufen */
.kv dd.kv__text { min-width: 0; overflow-wrap: anywhere; }

.progress { height: 4px; background: var(--line); overflow: hidden; }
.progress__bar { width: 0; height: 100%; background: var(--blue-600); transition: width .3s linear; }

.steps { display: grid; gap: 12px; padding: 20px 24px 24px; }
.step { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 15px; color: var(--ink-3); }
.step__icon { position: relative; width: 16px; height: 16px; border: 2px solid var(--line-2); border-radius: 50%; }
.step__result { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.step[data-state="run"] { color: var(--ink); }
.step[data-state="run"] .step__icon { border-color: var(--blue-600); border-top-color: transparent; animation: spin .7s linear infinite; }
.step[data-state="done"] { color: var(--ink-2); }
.step[data-state="done"] .step__icon { border-color: var(--ok); background: var(--ok); }
.step[data-state="done"] .step__icon::after {
  content: ""; position: absolute; left: 3.5px; top: .5px; width: 5px; height: 8px;
  border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }

.terminal {
  min-height: 300px; padding: 16px 18px;
  background: var(--navy-950); color: #D3DEEC;
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75;
  white-space: pre; overflow-x: auto;
}
.terminal .t-dim { color: #8296B1; }
.terminal .t-ok { color: #62E0A2; }
.terminal .t-warn { color: #FFCF70; }
.terminal .t-crit { color: #FF8D83; }

.output {
  min-height: 132px; padding: 16px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.output--mono { font-family: var(--font-mono); font-size: 20px; font-weight: 500; min-height: 0; }
.output--compact { min-height: 0; }

.meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter__bar { width: 0; height: 100%; background: var(--blue-600); border-radius: 999px; transition: width .4s ease; }
.meter[data-tone="ok"] .meter__bar { background: var(--ok); }
.meter[data-tone="warn"] .meter__bar { background: var(--warn-fill); }
.meter[data-tone="crit"] .meter__bar { background: var(--crit); }
.meter-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14.5px; }
.meter-row strong { font-variant-numeric: tabular-nums; }

.figure {
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.figure small { margin-right: .22em; font-size: .36em; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.countdown > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.countdown strong { display: block; font-size: clamp(24px, 4vw, 36px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 13.5px; color: var(--ink-3); }

/* ==========================================================================
   9. Chat
   ========================================================================== */
.chat { display: flex; flex-direction: column; height: min(66vh, 580px); min-height: 420px; }
.chat__log { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: var(--canvas); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg--user { align-self: flex-end; background: var(--blue-600); color: #FFFFFF; border-bottom-right-radius: 3px; }
.msg--typing { color: var(--ink-3); }

.person { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; }
.person__avatar { display: grid; place-items: center; width: 52px; height: 52px; background: var(--canvas); border-radius: 50%; font-size: 26px; line-height: 1; }
.person__name { font-weight: 600; }

.qa { display: grid; gap: 0; }
.qa li { min-width: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.qa li:last-child { border-bottom: 0; }
.qa__q { font-size: 14.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.qa__a { margin-top: 2px; font-size: 20px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

/* ==========================================================================
   10. Tabellen, Status, Zeitachse
   ========================================================================== */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 10px 20px; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .sub { display: block; font-size: 13.5px; color: var(--ink-3); }

.alert {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px;
  padding: 18px 22px; border-radius: var(--radius);
  font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; letter-spacing: .01em;
}
.alert span { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.alert--crit { background: var(--crit); color: #FFFFFF; }

.bars { display: flex; gap: 2px; height: 26px; min-width: 220px; }
.bars span { flex: 1 1 0; min-width: 1px; background: var(--ok); border-radius: 1px; }
.bars span.is-warn { background: var(--warn-fill); }
.bars span.is-crit { background: var(--crit); }

.timeline li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { padding-top: 2px; font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); }
.timeline strong { display: block; }
.timeline p { color: var(--ink-2); }

/* ==========================================================================
   11. Preise, Bingo, Zertifikat, Fliesstext
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan--featured { border-color: var(--navy-900); box-shadow: inset 0 4px 0 var(--navy-900); }
.plan__name { font-size: 18px; font-weight: 600; }
.plan__for { margin-top: 2px; font-size: 14.5px; color: var(--ink-3); }
.plan__price { margin-top: 18px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.plan__price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.plan__list { margin: 18px 0 24px; display: grid; gap: 9px; font-size: 15px; color: var(--ink-2); }
.plan__list li { position: relative; padding-left: 24px; }
.plan__list li::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 11px;
  border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.plan .btn { margin-top: auto; }

.bingo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bingo__cell {
  display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 6px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: clamp(10.5px, 1.5vw, 14.5px); line-height: 1.2; text-align: center;
  hyphens: auto; overflow-wrap: anywhere;
}
.bingo__cell:hover { border-color: var(--ink-3); }
.bingo__cell[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #FFFFFF; }
.bingo__cell.is-win { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }

.cert-canvas { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #FFFFFF; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 32px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }

.release { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.release:first-child { padding-top: 0; }
.release:last-child { border-bottom: 0; padding-bottom: 0; }
.release__version { font-family: var(--font-mono); font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.release__date { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.release ul { padding-left: 20px; color: var(--ink-2); }
.release li + li { margin-top: 6px; }

.notfound { padding: 72px 0 24px; }

/* ==========================================================================
   12. Hinweise: Toast und Cookie-Dialog
   ========================================================================== */
.toasts {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  width: min(92vw, 480px); transform: translateX(-50%);
  display: grid; gap: 8px; pointer-events: none;
}
.toast {
  padding: 12px 16px;
  background: var(--navy-900); color: #FFFFFF; border-radius: 4px;
  box-shadow: 0 14px 32px -14px rgba(2, 10, 24, .7);
  font-size: 15px;
  animation: toast-in .18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.cookie {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: min(380px, calc(100vw - 32px)); padding: 18px 20px 20px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: 0 24px 48px -24px rgba(2, 10, 24, .5);
}
.cookie__title { font-weight: 600; }
.cookie__text { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.cookie .actions { margin-top: 14px; }

/* ==========================================================================
   13. Fusszeile
   ========================================================================== */
.footer { margin-top: 72px; padding: 44px 0 28px; background: var(--navy-950); color: var(--navy-300); font-size: 14.5px; }
body[data-page="home"] .footer { margin-top: 0; }
body[data-page="home"] .band { border-bottom: 0; }
.footer a { color: var(--navy-200); text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 48px; }
.footer__brand { font-size: 16px; font-weight: 600; color: #FFFFFF; }
.footer__tagline { margin-top: 6px; max-width: 36ch; }
.footer__title { margin-bottom: 10px; font-weight: 600; color: #FFFFFF; }
.footer__list li + li { margin-top: 6px; }
.footer__career { margin-top: 12px; max-width: 34ch; font-size: 13.5px; line-height: 1.45; }
.footer__legal {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--navy-800);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-size: 13.5px;
}
.footer__version { font-family: var(--font-mono); font-size: 12.5px; }

/* ==========================================================================
   14. Kleinere Bildschirme
   ========================================================================== */
@media (max-width: 980px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace, .workspace--chat, .workspace--even, .workspace--wide-first { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 40px 0; }
  .promises { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .pagehead__icon { width: 44px; height: 44px; font-size: 22px; }
  .panel__body { padding: 16px; }
  .verdict { padding: 16px 16px 20px; }
  .steps { padding: 16px; }
  .msg { max-width: 90%; }
  .cookie { right: 16px; bottom: 16px; }
  .table th, .table td { padding: 10px; }
  .table td { hyphens: auto; }
  .table .col-wide { display: none; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terminal { padding: 14px; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .panel__body--tight { padding: 10px; }
  .bingo { gap: 4px; }
  .bingo__cell { padding: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .footer, .cookie, .toasts, .related { display: none; }
  body { background: #FFFFFF; }
}
