/* =============================================================================
   Designsystem der drei SaaS-Produkte — 21st.dev-Stil.

   Vorbild ist das Redesign von mrmedia-web (Branch `redesign`,
   `web/src/app/redesign.css`): schwebende Glas-Navigation, 20px-Rundungen,
   Spotlight-Karten, maskiertes Raster, farbiges Licht. Übernommen ist die
   **Mechanik**, nicht die Marke — jedes Produkt setzt seinen eigenen Akzent.

   Bewusste Entscheidungen:

   * **Dark only.** Der Look lebt vom dunklen Grund, und mrmedia-web ist dort
     ebenfalls nur dunkel. Ein heller Modus wäre ein zweites Design, kein
     Schalter — und ein halb durchgezogener heller Modus sieht schlechter aus
     als keiner.
   * **Outfit trägt alles** (MRMedia-Regel 15). Mono **nur** für echte Daten:
     Logzeilen, IP-Adressen, Befehle, Fehlermeldungen im Wortlaut. Zahlen
     stehen über `tabular-nums` bündig, nicht über Mono.
   * **Self-hosted Schriften, kein Google Fonts** — Datenschutzentscheidung aus
     `mrmedia-web/web/CLAUDE.md`, hier fortgeführt. Auch die
     Content-Security-Policy lässt nichts anderes zu.
   * **Kein Pill-Badge-Kicker, kein Icon-Card-Raster** (MRMedia-Regel 14).
     Der `// Vorspann` bleibt, weil er Text ist und keine Deko.

   Die Klassennamen sind dieselben wie vorher. Der Look liegt über den
   bestehenden Vorlagen, damit keine Seite umgebaut werden muss, um ihn zu
   bekommen.
   ============================================================================= */

/* ---- Schriften ------------------------------------------------------------ */

@font-face {
  font-family: "Outfit";
  src: url("/kern/schrift/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/kern/schrift/jbmono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}

/* ---- Farben und Maße ------------------------------------------------------ */

:root {
  /* Flächen, von hinten nach vorn */
  --ink: #0b0f19;          /* Seitengrund */
  --midnight: #111827;     /* Karten */
  --panel: #161e2e;        /* gehobene Flächen */
  --raised: #212a3e;       /* Pille, aktive Fläche */

  --text: #f3f4f6;
  /* ⚠️ Nicht heller wirkende Töne nehmen: #5A6273 hat auf --ink nur 3,1:1.
     #8A91A3 hält 6,2:1 und damit WCAG AA auch für Kleintext. */
  --text-leise: #8a91a3;
  --text-weich: #c9cdd6;

  --rand: #1e2636;
  --linie: rgba(255, 255, 255, 0.10);
  --linie-weich: rgba(255, 255, 255, 0.05);

  /* Akzent — jedes Produkt überschreibt diesen Block in seiner basis.html.
     ⚠️ Der Akzent ist die **leuchtende** Farbe, und was darauf steht, ist
     dunkel (--auf-akzent). Andersherum geht es nicht: Weiß auf einem
     kräftigen Blau oder Grün hält die 4,5:1 für Kleintext nicht.
     Gemessen gegen --ink: Blau #6FA8FF = 7,6:1, Mint #34D399 = 9,5:1,
     Violett #A78BFA = 6,7:1. */
  --akzent: #6fa8ff;
  --akzent-tief: #4e7be8;
  --auf-akzent: #0b0f19;
  --akzent-r: 111;         /* dieselbe Farbe in Komponenten, für rgba() */
  --akzent-g: 168;
  --akzent-b: 255;

  --gut: #34d399;
  --warn: #f5a623;
  --fehler: #ff5b6a;

  --r-card: 20px;
  --r-big: 28px;
  --r-btn: 12px;
  --breite: 1140px;
  --kopf-h: 84px;
  --ease: cubic-bezier(.25, 1, .5, 1);

  --schrift: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}

::selection { background: rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .32); color: #fff; }

a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Nur für Screenreader: Überschriften, die die Gliederung brauchen, das Bild nicht. */
.nur-vorlesen {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--akzent); color: var(--auf-akzent); padding: 12px 18px; border-radius: 0 0 var(--r-btn) 0;
}
.sprung:focus { left: 0; }

/* ---- Kopf: schwebende Glasleiste ------------------------------------------ */

.kopf {
  position: fixed;
  inset: calc(env(safe-area-inset-top, 0px) + 14px) 0 auto 0;
  z-index: 50;
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  background: none;
  border: 0;
}

.kopf-innen {
  pointer-events: auto;
  width: 100%; max-width: var(--breite);
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 18px;
  border-radius: 18px;
  border: 1px solid var(--linie);
  background: rgba(17, 24, 39, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .9);
  transition: background .22s var(--ease), border-color .22s;
}

.marke {
  font-family: var(--schrift);
  font-size: 1.14rem; font-weight: 600; letter-spacing: -.03em;
  color: var(--text); text-decoration: none;
  white-space: nowrap;
}
.marke span { color: var(--akzent); }

/* Die Navigation ist eine Pillenleiste: der aktive Punkt bekommt eine Fläche
   und darüber eine kleine Lampe — das „Tubelight"-Muster aus dem Vorbild. */
.kopf nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--linie-weich);
  background: rgba(11, 15, 25, .6);
  font-size: .93rem;
}
.kopf nav a,
.kopf nav button {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 7px 15px;
  border: 0; border-radius: 999px;
  background: none; color: var(--text-leise);
  font: inherit; font-size: .93rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .18s, background .18s;
}
.kopf nav a:hover,
.kopf nav button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.kopf nav a[aria-current="page"] {
  color: var(--text);
  background: var(--raised);
}
.kopf nav a[aria-current="page"]::before {
  content: ""; position: absolute; top: -5px; left: 50%;
  width: 30px; height: 3px; transform: translateX(-50%);
  border-radius: 3px 3px 0 0; background: var(--akzent);
}
.kopf nav a[aria-current="page"]::after {
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 48px; height: 16px; transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .28);
  filter: blur(8px);
}

