/* bschweppe.de – Gestaltungssystem. Hell und warm, eine Akzentfarbe, Dunkelmodus nach System.
   Eine Schrift (Inter, lokal, keine Google-Server), Tabellenziffern, Haarlinien und Weißraum statt Kästen.
   Keine Verläufe, kein Blur, keine Dauerbewegung: die Seite soll im Leerlauf nichts rendern. */

@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --plane: #f3f2ee;
  --surface: #fbfaf8;
  --ink: #141413;
  --ink-2: #55534d;
  --muted: #6b6861;
  --hair: rgba(20, 20, 19, 0.10);
  --wash: rgba(20, 20, 19, 0.04);
  --accent: #1c5cab;
  --accent-hover: #174d90;
  --accent-ink: #ffffff;
  --ring: rgba(28, 92, 171, 0.22);
  --danger: #b42318;
  --band: #141413;
  --band-ink: #f2f1ed;
  --band-muted: #9a988f;
  --band-hair: rgba(255, 255, 255, 0.12);
  --shadow: 0 1px 2px rgba(20, 20, 19, 0.04), 0 10px 30px rgba(20, 20, 19, 0.06);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --wrap: 1040px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --plane: #121211;
    --surface: #1b1b1a;
    --ink: #f2f1ed;
    --ink-2: #c3c2b7;
    --muted: #97958f;
    --hair: rgba(255, 255, 255, 0.10);
    --wash: rgba(255, 255, 255, 0.05);
    --accent: #5b9ae8;
    --accent-hover: #78abee;
    --accent-ink: #0b0b0b;
    --ring: rgba(91, 154, 232, 0.32);
    --danger: #f08c82;
    --band: #0c0c0b;
    --band-ink: #f2f1ed;
    --band-muted: #8f8d85;
    --band-hair: rgba(255, 255, 255, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
@media (max-width: 560px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--plane);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

/* ---------- Grundbausteine ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hairline { border: 0; border-top: 1px solid var(--hair); margin: 0; }

.btn {
  font: inherit; font-weight: 500; color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: var(--radius); padding: 10px 16px; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn-outline:hover { background: var(--wash); }
.field { display: flex; gap: 8px; }
.field input, .input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.err { margin-top: 12px; font-size: 14px; color: var(--danger); }
.badge { display: inline-block; padding: 2px 8px; border: 1px solid var(--hair); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* Kennzahlen: Spalten mit Haarlinie dazwischen, große Zahl, kleine Beschriftung */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.kpi { padding: 16px 16px 16px 0; }
.kpi + .kpi { border-left: 1px solid var(--hair); padding-left: 16px; }
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .value { margin-top: 6px; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: proportional-nums; }
.kpi .sub { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--hair); }
}

/* Tabellen: Haarlinien, Zahlen rechts */
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--hair); }
.data td { padding: 8px 10px; border-bottom: 1px solid var(--hair); }
.data th.num, .data td.num { text-align: right; }

/* ---------- Startseite: typografisch, ein Akzent, ein Datenblatt ---------- */

.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 0; max-width: none; }
.hero-top { background: var(--band); color: var(--band-ink); }
.hero-top .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.hero-top .kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--band-muted); }
.mark { display: inline-block; width: 11px; height: 11px; background: var(--accent); }
.hero .stage, .hero footer { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.hero .stage { align-self: center; padding-block: 10vh 8vh; animation: appear .5s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }
.display { font-size: clamp(60px, 12.5vw, 176px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.92; margin: 0 0 0 -0.04em; min-height: 1.84em; }
.display .dot { color: var(--accent); transition: opacity .3s; }
.display.typing .dot { opacity: 0; }
.display .caret { display: inline-block; width: 0.06em; height: 0.78em; margin-left: 0.04em; background: var(--accent); vertical-align: -0.04em; }
.hero-row { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 32px 48px; align-items: end; margin-top: clamp(40px, 7vh, 72px); }
.claim { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); max-width: 20ch; }
.meta { margin: 0; padding: 6px 18px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--shadow); }
.meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.meta div:last-child { border-bottom: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 500; }
.hero footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero .stage { padding-block: 8vh 6vh; }
}

/* ---------- Schmale Spalte: Login, 404, 503, leer ---------- */

.center { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px var(--gutter); }
.col { width: min(440px, 100%); padding: 32px 32px 30px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.col h1 { margin: 10px 0 14px; font-size: 32px; }
.col p { color: var(--ink-2); }
.col .field { margin-top: 24px; }
.back { display: inline-block; margin-top: 24px; font-size: 14px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

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