/* Farbtokens wörtlich aus design/Login.dc.html.
   .theme-dunkel wird :root, .theme-hell wird [data-theme="hell"]. */

:root {
  --bg: #0B1017; --surface: #131B24; --surface2: #1B2632; --border: #26333F; --line: #1F2A35;
  --text: #E9EFF5; --muted: #93A3B3; --dim: #63737F;
  --brand: #2E7BFF; --brand-ink: #08111F; --brand-weich: #16243A;
  --signal: #FAF329; --alarm: #FF4D4D; --ok: #3FCF8E; --feld: #0B1017;
  color-scheme: dark;
}

[data-theme="hell"] {
  --bg: #F4F6F9; --surface: #FFFFFF; --surface2: #EDF1F6; --border: #D3DCE6; --line: #E4EAF1;
  --text: #1B242D; --muted: #5A6875; --dim: #8A97A3;
  --brand: #014DC7; --brand-ink: #FFFFFF; --brand-weich: #E5EDFB;
  --signal: #E7DB00; --alarm: #E60000; --ok: #1F9D63; --feld: #FFFFFF;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dunkel"]) {
    --bg: #F4F6F9; --surface: #FFFFFF; --surface2: #EDF1F6; --border: #D3DCE6; --line: #E4EAF1;
    --text: #1B242D; --muted: #5A6875; --dim: #8A97A3;
    --brand: #014DC7; --brand-ink: #FFFFFF; --brand-weich: #E5EDFB;
    --signal: #E7DB00; --alarm: #E60000; --ok: #1F9D63; --feld: #FFFFFF;
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  overflow-wrap: break-word;
}

a { color: var(--brand); text-decoration: none; }
a:hover { opacity: 0.8; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

img, svg { max-width: 100%; }

/* Grundraster: eine Spalte, seitliches Polster skaliert mit der Breite. */

.rand { padding-inline: clamp(20px, 5vw, 56px); }

.abschnitt {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: clamp(40px, 7vw, 64px);
  border-bottom: 1px solid var(--line);
}

.abschnitt-flaeche {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.abschnitt-kopf { display: flex; flex-direction: column; gap: 10px; }

.abschnitt-titel {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.abschnitt-vorspann {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
  text-wrap: pretty;
}

/* Kopfzeile */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.wortmarke { display: flex; align-items: center; gap: 12px; }

.wortmarke-zeichen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand);
  flex-shrink: 0;
}

.wortmarke-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(14px, 2.4vw, 28px);
}

.nav-punkt { font-size: 16px; color: var(--muted); }
.nav-punkt-aktiv { font-size: 16px; font-weight: 600; color: var(--text); }

/* Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 26px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

.knopf-still {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
}

.knopf-klein {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.knopf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }

/* Karten */

.karten-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.karten-raster-zwei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.karte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}

.karte-auf-flaeche { background: var(--surface2); }

.karten-titel { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.karten-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.marke {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--brand-weich);
  flex-shrink: 0;
}

.zahl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}

.karte-quer { flex-direction: row; gap: 16px; padding: 22px; border-radius: 12px; }
.karte-quer > svg { flex-shrink: 0; margin-top: 2px; }
.karte-quer-inhalt { display: flex; flex-direction: column; gap: 7px; }

/* Hinweisleiste */

.hinweis {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
}

.hinweis > svg { flex-shrink: 0; margin-top: 2px; }
.hinweis > span, .hinweis > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Kopfbereich der Startseite */