/* Der letzte Punkt ist die Handlung — heller Knopf, wie im Vorbild. */
.kopf nav .anmelden {
  background: var(--text); color: var(--ink); font-weight: 600;
  border-radius: 10px; padding: 8px 15px;
}
.kopf nav .anmelden:hover { background: #fff; color: var(--ink); }

@media (max-width: 720px) {
  .kopf-innen { padding: 8px 8px 8px 14px; gap: 8px; }
  .kopf nav { gap: 0; padding: 3px; font-size: .86rem; }
  .kopf nav a, .kopf nav button { padding: 6px 10px; font-size: .86rem; }
  .kopf nav .konto { display: none; }
}

/* ---- Rumpf: Raster und Licht ---------------------------------------------- */

main {
  position: relative;
  isolation: isolate;
  max-width: var(--breite);
  margin: 0 auto;
  padding: calc(var(--kopf-h) + 40px) 20px 96px;
}

/* Maskiertes Raster im oberen Bereich, darüber ein weicher Lichtkegel in der
   Akzentfarbe. Beides liegt hinter dem Inhalt und fängt keine Klicks. */
main::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px;
  z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(138, 145, 163, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 145, 163, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 30%, transparent 100%);
}
main::after {
  content: ""; position: absolute; left: 50%; top: -260px;
  width: 900px; max-width: 140vw; height: 560px;
  z-index: -1; pointer-events: none; transform: translateX(-50%);
  background: radial-gradient(closest-side,
    rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .16), transparent);
  filter: blur(30px);
}

/* ---- Typografie ----------------------------------------------------------- */

h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  margin: 0 0 18px;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 650;
  margin: 56px 0 18px; padding: 0; border: 0;
}
h3 { font-size: 1.06rem; letter-spacing: -.02em; font-weight: 600; margin: 0 0 6px; }

p { max-width: 72ch; margin: 0 0 14px; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6; color: var(--text-leise);
  max-width: 44rem; margin: 0 0 12px;
}
.lead strong, .lead b { color: var(--text); font-weight: 500; }

/* Der Vorspann ist Text, kein Etikett — bewusst ohne Fläche und ohne Rahmen. */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem; letter-spacing: .02em;
  color: var(--text-leise);
  margin: 0 0 14px;
}

