/* Gemeinsame Gestaltung für /start, /add, /account und die einfachen Seiten.
   Helles Schema wie die Startseite (Entwurf 3): Papiergrund, weiße Karten, Tinte als Text,
   Signalrot nur für die Hauptaktion, dunkle Fußzeile. Farben nur über die Variablen unten. */
@import url("/css/fonts.css");
@import url("/css/acct.css");

:root {
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --ink: #0F141C;
  --ink-hover: #262E3B;
  --slate: #586374;
  --rule: #D8DDE4;
  --signal: #D6371F;
  --signal-hover: #B52D18;
  --screen: #06080C;
  --gutter: clamp(20px, 5vw, 64px);

  /* Text: kräftig, Nebentext, leiser Nebentext (alle mindestens 4,5:1 auf Weiß und Papier) */
  --tx: var(--ink);
  --tx2: var(--slate);
  --tx3: #667180;
  /* Flächen: Seite, Karte, Fläche in der Karte, kleine Symbol-Kachel */
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: #F7F8FA;
  --tint: #EDF0F4;
  /* Linien: Karte, Trenner, Feldrand (3:1) */
  --line: var(--rule);
  --line-soft: #E6EAEF;
  --line-strong: #8592A1;
  /* Zustände */
  --err-tx: #B42318;
  --err-bg: #FDF0EE;
  --err-line: #F0B9AF;
  --err-dot: #B52D18;
  --warn-tx: #8A5300;
  --warn-bg: #FFF7E6;
  --warn-line: #EBCB86;
  --ok: #1E8E5A;
  --ok-tx: #17784A;
  --off-bg: #DDE2E8;
  --off-tx: #5E6878;
  --shadow-pop: 0 24px 60px -24px rgba(15, 20, 28, 0.35), 0 2px 6px rgba(15, 20, 28, 0.06);
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16.5px/1.6 "Schibsted Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--tx); }
a:hover { color: var(--tx); }
input, button, textarea, select { font-family: inherit; }
::selection { background: #FAD3CC; color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #7A8493; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes addpulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ciblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden-user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
noscript p { max-width: 420px; margin: 20vh auto; padding: 0 20px; font-size: 16px; line-height: 1.6; color: var(--tx2); }

/* Seitengerüst */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

/* Kopfzeile wie auf der Startseite: oben luftig, beim Scrollen eine schwebende helle Leiste
   (html.scrolled setzt js/top.js). */
.hdr, .dash-hdr-in { width: calc(100% - 2 * max(12px, var(--gutter) - 16px)); max-width: 1172px; height: 60px; margin: 0 auto; padding: 0 10px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 18px; border: 1px solid transparent; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.hdr { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.dash-hdr { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
html.scrolled .hdr, html.scrolled .dash-hdr-in { background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: rgba(15, 20, 28, 0.08); box-shadow: 0 14px 34px -22px rgba(15, 20, 28, 0.45); }
.brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 26px; height: auto; display: block; filter: invert(1); }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.hdr-note { font: 600 12px "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: 0.05em; color: var(--tx2); }
.hdr-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--slate); text-decoration: none; transition: color 0.15s; }
.hdr-link:hover { color: var(--ink); }
.hdr-right { display: flex; align-items: center; gap: 18px; min-width: 0; }

.main { flex: 1; display: flex; justify-content: center; }
.main-start { padding: clamp(28px, 7vh, 88px) 20px 72px; }
.main-add { padding: clamp(24px, 5vh, 64px) 20px 64px; }
.main-acc { padding: clamp(32px, 8vh, 96px) 20px 80px; }
.col { width: 100%; max-width: 420px; }
.col-add { width: 100%; max-width: 500px; display: flex; flex-direction: column; }

/* Text */
.h1, .h1-add, .h1-acc { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.h1 { font-size: clamp(30px, 6vw, 36px); }
.h1-add { font-size: clamp(30px, 6vw, 38px); }
.h1-acc { font-size: clamp(32px, 6vw, 38px); }
.lead { margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--tx2); text-wrap: pretty; }
.muted { color: var(--tx2); }
.dim { color: var(--tx3); }
.eyebrow { font: 600 12px "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx2); }
.err-text { color: var(--err-tx); }
.warn-text { color: var(--warn-tx); }
.ok-text { color: var(--ok-tx); }

/* Formular */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-sm { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lbl { font-size: 14.5px; font-weight: 500; color: var(--tx); }
.inp { height: 50px; padding: 0 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-strong); color: var(--tx); font-size: 16px; outline: none; min-width: 0; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.inp:hover { border-color: #66717F; }
.inp-48 { height: 48px; padding: 0 14px; }
.inp-dlg { height: 48px; padding: 0 16px; }
.inp-mono { font: 400 15px "IBM Plex Mono", monospace; }
.inp-code { font: 600 15px "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: 0.05em; }
.inp:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 20, 28, 0.1); }
.inp[aria-invalid="true"] { border-color: var(--err-tx); }
.inp[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.inp:disabled { opacity: .6; }
.inp[readonly] { background: var(--surface-2); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.link-sm { font-size: 14px; color: var(--tx2); text-decoration: underline; text-decoration-color: rgba(15, 20, 28, 0.25); text-underline-offset: 4px; }
.link-sm:hover { color: var(--ink); text-decoration-color: currentColor; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--ink); }

/* Knöpfe: Hauptaktion rot, Nebenaktion dunkel oder Umriss */
.btn { border: 0; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none; font-family: inherit; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-pri { height: 50px; padding: 0 18px; background: var(--signal); color: #FFFFFF; font-size: 16px; font-weight: 600; width: 100%; }
.btn-pri:hover { background: var(--signal-hover); color: #FFFFFF; }
.btn-pri:disabled, .btn-pri.off { background: var(--off-bg); color: var(--off-tx); }
.btn-grow { min-height: 50px; height: auto; padding: 10px 18px; }
.btn-sec { height: 50px; padding: 0 18px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; width: 100%; }
.btn-sec:hover { background: var(--ink); color: #FFFFFF; }
.btn-out { height: 46px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 500; }
.btn-out:hover { border-color: var(--ink); }
.btn-out:disabled { color: var(--tx3); border-color: var(--line); background: var(--surface-2); }
.btn-text { padding: 0; border: 0; background: none; color: var(--tx2); font-size: 15px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(15, 20, 28, 0.2); text-underline-offset: 4px; }
.btn-text:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn-under { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(15, 20, 28, 0.35); text-underline-offset: 4px; cursor: pointer; font-size: inherit; }
.btn-under:hover { text-decoration-color: currentColor; }

/* Dialog-Knöpfe: im Dialog ist die Hauptaktion dunkel, Rot bleibt dem Löschen */
.dbtn { height: 46px; padding: 0 18px; border-radius: 11px; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.dbtn-pri { border: 0; background: var(--ink); color: #FFFFFF; font-weight: 600; padding: 0 20px; }
.dbtn-pri:hover { background: var(--ink-hover); }
.dbtn-pri:disabled { background: var(--off-bg); color: var(--off-tx); }
.dbtn-sec { border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-weight: 500; }
.dbtn-sec:hover { border-color: var(--ink); }
.dbtn-sec:disabled { color: var(--tx3); border-color: var(--line); }
.dbtn-danger { border: 1.5px solid var(--err-tx); background: transparent; color: var(--err-tx); font-weight: 600; }
.dbtn-danger:hover { background: var(--err-tx); color: #FFFFFF; }
.dbtn-kill { border: 0; background: var(--err-tx); color: #FFFFFF; font-weight: 600; }
.dbtn-kill:hover { background: #8F1B12; }
.dbtn-kill:disabled { background: var(--off-bg); color: var(--off-tx); }
.dlg-actions { margin-top: 24px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Kreisel: .spin auf farbigem Knopf (weiß), .spin-light auf hellem Grund (dunkel) */
.spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: currentColor; animation: spin .8s linear infinite; }
.spin-light { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(15, 20, 28, 0.15); border-top-color: var(--ink); animation: spin .8s linear infinite; }

/* Hinweise */
.alert { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--err-bg); border: 1px solid var(--err-line); color: var(--tx); font-size: 14.5px; line-height: 1.5; }
.alert-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.alert-icon { display: flex; gap: 12px; }
.alert-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--err-dot); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.notice { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 14.5px; line-height: 1.5; color: var(--tx); }
.btn-mini { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-mini:hover { background: var(--ink-hover); }
.pill { padding: 5px 10px; border-radius: 7px; background: var(--tint); color: var(--tx); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-warn { padding: 4px 9px; border-radius: 7px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-tx); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-ok { color: var(--ok-tx); font-weight: 600; white-space: nowrap; }

/* Runde Zustands-Zeichen (Erfolg, Abbruch) und kleine Symbol-Kacheln */
.mark-ok { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ok); color: #FFFFFF; font-weight: 700; }
.mark-off { display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--tx2); }
.tile { flex: none; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--ink); }
.tile-line { flex: none; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); color: var(--ink); }

/* Schloss-Hinweis */
.lock { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tx2); }
.lock-ico { flex: none; position: relative; width: 14px; height: 16px; }
.lock-ico i:first-child { position: absolute; left: 3px; top: 0; width: 8px; height: 8px; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 5px 5px 0 0; }
.lock-ico i:last-child { position: absolute; left: 0; top: 6px; width: 14px; height: 10px; border-radius: 2px; background: var(--ink); }

/* Segment-Umschalter (Tabs) */
.seg { padding: 4px; border-radius: 13px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 4px; }
.seg-tab { min-height: 44px; padding: 4px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--tx2); font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.seg-tab:hover { color: var(--ink); background: rgba(15, 20, 28, 0.05); }
.seg-tab[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.seg-tab.sm { min-height: 42px; padding: 4px 6px; font-size: 14.5px; }

/* Stärke-Anzeige */
.strength { display: flex; align-items: center; gap: 10px; }
.strength-bars { display: flex; gap: 4px; width: 96px; flex: none; }
.strength-bars i { flex: 1; height: 4px; border-radius: 4px; }
.strength span { font-size: 13.5px; color: var(--tx3); }
.strength span.bad { color: var(--err-tx); }

/* Fortschritt */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: flex; gap: 6px; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps i { height: 3px; border-radius: 3px; background: var(--line); }
.steps li.on i { background: var(--ink); }
.steps span { font: 500 14px "Schibsted Grotesk", system-ui, sans-serif; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li[aria-current] span { color: var(--ink); }
.bars { display: flex; gap: 6px; }
.bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.bars i.on { background: var(--ink); }

/* Geräte-Symbole (nur Linien) */
.ico-box { flex: none; display: flex; align-items: center; justify-content: center; }
.ico-pc { display: flex; flex-direction: column; align-items: center; }
.ico-pc i:first-child { border-style: solid; }
.ico-tv { display: flex; flex-direction: column; align-items: center; }
.ico-tv > span { display: flex; }

/* Geräte-Chip im Kopf (/start, /add) */
.chip { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }

/* Code-Eingabe */
.ci { position: relative; width: 100%; max-width: 440px; display: flex; align-items: center; gap: clamp(6px, 1.6vw, 10px); font-family: "IBM Plex Mono", ui-monospace, monospace; }
.ci-cell { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 5/6; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 7vw, 32px); font-weight: 500; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.ci-cell.filled { border-color: var(--ink); }
.ci-cell.active { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 20, 28, 0.12); }
.ci.err .ci-cell { border-color: var(--err-tx); box-shadow: none; background: var(--err-bg); }
.ci.dis .ci-cell { background: var(--surface-2); border-color: var(--line); color: var(--tx2); }
.ci-caret { position: absolute; width: 2px; height: 40%; background: var(--signal); border-radius: 2px; animation: ciblink 1s steps(1) infinite; }
.ci-dash { flex: none; width: clamp(8px, 2vw, 14px); height: 2px; border-radius: 2px; background: var(--tx3); }
.ci input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; cursor: text; caret-color: transparent; color: transparent; background: transparent; }
.ci input:disabled { cursor: default; }
.ci:focus-within { outline: none; }

/* Notfall-Code-Anzeige */
.codebox { padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font: 500 clamp(13px, 4vw, 17px) "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-align: center; user-select: all; white-space: nowrap; overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Karten und Listen */
.card { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.panel { padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.empty { padding: 24px 22px; border-radius: 14px; border: 1px dashed var(--line-strong); }
.dl { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; }
.dl dt { color: var(--tx2); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rows { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }

/* Dialog */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(15, 20, 28, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.dialog { position: relative; width: 100%; max-width: 460px; margin: auto; padding: clamp(22px, 4vw, 30px); border-radius: 20px; background: var(--white); border: 1px solid rgba(15, 20, 28, 0.08); color: var(--tx); box-shadow: 0 40px 100px -30px rgba(15, 20, 28, 0.5); }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--tx2); font-size: 20px; cursor: pointer; }
.dlg-close:hover { background: rgba(15, 20, 28, 0.06); color: var(--ink); }
.dlg-title { margin: 0; padding-right: 36px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.dlg-text { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--tx2); }

/* Mitteilung */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font-size: 14.5px; font-weight: 500; box-shadow: 0 20px 50px -16px rgba(15, 20, 28, 0.55); }

/* Einfache Textseiten (Impressum usw.) */
.prose { width: 100%; max-width: 680px; margin: 0 auto; padding: clamp(40px, 9vh, 104px) 20px 88px; }
.prose h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.prose p { margin: 16px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--tx2); }
.prose a:not(.pbtn) { color: var(--ink); font-weight: 500; text-decoration-color: rgba(15, 20, 28, 0.3); text-underline-offset: 5px; }
.prose a:not(.pbtn):hover { text-decoration-color: currentColor; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* /add */
.pw-eye { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--tx2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-eye:hover { background: rgba(15, 20, 28, 0.06); color: var(--ink); }
.drop { position: relative; min-height: 140px; padding: 20px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; transition: border-color 0.15s, background-color 0.15s; }
.drop:hover, .drop:focus-within { border-color: var(--ink); background: var(--surface-2); }
.drop:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.send-btn { height: 44px; padding: 0 18px; border-radius: 11px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background-color 0.15s, color 0.15s; }
.send-btn:hover { background: var(--ink); color: #FFFFFF; }
.send-btn:hover .spin-light { border-color: rgba(255, 255, 255, 0.35); border-top-color: #FFFFFF; }

/* /account */
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--tx2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: rgba(15, 20, 28, 0.06); }
.dash-email { font-size: 14px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 639px) { .dash-email { display: none; } }
.btn-signout { flex: none; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-signout:hover { border-color: var(--ink); }
.dash-main { flex: 1; max-width: 1040px; width: 100%; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 40px) 96px; }
.dash-title { margin: 0; font-size: clamp(34px, 4.4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.dash-sep { padding-left: 14px; border-left: 1px solid var(--line); }
.plan-name { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.card-h { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pbtn { height: 44px; padding: 0 18px; border-radius: 11px; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: inherit; white-space: nowrap; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.pbtn.sm { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.pbtn-pri { border: 0; background: var(--ink); color: #FFFFFF; font-weight: 600; }
.pbtn-pri:hover { background: var(--ink-hover); color: #FFFFFF; }
.pbtn-sig { border: 0; background: var(--signal); color: #FFFFFF; font-weight: 600; }
.pbtn-sig:hover { background: var(--signal-hover); color: #FFFFFF; }
.pbtn-sec { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; }
.pbtn-sec:hover { background: var(--ink); color: #FFFFFF; }
.upbtn { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.upbtn:hover { border-color: var(--ink); }
.upbtn[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--white); }
.radio-card { text-align: left; padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; display: flex; gap: 14px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.radio-card:hover { border-color: var(--ink); }
.radio-card[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-dot { flex: none; margin-top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); }
.radio-card[aria-checked="true"] .radio-dot { border: 5px solid var(--ink); }
.btn-remove { flex: none; height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; color: var(--tx2); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(15, 20, 28, 0.2); text-underline-offset: 4px; }
.btn-remove:hover { color: var(--err-tx); background: var(--err-bg); text-decoration-color: currentColor; }
.danger-zone { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--err-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.skel { border-radius: 20px; background: #E3E7EC; animation: pulse 1.4s ease-in-out infinite; }

/* Sprungziele auf /account (#section=…): Abstand unter dem Kopf, kurz hervorheben */
.jump { scroll-margin-top: 96px; transition: box-shadow .4s ease, border-color .4s ease; }
.jump.flash { border-color: var(--ink) !important; box-shadow: 0 0 0 4px rgba(15, 20, 28, 0.08), 0 24px 60px -30px rgba(15, 20, 28, 0.35); }
@media (max-width: 639px) { .dash-home { display: none; } }

/* Hilfeseiten */
.help { width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) 20px 88px; }
.help h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.help .lead { font-size: 18px; line-height: 1.6; max-width: 58ch; }
.help-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 36px; }
.help-card { padding-top: 16px; border-top: 2px solid var(--ink); }
.help-card h2 { margin: 0; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.help-card p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--tx2); text-wrap: pretty; }
.help-card code { display: block; margin-top: 14px; padding: 2px 0 2px 12px; border-left: 2px solid var(--line); font: 400 13px/1.7 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink); overflow-wrap: anywhere; }
.help-note { margin: 18px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--tx2); }
.help-grid + .help-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.help-note b { color: var(--ink); font-weight: 600; }
.help-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.help-actions .pbtn { min-height: 48px; }
.help-list { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.help-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--tx2); }
.help-list li > span:first-child { flex: none; width: 24px; font: 600 15px/1.65 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.help-list li b { color: var(--ink); font-weight: 600; }
.help a:not(.pbtn) { text-underline-offset: 4px; }
.help .lead-2 { margin-top: 14px; }
.page-glow { background: radial-gradient(60% 40% at 50% 0%, #E3E8EF 0%, rgba(243, 245, 247, 0) 70%), var(--bg); }
.e404 { margin: 0 0 14px; font: 500 13px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.12em; color: var(--signal-hover); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: #FFFFFF; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 12px; color: #FFFFFF; }
@media (max-width: 519px) { .hdr-home, .hdr-host { display: none; } }

/* Fußzeile wie auf der Startseite: dunkel, kurz (js/foot.js) */
.foot { background: var(--screen); color: #8B95A5; padding: clamp(44px, 6vw, 64px) var(--gutter) 28px; font-size: 15px; line-height: 1.6; }
.foot-in { max-width: 1140px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 36px 64px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot .brand { color: #FFFFFF; }
.foot .brand img { filter: none; }
.foot-brand p { margin: 0; max-width: 22em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-nav div { display: grid; gap: 10px; align-content: start; }
.foot-nav h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: #FFFFFF; }
.foot a { color: #8B95A5; text-decoration: none; transition: color 0.15s; }
.foot a:hover { color: #FFFFFF; }
.foot-bottom { margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14px; }
.foot-top + .foot-bottom { margin-top: clamp(36px, 5vw, 56px); }
.foot-in > .foot-bottom:first-child { margin-top: 0; }
.foot-bottom p { margin: 0; display: flex; align-items: center; gap: 10px; max-width: 52em; }
.langs { display: flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.langs a { padding: 6px 12px; border-radius: 8px; font-size: 14px; }
.langs a[aria-current] { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.foot :focus-visible { outline-color: #FFFFFF; }

@media (max-width: 899.98px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 519.98px) {
  .hdr, .dash-hdr-in { padding: 0 8px 0 14px; }
  .hdr, .dash-hdr { top: 8px; margin-top: 8px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