.aufmacher {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.aufmacher-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aufmacher-bild { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.merkmal {
  align-self: flex-start;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 13px;
  border-radius: 15px;
  background: var(--brand-weich);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.aufmacher-titel {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.aufmacher-absatz {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.fussnotiz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 15px;
  color: var(--dim);
  margin-top: 4px;
}

/* Schaubild im Kopfbereich */

.schaubild {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.schaubild-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.schaubild-koerper { display: flex; flex-direction: column; gap: 12px; padding: 16px; }

.tabellen-zeile {
  display: grid;
  grid-template-columns: 30px 1fr 1fr 66px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.tabellen-kopf {
  border: none;
  background: var(--surface2);
  padding: 7px 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.balken { height: 8px; border-radius: 4px; background: var(--border); }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.schaubild-paar { display: flex; flex-wrap: wrap; gap: 14px; }

.schaubild-feld {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}

.feld-titel { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.feld-fuss { font-size: 11px; color: var(--dim); }

.unterschriftsflaeche {
  display: flex;
  align-items: flex-end;
  height: 54px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--feld);
  border: 1px dashed var(--border);
  overflow: hidden;
}

.mustercode { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 60px; }
.mustercode span { height: 11px; background: var(--border); }
.mustercode span.voll { background: var(--text); }

/* Preisstufen */

.stufen-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.stufe {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}

.stufe-hervor { border: 2px solid var(--brand); }

.stufen-name { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.stufen-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.stufen-preis {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.preis-zahl {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.preis-zeitraum { font-size: 14px; color: var(--dim); }

.stufen-liste { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }

.zeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.zeile > svg { flex-shrink: 0; margin-top: 2px; }

.stufen-knopf { margin-top: auto; align-self: stretch; }

.stufen-abzeichen {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 11px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
}

.stufen-kopfreihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.stufen-zeichen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface2);
  flex-shrink: 0;
}

.stufen-zeichen-hervor { background: var(--brand-weich); }

.frage { margin: 0; font-size: 18px; font-weight: 700; }

/* Aufruf am Seitenende */

.aufruf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px clamp(24px, 4vw, 40px);
}

.aufruf-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

.aufruf-titel {
  margin: 0;
  font-size: clamp(24px, 3.8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.aufruf-kasten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}

/* Fließtext für Rechtsseiten */

.textseite { display: flex; flex-direction: column; gap: 28px; max-width: 780px; padding-block: clamp(36px, 6vw, 64px); }
.textseite h2 { margin: 0 0 10px 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.textseite h3 { margin: 0 0 8px 0; font-size: 18px; font-weight: 700; }
.textseite p { margin: 0 0 12px 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.textseite p:last-child { margin-bottom: 0; }
.textseite ul { margin: 0; padding-left: 22px; }
.textseite li { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 8px; }
.textblock { display: flex; flex-direction: column; }

/* Fußzeile */

.fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px clamp(24px, 4vw, 40px);
  padding-block: 36px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.fuss-marke { display: flex; flex-direction: column; gap: 6px; }
.fuss-name { font-size: 17px; font-weight: 700; }
.fuss-betreiber { font-size: 14px; color: var(--dim); }

.fuss-verweise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(12px, 2vw, 22px);
  font-size: 15px;
  color: var(--muted);
}

.trenner { color: var(--dim); }

.darstellung-schalter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Fehlerseite */

.fehlerseite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-block: clamp(48px, 10vw, 96px);
  max-width: 640px;
}

.fehler-nummer {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 48px;
  font-weight: 600;
  color: var(--brand);
}

/* Anmeldedialog und Anmeldeformular */

.anmelde-dialog {
  width: min(460px, calc(100vw - 32px));
  max-width: 100%;
  padding: 26px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.anmelde-dialog::backdrop { background: rgba(6, 10, 15, 0.62); }

.anmelde-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.anmelde-titel {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.anmelde-schliessen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
}

.anmelde-formular {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.anmelde-beschriftung { font-size: 15px; font-weight: 600; color: var(--muted); }

.anmelde-feld {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--feld);
  color: var(--text);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 16px;
}

.anmelde-feld[aria-invalid="true"] { border-color: var(--alarm); }

.anmelde-hilfe {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.anmelde-meldung {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--alarm);
}

.anmelde-knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.anmelde-knopfreihe .knopf,
.anmelde-knopfreihe .knopf-still {
  min-height: 52px;
  font-size: 17px;
  flex: 1 1 150px;
}

.anmelde-seite {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  padding-block: clamp(40px, 7vw, 72px);
}

@media (max-width: 700px) {
  .anmelde-dialog {
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .anmelde-knopfreihe .knopf,
  .anmelde-knopfreihe .knopf-still { flex: 1 1 100%; }
}