code, kbd, pre, .mono { font-family: var(--mono); }
code {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--linie-weich);
  border-radius: 6px;
  padding: 1px 6px; font-size: .86em;
}
pre {
  background: rgba(11, 15, 25, .7);
  border: 1px solid var(--linie-weich);
  border-radius: 14px;
  padding: 16px 18px; margin: 0 0 18px;
  overflow-x: auto; font-size: .84rem; line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ---- Kennzahlen ----------------------------------------------------------- */

.zahlen {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr));
  margin: 0 0 32px; background: none; border: 0;
}
.zahl {
  border: 1px solid var(--rand); border-radius: var(--r-card);
  background: var(--midnight);
  padding: 20px 22px;
}
.zahl b {
  display: block;
  font-size: 2.1rem; font-weight: 700; line-height: 1.05; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.zahl span { display: block; font-size: .86rem; color: var(--text-leise); margin-top: 6px; }
.zahl.gut b { color: var(--gut); }
.zahl.warn b { color: var(--warn); }
.zahl.fehler b { color: var(--fehler); }

/* ---- Karten mit Spotlight -------------------------------------------------- */

.gitter {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
}

/* `wirkung.js` schreibt --x/--y beim Überfahren. Ohne JS bleibt die Karte
   ruhig — die Leuchte ist Zugabe, nicht Grundlage. */
.karte, .kasten, .zielkarte, .befund-karte, .tarif {
  --x: 50%; --y: -200px;
}
.karte {
  position: relative; overflow: hidden;
  display: block; padding: 20px 22px;
  border: 1px solid var(--rand); border-radius: var(--r-card);
  background: var(--midnight);
  color: inherit; text-decoration: none;
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}
.karte::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x) var(--y),
    rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .12), transparent 60%);
}
.karte::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; padding: 1px;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--x) var(--y),
    rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.karte:hover::before, .karte:hover::after { opacity: 1; }
.karte > * { position: relative; z-index: 1; }
.karte:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -25px rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .35);
}
.karte p { color: var(--text-leise); font-size: .92rem; margin: 0; max-width: none; }
.karte .nr {
  display: block; font-family: var(--mono);
  font-size: .72rem; color: var(--text-leise); margin-bottom: 8px;
  letter-spacing: .04em;
}

/* ---- Kasten ---------------------------------------------------------------- */

.kasten {
  position: relative;
  border: 1px solid var(--linie); border-radius: var(--r-big);
  background: rgba(255, 255, 255, .02);
  padding: 24px 26px; margin: 0 0 24px;
}
.kasten h3 { margin-top: 0; font-size: 1.1rem; }
.kasten p:last-child { margin-bottom: 0; }
.kasten.warnung { border-color: rgba(245, 166, 35, .35); background: rgba(245, 166, 35, .05); }

/* ---- Knöpfe ---------------------------------------------------------------- */

button, .knopf {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: .95rem; font-weight: 600;
  padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  background: var(--akzent); color: var(--auf-akzent);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 40px -12px rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .75);
  transition: background .2s, transform .15s var(--ease), box-shadow .2s;
}
button:hover, .knopf:hover {
  background: var(--akzent-tief); transform: translateY(-1px);
  box-shadow: 0 14px 44px -12px rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .85);
}
button:active, .knopf:active { transform: scale(.98); }

button.leise, .knopf.leise {
  background: rgba(255, 255, 255, .03);
  border-color: var(--linie);
  color: var(--text-weich);
  box-shadow: none;
}
button.leise:hover, .knopf.leise:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .45);
  color: var(--text);
}
button.gefahr { background: var(--fehler); color: #fff;
  box-shadow: 0 10px 40px -12px rgba(255, 91, 106, .6); }
button[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

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

/* ---- Formulare -------------------------------------------------------------- */

form.saeule { max-width: 34rem; }
.feld { margin: 0 0 18px; }
.feld label { display: block; font-size: .9rem; font-weight: 600; margin: 0 0 7px; }
.feld .hilfe { font-size: .85rem; color: var(--text-leise); margin: 7px 0 0; max-width: 52ch; }

.feld input[type="text"], .feld input[type="email"], .feld input[type="password"],
.feld input[type="search"], .feld input[type="url"], .feld input[type="number"],
.feld select, .feld textarea,
input[type="search"], input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .97rem;
  color: var(--text);
  background: rgba(11, 15, 25, .6);
  border: 1px solid var(--linie);
  border-radius: var(--r-btn);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.feld input::placeholder, .feld textarea::placeholder, input::placeholder {
  color: #6d7486;
}
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--linie); background: rgba(11, 15, 25, .8); }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 4px rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .15);
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a91a3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 38px;
}
input[type="file"] { padding: 10px 14px; font-size: .9rem; color: var(--text-leise); }
input[type="checkbox"] { accent-color: var(--akzent); width: 15px; height: 15px; vertical-align: -2px; }

