/* c-brain.de – Stil der Website. Farben aus der Oberfläche von Company Brain (#1f4e79), Schriften selbst gehostet (SIL Open Font
   License, nur lateinischer Zeichensatz): keine Anfrage an Dritte. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ground: #f2f5f8;
  --surface: #ffffff;
  --ink: #10263b;
  --muted: #4f6478;
  --rule: #d5dee7;
  --accent: #1f4e79;
  --accent-soft: #e2ecf5;
  --node: #9ec5e8;
  --band: #1f4e79;
  --band-deep: #163a5c;
  --on-band: #ffffff;
  --on-band-muted: #c9dcee;
  --code-bg: #edf2f7;
  --placeholder: #6f8397;
  --shadow: rgba(16, 38, 59, 0.10);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0c1620;
    --surface: #132230;
    --ink: #e3ebf2;
    --muted: #97abbe;
    --rule: #263a4d;
    --accent: #9ec5e8;
    --accent-soft: #1a3148;
    --band: #173b5d;
    --band-deep: #10283f;
    --code-bg: #192c3e;
    --placeholder: #8499ad;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* Kopf: das Blau der Oberfläche */
.band {
  background: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%);
  color: var(--on-band);
  padding-block: 28px 56px;
}
.band.small { padding-block: 22px 26px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--on-band); text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand:focus-visible { outline-color: var(--on-band); }
.stand {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--on-band-muted);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
}
.hero { display: grid; gap: 20px; margin-top: 48px; max-width: 46rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; }
.hero p { font-size: 1.2rem; color: var(--on-band-muted); max-width: 40rem; }

/* Zwei Leser, dieselbe Notiz */
.compare { margin-top: -28px; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}
.note-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
  font-size: 0.9rem; color: var(--muted);
}
.reader { font-family: var(--mono); font-size: 0.78rem; background: var(--accent-soft); color: var(--accent); padding: 4px 9px; border-radius: 6px; }
.note-body { padding: 20px; display: grid; gap: 14px; align-content: start; }
.note-body h3 { font-size: 1.35rem; font-weight: 700; }
.crumb { font-size: 0.85rem; color: var(--muted); }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.placeholder { color: var(--placeholder); font-style: italic; border-bottom: 1px dashed var(--placeholder); }
.embed { border-left: 3px solid var(--node); background: var(--code-bg); padding: 12px 14px; border-radius: 0 6px 6px 0; display: grid; gap: 4px; }
.embed strong { font-family: var(--display); font-weight: 700; }
.gap-note { font-size: 0.85rem; color: var(--muted); border: 1px dashed var(--rule); border-radius: 6px; padding: 10px 12px; }
.compare-caption { margin-top: 18px; color: var(--muted); max-width: 48rem; }

/* Drei Schichten */
.layers { margin-top: 56px; display: grid; gap: 16px; }
.layers h2 { font-size: 1.5rem; }
.layer-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); overflow: hidden; }
.layer { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.layer + .layer { border-left: 1px solid var(--rule); }
.layer .step { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.layer strong { font-family: var(--display); font-size: 1.1rem; }
.layer p { font-size: 0.95rem; color: var(--muted); }
.layers-note { color: var(--muted); max-width: 52rem; }

/* Funktionsgruppen */
.groups { margin-top: 72px; display: grid; }
.group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding-block: 36px; border-top: 1px solid var(--rule); }
.group-head { display: grid; gap: 8px; align-content: start; }
.eyebrow { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.group-head h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.group-head p { color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.items li { display: grid; gap: 2px; max-width: 42rem; }
.items li strong { font-weight: 600; }
.items li span { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-family: var(--mono); font-size: 0.78rem; background: var(--code-bg); border: 1px solid var(--rule); padding: 3px 8px; border-radius: 5px; }
.fm {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.55;
  background: var(--code-bg); border: 1px solid var(--rule); border-radius: 8px;
  padding: 12px 14px; margin: 4px 0 0; overflow-x: auto; white-space: pre;
}
.fm .k { color: var(--accent); }
.fm .c { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 6px; }
table { border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; min-width: 360px; }
th, td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--muted); font-size: 0.82rem; }
td.num, th.num { text-align: right; }

.panel { padding: 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; display: grid; gap: 14px; }
.panel h2 { font-size: 1.35rem; }
.panel ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); max-width: 52rem; }
.panel strong { color: var(--ink); font-weight: 600; }
.contact { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact p { color: var(--muted); max-width: 40rem; }
.button {
  display: inline-block; font-family: var(--display); font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--surface); padding: 12px 20px; border-radius: 6px;
}
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Rechtstexte */
.legal { padding-block: 40px 24px; display: grid; gap: 28px; max-width: 46rem; }
.legal h1 { font-size: 2rem; font-weight: 800; }
.legal section { display: grid; gap: 8px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; }
.legal p, .legal li { color: var(--ink); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal .muted { color: var(--muted); }
address { font-style: normal; }

footer { margin-top: 56px; padding-block: 28px 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .compare-grid, .layer-row { grid-template-columns: minmax(0, 1fr); }
  .layer + .layer { border-left: 0; border-top: 1px solid var(--rule); }
  .group { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 28px; }
  .wrap { padding-inline: 16px; }
}
