/* Gestaltung nach den Mockups (mockup/*.dc.html), Farben/Logo von smart-sichtbar.ch.
   Schriften lokal, damit keine Verbindung zu Google entsteht. */
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url(fonts/fraunces-600.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 200 900; font-display: swap; src: url(fonts/source-sans-3.woff2) format('woff2'); }

:root {
  --bg: #f3f6fa; --card: #fff; --line: #d7dee8; --line-soft: #eef1f6;
  --ink: #1b2a44; --muted: #5c6b85; --faint: #8a94a6;
  --brand: #3fa9e0; --brand-dark: #1f78a6; --brand-soft: #e7f2fa; --accent: #9b6bb3;
  --ok: #2f8f5b; --ok-soft: #e5f3ea; --warn: #b5671f; --warn-soft: #f8e9da; --bad: #c0392b; --bad-soft: #fbe6e3;
  --head: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 17px/1.55 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; text-wrap: balance; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 .3em; }
h2 { font-size: 1.2rem; margin: 1.1em 0 .5em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }

/* Kopfzeile */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 32px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-size: .75rem; color: var(--muted); }
.brand img.brand-logo { width: auto; height: 46px; }
@media (max-width: 520px) { .brand img.brand-logo { height: 38px; } }
.top nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--brand-dark); }
.top nav a[aria-current="page"] { font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; }
.top form { margin: 0; }