/* Ein großes Eingabefeld mit Knopf daneben — die Hauptgeste auf Startseiten. */
.gross-feld {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px;
}
.gross-feld input {
  flex: 1; min-width: 240px;
  padding: 16px 18px;
  font: inherit; font-family: var(--mono); font-size: 1rem;
  color: var(--text);
  background: rgba(11, 15, 25, .7);
  border: 1px solid var(--linie);
  border-radius: var(--r-btn);
  transition: border-color .18s, box-shadow .18s;
}
.gross-feld input:focus-visible {
  outline: none; border-color: var(--akzent);
  box-shadow: 0 0 0 4px rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .15);
}
.gross-feld button { padding: 16px 28px; font-size: 1rem; }

/* ---- Hinweise ---------------------------------------------------------------- */

.hinweis {
  border: 1px solid var(--linie);
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, .025);
  padding: 14px 18px; margin: 0 0 26px;
  font-size: .97rem; max-width: none;
}
/* Kein farbiger Seitenstreifen: der ganze Rahmen tönt mit, die Fläche leicht. */
.hinweis.gut { border-color: color-mix(in srgb, var(--gut) 45%, transparent); background: color-mix(in srgb, var(--gut) 6%, transparent); }
.hinweis.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 6%, transparent); }
.hinweis.fehler { border-color: color-mix(in srgb, var(--fehler) 50%, transparent); background: color-mix(in srgb, var(--fehler) 7%, transparent); }

/* ---- Marker ------------------------------------------------------------------ */

.marker {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .02em;
  padding: 3px 9px;
  border: 1px solid currentColor; border-radius: 999px;
  white-space: nowrap;
}
.marker.gut { color: var(--gut); background: rgba(52, 211, 153, .08); }
.marker.warn { color: var(--warn); background: rgba(245, 166, 35, .08); }
.marker.fehler { color: var(--fehler); background: rgba(255, 91, 106, .08); }
.marker.leise { color: var(--text-leise); background: rgba(255, 255, 255, .03); }

/* ---- Tabellen ----------------------------------------------------------------- */

table {
  width: 100%; margin: 0 0 24px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--rand); border-radius: var(--r-card);
  background: rgba(17, 24, 39, .6);
  font-size: .9rem;
  display: block; overflow-x: auto;
}
th, td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--linie-weich);
  vertical-align: top; white-space: nowrap;
}
th {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-leise);
  background: rgba(11, 15, 25, .5);
}
tbody tr { transition: background .15s; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
td.mono, th.mono, .mono { font-family: var(--mono); font-size: .86em; }
tr.hervor td { background: rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .07); }

/* ---- Tarife -------------------------------------------------------------------- */

.tarife {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.tarif {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--rand); border-radius: var(--r-big);
  background: var(--midnight);
}
.tarif.hervor {
  border-color: rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .5);
  background: linear-gradient(180deg, var(--panel), var(--midnight));
  box-shadow: 0 30px 70px -40px rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .5);
}
.tarif h3 {
  font-family: var(--mono);
  font-size: .74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-leise); margin: 0 0 10px;
}
.tarif .preis {
  font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px;
}
.tarif .preis small { font-size: .85rem; font-weight: 400; color: var(--text-leise); letter-spacing: 0; }
.tarif ul { list-style: none; padding: 0; margin: 20px 0 24px; font-size: .92rem; flex: 1; }
.tarif li { position: relative; padding: 6px 0 6px 22px; color: var(--text-weich); }
.tarif li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--akzent);
}
.tarif .jetzt { margin-top: auto; }
.tarif .laeuft { font-size: .86rem; color: var(--gut); font-weight: 600; }

/* ---- Verbrauchsbalken ------------------------------------------------------------ */

