/* admin.css – JobOcean Cockpit (Desktop). Mobil-Regeln (≤600px) NUR in mobile-admin.css. */
:root {
  --blue: #0A5BFB; --blue-dark: #0847C9; --blue-light: #E8F0FF;
  --orange: #F86C06; --orange-dark: #D35C05; --orange-light: #FFF1E6;
  --bg: #F3F5FA; --karte: #FFFFFF; --border: #E5E7EB; --border-stark: #D1D5DB;
  --ink: #111827; --text: #1F2937; --muted: #6B7280;
  --green: #16A34A; --green-light: #DCFCE7; --yellow: #F59E0B; --yellow-light: #FEF3C7; --red: #DC2626; --red-light: #FEE2E2;
  --radius: 8px; --sidebar: 236px; --schatten: 0 1px 2px rgba(17,24,39,.05);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.25; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
s { color: var(--muted); }
[hidden] { display: none !important; }
.text-muted { color: var(--muted); }
.klein { font-size: .85rem; }
.leer { color: #9CA3AF; }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }
.schmal { width: 36px; }

/* ── App-Gerüst ─────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: 0 0 var(--sidebar); background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; color: var(--ink); font-weight: 800; letter-spacing: .2px; }
.sidebar-logo img { height: 22px; width: auto; }
.sidebar-logo span { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .6px; white-space: nowrap; }
.sidebar-logo:hover { text-decoration: none; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: .95rem; }
.nav-item:hover { background: var(--bg); text-decoration: none; }
.nav-item.aktiv { background: var(--blue-light); color: var(--blue); }
.nav-item .ico { flex: 0 0 auto; opacity: .85; }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 8px; min-width: 20px; text-align: center; }
.nav-trenner { margin: 14px 12px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.sidebar-fuss { border-top: 1px solid var(--border); padding: 12px; display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--text); border-radius: var(--radius); padding: 6px; }
.user-chip:hover { background: var(--bg); text-decoration: none; }
.user-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-text strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-text small { color: var(--muted); font-size: .75rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logout-form { margin: 0; }
.btn-icon { background: none; border: 1px solid transparent; border-radius: var(--radius); padding: 7px; color: var(--muted); cursor: pointer; display: inline-flex; }
.btn-icon:hover { background: var(--bg); color: var(--ink); }
.nur-mobil { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 28px; display: flex; align-items: center; gap: 16px; }
.suche { position: relative; flex: 1; max-width: 640px; display: flex; align-items: center; }
.suche > .ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.suche input { width: 100%; padding: 10px 12px 10px 38px; border: 2px solid var(--border); border-radius: var(--radius); font-size: .95rem; font-family: inherit; outline: none; background: var(--bg); transition: border-color .15s, background .15s; }
.suche input:focus { border-color: var(--blue); background: #fff; }
.suche-ergebnisse { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(17,24,39,.14); max-height: 70vh; overflow-y: auto; z-index: 60; }
.suche-gruppe { padding: 8px 0; border-bottom: 1px solid var(--border); }
.suche-gruppe:last-child { border-bottom: 0; }
.suche-gruppe-titel { padding: 4px 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.suche-treffer { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--text); }
.suche-treffer:hover, .suche-treffer.aktiv { background: var(--blue-light); text-decoration: none; }
.suche-treffer strong { color: var(--ink); }
.suche-treffer small { color: var(--muted); display: block; }
.suche-treffer .typ { font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 8px; text-transform: uppercase; letter-spacing: .5px; flex: 0 0 auto; }
.typ-kunden { background: var(--blue-light); color: var(--blue); }
.typ-kampagnen { background: var(--orange-light); color: var(--orange-dark); }
.typ-kandidaten { background: var(--green-light); color: var(--green); }
.suche-leer, .suche-lade { padding: 14px; color: var(--muted); font-size: .9rem; }
.topbar-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.inhalt { padding: 26px 28px 40px; max-width: 1480px; width: 100%; }
.fusszeile { margin-top: auto; padding: 14px 28px; font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); }

/* ── Seitenkopf, Karten, Raster ─────────────────────── */
.seitenkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.seitentitel { font-size: 1.55rem; font-weight: 800; }
.seitenkopf p { margin: 4px 0 0; }
.seitenkopf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.brotkrumen { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.karte { background: var(--karte); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--schatten); }
.karte-leise { background: #FAFBFD; }
.karte-warn { border-color: #FECACA; }
.karte-ok { border-color: #BBF7D0; }
.karte-schmal { max-width: 520px; }
.karte-titel { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.02rem; margin-bottom: 14px; flex-wrap: wrap; }
.karte-titel.klein { font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; }
.karte-titel .ico { color: var(--blue); }
.karte-link { margin-left: auto; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.spalten-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.spalten-2 > .karte { margin-bottom: 18px; }
.kacheln { display: grid; gap: 12px; }
.kacheln-2 { grid-template-columns: repeat(2, 1fr); }
.kacheln-3 { grid-template-columns: repeat(3, 1fr); }
.kacheln-4 { grid-template-columns: repeat(4, 1fr); }
.kachel { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); transition: border-color .15s; }
.kachel:hover { border-color: var(--blue); text-decoration: none; }
.kachel-zahl { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.kachel-label { font-size: .85rem; color: var(--muted); }
.kachel-rot { background: var(--red-light); border-color: #FECACA; } .kachel-rot .kachel-zahl { color: var(--red); }
.kachel-gelb { background: var(--yellow-light); border-color: #FDE68A; } .kachel-gelb .kachel-zahl { color: #B45309; }
.kachel-aktiv { outline: 2px solid var(--blue); outline-offset: 1px; }
.chip-filter-links { margin-left: 0; }
.chip-filter a.chip { text-decoration: none; }
/* Farbige Filter-Chips (Aufgaben): gleiche Töne wie die Kacheln, aktiv = kräftig gefüllt */
.chip-blau { background: var(--blue-light); border-color: #BFD3FF; color: var(--blue-dark); }
.chip-blau.aktiv { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-rot { background: var(--red-light); border-color: #FECACA; color: #B91C1C; }
.chip-rot.aktiv { background: var(--red); border-color: var(--red); color: #fff; }
.chip-gelb { background: var(--yellow-light); border-color: #FDE68A; color: #B45309; }
.chip-gelb.aktiv { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.chip-blau .chip-zahl, .chip-rot .chip-zahl, .chip-gelb .chip-zahl { opacity: .85; }
.aktions-liste { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.leerzustand { display: flex; align-items: center; gap: 10px; padding: 22px 12px; color: var(--muted); justify-content: center; text-align: center; margin: 0; }
.leerzustand .ico { color: #9CA3AF; }
.leerzustand.klein { padding: 10px 0; justify-content: flex-start; font-size: .9rem; }

/* ── Buttons, Eingaben, Badges ──────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
.btn-primaer { background: var(--orange); border-color: var(--orange); }
.btn-primaer:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-sekundaer { background: #fff; color: var(--text); border-color: var(--border-stark); }
.btn-sekundaer:hover { background: var(--bg); border-color: var(--border-stark); }
.btn-klein { padding: 6px 10px; font-size: .82rem; }
.btn-breit { width: 100%; justify-content: center; padding: 12px; font-size: 1rem; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: .88rem; cursor: pointer; padding: 6px 4px; font-family: inherit; }
.eingabe { padding: 9px 12px; border: 2px solid var(--border); border-radius: var(--radius); font-size: .92rem; font-family: inherit; background: #fff; color: var(--text); outline: none; transition: border-color .15s; min-width: 0; }
.eingabe:focus { border-color: var(--blue); }
select.eingabe { cursor: pointer; }
.eingabe-klein { padding: 6px 9px; font-size: .85rem; }
.eingabe-kurz { max-width: 140px; }
textarea.eingabe { min-height: 110px; resize: vertical; line-height: 1.45; }
.eingabe-mit-icon { position: relative; }
.eingabe-mit-icon .eingabe { width: 100%; padding-right: 40px; }
.eingabe-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; display: inline-flex; }
.eingabe-icon:hover { background: var(--bg); color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 8px; font-size: .76rem; font-weight: 700; white-space: nowrap; line-height: 1.5; vertical-align: middle; }
.badge-gruen { background: var(--green-light); color: #15803D; }
.badge-gelb { background: var(--yellow-light); color: #B45309; }
.badge-rot { background: var(--red-light); color: #B91C1C; }
.badge-blau { background: var(--blue-light); color: var(--blue-dark); }
.badge-orange { background: var(--orange-light); color: var(--orange-dark); }
.badge-grau { background: #F3F4F6; color: #4B5563; }
.hinweis { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: .93rem; border: 1px solid transparent; }
.hinweis .ico { flex: 0 0 auto; margin-top: 2px; }
.hinweis-info { background: var(--blue-light); color: var(--blue-dark); border-color: #BFD3FF; }
.hinweis-ok { background: var(--green-light); color: #166534; border-color: #BBF7D0; }
.hinweis-warn { background: var(--yellow-light); color: #92400E; border-color: #FDE68A; }
.hinweis-fehler { background: var(--red-light); color: #991B1B; border-color: #FECACA; }
.hinweis-gross { padding: 16px 18px; font-size: 1rem; }
.hinweis a { color: inherit; text-decoration: underline; }

/* ── Filterleiste, Tabellen ─────────────────────────── */
.filterleiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filterleiste .eingabe { flex: 0 1 auto; }
.filterleiste input[type=search] { flex: 1 1 200px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid var(--border); border-radius: var(--radius); font-size: .88rem; font-weight: 600; cursor: pointer; background: #fff; }
.check-chip.aktiv { border-color: var(--red); color: var(--red); background: var(--red-light); }
.check-chip input { margin: 0; }
.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tabelle th.rechts { text-align: right; }
.tabelle td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle-hover tbody tr:hover td { background: #F8FAFF; }
.tabelle-kompakt td, .tabelle-kompakt th { padding: 6px 8px; }
.tabelle td a strong { color: var(--ink); }
.tabelle tr.zeile-warn td { background: #FFFBEB; }
.hinweise-zelle { display: flex; flex-wrap: wrap; gap: 4px; }
.ok-punkt { color: var(--green); display: inline-flex; }
.chip-filter { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.chip { border: 1px solid var(--border-stark); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: .8rem; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--text); }
.chip.aktiv { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-zahl { opacity: .7; }
.seitenwechsel { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.status-liste, .audit-liste, .fragen-liste { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.fragen-liste { list-style: decimal; padding-left: 22px; }
.audit-liste li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.audit-liste li:last-child { border-bottom: 0; }
.details summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: .9rem; padding: 6px 0; }
.details-inline { display: inline-block; }
.details-inline summary { list-style: none; display: inline-flex; cursor: pointer; }
.details-inline summary::-webkit-details-marker { display: none; }
.details-inline pre { white-space: pre-wrap; background: var(--bg); padding: 8px; border-radius: 8px; margin: 6px 0 0; max-width: 520px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0 4px 0 0; }
.inline-form-block { display: flex; margin-top: 8px; }

/* ── Detailseiten ───────────────────────────────────── */
.detail-kopf { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.detail-kopf-links { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.detail-kopf-rechts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.detail-avatar { width: 56px; height: 56px; border-radius: var(--radius); background: var(--blue-light); color: var(--blue); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.detail-avatar-kampagne { background: var(--orange-light); color: var(--orange-dark); }
.detail-avatar-person { border-radius: 50%; background: var(--green-light); color: var(--green); }
.detail-titel { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: .9rem; color: var(--text); align-items: center; }
.detail-meta a, .detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.kontakt-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.kontakt-link:hover { color: var(--blue); }
.auskunft { display: flex; gap: 0; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 14px 6px; margin-bottom: 18px; flex-wrap: wrap; }
.auskunft-teil { flex: 1 1 200px; display: flex; flex-direction: column; padding: 4px 18px; border-right: 1px solid rgba(255,255,255,.25); font-size: .92rem; }
.auskunft-teil:last-child { border-right: 0; }
.auskunft-zahl { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.auskunft-zahl.klein-zahl { font-size: 1.15rem; padding-top: 6px; }
.auskunft .text-muted { color: rgba(255,255,255,.75); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.aktiv { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Felder (Inline-Bearbeitung) ────────────────────── */
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.felder-1 { grid-template-columns: 1fr; }
.felder-3 { grid-template-columns: repeat(3, 1fr); }
.feld { min-width: 0; padding: 6px 8px; margin: -6px -8px; border-radius: var(--radius); position: relative; transition: background .15s; }
.feld-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.feld-wert { font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; display: flex; align-items: flex-start; gap: 8px; min-height: 24px; }
.feld-wert > :first-child { flex: 1; min-width: 0; }
.feld-schloss { color: #9CA3AF; display: inline-flex; cursor: help; }
.feld-stift { opacity: 0; background: none; border: 0; color: var(--blue); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; transition: opacity .15s; flex: 0 0 auto; }
.feld-editierbar:hover { background: var(--bg); }
.feld-editierbar:hover .feld-stift, .feld-editierbar:focus-within .feld-stift { opacity: 1; }
.feld-editierbar .feld-wert { cursor: text; }
.feld-gesperrt .feld-wert { color: #4B5563; }
.feld-aufklappbar .feld-wert > :first-child { max-height: 160px; overflow: hidden; position: relative; }
.feld-aufklappbar.offen .feld-wert > :first-child { max-height: none; }
.feld-editor { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.feld-editor .eingabe { width: 100%; }
.feld-editor-aktionen { display: flex; gap: 6px; align-items: center; }
.feld-editor-aktionen .klein { margin-left: auto; }
.feld-optionen { display: flex; flex-direction: column; gap: 4px; }
.feld-optionen label { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.feld.gespeichert { background: var(--green-light); }
.feld.fehler { background: var(--red-light); }
.link-chip { display: inline-flex; align-items: center; background: var(--blue-light); color: var(--blue-dark); border-radius: 8px; padding: 2px 9px; font-size: .85rem; font-weight: 600; }
.frage-block { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.frage-block:last-child { border-bottom: 0; }
.frage-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--muted); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 4px; }
.frage-felder { flex: 1; min-width: 0; }
.bilder-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.bild { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; background: var(--bg); }
.bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.antworten-tabelle td strong { color: var(--ink); }
.url-kopierer .url-zeile { display: flex; gap: 8px; align-items: center; }
.url-kopierer .url-zeile input { flex: 1; font-size: .85rem; background: var(--bg); }

/* ── Tooltip (CSS-only) ─────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .75rem; font-weight: 500; padding: 6px 9px; border-radius: 8px; white-space: normal; width: max-content; max-width: 260px; z-index: 70; pointer-events: none; text-transform: none; letter-spacing: 0; line-height: 1.35; }

/* ── Formulare / Wizard ─────────────────────────────── */
.formular { display: flex; flex-direction: column; gap: 14px; }
.felder-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.form-feld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-feld > span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.form-feld small { color: var(--muted); font-size: .8rem; }
.form-feld .eingabe { width: 100%; }
.form-hinweis { font-size: .82rem; color: #B45309; }
.check-zeile { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin: 8px 0; cursor: pointer; }
.check-zeile input { width: 18px; height: 18px; margin: 0; }
.mini-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.vorlage-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 18px; font-size: .95rem; margin-bottom: 8px; }
.wizard-schritte { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; }
.wizard-schritte li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); color: var(--muted); font-weight: 700; font-size: .9rem; }
.wizard-schritte li span { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.wizard-schritte li.aktiv { border-color: var(--blue); color: var(--blue); }
.wizard-schritte li.aktiv span { background: var(--blue); color: #fff; }
.wizard-schritte li.fertig { color: var(--green); border-color: #BBF7D0; cursor: pointer; }
.wizard-schritte li.fertig span { background: var(--green); color: #fff; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }
.headline-vorschau { background: var(--bg); border-radius: var(--radius); padding: 12px 14px; }
.headline-vorschau strong { display: block; font-size: 1.05rem; color: var(--ink); margin-top: 2px; }
.auswahl-liste { list-style: none; margin: 12px 0 0; padding: 0; max-height: 60vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.auswahl-liste li a { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); flex-wrap: wrap; }
.auswahl-liste li:last-child a { border-bottom: 0; }
.auswahl-liste li a:hover { background: var(--blue-light); text-decoration: none; }
.zusammenfassung th { width: 34%; text-align: left; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.15); border-top-color: currentColor; border-radius: 50%; animation: dreh .7s linear infinite; vertical-align: middle; margin-left: 6px; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* ── Login / leere Seiten ───────────────────────────── */
.leer-seite { background: linear-gradient(180deg, #EEF2FB 0%, #F4F7FC 45%, #E9F0FB 100%); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-karte { width: 100%; max-width: 420px; padding: 38px 36px 28px; text-align: center; box-shadow: 0 24px 64px rgba(20,40,90,.14); }
.login-logo { height: 32px; margin-bottom: 18px; }
.login-karte h1 { font-size: 1.5rem; margin-bottom: 4px; }
.login-karte p { margin: 0 0 18px; }
.login-form { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.login-form label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 8px; }
.login-form .eingabe { width: 100%; padding: 12px 14px; }
.login-form .btn { margin-top: 18px; }
.login-fuss { margin: 22px 0 0 !important; font-size: .78rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.fehler-karte { text-align: center; max-width: 520px; margin: 40px auto; padding: 40px; }
.fehler-code { font-size: 3rem; font-weight: 800; color: var(--blue-light); line-height: 1; }
.fehler-karte h1 { margin: 6px 0 10px; }

/* ── Toasts & Modal ─────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: center; max-width: 420px; animation: toast-in .2s ease-out; }
.toast-ok { background: #14532D; } .toast-fehler { background: #7F1D1D; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-hintergrund { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); padding: 24px 26px; width: 100%; max-width: 520px; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.modal h2 { font-size: 1.15rem; margin-bottom: 10px; }
.modal p { margin: 0 0 10px; }
.modal .vergleich { background: var(--bg); border-radius: var(--radius); padding: 10px 12px; font-size: .92rem; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.modal .vergleich span:nth-child(odd) { color: var(--muted); font-weight: 600; }
.modal-aktionen { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ── Zwei-Faktor ────────────────────────────────────── */
.login-karte-breit { max-width: 560px; text-align: left; }
.login-karte-breit .login-logo, .login-karte-breit h1, .login-karte-breit > p { text-align: center; }
.login-karte-breit .login-logo { display: block; margin-left: auto; margin-right: auto; }
.einrichtung { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.einrichtung-schritt { display: flex; gap: 14px; align-items: flex-start; }
.einrichtung-schritt > div:last-child { flex: 1; min-width: 0; }
.einrichtung-nr { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: .9rem; }
.qr-box { width: 220px; height: 220px; margin: 10px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.secret-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 1px; background: var(--bg); border-radius: var(--radius); padding: 10px 12px; word-break: break-all; user-select: all; }
.code-eingabe { font-size: 1.4rem !important; letter-spacing: 6px; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.einrichtung .login-form { margin-top: 8px; }
.geraete-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.geraete-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg); border-radius: var(--radius); font-size: .88rem; flex-wrap: wrap; }
.geraete-liste li form { margin-left: auto; }