main { max-width: 1200px; margin: 0 auto; padding: 32px 32px 56px; }
main.wide { max-width: 1200px; }
footer { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 20px 16px; font-size: .9rem; color: var(--muted); }
footer a { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0 0 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.narrow { max-width: 460px; margin: 0 auto; }
.prose { max-width: 720px; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
.hint { color: var(--muted); font-size: .9rem; margin: -4px 0 12px; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head form { display: flex; gap: 8px; align-items: center; margin: 0; }
.page-head select { width: auto; margin: 0; font-family: var(--head); font-size: 1.05rem; }

/* Formulare */
label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .92rem; }
label.check { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
label.check input { width: auto; margin-top: 4px; flex-shrink: 0; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; font: inherit; font-size: .97rem; font-weight: 400; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
input[type="checkbox"], input[type="radio"] { width: auto; display: inline-block; accent-color: var(--brand-dark); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font: inherit; font-weight: 600; font-size: .95rem; color: #fff; background: var(--brand-dark); border: 1px solid var(--brand-dark); border-radius: 9px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #18628a; }
.btn.ghost { color: var(--brand-dark); background: #fff; border-color: var(--brand-dark); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: #fff; color: var(--bad); border-color: #e3a8a1; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: 6px 13px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { padding: 0; font: inherit; color: var(--brand-dark); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--bad); }
.small { font-size: .88rem; }
.flash { padding: 11px 16px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }

/* Startseite (nicht angemeldet) */
.hero { padding: 30px 0 24px; }
.hero h1 { font-size: 2.4rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.price { margin-top: 26px; font-weight: 600; }

/* Listen, Status */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.list a { text-decoration: none; color: inherit; }
.list span { display: block; color: var(--muted); font-size: .95rem; }
.list time { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600; white-space: nowrap; background: var(--line-soft); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--brand-soft); color: var(--brand-dark); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; margin-bottom: 20px; border-radius: 12px; background: var(--warn-soft); color: #7a4510; }
.banner.info { background: var(--brand-soft); color: var(--ink); border: 1px solid #bfe0f3; }
.banner > div { flex: 1; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.kpi strong { display: block; font-family: var(--head); font-size: 2rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .9rem; }
.kpi.accent strong { color: var(--brand-dark); }
.kpi.warn strong { color: var(--warn); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.stat strong { display: block; font-size: 1.5rem; line-height: 1.25; }
.stat span { color: var(--muted); font-size: .9rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* Zeilen mit Linie (Dashboard, Listen in Karten) */
.line-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.line-row:last-child { border-bottom: 0; }
.line-row > .grow { flex: 1; min-width: 0; }
.line-row .sub { display: block; font-size: .88rem; color: var(--muted); }
a.line-row:hover { background: #fafcfe; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.req { width: 100%; border-collapse: collapse; font-size: .95rem; }
.req th, .req td { padding: 10px 10px 10px 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.req th { font-size: .82rem; color: var(--faint); font-weight: 600; white-space: nowrap; }
.req .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.req tfoot td { font-weight: 600; border-bottom: 0; }
.req td small { display: block; color: var(--muted); }
.req select { width: auto; margin: 0; padding: 5px 8px; font-size: .88rem; }
.req tr[data-href] { cursor: pointer; }
.req tr[data-href]:hover td { background: #fafcfe; }

/* Balkendiagramm Admin */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 60px 1fr 120px; gap: 12px; align-items: center; font-size: .9rem; }
.bar-row .label { color: var(--muted); }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; }
.bar-pair { display: flex; flex-direction: column; gap: 3px; }
.bar { height: 9px; border-radius: 6px; background: var(--brand); min-width: 2px; }
.bar.cost { background: var(--accent); }
.legend { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 3px; margin-right: 6px; background: var(--brand); }
.legend i.cost { background: var(--accent); }

/* Schritte/Tabs */
.steps, .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.steps button, .tabs button, .tabs a { padding: 8px 16px; font: inherit; font-size: .92rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; text-decoration: none; }
.steps button[aria-current="step"], .tabs button[aria-selected="true"], .tabs a[aria-current="page"] { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.tabs button:disabled { color: var(--faint); cursor: default; }
.savebar { display: flex; justify-content: flex-end; gap: 14px; align-items: center; margin-top: 4px; }
#save-state { color: var(--muted); font-size: .9rem; }

/* Profil */
.profile-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-head > .profile-text { flex: 1; min-width: 240px; }
.profile-head h2 { margin: 0 0 4px; }
.profile-head p { margin: 0; color: var(--muted); }
.ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--line-soft); }
.ring .value { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .4s; }
.ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 600; }
.step-panel > h2:first-child { margin-top: 0; }
.item-card { position: relative; padding: 18px 20px 6px; margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(27, 42, 68, .04); }
.item-card .remove { position: absolute; top: 12px; right: 16px; }
.item-row { display: grid; gap: 0 14px; padding-right: 80px; }
.item-row.exp { grid-template-columns: 105px 105px minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr); }
.item-row.edu { grid-template-columns: 105px 105px minmax(0, 1.6fr) minmax(0, 1.4fr); }
.item-row.texts { grid-template-columns: 1fr 1fr; padding-right: 0; }
.item-row.ref { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .item-row.exp, .item-row.edu, .item-row.ref { grid-template-columns: 1fr 1fr; padding-right: 0; } .item-row.texts { grid-template-columns: 1fr; } .item-card .remove { position: static; display: block; margin-bottom: 8px; } }
textarea.preview { cursor: pointer; background: #fbfcfe; overflow: hidden; }
textarea.preview:hover { border-color: var(--brand); }
.add-row { margin: 4px 0 18px; }

dialog.editor { width: min(760px, 92vw); padding: 24px; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(27, 42, 68, .25); }
dialog.editor::backdrop { background: rgba(27, 42, 68, .35); }
dialog.editor textarea { min-height: 320px; font-size: 1rem; }
dialog.editor .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

.drop { padding: 20px; margin-bottom: 16px; background: var(--card); border: 1px dashed #b8c4d4; border-radius: 12px; }
.drop h3 { margin: 0 0 4px; }
.drop .picker { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.drop .picker input[type="file"] { width: auto; flex: 1; min-width: 220px; margin: 0; background: var(--bg); }
.upload-ok { margin: 0 0 12px; padding: 8px 12px; background: var(--ok-soft); color: var(--ok); border-radius: 8px; font-size: .9rem; }
.mode-choice { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 4px; }
.mode-choice label.check { margin-bottom: 4px; font-size: .95rem; }
.star { color: var(--bad); font-weight: 700; }
.footnote { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--bad); background: var(--bad-soft); color: #7f2a20; border-radius: 0 8px 8px 0; font-size: .9rem; }
.footnote p { margin: 0 0 6px; }
.footnote p:last-child { margin: 0; }
.photo-preview { display: block; width: 120px; border-radius: 8px; margin-bottom: 8px; }

.chip-field label { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 20px; font-size: .9rem; max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { padding: 0 5px; font: inherit; line-height: 1.2; color: var(--brand-dark); background: none; border: 0; cursor: pointer; border-radius: 50%; }
.chip button:hover { background: #cfe6f4; }
.chips input { flex: 1; min-width: 200px; margin: 0; border: 0; padding: 4px 2px; }
.chips input:focus { outline: none; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.lang-card { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lang-card input { width: 140px; margin: 0; padding: 6px 8px; }
.file-list { margin: 0 0 16px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.file-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file-row time { color: var(--muted); font-size: .9rem; }

/* Bewerbungs-Set */
.progress { min-height: 1.4em; color: var(--muted); }
.progress.busy::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Bewerbung: Dokumente erstellen, Karte oben und Status pro Dokument */
.set-start { display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--brand); }
.set-start .progress { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--ink); }
.gen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gen-list li { display: flex; align-items: center; gap: 10px; }
.gen-list .sub { color: var(--muted); }
.gen-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.gen-list li.running .gen-mark { border: 2px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; }
.gen-list li.done .gen-mark { background: var(--good-soft, #e3f4ea); color: var(--good, #1d7a46); }
.gen-list li.failed .gen-mark { background: var(--bad-soft); color: var(--bad); }
.gen-list li.failed .sub { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .progress.busy::before { animation: none; } .ring .value { transition: none; } }
.fit { display: inline-block; padding: 3px 11px; border-radius: 14px; font-weight: 600; font-size: .9rem; background: var(--line-soft); }
.fit.hoch, .st-erfüllt { color: var(--ok); }
.fit.mittel, .st-teilweise { color: var(--warn); }
.fit.tief, .st-fehlt { color: var(--bad); }
.notes { padding: 12px 16px; margin: 0 0 16px; background: var(--warn-soft); border-radius: 10px; font-size: .95rem; }
.notes ul { margin: 4px 0 0; padding-left: 18px; }
.export { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.export label { margin: 0; min-width: 150px; }
.ad { white-space: pre-wrap; font: inherit; margin: 12px 0 0; }
.panel-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Einstellungen */
.settings { max-width: 860px; margin: 0 auto; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.setting-row:last-child { border-bottom: 0; }
.setting-row > div { flex: 1; }
.setting-row .sub { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline input { width: 130px; margin: 0; }
.card.danger { border-color: #ecc5c0; background: #fdf6f5; }
.card.danger h2 { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } main { padding: 24px 16px 48px; } .top { padding: 12px 16px; } }
.model-row { display: grid; grid-template-columns: 1fr 170px 150px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.model-row select { margin: 0; }
.model-row.head { font-size: .82rem; color: var(--faint); font-weight: 600; }

/* Hilfsklassen (style-Attribute sind per CSP gesperrt) */
.m0 { margin: 0 !important; }
.mt { margin-top: 12px !important; }
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--brand); }
.right { text-align: right; }
.muted { color: var(--muted); }
svg.hbar { display: block; width: 100%; height: 9px; }
svg.hbar rect.bg { fill: var(--line-soft); }
svg.hbar rect.rev { fill: var(--brand); }
svg.hbar rect.cost { fill: var(--accent); }
.chip { max-width: 100%; border-radius: 16px; align-items: flex-start; }
.chip span[role="button"] { white-space: normal; overflow-wrap: anywhere; cursor: text; padding: 1px 0; }
textarea.preview { resize: none; }
.lang-card input + input { width: 210px; }
details.card summary { cursor: pointer; }
details.card[open] summary { margin-bottom: 8px; }
.kpi strong.small { font-family: inherit; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.page-head form h1 { margin: 0; }
.row input[type="search"] { width: 260px; max-width: 100%; }
.steps button:disabled { opacity: .55; cursor: not-allowed; }

/* Nur-Lese-Listen (Admin-Profilansicht) und Einstellungen am Handy */
.line-row.kv > .sub:first-child { flex: 0 0 120px; }
.chips.plain { border: 0; padding: 0; background: none; }
@media (max-width: 600px) {
  .setting-row { flex-direction: column; align-items: stretch; }
  .setting-row > .btn, .setting-row > form, .setting-row > a.btn { align-self: flex-start; }
  .line-row.kv { flex-wrap: wrap; gap: 2px 14px; }
}

/* ---- Runde 2026-11-08 abends: Upload, Ziel, Onboarding, Abo, Generator ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.center { text-align: center; }
.small { font-size: .88rem; }
.mt { margin-top: 12px; }
.grow { flex: 1; }

/* Upload-Feld */
.upload-box { display: flex; flex-direction: column; gap: 12px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; margin: 0; text-align: center; background: #f8fafd; border: 2px dashed #c3cfdf; border-radius: 12px; cursor: pointer; font-weight: 400; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.over { background: var(--brand-soft); border-color: var(--brand); }
.dropzone:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.drop-icon { font-size: 1.8rem; line-height: 1; }
.chosen { margin: 0; padding: 8px 12px; background: var(--brand-soft); border-radius: 8px; font-size: .92rem; overflow-wrap: anywhere; }
/* Profil: gewählte Datei ersetzt das Feld, darunter der grosse Hochladen-Knopf */
.upload-box .chosen { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 16px; text-align: center; border: 2px solid var(--brand); border-radius: 12px; font-size: 1rem; }
.chosen-remove { margin-left: 8px; font-size: 1.2rem; line-height: 1; text-decoration: none; color: var(--muted); }
.btn.big { padding: 14px 36px; font-size: 1.1rem; font-weight: 700; border-radius: 11px; }
@media (max-width: 520px) { .btn.big { width: 100%; justify-content: center; } }
.mode-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.mode-card { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.mode-card:has(input:checked) { border-color: var(--brand-dark); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-dark); }
.mode-card input { margin-top: 4px; flex-shrink: 0; }
.mode-card strong { display: block; font-size: .95rem; }
.mode-card .sub { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.consent { margin: 0; font-size: .92rem; }
.upload-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-status { margin: 0; color: var(--muted); font-size: .92rem; }
.upload-status.busy::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; }
.upload-error { margin: 0; padding: 10px 14px; background: var(--bad-soft); color: var(--bad); border: 1px solid #efc2bc; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.upload-box .footnote { margin: 0; font-size: .84rem; }
.replace { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) { .mode-cards, .mode-cards.three { grid-template-columns: 1fr; } }

/* Hochgeladenes Dokument mit Vorschau */
.doc-card { display: flex; gap: 18px; align-items: flex-start; }
.doc-thumb { position: relative; flex: 0 0 150px; width: 150px; height: 212px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 8px rgba(27, 42, 68, .08); }
.doc-thumb iframe { width: 600px; height: 848px; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.doc-thumb.word { display: flex; align-items: center; justify-content: center; font: 700 2.4rem var(--head); color: #2b579a; background: #eef3fb; }
.doc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.doc-info .sub { font-size: .9rem; color: var(--muted); }
@media (max-width: 520px) { .doc-card { flex-direction: column; } }

/* Personalien */
.zip-city { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 12px; }
.photo-row { display: flex; gap: 18px; align-items: center; }
.photo-row .photo-preview { width: 110px; margin: 0; }
.photo-empty { display: flex; align-items: center; justify-content: center; width: 110px; height: 137px; flex-shrink: 0; font-size: 2rem; background: var(--line-soft); border-radius: 8px; }

/* Ziel */
.calc { margin: 4px 0 12px; padding: 10px 14px; background: var(--ok-soft); color: #1f5f3d; border-radius: 8px; }
label.narrow { max-width: 320px; margin-left: 0; margin-right: auto; }

/* Grosser Schalter (RAV) */
.toggle-card { display: flex; gap: 16px; align-items: center; padding: 16px 18px; margin: 4px 0 16px; background: var(--brand-soft); border: 1px solid #bfe0f3; border-radius: 12px; cursor: pointer; font-weight: 400; }
.toggle-card strong { display: block; font-size: 1.05rem; }
.toggle-card .sub { display: block; color: var(--muted); font-size: .9rem; }
input.switch { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 56px; height: 32px; margin: 0; padding: 0; border-radius: 20px; background: #c7d0dc; border: 0; position: relative; cursor: pointer; transition: background .2s; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
input.switch:checked { background: var(--brand-dark); }
input.switch:checked::after { left: 27px; }

/* Onboarding */
.wizard { max-width: 860px; margin: 0 auto; }
.wizard-head { max-width: 860px; margin: 0 auto 8px; text-align: center; }
.wsteps { display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; margin: 18px 0 24px; }
.wstep { display: inline-flex; align-items: center; gap: 8px; padding: 0; font: inherit; font-size: .95rem; color: var(--faint); background: none; border: 0; cursor: pointer; }
.wstep .dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft); color: var(--faint); font-weight: 700; }
.wstep.active { color: var(--brand-dark); font-weight: 600; }
.wstep.active .dot { background: var(--brand-dark); color: #fff; }
.wstep.done .dot { background: var(--brand-soft); color: var(--brand-dark); }
.wizard .savebar { justify-content: space-between; }
.spinner { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid #bfe0f3; border-top-color: var(--brand-dark); border-radius: 50%; animation: spin 1s linear infinite; }

/* Abo */
.banner.warn { border: 1px solid #efd3b4; }
.abo-banner > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--warn); color: #fff; font-weight: 700; }
.abo-banner form { margin: 0; }
.abo-row.off strong { color: var(--warn); }

/* Lebenslauf-Generator */
.generator { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; --cv: #7b6fd6; }
.gen-preview { position: sticky; top: 16px; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.preview-frame { width: 100%; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 18px rgba(27, 42, 68, .1); }
.preview-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 980px) { .generator { grid-template-columns: 1fr; } .gen-preview { position: static; max-width: 420px; } }
.tpl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tpl-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 14px; text-align: center; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.tpl-card input { position: absolute; opacity: 0; }
.tpl-card:has(input:checked) { border-color: var(--brand-dark); background: var(--brand-soft); }
.tpl-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.tpl-card .sub { font-size: .86rem; color: var(--muted); }
.tpl-thumb { display: flex; width: 120px; height: 168px; margin-bottom: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 6px rgba(27, 42, 68, .1); }
.t-side { display: flex; flex-direction: column; gap: 5px; width: 38%; padding: 10px 6px; background: color-mix(in srgb, var(--cv) 28%, white); }
.tpl-thumb.schlicht .t-side { background: color-mix(in srgb, var(--cv) 10%, white); }
.t-photo { display: block; width: 100%; aspect-ratio: 1 / 1.15; margin-bottom: 4px; background: color-mix(in srgb, var(--cv) 55%, #8a94a6); border-radius: 2px; }
.tpl-thumb.schlicht .t-photo { aspect-ratio: 1; border-radius: 50%; }
.t-main { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 7px; }
.t-name { display: block; height: 9px; width: 85%; margin-bottom: 3px; background: var(--cv); border-radius: 2px; }
.t-head { display: block; height: 4px; width: 50%; margin-top: 5px; background: #333; border-radius: 1px; }
.tpl-thumb.schlicht .t-head { background: var(--cv); }
.t-line { display: block; height: 3px; width: 100%; background: #d5dae2; border-radius: 1px; }
.t-line.short { width: 60%; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.swatch { width: 34px; height: 34px; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--brand-dark); }
.swatch-dot { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li > div { flex: 1; }
.checklist .sub { display: block; font-size: .86rem; color: var(--muted); }
.checklist .icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; font-weight: 700; font-size: .85rem; }
.checklist .ok .icon { background: var(--ok-soft); color: var(--ok); }
.checklist .warn { background: var(--warn-soft); margin: 4px -12px; padding: 10px 12px; border-radius: 8px; border-bottom: 0; }
.checklist .warn .icon { background: var(--warn); color: #fff; }
.checklist .optional .icon { background: var(--line-soft); color: var(--faint); }
.cost-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cost-card .sub { display: block; font-size: .88rem; color: var(--muted); }
.file-row.used { border-color: var(--ok); background: #f6fbf8; }
.file-row form { margin: 0; }
dialog.picker-dialog { padding: 20px; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(27, 42, 68, .25); }
dialog.picker-dialog::backdrop { background: rgba(27, 42, 68, .35); }
.picker-body { display: flex; gap: 14px; flex-wrap: wrap; }
.picker-body canvas { border: 1px solid var(--line); border-radius: 4px; cursor: crosshair; touch-action: none; }
.picker-fields { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.picker-sample { display: block; height: 34px; border: 1px solid var(--line); border-radius: 6px; }
.picker-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.picker-grid label, .picker-fields > label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.picker-grid input, .picker-fields input { margin: 0; padding: 5px 6px; width: 64px; }
.picker-fields > label input { width: 100px; font-family: monospace; }
dialog.picker-dialog .actions { display: flex; gap: 10px; margin-top: 16px; }
.file-row > .ico { flex: 0 0 auto; }
.preview-frame iframe { width: 794px; height: 1123px; transform-origin: 0 0; }
@media (max-width: 520px) { .doc-thumb { display: flex; align-items: center; justify-content: center; width: 80px; height: 100px; flex-basis: 80px; } .doc-thumb iframe { display: none; } .doc-thumb::after { content: "PDF"; font: 700 1.2rem var(--head); color: var(--bad); } .doc-thumb.word::after { content: none; } }
.generator > *, .cols > *, .card { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.row input { min-width: 0; }
@media (max-width: 520px) { .tpl-cards { gap: 8px; } .tpl-card { padding: 10px 6px; } .tpl-thumb { width: 96px; height: 134px; } }

/* Neue Bewerbung: Quelle des Inserats */
.narrow-page { max-width: 860px; margin: 0 auto; }
.source-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.source-tab { margin: 0; }
.source-tab input { position: absolute; opacity: 0; }
.source-tab span { display: inline-block; padding: 9px 18px; font-size: .95rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; }
.source-tab:has(input:checked) span { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.source-tab:has(input:focus-visible) span { outline: 2px solid var(--brand); outline-offset: 2px; }
.source-panel { display: none; }
.source-form:has(input[name="source"][value="pdf"]:checked) .source-panel[data-source="pdf"],
.source-form:has(input[name="source"][value="url"]:checked) .source-panel[data-source="url"],
.source-form:has(input[name="source"][value="text"]:checked) .source-panel[data-source="text"] { display: block; }
.source-card .upload-actions { margin: 6px 0 10px; }

/* Generator: Schriftwahl und Bild-Vorschau */
@font-face { font-family: "CV Source Sans"; src: url("fonts/cv/SourceSans3-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Lato"; src: url("fonts/cv/Lato-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Open Sans"; src: url("fonts/cv/OpenSans-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Source Serif"; src: url("fonts/cv/SourceSerif4-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Lora"; src: url("fonts/cv/Lora-Regular.ttf") format("truetype"); font-display: swap; }
.font-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.font-card { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.font-card input { position: absolute; opacity: 0; }
.font-card:has(input:checked) { border-color: var(--brand-dark); background: var(--brand-soft); }
.font-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.font-card strong { font-size: .92rem; }
.font-card .sub { font-size: .82rem; color: var(--muted); }
.font-sample { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; color: var(--ink); }
.font-sample-head { font-size: 1.35rem; line-height: 1.2; }
.font-sample-text { font-size: .8rem; line-height: 1.4; }
.font-source-sans .font-sample { font-family: "CV Source Sans", sans-serif; }
.font-lato .font-sample { font-family: "CV Lato", sans-serif; }
.font-open-sans .font-sample { font-family: "CV Open Sans", sans-serif; }
.font-source-serif .font-sample { font-family: "CV Source Serif", serif; }
.font-lora .font-sample { font-family: "CV Lora", serif; }
.preview-frame { position: relative; }
.preview-frame img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.preview-busy { position: absolute; inset: auto 0 0 0; padding: 8px 12px; background: rgba(255, 255, 255, .92); color: var(--muted); font-size: .88rem; text-align: center; }

/* Test-Umschaltung */
.user-switch { margin: 0; }
.user-switch select { width: auto; max-width: 230px; margin: 0; padding: 5px 8px; font-size: .85rem; border-color: var(--warn); background: var(--warn-soft); }
.switch-band { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: var(--warn); color: #fff; font-size: .92rem; }
.switch-band form { margin: 0; }
.switch-band .btn { background: #fff; color: var(--warn); border-color: #fff; }
.warn-toggle { background: var(--warn-soft); border-color: #efd3b4; }
.warn-toggle input.switch:checked { background: var(--bad); }
.inline-form { display: inline; margin: 0; }

/* Bewerbungsliste (Mockup Bewerbungen) */
.list-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-weight: 400; }
.search-box input { border: 0; margin: 0; padding: 10px 0; background: transparent; }
.search-box input:focus { outline: none; }
.search-box:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.list-filter select { width: auto; margin: 0; }
.chips-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fchip { padding: 7px 16px; border-radius: 20px; font-size: .88rem; font-weight: 600; background: #e8edf4; color: var(--muted); text-decoration: none; white-space: nowrap; }
.fchip:hover { background: #dde5ef; }
.fchip.active { background: var(--brand-dark); color: #fff; }
.app-table { padding: 6px 24px; }
.app-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr) 110px 130px 90px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.app-row:last-child { border-bottom: 0; }
.app-row.head { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 12px 0 10px; }
a.app-row:hover { background: #f8fafd; }
.app-row .role small { display: block; color: var(--muted); font-size: .85rem; }
.app-row .date { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .app-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .app-row.head { display: none; }
  .app-row .company { grid-column: 1; color: var(--muted); }
  .app-row .date { grid-column: 1; font-size: .88rem; }
  .app-row > span:nth-child(4) { grid-column: 2; grid-row: 1; }
  .app-row > span:last-child { display: none; }
}

/* Bewerbung Detail (Mockup BewerbungDetail) */
.detail-head { align-items: flex-start; }
.status-form { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; max-width: 300px; margin: 0; }
.status-form select { width: auto; min-width: 240px; margin: 0; font-weight: 600; }
.status-form .hint { text-align: right; font-size: .8rem; }
.stepper { display: flex; align-items: center; gap: 10px; padding: 18px 24px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--faint); }
.step small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.step .dot { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--line); }
.step.done { color: var(--ink); }
.step.done .dot { background: var(--ok); }
.step.now { color: var(--brand-dark); font-weight: 700; }
.step.now .dot { background: var(--brand-dark); box-shadow: 0 0 0 4px var(--brand-soft); }
.step-line { flex: 1; min-width: 16px; height: 2px; background: var(--line); }
.step-line.done { background: var(--ok); }
.phone-card { background: var(--brand-soft); border-color: #bfe0f3; }
.small-head { font-size: 1.05rem; margin-bottom: 10px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin-top: 10px; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kv .v { font-size: 1.05rem; font-weight: 600; }
.detail-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.detail-cols > .card { margin: 0; }
@media (max-width: 980px) { .detail-cols { grid-template-columns: 1fr; } }
.detail-cols + * { margin-top: 20px; }
.doc-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.prep-teaser { padding: 10px 12px; background: #f8fafd; border-radius: 8px; font-size: .95rem; }
.prep-teaser .sub, .prep-list .sub { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.prep-list li { margin-bottom: 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-card .sub { display: block; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .inline input { width: auto; flex: 1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .status-form { align-items: stretch; max-width: none; } .status-form .hint { text-align: left; } }
.doc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 8px; text-decoration: none; font-size: .9rem; }

/* RAV-Nachweis (Seite) */
table.rav { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.rav th, table.rav td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
table.rav th { background: #f3f6fa; font-size: .75rem; font-weight: 600; color: var(--muted); }
table.rav .c { text-align: center; }

/* Dashboard: Lebenslauf-Werbung */
.promo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: linear-gradient(90deg, var(--brand-soft), #fff); }
.promo .sub { display: block; color: var(--muted); }
.promo-icon { font-size: 2rem; }

/* Hinweis Verschlüsselung */
.privacy-note { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 18px; padding: 10px 14px; background: var(--ok-soft); color: #1f5f3d; border-radius: 10px; font-size: .9rem; text-align: left; }
.lock { font-size: .8em; font-weight: 400; cursor: help; }

/* Jobvorschläge */
.suggestions { margin-top: 36px; }
.sugg { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; align-items: start; margin: 14px 0 0; }
.sugg-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--brand); color: var(--brand-dark); }
.sugg-score.high { border-color: var(--ok); color: var(--ok); }
.sugg-score strong { font-family: var(--head); font-size: 1.35rem; line-height: 1; }
.sugg-score span { font-size: .72rem; color: var(--muted); }
.sugg-main .sub { color: var(--muted); margin-top: 2px; }
.sugg-main h3 { font-size: 1.15rem; }
.why { list-style: none; margin: 10px 0 8px; padding: 0; font-size: .95rem; }
.why li { position: relative; padding: 2px 0 2px 24px; }
.why li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.why li.gap { color: var(--muted); }
.why li.gap::before { content: "!"; color: var(--warn); left: 4px; }
.ext { font-size: .92rem; }
.sugg-actions { display: flex; flex-direction: column; gap: 8px; }
.sugg-actions form { margin: 0; }
.sugg-actions .btn { width: 100%; justify-content: center; }
@media (max-width: 700px) { .sugg { grid-template-columns: 64px minmax(0, 1fr); } .sugg-score { width: 60px; height: 60px; } .sugg-score strong { font-size: 1.05rem; } .sugg-actions { grid-column: 1 / -1; flex-direction: row; } .sugg-actions form { flex: 1; } }
.cron-state { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.cron-state.ok { background: var(--ok-soft); color: #1f5f3d; }
.cron-state.bad { background: var(--bad-soft); color: var(--bad); }
.cron-state code, .cron-cmd { font-family: Consolas, monospace; font-size: .88rem; }
.cron-cmd { display: block; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; white-space: nowrap; }
.block { display: block; }
label > .sub { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.source-box { padding: 14px 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.steps-list { margin: 8px 0; padding-left: 20px; font-size: .92rem; color: var(--muted); }
.steps-list li { margin-bottom: 3px; }
.reminder ul { padding-left: 18px; font-size: .95rem; }
.settings-tabs { position: sticky; top: 0; z-index: 5; padding: 10px 0; margin-bottom: 14px; background: var(--bg); }
@media (max-width: 600px) { .model-row { grid-template-columns: 1fr 1fr; } .model-row > :first-child { grid-column: 1 / -1; } .model-row.head { display: none; } }

/* Zweiter Schritt */
.code-input { font-family: Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em; }
.setup-steps { display: flex; flex-direction: column; gap: 22px; }
.setup-step { display: flex; gap: 16px; align-items: flex-start; }
.setup-step .sub { display: block; color: var(--muted); }
.setup-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--brand-dark); color: #fff; font-weight: 700; }
.qr-box { display: inline-block; margin-top: 12px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr-box svg { display: block; max-width: 100%; height: auto; }
.secret-key { font-family: Consolas, monospace; font-size: 1.1rem; letter-spacing: .06em; padding: 10px 12px; background: var(--bg); border-radius: 8px; overflow-wrap: anywhere; }
.backup-codes { columns: 2; font-family: Consolas, monospace; font-size: 1.15rem; padding-left: 28px; margin: 0; }
.backup-codes li { padding: 4px 0; }
.setup-step .inline input { width: 160px; }
.narrow.card form + .hint { margin-top: 14px; }
#sicherheit .inline input { width: 260px; max-width: 100%; }
.key-list { display: grid; gap: 8px; }
.key-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.key-row .grow { min-width: 0; }
.key-row .sub { display: block; }
.key-row.off { opacity: .7; background: var(--bg); }
.key-row code { font-size: .9em; }
.key-row .inline { gap: 6px; }
@font-face { font-family: "CV Arimo"; src: url("fonts/cv/Arimo-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Inter"; src: url("fonts/cv/Inter-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Carlito"; src: url("fonts/cv/Carlito-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Roboto"; src: url("fonts/cv/Roboto-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CV Tinos"; src: url("fonts/cv/Tinos-Regular.ttf") format("truetype"); font-display: swap; }
.font-arimo .font-sample { font-family: "CV Arimo", Arial, sans-serif; }
.font-inter .font-sample { font-family: "CV Inter", Helvetica, sans-serif; }
.font-carlito .font-sample { font-family: "CV Carlito", Calibri, sans-serif; }
.font-roboto .font-sample { font-family: "CV Roboto", sans-serif; }
.font-tinos .font-sample { font-family: "CV Tinos", "Times New Roman", serif; }
@font-face { font-family: "CV Inter Tight"; src: url("fonts/cv/InterTight-Regular.ttf") format("truetype"); font-display: swap; }
.font-inter-tight .font-sample { font-family: "CV Inter Tight", "Helvetica Neue", sans-serif; }
.nowrap { white-space: nowrap; }
.costs-table td { vertical-align: top; }
.costs-table td .sub { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.costs-table tfoot td { border-top: 2px solid var(--line); }
.costs-table tr.muted-row td { color: var(--muted); }
@media (max-width: 600px) { .costs-table th, .costs-table td { padding-left: 4px; padding-right: 4px; font-size: .88rem; } .costs-table td.num { white-space: nowrap; } }
/* Glocke: was ansteht */
.bell { position: relative; }
.bell > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--muted); cursor: pointer; position: relative; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary:hover, .bell[open] > summary { background: var(--line-soft); }
.bell > summary:has(.bell-count) { color: #e2a400; }
.bell > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-dark); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.bell-count.urgent { background: #c0392b; }
.bell-menu { position: absolute; right: 0; top: 48px; z-index: 30; width: 380px; max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 30, 50, .16); padding: 8px; }
.bell-head { margin: 4px 8px 6px; font-weight: 700; font-size: .9rem; }
.bell-empty { margin: 8px; color: var(--muted); font-size: .9rem; }
.bell-item { display: grid; gap: 2px; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.bell-item + .bell-item { border-top: 1px solid var(--line-soft); }
.bell-item:hover, .bell-item:focus-visible { background: var(--brand-soft); }
.bell-item .pill { justify-self: start; }
.bell-item .sub { font-size: .84rem; color: var(--muted); }
@media (max-width: 600px) { .bell-menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }
/* Dashboard: KI-Guthaben mit Ring und Hochrechnung */
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpis:has(.kpi-credit) { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); }
.kpi-credit { display: flex; align-items: center; gap: 14px; }
.mini-ring { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.mini-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.mini-ring circle { fill: none; stroke-width: 6; }
.mini-ring .track { stroke: var(--line-soft); }
.mini-ring .value { stroke: var(--ok); stroke-linecap: round; }
.kpi-credit.credit-warn .mini-ring .value { stroke: var(--warn); }
.kpi-credit.credit-bad .mini-ring .value { stroke: var(--bad); }
.mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; }
.credit-text { display: grid; gap: 2px; min-width: 0; }
.credit-text strong small { font-size: .9rem; font-family: inherit; color: var(--muted); font-weight: 400; }
.credit-forecast { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.kpi-credit.credit-warn .credit-forecast { color: var(--warn); }
.kpi-credit.credit-bad .credit-forecast { color: var(--bad); }
@media (max-width: 1100px) { .kpis:has(.kpi-credit) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis:has(.kpi-credit) .kpi-credit { grid-column: 1 / -1; } }
.kpi .credit-text { color: var(--ink); }
.kpi .credit-text > span { color: var(--muted); font-size: .9rem; }
.kpi .credit-text strong { font-size: 1.7rem; }
/* Aufgabenliste am Handy: Text über die ganze Breite, Knopf darunter */
@media (max-width: 600px) { .line-row:has(> .btn) { flex-wrap: wrap; } .line-row:has(> .btn) > .grow { flex-basis: 100%; order: 2; } .line-row:has(> .btn) > .btn { order: 3; } }
/* Rechtsseiten */
.legal.narrow { max-width: 860px; }
.legal h2 { margin-top: 34px; scroll-margin-top: 16px; }
.legal .summary { margin: 18px 0; border-left: 4px solid var(--brand); }
.legal .summary ul { margin: 10px 0 0; padding-left: 20px; }
.legal .summary li + li { margin-top: 6px; }
.legal .toc ol { columns: 2; column-gap: 32px; padding-left: 20px; margin: 8px 0 0; }
.legal .toc li { break-inside: avoid; margin-bottom: 4px; }
.legal .address { line-height: 1.6; }
.legal-table td { vertical-align: top; font-size: .92rem; }
.legal-table td:first-child { min-width: 220px; }
.legal li + li { margin-top: 6px; }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } .legal-table td:first-child { min-width: 160px; } }
/* Abo-Auswahl */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0 10px; }
.plan-card { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
.plan-card.current { border-color: var(--ok); background: var(--ok-soft); }
.plan-card .plan-name { font-size: 1.1rem; }
.plan-card .plan-price { font-family: var(--head); font-size: 1.6rem; font-weight: 600; }
.plan-card .plan-price small { font-family: inherit; font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan-card .pill, .plan-card form { justify-self: start; margin-top: 4px; }
.plan-table input:not(.switch) { width: 100%; min-width: 70px; }
.plan-table td:first-child input { min-width: 110px; }
.plan-table td:nth-child(4) input { min-width: 200px; }
.plan-table .plan-new td { background: var(--line-soft); }
footer .wish-link { color: var(--brand-dark); font-weight: 600; }
footer .version { opacity: .7; }

/* Support-Formular: verstecktes Feld gegen Spam-Bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