.verbrauch { margin: 0 0 20px; }
.verbrauch .kopfzeile {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: .9rem; margin: 0 0 8px;
}
.verbrauch .zahl {
  font-variant-numeric: tabular-nums; color: var(--text-leise);
  display: inline; border: 0; background: none; padding: 0;
}
.balken {
  height: 8px; border-radius: 999px;
  /* ⚠️ Nicht dezenter machen: bei 0 % ist die Spur das Einzige, was man sieht.
     Eine unsichtbare Spur sieht aus wie eine fehlende Anzeige. */
  background: rgba(255, 255, 255, .11);
  border: 1px solid var(--linie-weich);
  overflow: hidden;
}
.balken i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--akzent);
  box-shadow: 0 0 12px rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .6);
}
.balken.voll i { background: var(--fehler); box-shadow: 0 0 12px rgba(255, 91, 106, .6); }
.balken.knapp i { background: var(--warn); box-shadow: 0 0 12px rgba(245, 166, 35, .6); }

/* ---- Leiste --------------------------------------------------------------------- */

.leiste {
  display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
  margin: 0 0 22px;
}
.leiste .wachsen { flex: 1; min-width: 200px; }
td form { display: inline; }

/* ---- Fuß ------------------------------------------------------------------------ */

.fuss {
  border-top: 1px solid var(--linie-weich);
  margin-top: 40px;
  padding: 28px 20px 48px;
  font-size: .87rem; color: var(--text-leise);
}
.fuss-innen { max-width: var(--breite); margin: 0 auto; }
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--text); }

/* ---- Bewegung ------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .auftritt { animation: auftritt .7s var(--ease) both; }
  .auftritt-2 { animation: auftritt .7s var(--ease) .09s both; }
  .auftritt-3 { animation: auftritt .7s var(--ease) .18s both; }
}
@keyframes auftritt {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

/* ---- Hero: der Kopf einer Startseite ----------------------------------------
   Mittig, groß, und darunter genau eine Geste — bei mailrampe das Eingabefeld,
   sonst zwei Knöpfe. Kein Etikett über der Überschrift: der Vorspann ist Text
   und steht für sich (MRMedia-Regel 14).
   ---------------------------------------------------------------------------- */

.hero {
  position: relative;
  text-align: center;
  max-width: 54rem;
  margin: 0 auto 8px;
  padding: 26px 0 8px;
}
.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.04em;
  margin: 0 0 22px;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero .lead {
  margin: 0 auto 30px;
  max-width: 38rem;
  font-size: clamp(1.06rem, 2.1vw, 1.22rem);
}
.hero .knopfreihe { justify-content: center; }
.hero form { margin: 0 auto; max-width: 38rem; }
.hero .gross-feld { justify-content: center; }
.hero .hilfe {
  font-size: .84rem; color: var(--text-leise);
  margin: 12px auto 0; max-width: 34rem;
}

/* Auf der Startseite steht das Licht höher und ist etwas kräftiger — dort
   trägt es die ganze Fläche über dem ersten Abschnitt. */
main.start::after {
  top: -300px; height: 680px; width: 1040px;
  background: radial-gradient(closest-side,
    rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .2), transparent);
}

/* Der erste Abschnitt nach dem Hero braucht Luft, sonst klebt er am Licht. */
.hero + h2, .hero + .kasten, .hero + .zahlen { margin-top: 64px; }

@media (max-width: 620px) {
  .hero { padding-top: 8px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
}

/* ---- Kleine Schirme --------------------------------------------------------------- */

@media (max-width: 620px) {
  main { padding: calc(var(--kopf-h) + 24px) 16px 64px; }
  .zahl { padding: 16px 18px; }
  .zahl b { font-size: 1.8rem; }
  .kasten, .tarif { padding: 20px 18px; }
  h2 { margin-top: 44px; }
}

/* Zwei-Faktor-Anmeldung (zweifaktor.html, zweifaktor-codes.html) */
.zf-qr { display: inline-block; padding: 0; border-radius: 10px; overflow: hidden; line-height: 0; margin: 8px 0 12px; }
.zf-qr svg { width: 220px; height: auto; display: block; }
.zf-geheimnis { font-size: .95rem; letter-spacing: .04em; word-break: break-all; user-select: all; }
.zf-codes { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; }
.zf-codes code { font-size: 1.05rem; letter-spacing: .06em; }
