/* RentalCheck – Oberfläche (gleiches Design wie die Marketing-Seite) */
:root {
  --bg: #070b12; --bg-2: #0a0f19; --card: #0d141f; --card-2: #101826; --input: #101722;
  --line: rgba(255,255,255,.07); --line-strong: #263140;
  --text: #fff; --soft: #c7ced8; --muted: #a8b0be; --muted-2: #8c96a7; --muted-3: #7f899a;
  --accent: #8b5cf6; --accent-dark: #6d28d9; --accent-text: #a78bfa; --accent-soft: rgba(124,58,237,.10); --accent-border: rgba(139,92,246,.30);
  --green: #86efac; --green-bg: rgba(34,197,94,.10); --green-bd: rgba(34,197,94,.32);
  --red: #fca5a5; --red-bg: rgba(239,68,68,.10); --red-bd: rgba(239,68,68,.32);
  --amber: #fcd34d; --amber-bg: rgba(245,158,11,.10); --amber-bd: rgba(245,158,11,.35);
  --blue: #93c5fd; --blue-bg: rgba(59,130,246,.10); --blue-bd: rgba(59,130,246,.32);
  --side: 264px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 85% 0%, rgba(124,58,237,.13), transparent 34%), var(--bg); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #c4b5fd; }
h1 { font-size: 30px; letter-spacing: -.8px; line-height: 1.15; }
h2 { font-size: 18px; letter-spacing: -.2px; }
h3 { font-size: 15px; }
.muted { color: var(--muted-2); } .small { font-size: 13px; } .tiny { font-size: 12px; } .mono { font-family: "DejaVu Sans Mono", Consolas, monospace; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center-t { text-align: center; }
.hide { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: linear-gradient(180deg, rgba(14,20,33,.98), rgba(8,12,20,.98)); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 50; }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 22px 22px 18px; color: #fff; }
.side .brand img { width: 34px; height: 38px; border-radius: 0; filter: drop-shadow(0 4px 12px rgba(124,58,237,.45)); }
.side .brand b { font-size: 20px; letter-spacing: -.4px; } .side .brand b span { color: var(--accent); }
.side .brand em { display: block; font-style: normal; font-size: 11px; color: var(--accent-text); letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
.nav { flex: 1; overflow-y: auto; padding: 6px 14px 20px; }
.nav .t { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted-3); text-transform: uppercase; margin: 14px 10px 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 600; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.035); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(139,92,246,.20), rgba(139,92,246,.04)); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav a.active svg { color: var(--accent-text); opacity: 1; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f59e0b; color: #111; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* Benutzer unten in der Seitenleiste */
.side .me { padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.me-card { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: #fff; position: relative; transition: border-color .15s, background .15s; }
.me-card:hover { color: #fff; border-color: var(--accent-border); background: rgba(139,92,246,.07); }
.me-card .who { flex: 1; min-width: 0; }
.me-card .who b { display: block; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .who span { display: block; font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .online { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); flex: none; margin-right: 4px; }
.logout { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.logout svg { width: 17px; height: 17px; }
.me-help { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--muted-2); margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .me-help svg { width: 15px; height: 15px; flex: none; } .me-help:hover { color: #fff; }
.logout:hover { color: #fecaca; border-color: var(--red-bd); background: var(--red-bg); }
/* Einheitliches Profilbild */
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: linear-gradient(145deg, #7c3aed, #4c1d95); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 4px 14px rgba(124,58,237,.30); }
.avatar svg { width: 100%; height: 100%; fill: rgba(255,255,255,.92); }
.avatar.lg { width: 56px; height: 56px; } .avatar.sm { width: 30px; height: 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.main { flex: 1; margin-left: var(--side); min-width: 0; }
.topbar { display: none; }
.content { max-width: 1240px; padding: 34px 38px 70px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted-2); margin-top: 6px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; display: inline-flex; gap: 6px; align-items: center; }
.backdrop { display: none; }

/* ---------- Karten / Raster ---------- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0) 120px), var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px rgba(0,0,0,.18); }
.pad { padding: 24px; } .pad-s { padding: 18px; }
.card > h2, .card .card-h { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .card-h h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.kpi { padding: 20px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.kpi .ic { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-border); }
.kpi .ic svg { width: 20px; height: 20px; }
.kpi .ic.green { background: var(--green-bg); color: var(--green); border-color: var(--green-bd); }
.kpi .ic.amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-bd); }
.kpi .ic.blue { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-bd); }
.kpi .ic.red { background: var(--red-bg); color: var(--red); border-color: var(--red-bd); }
.kpi small { display: block; color: var(--muted-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; padding-right: 48px; }
.kpi strong { display: block; font-size: 32px; letter-spacing: -1px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { display: block; color: var(--muted-2); font-size: 13px; margin-top: 6px; }
.kpi.warn { border-color: var(--amber-bd); } .kpi.warn strong { color: var(--amber); }
.kpi.bad { border-color: var(--red-bd); } .kpi.bad strong { color: var(--red); }
.kpi.good strong { color: var(--green); }
a.kpi { color: inherit; display: block; } a.kpi:hover { border-color: var(--accent-border); transform: translateY(-2px); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr[data-href] { cursor: pointer; } table.t tbody tr[data-href]:hover td { background: rgba(255,255,255,.02); }
table.t td b { font-weight: 700; } table.t .sub { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted-2); }
.empty svg { width: 42px; height: 42px; opacity: .45; margin-bottom: 10px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-purple { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-border); }
.b-green { color: var(--green); background: var(--green-bg); border-color: var(--green-bd); }
.b-red { color: var(--red); background: var(--red-bg); border-color: var(--red-bd); }
.b-amber { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-bd); }
.b-blue { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-bd); }
.b-grey { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line-strong); }

/* ---------- Formulare ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 7px; }
label .opt { color: var(--muted-3); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; height: 48px; background: var(--input); border: 1px solid var(--line-strong); color: #fff; border-radius: 11px; padding: 0 14px; font: inherit; font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s; color-scheme: dark; }
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238c96a7' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
input::placeholder, textarea::placeholder { color: #5d6778; }
.field { margin-bottom: 16px; } .field:last-child { margin-bottom: 0; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields .full { grid-column: 1 / -1; }
.hint { color: var(--muted-3); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.err { color: var(--red); font-size: 13px; margin-top: 6px; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--red-bd); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--soft); font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.section-t { font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent-text); margin: 26px 0 14px; }
.section-t:first-child { margin-top: 0; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 24px; text-align: center; color: var(--muted-2); cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--soft); }
.drop input { display: none; }
.drop svg { width: 34px; height: 34px; color: var(--accent-text); margin-bottom: 6px; }
.filelist { margin-top: 12px; display: grid; gap: 8px; text-align: left; }
.filelist div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; color: var(--soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); box-shadow: 0 8px 24px rgba(124,58,237,.25); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--soft); background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; border-color: #3a4657; background: rgba(255,255,255,.03); }
.btn-danger { color: var(--red); background: transparent; border-color: var(--red-bd); }
.btn-danger:hover { background: var(--red-bg); color: #fecaca; }
.btn-success { color: #052e16; background: #4ade80; }
.btn-success:hover { color: #052e16; background: #6ee7a0; }
.btn-warn { color: #1c1404; background: #fbbf24; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.98); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hinweise ---------- */
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-success { background: var(--green-bg); border-color: var(--green-bd); color: var(--green); }
.alert-error { background: var(--red-bg); border-color: var(--red-bd); color: var(--red); }
.alert-warn { background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber); }
.alert-info { background: var(--accent-soft); border-color: var(--accent-border); color: #d9ccff; }
.alert ul { margin-left: 18px; }
.secret { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.secret code { font: 700 18px "DejaVu Sans Mono", Consolas, monospace; padding: 10px 14px; border-radius: 10px; background: rgba(0,0,0,.35); color: #fff; letter-spacing: 1px; user-select: all; }

/* ---------- Filter / Tabs ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input[type=search] { max-width: 300px; height: 42px; }
.filters select { width: auto; min-width: 180px; height: 42px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: #fff; }
.tabs a.active { background: var(--accent-soft); border-color: var(--accent-border); color: #fff; }
.tabs a b { font-size: 12px; background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 999px; }

/* ---------- Detailansichten ---------- */
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 0; }
dl.kv dt, dl.kv dd { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
dl.kv dt { color: var(--muted-2); }
dl.kv dd { color: #fff; overflow-wrap: anywhere; }
dl.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.text-block { white-space: pre-wrap; line-height: 1.65; color: var(--soft); font-size: 14.5px; overflow-wrap: anywhere; }
.files { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.file { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card-2); display: block; color: var(--soft); position: relative; }
.file:hover { border-color: var(--accent-border); color: #fff; }
.file .thumb { height: 110px; display: flex; align-items: center; justify-content: center; background: #0a0f18; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .thumb svg { width: 38px; height: 38px; color: var(--accent-text); }
.file .meta { padding: 8px 10px; font-size: 12px; }
.file .meta b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.thread { display: grid; gap: 12px; }
.msg { padding: 14px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.msg.admin { border-color: var(--accent-border); background: var(--accent-soft); }
.msg .h { font-size: 12.5px; color: var(--muted-2); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.msg .h b { color: #fff; }

/* Prüfergebnis */
.result { border-radius: 18px; padding: 26px; border: 1px solid; }
.result.clear { background: var(--green-bg); border-color: var(--green-bd); }
.result.hit { background: linear-gradient(135deg, rgba(239,68,68,.12), rgba(245,158,11,.06)); border-color: var(--red-bd); }
.result .head { display: flex; gap: 18px; align-items: center; }
.result .ic { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-size: 34px; font-weight: 900; }
.result.clear .ic { background: rgba(34,197,94,.18); color: #4ade80; }
.result.hit .ic { background: #ef4444; color: #fff; box-shadow: 0 0 40px rgba(239,68,68,.35); }
.result h2 { font-size: 24px; }
.result.clear h2 { color: #4ade80; } .result.hit h2 { color: #ff8a8a; }
.result p { color: var(--soft); margin-top: 4px; }
.result .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.result .facts div { background: rgba(0,0,0,.22); border-radius: 12px; padding: 14px; }
.result .facts small { display: block; font-size: 12px; color: var(--muted-2); font-weight: 600; }
.result .facts b { display: block; font-size: 18px; margin-top: 4px; }
.advice { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-bd); color: #fde68a; font-size: 14px; }

/* Abo-Balken */
.meter { height: 8px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); border-radius: 999px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars i { display: block; width: 100%; background: linear-gradient(var(--accent), var(--accent-dark)); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bars span { font-size: 11px; color: var(--muted-3); }

/* Paginierung */
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); gap: 10px; flex-wrap: wrap; }
.pager .p { display: flex; gap: 6px; }

/* Anmeldeseiten */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 18px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 28px; color: #fff; }
.auth-brand img { width: 42px; height: 48px; border-radius: 0; filter: drop-shadow(0 6px 16px rgba(124,58,237,.45)); }
.auth-brand b { font-size: 26px; letter-spacing: -.6px; } .auth-brand b span { color: var(--accent); }
.auth .card { padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth h1 { font-size: 24px; margin-bottom: 6px; }
.auth .lead { color: var(--muted-2); margin-bottom: 24px; font-size: 14.5px; }
.auth .foot { text-align: center; color: var(--muted-3); font-size: 12.5px; margin-top: 22px; line-height: 1.7; }
.code-input { text-align: center; font: 700 28px "DejaVu Sans Mono", Consolas, monospace !important; letter-spacing: 10px; height: 64px !important; }
.lock { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted-3); font-size: 12.5px; margin-top: 16px; }
.lock svg { width: 14px; height: 14px; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .result .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 30px 0 80px rgba(0,0,0,.5); }
  body.nav-open .side { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
  .main { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 14px; padding-top: env(safe-area-inset-top); background: rgba(7,11,18,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .topbar button { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-strong); background: none; color: #fff; display: flex; align-items: center; justify-content: center; }
  .topbar button svg { width: 22px; height: 22px; }
  .topbar .brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 18px; } .topbar .brand img { width: 27px; height: 31px; border-radius: 0; } .topbar .brand span { color: var(--accent); }
  .content { padding: 22px 16px 60px; }
  h1 { font-size: 25px; }
  .g2, .g3, .fields, .fields.f3 { grid-template-columns: 1fr; }
  .page-head .actions, .page-head .actions .btn { width: 100%; }
  dl.kv { grid-template-columns: 1fr; } dl.kv dt { border-bottom: 0; padding-bottom: 0; } dl.kv dd { padding-top: 2px; }
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.t.cards td { padding: 3px 0; border: 0; }
  table.t.cards td[data-l]::before { content: attr(data-l) ": "; color: var(--muted-3); font-size: 12.5px; }
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], input[type=url], select, textarea { font-size: 16px; }
  .filters input[type=search], .filters select { max-width: none; width: 100%; }
  .result .head { align-items: flex-start; }
  .form-actions .btn { flex: 1; }
}

/* ---------- Übersicht: Begrüßung, Kartenköpfe, Listen ---------- */
.hero { position: relative; overflow: hidden; padding: 26px 28px; margin-bottom: 18px; border-radius: 20px; border: 1px solid var(--accent-border);
  background: radial-gradient(circle at 100% 0%, rgba(139,92,246,.30), transparent 55%), linear-gradient(135deg, rgba(124,58,237,.16), rgba(13,20,31,.9) 60%); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-text); }
.hero h1 { margin-top: 6px; }
.hero p { color: var(--soft); margin-top: 6px; font-size: 14.5px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-h h2 { display: flex; align-items: center; gap: 10px; }
.panel-h h2 svg { width: 18px; height: 18px; color: var(--accent-text); }
.panel-h .link { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.panel-h .link svg { width: 14px; height: 14px; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); color: inherit; transition: background .15s; }
.row:last-child { border-bottom: 0; }
a.row:hover { background: rgba(255,255,255,.025); color: inherit; }
.row .dot { width: 38px; height: 38px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid; }
.row .dot svg { width: 18px; height: 18px; }
.row .dot.red { color: var(--red); background: var(--red-bg); border-color: var(--red-bd); }
.row .dot.green { color: var(--green); background: var(--green-bg); border-color: var(--green-bd); }
.row .dot.amber { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-bd); }
.row .dot.blue { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-bd); }
.row .dot.purple { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-border); }
.row .main-t { flex: 1; min-width: 0; }
.row .main-t b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .main-t span { display: block; font-size: 12.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { text-align: right; flex: none; display: grid; justify-items: end; gap: 4px; }
.row .end small { font-size: 12px; color: var(--muted-3); }
.steps-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px 20px 18px; }
.steps-list > div { display: flex; gap: 14px; padding: 12px 0; }
.steps-list > div > div { min-width: 0; flex: 1; }
.step-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #7c3aed, #4c1d95); box-shadow: 0 4px 12px rgba(124,58,237,.3); }
.steps-list b { display: block; font-size: 14.5px; } .steps-list .muted { font-size: 13px; margin-top: 2px; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.quick a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: #fff; font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s; }
.quick a:hover { color: #fff; border-color: var(--accent-border); background: var(--accent-soft); }
.quick a svg { width: 22px; height: 22px; color: var(--accent-text); }
.quick a span { font-size: 12.5px; color: var(--muted-2); font-weight: 500; }

/* ---------- Formular in Schritten (Vorgang melden) ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.form-layout .aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.fstep { padding: 0; margin-bottom: 16px; }
.fstep-h { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.fstep-h h2 { font-size: 17px; } .fstep-h p { color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.fstep-b { padding: 22px 24px 24px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chip { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--input); color: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; margin: 0; transition: border-color .15s, background .15s, color .15s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #4b5566; flex: none; transition: all .15s; }
.chip:hover { border-color: #3a4657; color: #fff; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.chip:has(input:checked)::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(124,58,237,.25); }
.has-err .chip { border-color: var(--red-bd); }
.prefix { position: relative; } .prefix input { padding-left: 34px; }
.prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-weight: 700; pointer-events: none; }
details.more { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
details.more summary { list-style: none; cursor: pointer; padding: 13px 16px; font-size: 13.5px; font-weight: 700; color: var(--soft); display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { width: 16px; height: 16px; color: var(--accent-text); transition: transform .2s; }
details.more[open] summary svg { transform: rotate(90deg); }
details.more summary span { color: var(--muted-3); font-weight: 500; }
details.more .in { padding: 4px 16px 16px; }
.counter { float: right; font-size: 12px; color: var(--muted-3); font-weight: 500; }
.tips { display: grid; gap: 10px; margin-top: 12px; }
.tips div { display: flex; gap: 10px; font-size: 13.5px; color: var(--soft); align-items: flex-start; }
.tips svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }
.timeline { display: grid; gap: 0; margin-top: 12px; }
.timeline div { position: relative; padding: 0 0 14px 26px; font-size: 13.5px; color: var(--soft); }
.timeline div::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline div::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline div:last-child::after { display: none; }
.timeline b { display: block; color: #fff; font-size: 13.5px; }
.submit-box { display: grid; gap: 16px; }
.submit-box .check { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }

@media (max-width: 1100px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-layout .aside { position: static; }
}
@media (max-width: 900px) {
  .hero { padding: 20px; }
  .hero .actions, .hero .actions .btn { width: 100%; }
  .fstep-h, .fstep-b { padding-left: 18px; padding-right: 18px; }
  .chips { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; padding: 14px 16px 16px; }
  .row { padding: 12px 16px; }
  .panel-h { padding: 16px; }
}
.check.has-err { border-color: var(--red-bd) !important; }
.kpi span.badge { display: inline-flex; margin-top: 0; }
.stack > *, .split > *, .grid > * { min-width: 0; }
.who-cell { display: flex; align-items: center; gap: 11px; } .who-cell > div { min-width: 0; }
.who-cell b { white-space: nowrap; }

/* ---------- Auffälligkeiten ---------- */
.alert-card.is-open { border-color: var(--amber-bd); }
.alert-card-h { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.alert-card-h .dot { width: 38px; height: 38px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid; }
.alert-card-h .dot svg { width: 18px; height: 18px; }
.alert-card-h .dot.red { color: var(--red); background: var(--red-bg); border-color: var(--red-bd); }
.alert-card-h .dot.amber { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-bd); }
.alert-card-h .dot.green { color: var(--green); background: var(--green-bg); border-color: var(--green-bd); }
.alert-card-h .main-t { flex: 1; min-width: 0; }
.alert-card-h .main-t b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.alert-card-h .main-t > span { display: block; font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.alert-card-h .end { display: grid; justify-items: end; gap: 4px; flex: none; } .alert-card-h .end small { font-size: 12px; color: var(--muted-3); }
.alert-card-b { padding: 16px 20px 18px; }
.alert-card-b > p { color: var(--soft); font-size: 14.5px; }
.devs { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.devs-t { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-3); padding: 10px 14px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--line); }
.dev { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; padding: 9px 14px; font-size: 13px; color: var(--soft); border-bottom: 1px solid var(--line); align-items: center; }
.dev:last-child { border-bottom: 0; }
.dev span:first-child { display: flex; align-items: center; gap: 8px; } .dev svg { width: 15px; height: 15px; color: var(--accent-text); flex: none; }
.dev span:last-child { color: var(--muted-2); white-space: nowrap; }
.alert-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.resolve-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.resolve-form input { height: 34px; font-size: 13px; border-radius: 9px; }
@media (max-width: 900px) {
  .dev { grid-template-columns: 1fr auto; } .dev .mono { display: none; }
  .alert-card-h { padding: 14px 16px; align-items: flex-start; } .alert-card-b { padding: 14px 16px; }
  .resolve-form { min-width: 100%; }
}
.alert-card-b > p.muted { color: var(--muted-2); font-size: 13px; }
.key-code { font-size: 14px !important; letter-spacing: 0 !important; overflow-wrap: anywhere; max-width: 100%; }
.row .main-t .mono { display: inline; font-size: 12px; color: var(--accent-text); margin-right: 8px; }
.row .main-t .mono + span { display: inline; }

/* ---------- Code / API ---------- */
pre.code { margin: 0; padding: 14px 16px; border-radius: 12px; background: #060a11; border: 1px solid var(--line); color: #d7def0; font: 12.5px/1.6 "DejaVu Sans Mono", Consolas, monospace; overflow-x: auto; white-space: pre; max-height: 460px; }
.code-t { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-3); margin-bottom: 6px; }
pre.code + .btn { margin-top: 8px; }
code { font-family: "DejaVu Sans Mono", Consolas, monospace; font-size: .92em; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }
.secret code { background: rgba(0,0,0,.35); }
.panel-h .filters select { height: 36px; min-width: 150px; font-size: 13px; }

/* ---------- API-Doku ---------- */
.doc-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.doc-top { position: sticky; top: 0; z-index: 10; background: rgba(7,11,18,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.doc-top .doc-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.doc-top .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 19px; } .doc-top .brand img { width: 29px; height: 33px; border-radius: 0; } .doc-top .brand span { color: var(--accent); }
.doc { padding-top: 40px; padding-bottom: 60px; display: grid; gap: 18px; }
.doc .lead { color: var(--soft); font-size: 16px; max-width: 760px; }
.doc h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc p { color: var(--soft); font-size: 14.5px; }
.doc section { scroll-margin-top: 80px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-toc a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; } .doc-toc a:hover { color: #fff; border-color: var(--accent-border); }
.doc-list { margin-left: 20px; display: grid; gap: 8px; color: var(--soft); font-size: 14.5px; }
.doc .msg svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--accent-text); }

/* ---------- App installieren ---------- */
.install-btn { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: #e9e2ff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.install-btn svg { width: 17px; height: 17px; } .install-btn:hover { background: rgba(139,92,246,.2); }
.install-btn.hide { display: none; }
.app-card h2 { display: flex; align-items: center; gap: 10px; } .app-card h2 svg { width: 20px; height: 20px; color: var(--accent-text); }
.app-status { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.app-status.ok { color: var(--green); border-color: var(--green-bd); background: var(--green-bg); }
.app-howto { display: grid; gap: 12px; font-size: 13.5px; color: var(--soft); }
.app-howto b { display: block; color: #fff; margin-bottom: 2px; } .app-howto em { font-style: normal; color: #e9e2ff; font-weight: 600; }
/* In der installierten App: Platz für Notch/Statusleiste */
@media (display-mode: standalone) { .topbar { padding-top: max(env(safe-area-inset-top), 0px); height: calc(60px + env(safe-area-inset-top)); } }
/* lange Code-Zeilen dürfen das Layout nicht sprengen */
pre.code { max-width: 100%; }
.pad > *, .card > *, [style*="display:grid"] > *, .doc > *, .doc section > * { min-width: 0; }
.card { min-width: 0; }
.app-card > h2 { justify-content: flex-start; }
.row .main-t span.badge { display: inline-flex; margin-left: 6px; vertical-align: 1px; }

/* ---------- Geschäftszahlen: Säulendiagramme ---------- */
.vbars, .dbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 200px; padding-top: 22px; }
.vbars .col, .dbars .col { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; outline: none; }
.vbars i { display: block; width: 100%; background: var(--accent); opacity: .55; border-radius: 4px 4px 0 0; transition: opacity .15s; }
.vbars .col.cur i { opacity: 1; }
.vbars .col:hover i, .vbars .col:focus i { opacity: 1; }
.vbars .val { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% - 18px); font-size: 11px; font-weight: 700; color: var(--soft); white-space: nowrap; pointer-events: none; }
.vbars .col { padding-bottom: 20px; } .vbars .col .val { top: -20px; bottom: auto; }
.vbars em, .dbars em { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: var(--muted-3); }
.vbars .col.cur em { color: var(--soft); font-weight: 700; }
.vbars .tip, .dbars .tip { display: none; position: absolute; z-index: 5; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: #1a2232; border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.4); pointer-events: none; }
.vbars .tip b, .dbars .tip b { display: block; color: #fff; font-size: 13px; }
.vbars .col:hover .tip, .vbars .col:focus .tip, .dbars .col:hover .tip, .dbars .col:focus .tip { display: block; }
.vbars .col:first-child .tip, .dbars .col:first-child .tip { left: 0; transform: none; } .vbars .col:last-child .tip, .dbars .col:last-child .tip { left: auto; right: 0; transform: none; }
/* Neue Kunden (oben) & Kündigungen (unten) an einer Mittellinie */
.dbars { padding-top: 0; }
.dbars .col { justify-content: flex-start; padding-bottom: 20px; }
.dbars .up, .dbars .down { flex: 1; display: flex; }
.dbars .up { align-items: flex-end; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.dbars .down { align-items: flex-start; padding-top: 1px; }
.dbars i { display: block; width: 100%; }
.dbars .up i { background: var(--accent); border-radius: 4px 4px 0 0; }
.dbars .down i { background: #d06a45; border-radius: 0 0 4px 4px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-new { background: var(--accent); } .lg-cancel { background: #d06a45; }
.up { color: var(--green) !important; } .down { color: var(--red) !important; }
.dbars .up, .dbars .down { color: inherit !important; }
.kpi span b.up, .kpi span b.down { font-weight: 800; }
.nav .count.count-blue { background: #3b82f6; color: #fff; }

/* ---------- Warteliste ---------- */
.wl-h { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.wl-h .dot { width: 38px; height: 38px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid; }
.wl-h .dot svg { width: 18px; height: 18px; }
.wl-h .dot.blue { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-bd); }
.wl-h .dot.green { color: var(--green); background: var(--green-bg); border-color: var(--green-bd); }
.wl-h .dot.grey { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line-strong); }
.wl-h .main-t { flex: 1; min-width: 0; } .wl-h .main-t b { display: block; font-size: 15.5px; } .wl-h .main-t span { display: block; font-size: 13px; color: var(--muted-2); }
.wl-h .end { display: grid; justify-items: end; gap: 4px; flex: none; } .wl-h .end small { font-size: 12px; color: var(--muted-3); }
.wl-b { padding: 14px 20px 18px; }
.wl-info { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--soft); }
.wl-info span { display: inline-flex; align-items: center; gap: 6px; } .wl-info svg { width: 15px; height: 15px; color: var(--accent-text); }
.wl-msg { margin-top: 10px; color: var(--soft); font-size: 14px; font-style: italic; }
@media (max-width: 900px) {
  .vbars, .dbars { gap: 3px; height: 170px; } .vbars em, .dbars em { font-size: 9.5px; } .vbars .val { display: none; }
  .wl-h { padding: 14px 16px; align-items: flex-start; } .wl-b { padding: 12px 16px 16px; }
  .alert-actions form[style*="margin-left:auto"] { margin-left: 0 !important; }
}

/* ---------- Login / Zugang anfragen (zweigeteilt) ---------- */
body.guest { background: var(--bg); }
.gl { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.gl-side { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 34px; padding: 40px 56px; border-right: 1px solid var(--line);
  background: radial-gradient(1200px 600px at -10% -10%, rgba(124,58,237,.35), transparent 55%), radial-gradient(800px 500px at 110% 110%, rgba(59,130,246,.14), transparent 60%), linear-gradient(160deg, #0d1322, #070b12 70%); }
.gl-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.gl-side > * { position: relative; z-index: 1; }
.gl-glow { position: absolute !important; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: 18%; background: radial-gradient(circle, rgba(139,92,246,.30), transparent 65%); filter: blur(10px); animation: glow 9s ease-in-out infinite alternate; z-index: 0 !important; }
@keyframes glow { to { transform: translate(-60px, 40px) scale(1.15); } }
.gl-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; } .gl-brand:hover { color: #fff; }
.gl-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 20px rgba(124,58,237,.35); }
.gl-brand b { font-size: 23px; letter-spacing: -.5px; } .gl-brand b span { color: var(--accent); }
.gl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-text); padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.gl-pitch h2 { font-size: 44px; line-height: 1.08; letter-spacing: -1.6px; margin: 18px 0 14px; }
.gl-pitch h2 span { background: linear-gradient(90deg, #a78bfa, #8b5cf6 40%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gl-pitch p { color: var(--soft); font-size: 16px; max-width: 470px; line-height: 1.6; }
.gl-demo { display: grid; gap: 12px; max-width: 440px; }
.demo-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(13,20,31,.78); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(0,0,0,.35); animation: floaty 6s ease-in-out infinite; }
.demo-card.ok { margin-left: 46px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.demo-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }
.demo-ic svg { width: 20px; height: 20px; }
.demo-card.hit { border-color: var(--red-bd); } .demo-card.hit .demo-ic { background: #ef4444; color: #fff; box-shadow: 0 0 24px rgba(239,68,68,.45); }
.demo-card.ok { border-color: var(--green-bd); } .demo-card.ok .demo-ic { background: rgba(34,197,94,.18); color: #4ade80; }
.demo-t { flex: 1; min-width: 0; } .demo-t b { display: block; font-size: 14.5px; } .demo-t span { display: block; font-size: 12.5px; color: var(--muted-2); }
.demo-card.hit .demo-t b { color: #ff8a8a; } .demo-card.ok .demo-t b { color: #4ade80; }
.demo-meta { text-align: right; font-size: 11.5px; color: var(--muted-3); } .demo-meta em { display: block; font-style: normal; font-weight: 800; color: #fff; font-size: 13px; }
.gl-points { list-style: none; display: grid; gap: 14px; max-width: 470px; }
.gl-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 13.5px; color: var(--muted-2); }
.gl-points li > span { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-text); }
.gl-points svg { width: 18px; height: 18px; } .gl-points b { display: block; color: #fff; font-size: 14.5px; }
.gl-foot { margin-top: auto; font-size: 12.5px; color: var(--muted-3); } .gl-foot a { color: var(--muted-2); } .gl-foot a:hover { color: #fff; }
.gl-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.08), transparent 45%); }
.gl-box { width: 100%; max-width: 430px; } .gl-box.wide { max-width: 580px; }
.gl-brand-m, .gl-foot-m { display: none; }
.gl-box .card { padding: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.gl-box h1 { font-size: 27px; margin-bottom: 6px; letter-spacing: -.6px; }
.gl-box .lead { color: var(--muted-2); margin-bottom: 24px; font-size: 14.5px; }
.gl-box .crumb { margin-bottom: 14px; } .gl-box .crumb svg { width: 14px; height: 14px; }
.gl-box .section-t { margin-top: 22px; }
.ifield { position: relative; }
.ifield > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-3); pointer-events: none; }
.ifield input { padding-left: 42px; } .ifield input:focus + .pw-toggle, .ifield:focus-within > svg { color: var(--accent-text); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted-3); cursor: pointer; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: #fff; background: rgba(255,255,255,.05); } .pw-toggle svg { width: 18px; height: 18px; }
.ifield input[type=password], .ifield input[data-pw] { padding-right: 46px; }
.btn-block svg:last-child:not(:first-child) { width: 16px; height: 16px; }
.gl-hint { text-align: center; font-size: 12.5px; color: var(--muted-3); margin-top: 14px; line-height: 1.6; }
.gl-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--muted-3); font-size: 12.5px; font-weight: 600; }
.gl-divider::before, .gl-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.gl-request { border-color: var(--accent-border); color: #e9e2ff; background: rgba(139,92,246,.06); }
.gl-request:hover { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.gl-consent { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.gl-thanks { text-align: center; }
.thanks-ic { width: 72px; height: 72px; margin: 4px auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(34,197,94,.15); color: #4ade80; box-shadow: 0 0 0 10px rgba(34,197,94,.06), 0 0 50px rgba(34,197,94,.25); }
.thanks-ic svg { width: 34px; height: 34px; }
.gl-box .lock { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .gl-glow, .demo-card { animation: none; } }
@media (max-width: 1100px) { .gl-side { padding: 34px 36px; } .gl-pitch h2 { font-size: 36px; } }
@media (max-width: 900px) {
  .gl { grid-template-columns: 1fr; }
  .gl-side { display: none; }
  .gl-main { padding: 26px 16px 40px; align-items: flex-start; background: radial-gradient(600px 380px at 50% -10%, rgba(124,58,237,.28), transparent 70%), var(--bg); }
  .gl-brand-m { display: flex; justify-content: center; margin: 8px 0 22px; }
  .gl-foot-m { display: block; text-align: center; margin-top: 14px; }
  .gl-box .card { padding: 24px 20px; }
  .gl-box h1 { font-size: 24px; }
}
.wl-h .main-t b .badge { margin-left: 8px; vertical-align: 2px; display: inline-flex; }

/* =====================================================================
   Login-Bereich „Wow“ (lx-*): Aurora-Hintergrund, Live-Vorführung, Glas-Karte
   ===================================================================== */
html.lx-html, body.lx { overflow-x: hidden; }
body.lx { background: #05070d; min-height: 100vh; }
.lx-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.lx-aurora { position: absolute; inset: -30%; filter: blur(70px); }
.lx-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.lx-aurora .a1 { width: 55vw; height: 55vw; left: 5%; top: 0; background: radial-gradient(circle, #6d28d9 0, transparent 60%); animation: lxd1 18s ease-in-out infinite alternate; }
.lx-aurora .a2 { width: 45vw; height: 45vw; right: 5%; top: 20%; background: radial-gradient(circle, #2563eb 0, transparent 60%); opacity: .55; animation: lxd2 22s ease-in-out infinite alternate; }
.lx-aurora .a3 { width: 40vw; height: 40vw; left: 35%; bottom: -5%; background: radial-gradient(circle, #c026d3 0, transparent 62%); opacity: .35; animation: lxd3 26s ease-in-out infinite alternate; }
@keyframes lxd1 { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes lxd2 { to { transform: translate(-14vw, -6vh) scale(.9); } }
@keyframes lxd3 { to { transform: translate(-10vw, -14vh) scale(1.2); } }
.lx-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 35% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 35% 45%, #000 20%, transparent 75%); animation: lxgrid 30s linear infinite; }
@keyframes lxgrid { to { background-position: 56px 56px, 56px 56px; } }
.lx-beam { position: absolute; top: -20%; width: 2px; height: 140%; background: linear-gradient(transparent, rgba(167,139,250,.6), transparent); opacity: 0; animation: lxbeam 9s ease-in-out infinite; }
.lx-beam.b1 { left: 22%; } .lx-beam.b2 { left: 62%; animation-delay: -4s; }
@keyframes lxbeam { 0%, 100% { opacity: 0; transform: translateX(-80px) rotate(18deg); } 45% { opacity: .7; } 60% { opacity: 0; transform: translateX(160px) rotate(18deg); } }
.lx-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 22%, #fff8, transparent), radial-gradient(1px 1px at 72% 12%, #fff6, transparent), radial-gradient(1.5px 1.5px at 85% 68%, #fff7, transparent), radial-gradient(1px 1px at 33% 82%, #fff5, transparent), radial-gradient(1px 1px at 55% 40%, #fff4, transparent), radial-gradient(1px 1px at 92% 30%, #fff6, transparent); animation: lxtw 6s ease-in-out infinite alternate; }
@keyframes lxtw { to { opacity: .4; } }
.lx-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.65)); }

.lx-top { position: absolute; top: 28px; left: 64px; right: 64px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.lx-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -.4px; color: #fff; } .lx-brand:hover { color: #fff; }
.lx-brand b { font-weight: 800; } .lx-brand b span { color: var(--accent-text); }
.lx-logo { width: 35px; height: 40px; display: block; filter: drop-shadow(0 0 18px rgba(139,92,246,.6)); animation: lxglow 4s ease-in-out infinite; }
@keyframes lxglow { 50% { filter: drop-shadow(0 0 28px rgba(139,92,246,.9)); } }
@keyframes lxspin { to { transform: rotate(360deg); } }
.lx-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--soft); padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lx-status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: lxping 2s infinite; }
@keyframes lxping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.lx-page { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; padding: 110px 64px 90px; max-width: 1500px; margin: 0 auto; }
.lx-page.is-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.lx-page.is-wide .lx-hero { position: sticky; top: 110px; }

/* Botschaft */
.lx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #d9ccff; padding: 7px 14px; border-radius: 999px; background: linear-gradient(90deg, rgba(139,92,246,.25), rgba(59,130,246,.15)); border: 1px solid rgba(167,139,250,.35); }
.lx-eyebrow b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 10px var(--accent-text); }
.lx-h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -2.4px; margin: 22px 0 18px; font-weight: 850; }
.lx-rot { display: inline-grid; vertical-align: bottom; height: 1.12em; overflow: hidden; }
.lx-rot span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; animation: lxrot 9s infinite; padding-bottom: .08em;
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 35%, #60a5fa 65%, #c4b5fd 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-rot span:nth-child(2) { animation-delay: 3s; } .lx-rot span:nth-child(3) { animation-delay: 6s; }
@keyframes lxrot { 0% { transform: translateY(110%); opacity: 0; } 5%, 30% { transform: translateY(0); opacity: 1; } 35%, 100% { transform: translateY(-110%); opacity: 0; } }
.lx-sub { font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 540px; }

/* Live-Vorführung */
.lx-demo { margin-top: 34px; width: min(560px, 100%); border-radius: 22px; padding: 18px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.lx-demo-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted-2); margin-bottom: 12px; }
.lx-demo-h b { color: #fff; display: flex; align-items: center; gap: 8px; }
.lx-demo-h b i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: lxpingr 1.6s infinite; }
@keyframes lxpingr { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.lx-search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 14px; background: #070b14; border: 1px solid var(--line-strong); font-size: 15.5px; position: relative; overflow: hidden; }
.lx-search > svg { width: 19px; height: 19px; color: var(--accent-text); flex: none; }
.lx-typed { white-space: nowrap; overflow: hidden; border-right: 2px solid var(--accent-text); color: #fff; font-weight: 600; padding-right: 2px; }
.lx-scan { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, transparent, var(--accent), #60a5fa); box-shadow: 0 0 14px var(--accent); }
.lx-radar { position: absolute; right: 16px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(167,139,250,.25); border-top-color: var(--accent-text); opacity: 0; }
.lx-radar.on { opacity: 1; animation: lxspin .7s linear infinite; }
.lx-result { margin-top: 14px; min-height: 86px; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid transparent; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s, transform .45s cubic-bezier(.2,.9,.3,1.2); }
.lx-result.show { opacity: 1; transform: none; }
.lx-result.hit { background: linear-gradient(135deg, rgba(239,68,68,.16), rgba(245,158,11,.06)); border-color: rgba(239,68,68,.45); }
.lx-result.ok { background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(34,197,94,.03)); border-color: rgba(34,197,94,.4); }
.lx-result .r-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 26px; font-weight: 900; }
.lx-result.hit .r-ic { background: #ef4444; color: #fff; animation: lxpulse 1.4s ease-in-out infinite; }
.lx-result.ok .r-ic { background: rgba(34,197,94,.2); color: #4ade80; box-shadow: 0 0 30px rgba(34,197,94,.35); }
.lx-result .r-ic svg { width: 26px; height: 26px; }
@keyframes lxpulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(239,68,68,.15), 0 0 40px rgba(239,68,68,.6); } 50% { box-shadow: 0 0 0 12px rgba(239,68,68,0), 0 0 50px rgba(239,68,68,.8); } }
.lx-result .r-t { flex: 1; min-width: 0; } .lx-result .r-t b { display: block; font-size: 17px; } .lx-result .r-t span { font-size: 13px; color: var(--muted-2); }
.lx-result.hit .r-t b { color: #ff8a8a; } .lx-result.ok .r-t b { color: #4ade80; }
.lx-result .r-n { display: flex; gap: 8px; }
.lx-result .lx-chip { padding: 8px 11px; border-radius: 11px; background: rgba(0,0,0,.3); font-size: 11.5px; color: var(--muted-2); text-align: center; line-height: 1.3; }
.lx-result .lx-chip em { display: block; font-style: normal; font-weight: 800; color: #fff; font-size: 15px; }
.lx-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.lx-stats b { display: block; font-size: 26px; font-weight: 850; letter-spacing: -.6px; background: linear-gradient(180deg, #fff, #b8a8f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-stats span { font-size: 12.5px; color: var(--muted-2); }

/* Formular-Karte mit kreisendem Lichtrand */
.lx-cardwrap { position: relative; justify-self: center; width: 100%; max-width: 450px; }
.lx-page.is-wide .lx-cardwrap { max-width: 580px; }
@property --lxang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lx-card { position: relative; border-radius: 26px; padding: 2px; background: conic-gradient(from var(--lxang), rgba(139,92,246,0) 0deg, rgba(139,92,246,.9) 60deg, rgba(96,165,250,.8) 120deg, rgba(139,92,246,0) 180deg, rgba(139,92,246,0) 360deg), rgba(255,255,255,.06); animation: lxborder 5s linear infinite; }
@keyframes lxborder { to { --lxang: 360deg; } }
.lx-card-glow { position: absolute; inset: -40px; z-index: -1; background: radial-gradient(circle at 50% 30%, rgba(139,92,246,.45), transparent 60%); filter: blur(30px); pointer-events: none; }
.lx-card-in { position: relative; border-radius: 24px; padding: 36px 34px 26px; background: linear-gradient(180deg, rgba(17,24,41,.94), rgba(10,15,27,.96)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; }
.lx-card-in > *:not(.lx-spot) { position: relative; }
.lx-spot { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.22), transparent 60%); pointer-events: none; left: var(--mx, 70%); top: var(--my, 0%); transform: translate(-50%, -50%); }
.lx-title, .lx-card-in h1 { font-size: 28px; letter-spacing: -.7px; margin: 0; line-height: 1.2; }
.lx-lead, .lx-card-in .lead { color: var(--muted-2); font-size: 14.5px; margin: 6px 0 24px; }
/* Inhalte der bestehenden Seiten (2FA, Passwort, Anfrage) ohne eigene Karte darstellen */
.lx-card-in .card { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.lx-card-in .gl-head { margin-bottom: 0; }
.lx-card-in input[type=text], .lx-card-in input[type=email], .lx-card-in input[type=password], .lx-card-in input[type=number], .lx-card-in input[type=tel], .lx-card-in textarea, .lx-card-in select { background: rgba(5,8,15,.7); border-radius: 13px; }
.lx-card-in .btn-primary { height: 54px; border-radius: 14px; background: linear-gradient(90deg, #6d28d9, #8b5cf6 50%, #6366f1); box-shadow: 0 14px 34px rgba(124,58,237,.4); }
/* Felder mit gleitender Beschriftung */
.lx-fl { position: relative; margin-bottom: 14px; }
.lx-fl input { width: 100%; height: 58px !important; border-radius: 14px !important; background: rgba(5,8,15,.7) !important; padding: 22px 46px 6px 46px !important; font-size: 15.5px; }
.lx-fl label { position: absolute; left: 46px; top: 19px; font-size: 15px; font-weight: 500; color: var(--muted-3); pointer-events: none; transition: all .18s; margin: 0; }
.lx-fl input:focus + label, .lx-fl input:not(:placeholder-shown) + label, .lx-fl input:-webkit-autofill + label { top: 9px; font-size: 11.5px; color: var(--accent-text); font-weight: 600; }
.lx-fl .ic { position: absolute; left: 15px; top: 19px; width: 20px; height: 20px; color: var(--muted-3); pointer-events: none; transition: color .2s; }
.lx-fl:focus-within .ic { color: var(--accent-text); }
.lx-eye { position: absolute; right: 10px; top: 11px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted-3); border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.lx-eye:hover { color: #fff; background: rgba(255,255,255,.06); } .lx-eye svg { width: 18px; height: 18px; }
.lx-note { font-size: 13px; color: var(--muted-2); margin: 2px 0 18px; } .lx-note a { color: #c4b5fd; white-space: nowrap; }
.lx-btn { position: relative; overflow: hidden; width: 100%; height: 56px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 16px; color: #fff; cursor: pointer;
  background: linear-gradient(90deg, #6d28d9, #8b5cf6 50%, #6366f1); background-size: 200% auto; box-shadow: 0 14px 34px rgba(124,58,237,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, background-position .5s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.lx-btn:hover { background-position: 100% center; transform: translateY(-2px); }
.lx-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: lxsweep 3.5s ease-in-out infinite; }
@keyframes lxsweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.lx-btn svg { width: 18px; height: 18px; }
.lx-btn.is-loading { pointer-events: none; opacity: .8; }
.lx-div { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; font-size: 12.5px; color: var(--muted-3); font-weight: 600; }
.lx-div::before, .lx-div::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.lx-btn2 { width: 100%; height: 52px; border-radius: 14px; border: 1px solid rgba(167,139,250,.4); background: rgba(139,92,246,.08); color: #ece6ff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all .2s; }
.lx-btn2:hover { background: rgba(139,92,246,.18); border-color: var(--accent); box-shadow: 0 0 30px rgba(139,92,246,.25); color: #fff; }
.lx-btn2 svg { width: 18px; height: 18px; }
.lx-trust { display: flex; justify-content: center; gap: 8px 18px; margin-top: 22px; font-size: 12px; color: var(--muted-3); flex-wrap: wrap; }
.lx-trust span { display: flex; align-items: center; gap: 6px; } .lx-trust svg { width: 14px; height: 14px; color: var(--accent-text); }
.lx-legal { text-align: center; font-size: 12px; color: var(--muted-3); margin-top: 18px; } .lx-legal a { color: var(--muted-2); } .lx-legal a:hover { color: #fff; }
.lx-float { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 14px; background: rgba(12,18,32,.88); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12.5px; color: var(--soft); display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.4); animation: lxbob 6s ease-in-out infinite; line-height: 1.35; }
.lx-float b { color: #fff; }
.lx-float i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; } .lx-float svg { width: 16px; height: 16px; }
.lx-float.f1 { top: -46px; right: -28px; } .lx-float.f1 i { background: rgba(34,197,94,.15); color: #4ade80; }
.lx-float.f2 { top: 44%; left: -160px; animation-delay: -3s; } .lx-float.f2 i { background: rgba(139,92,246,.18); color: var(--accent-text); }
.lx-page.is-wide .lx-float { display: none; }
@keyframes lxbob { 50% { transform: translateY(-10px); } }
.lx-marquee { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; border-top: 1px solid var(--line); background: rgba(5,7,13,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; height: 46px; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lx-track { display: flex; gap: 48px; white-space: nowrap; animation: lxmq 40s linear infinite; font-size: 13px; color: var(--muted-2); }
.lx-track span { display: flex; align-items: center; gap: 10px; } .lx-track b { color: var(--accent-text); font-size: 9px; }
@keyframes lxmq { to { transform: translateX(-50%); } }

@media (max-width: 1100px) { .lx-top { left: 32px; right: 32px; } .lx-page { padding-left: 32px; padding-right: 32px; } .lx-float { display: none; } }
@media (max-width: 980px) {
  .lx-page, .lx-page.is-wide { grid-template-columns: minmax(0, 1fr); padding: 92px 16px 80px; gap: 34px; }
  .lx-top { left: 16px; right: 16px; top: 20px; } .lx-status { display: none; }
  .lx-hero { order: 2; } .lx-cardwrap { order: 1; } .lx-page.is-wide .lx-hero { position: static; }
  .lx-h1 { font-size: 36px; letter-spacing: -1.4px; } .lx-stats { display: none; }
  .lx-card-in { padding: 28px 20px 22px; } .lx-card-glow { inset: -10px; }
  .lx-result { flex-wrap: wrap; } .lx-marquee { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-bg *, .lx-logo, .lx-status i, .lx-card, .lx-btn::after, .lx-float, .lx-track, .lx-result .r-ic, .lx-demo-h b i { animation: none !important; }
  .lx-rot span { animation: none; } .lx-rot span:first-child { transform: none; opacity: 1; }
}

.lx-card-in .crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-2); margin-bottom: 16px; }
.lx-card-in .crumb svg { width: 15px; height: 15px; }
.lx-card-in .crumb:hover { color: #fff; }
.lx-page.is-wide ~ .lx-marquee { display: none; }
.lx-page.is-wide { padding-bottom: 50px; }
@media (max-width: 980px) {
  .lx-result .r-t { flex: 1 1 140px; }
  .lx-result .r-n { width: 100%; padding-left: 68px; }
}
@media (max-width: 1240px) { .lx-float.f2 { display: none; } }

/* ---------- Live-Hinweise ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 14px; background: rgba(17,24,39,.96); border: 1px solid var(--accent-border); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: toastin .35s cubic-bezier(.2,.9,.3,1.2); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .25s; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.toast-ic { color: var(--accent-text); font-size: 12px; animation: lxping 2s infinite; border-radius: 50%; }
.toast-b { flex: 1; min-width: 0; } .toast-b b { display: block; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); } .toast-b span { display: block; font-size: 14px; color: #fff; }
.toast-x { border: 0; background: none; color: var(--muted-2); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; } .toast-x:hover { color: #fff; background: rgba(255,255,255,.06); }
.count.bump, [data-live-count].bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.35); } }
.live-card h2 { display: flex; align-items: center; gap: 10px; } .live-card h2 svg { width: 20px; height: 20px; color: var(--accent-text); }
@media (max-width: 900px) { .toasts { right: 16px; bottom: 16px; } }

/* ---------- Personenprüfung: kleine Such-Anzeige unter dem Formular + Ergebnis-Auftritt ---------- */
.scan-ov { margin-bottom: 16px; border-radius: 16px; border: 1px solid var(--accent-border); background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(13,20,31,.9)); padding: 16px 18px; animation: scanin .3s ease; }
.scan-ov[hidden] { display: none; }
@keyframes scanin { from { opacity: 0; transform: translateY(-6px); } }
.scan-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.scan-radar { grid-row: span 3; position: relative; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.2), transparent 70%); }
.scan-radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(167,139,250,.45); animation: ring 2s ease-out infinite; }
.scan-radar i:nth-child(2) { animation-delay: .7s; } .scan-radar i:nth-child(3) { display: none; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.scan-sweep { position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(139,92,246,.6), transparent 70deg); animation: lxspin 1s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 42%); mask: radial-gradient(circle, transparent 40%, #000 42%); }
.scan-core { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7c3aed, #4c1d95); box-shadow: 0 0 16px rgba(139,92,246,.7); }
.scan-core svg { width: 13px; height: 13px; }
.scan-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.scan-hash { font: 11px/1.4 "DejaVu Sans Mono", Consolas, monospace; color: var(--accent-text); opacity: .7; letter-spacing: .5px; font-weight: 400; }
.scan-steps { list-style: none; display: block; margin: 0; min-height: 21px; }
.scan-steps li { display: none; align-items: center; gap: 9px; font-size: 13.5px; color: var(--soft); }
.scan-steps li.run { display: flex; animation: stepin .25s ease; }
@keyframes stepin { from { opacity: 0; transform: translateY(4px); } }
.scan-steps li.run::before { content: ""; width: 13px; height: 13px; flex: none; border-radius: 50%; border: 2px solid var(--accent-text); border-top-color: transparent; animation: lxspin .7s linear infinite; }
.scan-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.scan-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #6d28d9, #8b5cf6, #60a5fa); box-shadow: 0 0 10px rgba(139,92,246,.8); transition: width .45s ease; }

.result.reveal { animation: reveal .7s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px); } }
.result.hit.reveal { animation: reveal .7s cubic-bezier(.2,.9,.3,1.15) both, hitglow 1.6s ease .6s 2; }
@keyframes hitglow { 50% { box-shadow: 0 0 0 4px rgba(239,68,68,.25), 0 0 60px rgba(239,68,68,.35); } }
.result.reveal .ic { animation: popic .6s cubic-bezier(.2,.9,.3,1.6) .35s both; }
@keyframes popic { from { transform: scale(0) rotate(-30deg); } }
.result.reveal .facts > div { animation: reveal .5s ease both; }
.result.reveal .facts > div:nth-child(1) { animation-delay: .45s; } .result.reveal .facts > div:nth-child(2) { animation-delay: .55s; }
.result.reveal .facts > div:nth-child(3) { animation-delay: .65s; } .result.reveal .facts > div:nth-child(4) { animation-delay: .75s; }
@media (prefers-reduced-motion: reduce) { .result.reveal, .result.reveal .ic, .result.reveal .facts > div { animation: none !important; } }

/* ---------- E-Mails ---------- */
.mx { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.mx-side { position: sticky; top: 20px; display: grid; gap: 14px; }
.mx-folders { display: grid; gap: 2px; }
.mx-folders a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.mx-folders a:hover { background: rgba(255,255,255,.035); color: #fff; }
.mx-folders a.active { background: var(--accent-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--accent-border); }
.mx-folders svg { width: 17px; height: 17px; flex: none; } .mx-folders span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-folders b { font-size: 11.5px; background: #3b82f6; color: #fff; border-radius: 999px; padding: 1px 8px; }
.mx-acc { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-3); padding: 0 6px; overflow-wrap: anywhere; } .mx-acc svg { width: 14px; height: 14px; flex: none; }
.mx-main { min-width: 0; overflow: hidden; }
.mx-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mx-head h2 { flex: 1; display: flex; align-items: baseline; gap: 10px; }
.mx-search input { height: 38px; width: 240px; font-size: 14px; }
.mx-list { display: grid; }
.mx-row { display: grid; grid-template-columns: 10px 34px minmax(120px, 220px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.mx-row:hover { background: rgba(255,255,255,.025); color: #fff; }
.mx-row.unread { color: #fff; background: rgba(139,92,246,.05); } .mx-row.unread .mx-from, .mx-row.unread .mx-subj { font-weight: 700; }
.mx-dot { width: 8px; height: 8px; border-radius: 50%; } .mx-row.unread .mx-dot { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.mx-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(145deg, #7c3aed, #4c1d95); }
.mx-av.lg { width: 44px; height: 44px; font-size: 18px; flex: none; }
.mx-from, .mx-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-tag { font-style: normal; color: var(--accent-text); margin-right: 6px; }
.mx-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-2); white-space: nowrap; } .mx-meta svg { width: 14px; height: 14px; }
.mx-toolbar { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mx-actions { display: flex; gap: 8px; flex-wrap: wrap; } .mx-actions form { display: inline; }
.mx-read { padding: 20px 22px 24px; }
.mx-title { font-size: 22px; letter-spacing: -.4px; margin-bottom: 16px; overflow-wrap: anywhere; }
.mx-from-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mx-who { flex: 1; min-width: 0; } .mx-who span.small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-files { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.mx-file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--card-2); color: var(--soft); max-width: 300px; }
.mx-file:hover { border-color: var(--accent-border); color: #fff; } .mx-file svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.mx-file span { min-width: 0; } .mx-file b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .mx-file em { font-style: normal; font-size: 11.5px; color: var(--muted-2); }
.mx-imgnote { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 10px; } .mx-imgnote svg { width: 16px; height: 16px; }
.mx-frame { width: 100%; height: 68vh; min-height: 420px; border: 0; border-radius: 12px; background: #fff; }
.mx-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.65; color: var(--soft); }
.mx-compose { max-width: 980px; }
.mx-line { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.mx-line label { width: 70px; margin: 0; color: var(--muted-2); font-weight: 600; }
.mx-line input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 0; }
.mx-line.has-err label { color: var(--red); }
.mx-body { margin-top: 14px; min-height: 320px; font: 14.5px/1.6 inherit; }
@media (max-width: 900px) {
  .mx { grid-template-columns: minmax(0, 1fr); } .mx-side { position: static; }
  .mx-folders { display: flex; overflow-x: auto; gap: 6px; } .mx-folders a { white-space: nowrap; }
  .mx-row { grid-template-columns: 8px 30px minmax(0, 1fr) auto; } .mx-subj { grid-column: 3 / 5; font-size: 13px; } .mx-av { width: 30px; height: 30px; }
  .mx-head { flex-wrap: wrap; } .mx-head h2 { flex-basis: 100%; } .mx-search { flex: 1; } .mx-search input { width: 100%; } .mx-frame { height: 60vh; }
}
