
:root {
  --ink: #2e2c2d;
  --anthr: #5a5758;
  --muted: #6d6a6b;
  --paper: #faf9f7;
  --card: #ffffff;
  --line: #e7e4e1;
  --line-soft: #f0eeeb;
  --topbar: #272425;
  --topbar-line: #3a3738;
  --orange: #f5751d;
  --orange-dunkel: #d9640f;
  --orange-text: #c25a0e;
  --orange-bg: #fdeadb;
  --gruen: #1a7f4e;
  --gruen-bg: #e2f1e9;
  --gruen-text: #14603b;
  --gelb: #b8860b;
  --gelb-bg: #f8ecce;
  --gelb-text: #7d5c06;
  --rot: #b3362b;
  --rot-bg: #f9e4e2;
  --rot-text: #8f2b22;
  --grau-bg: #edebe9;
  --grau-text: #55524f;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(46,44,45,.05), 0 4px 16px rgba(46,44,45,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--orange-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
svg.ic { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }

/* ── Kopfleiste ── */
.topbar {
  background: var(--topbar);
  color: #f2f0ee;
  border-bottom: 3px solid var(--orange);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; min-height: 58px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 10px 0; }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 700; letter-spacing: .12em; font-size: 14.5px; white-space: nowrap; }
.brand-name .raute { display: inline-block; margin: 0 6px; vertical-align: 1px; }
.brand-sub { color: #b9b5b3; font-size: 13px; border-left: 1px solid var(--topbar-line); padding-left: 12px; margin-left: 2px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
.tabs a {
  color: #cfccca; padding: 18px 13px 15px; font-size: 14px; text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a.aktiv { color: #fff; border-bottom-color: var(--orange); font-weight: 600; }
.badge-demo {
  margin-left: auto; font-size: 11.5px; letter-spacing: .06em; color: #d8d5d3;
  border: 1px solid #55514f; border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

/* ── Grundfläche ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 24px 60px; width: 100%; }
.wrap-schmal { max-width: 900px; }
main { flex: 1 0 auto; }
.footer {
  flex-shrink: 0; border-top: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--muted);
}
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.footer a { color: var(--muted); }

.seitenkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
h1 + .untertitel { color: var(--muted); margin-top: 4px; max-width: 640px; }
h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.zurueck:hover { color: var(--ink); text-decoration: none; }

/* ── Karten ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); }
.card-pad { padding: 20px 22px; }
.card + .card { margin-top: 16px; }

/* ── Cockpit-Kacheln ── */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kachel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 22px; display: block; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
}
.kachel:hover { text-decoration: none; transform: translateY(-2px); border-color: #d8d4d1; box-shadow: 0 2px 4px rgba(46,44,45,.06), 0 10px 28px rgba(46,44,45,.10); }
.kachel-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kachel-icon {
  width: 40px; height: 40px; border-radius: 9px; background: var(--orange-bg); color: var(--orange-text);
  display: flex; align-items: center; justify-content: center;
}
.kachel-icon svg.ic { width: 21px; height: 21px; }
.kachel-titel { font-weight: 700; font-size: 16px; }
.kachel-zeile { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; }
.kachel-sub { color: var(--muted); font-size: 13.5px; }
.kachel-pfeil { position: absolute; top: 22px; right: 20px; color: #c4c0bd; }
.heute-leiste { margin-top: 26px; }
.heute-titel { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--anthr); margin-bottom: 10px; }
.aufgaben { display: grid; gap: 8px; }
.aufgabe {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 16px; color: var(--ink); font-size: 14px;
}
.aufgabe:hover { text-decoration: none; border-color: #d8d4d1; }
.aufgabe .zeit { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange-text); flex: 0 0 44px; }
.aufgabe .pfeil { margin-left: auto; color: #c4c0bd; }

/* ── Pillen, Ampeln, Tags ── */
.pille { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2.5px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pille-rot { background: var(--rot-bg); color: var(--rot-text); }
.pille-gelb { background: var(--gelb-bg); color: var(--gelb-text); }
.pille-orange { background: var(--orange-bg); color: #a34a08; }
.pille-gruen { background: var(--gruen-bg); color: var(--gruen-text); }
.pille-grau { background: var(--grau-bg); color: var(--grau-text); }
.pille-dunkel { background: #3a3738; color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot-rot { background: var(--rot); }
.dot-gelb { background: var(--gelb); }
.dot-gruen { background: var(--gruen); }
.dot-orange { background: var(--orange); }
.dot-grau { background: #b3afac; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px;
  background: #fff; color: var(--ink); border: 1px solid #d8d4d1; transition: background .15s, border-color .15s;
  text-decoration: none;
}
.btn:hover { background: #f4f2f0; text-decoration: none; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--orange-dunkel); border-color: var(--orange-dunkel); }
.btn-klein { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .55; cursor: default; }

/* ── Summen-Karte Zins-Radar ── */
.summen-karte {
  background: linear-gradient(135deg, #2c2929 0%, #3b3737 100%);
  color: #fff; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 26px;
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap; box-shadow: var(--schatten);
}
.summen-zahl { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.summen-label { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: #cdc9c7; margin-bottom: 4px; }
.summen-hinweis { color: #e8e5e3; font-size: 14px; max-width: 380px; border-left: 3px solid var(--orange); padding-left: 14px; }
.summen-mini { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.summen-mini div { text-align: center; }
.summen-mini .z { font-size: 20px; font-weight: 700; }
.summen-mini .l { font-size: 12px; color: #cdc9c7; }

/* ── Radar-Tabellen ── */
.gruppe { margin-bottom: 30px; }
.gruppe-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gruppe-kopf h2 { margin: 0; font-size: 16px; }
.gruppe-kopf .anzahl { color: var(--muted); font-size: 13.5px; }
.tabelle-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); }
table.radar { width: 100%; border-collapse: collapse; min-width: 880px; }
table.radar th {
  text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.radar td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 14px; white-space: nowrap; }
table.radar tr:last-child td { border-bottom: none; }
table.radar tr.klickbar { cursor: pointer; transition: background .12s; }
table.radar tr.klickbar:hover { background: #faf7f4; }
table.radar .kunde { font-weight: 600; }
table.radar .sub { color: var(--muted); font-size: 12.5px; font-weight: 400; }
table.radar td.num { font-variant-numeric: tabular-nums; }
tr.zeile-erledigt td { opacity: .5; }
tr.zeile-erledigt .kunde { text-decoration: line-through; }
.haken-gruen { color: var(--gruen); }

/* ── Dossier ── */
.dossier { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.stammdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; }
.stamm .l { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.stamm .w { font-weight: 600; font-size: 15px; }
.rechnung { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 4px; }
.rechen-box { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fdfcfb; }
.rechen-box .l { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.rechen-box .w { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.rechen-box .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.rechen-box.negativ .w { color: var(--rot-text); }
.rechen-box.positiv .w { color: var(--gruen-text); }
.optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.option { border: 1px solid var(--line); border-radius: 8px; padding: 16px; position: relative; }
.option.empfohlen { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.option .tag-empf { position: absolute; top: -9px; left: 14px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 2px 9px; border-radius: 999px; }
.option h3 { font-size: 14.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.option p { font-size: 13.5px; color: var(--anthr); }
.leitfaden { counter-reset: punkt; list-style: none; display: grid; gap: 10px; }
.leitfaden li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.leitfaden li::before {
  counter-increment: punkt; content: counter(punkt);
  flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--orange-bg); color: var(--orange-text);
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.brief {
  background: #fdfcfb; border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px;
  white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: #3a3738;
}
.dossier-aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ── Protokoll / Logs ── */
.log { list-style: none; display: grid; gap: 0; }
.log li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; align-items: baseline; }
.log li:last-child { border-bottom: none; }
.log .ts { color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; white-space: nowrap; }
.log .modul-tag { flex: 0 0 auto; }
.auto-doku-kopf { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--anthr); margin-bottom: 8px; }

/* ── Baufi-Mappe Berater ── */
.fall-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.fall-karte { padding: 20px 22px; display: block; color: var(--ink); position: relative; }
.fall-karte:hover { text-decoration: none; border-color: #d8d4d1; }
.fall-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fall-kopf h3 { font-size: 16px; }
.fall-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.prog { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.prog > span { display: block; height: 100%; border-radius: 999px; background: var(--orange); transition: width .4s; }
.prog.gruen > span { background: var(--gruen); }
.prog-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.zuletzt { font-size: 12.5px; color: var(--muted); margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.banner-gruen {
  background: var(--gruen-bg); border: 1px solid #bfdfce; color: var(--gruen-text);
  border-radius: 8px; padding: 12px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; margin-bottom: 18px;
}
.doc-liste { list-style: none; display: grid; gap: 0; }
.doc-liste li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.doc-liste li:last-child { border-bottom: none; }
.doc-name { font-weight: 600; font-size: 14.5px; }
.doc-datei { color: var(--muted); font-size: 12.5px; }
.doc-status { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* ── Kunden-Mappe (mobil-first) ── */
.mappe-wrap { max-width: 560px; margin: 0 auto; padding: 22px 16px 50px; width: 100%; }
.mappe-gruss h1 { font-size: 21px; line-height: 1.3; }
.mappe-gruss p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.ring-karte { display: flex; align-items: center; gap: 20px; padding: 18px 20px; margin: 18px 0; }
.ring { flex: 0 0 auto; }
.ring text { font: 700 17px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; fill: var(--ink); }
.ring-info .gross { font-weight: 700; font-size: 16.5px; }
.ring-info .klein { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.mdoc { padding: 14px 16px; margin-bottom: 10px; }
.mdoc-kopf { display: flex; align-items: flex-start; gap: 12px; }
.mdoc-ic { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.mdoc-ic.offen { background: var(--grau-bg); color: var(--grau-text); }
.mdoc-ic.ok { background: var(--gruen-bg); color: var(--gruen-text); }
.mdoc-ic.wartet { background: var(--gelb-bg); color: var(--gelb-text); }
.mdoc-ic.frage { background: var(--orange-bg); color: #a34a08; }
.mdoc-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.mdoc-status { font-size: 13px; margin-top: 2px; }
.mdoc-status.ok { color: var(--gruen-text); }
.mdoc-status.wartet { color: var(--gelb-text); }
.mdoc-status.frage { color: #a34a08; font-weight: 600; }
.mdoc-status.offen { color: var(--muted); }
.upload-zeile { margin-top: 12px; }
.upload-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  border: 1.5px dashed #cfcac6; border-radius: 8px; padding: 12px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--anthr); background: #fdfcfb; transition: border-color .15s, color .15s;
}
.upload-btn:hover { border-color: var(--orange); color: var(--orange-text); }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-hinweis { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
.spinner {
  width: 15px; height: 15px; border: 2px solid var(--gelb-bg); border-top-color: var(--gelb);
  border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 6px;
  animation: drehen .8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }
.mappe-fuss { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; line-height: 1.7; }
.mappe-fuss svg.ic { width: 14px; height: 14px; }

/* ── Blitzantwort ── */
.blitz-kpis { display: flex; gap: 26px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 22px; align-items: center; }
.blitz-kpi .z { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.blitz-kpi .l { font-size: 12.5px; color: var(--muted); }
.msgs { display: grid; gap: 14px; max-width: 880px; }
.msg { padding: 0; overflow: hidden; }
.msg.dim { opacity: .62; }
.msg-kopf { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px 0; }
.msg-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grau-bg); color: var(--grau-text); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.msg-wer { font-weight: 700; font-size: 14.5px; }
.msg-betreff { font-size: 13.5px; color: var(--anthr); }
.msg-zeit { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.msg-auszug { padding: 10px 20px 0 68px; color: var(--anthr); font-size: 14px; }
.msg-verarbeitung {
  margin: 14px 20px 0 68px; border-top: 1px dashed var(--line); padding-top: 11px;
  font-size: 13px; color: var(--ink); display: flex; gap: 8px; align-items: baseline;
}
.msg-verarbeitung.compliance { color: var(--rot-text); font-weight: 600; }
.msg-verarbeitung .blitz-ic { color: var(--orange-text); flex: 0 0 auto; align-self: center; }
.msg details { margin: 8px 0 0; }
.msg summary {
  cursor: pointer; list-style: none; padding: 10px 20px 12px 68px; font-size: 13.5px; font-weight: 600;
  color: var(--orange-text); display: flex; align-items: center; gap: 7px;
}
.msg summary::-webkit-details-marker { display: none; }
.msg summary .chev { transition: transform .2s; }
.msg details[open] summary .chev { transform: rotate(180deg); }
.msg-detail { padding: 0 20px 18px 68px; display: grid; gap: 14px; }
.antwort-box { background: #fdfcfb; border: 1px solid var(--line); border-radius: 8px; padding: 15px 17px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; }
.antwort-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.compliance-box { background: var(--rot-bg); border: 1px solid #ecc8c4; border-radius: 8px; padding: 13px 16px; font-size: 13.5px; color: var(--rot-text); display: flex; gap: 10px; }
.push-vorschau { background: #221f20; border-radius: 12px; padding: 14px 16px; max-width: 420px; }
.push-kopf { display: flex; align-items: center; gap: 8px; color: #a5a1a0; font-size: 11.5px; letter-spacing: .04em; margin-bottom: 8px; }
.push-kopf .punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.push-bubble { background: #3a3637; color: #f2f0ee; border-radius: 10px; padding: 10px 13px; font-size: 13px; line-height: 1.5; }
.push-an { color: #cbc7c5; font-size: 11.5px; margin-top: 7px; }
.msg.analysiere { border-color: var(--orange); }
.msg.analysiere .msg-verarbeitung { color: var(--orange-text); font-weight: 600; animation: pulsieren 1.2s ease-in-out infinite; }
@keyframes pulsieren { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.blitz-kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

/* ── Gate ── */
.gate-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--paper); padding: 24px; flex-direction: column; }
.gate-karte { width: 100%; max-width: 400px; padding: 36px 34px 30px; text-align: center; }
.gate-marke { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; letter-spacing: .13em; font-size: 15px; margin-bottom: 4px; }
.gate-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.gate-feld {
  width: 100%; font: inherit; font-size: 17px; text-align: center; letter-spacing: .18em; font-weight: 600;
  padding: 12px 14px; border: 1.5px solid #d3cfcb; border-radius: 8px; background: #fdfcfb; color: var(--ink);
  text-transform: uppercase;
}
.gate-feld:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(245,117,29,.14); }
.gate-fehler { background: var(--rot-bg); color: var(--rot-text); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.gate-hilfe { color: var(--muted); font-size: 12.5px; margin-top: 20px; line-height: 1.6; }
.gate-fuss { margin-top: 22px; color: var(--muted); font-size: 12px; text-align: center; }
.gate-demo { position: fixed; top: 14px; right: 16px; }
.gate-demo .badge-demo { border-color: #d3cfcb; color: var(--muted); }

/* ── Modal & Toast ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(38,35,36,.55); display: none;
  align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-overlay.offen { display: flex; }
.modal { background: #fff; border-radius: 12px; max-width: 620px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-kopf { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.modal-kopf h3 { font-size: 16.5px; }
.modal-x { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 6px; display: flex; }
.modal-x:hover { background: var(--line-soft); color: var(--ink); }
.modal-body { padding: 14px 22px 22px; }
.modal-body textarea {
  width: 100%; min-height: 300px; font: inherit; font-size: 13.5px; line-height: 1.6;
  border: 1px solid var(--line); border-radius: 8px; padding: 14px; resize: vertical; background: #fdfcfb; color: var(--ink);
}
.modal-hinweis { display: flex; gap: 9px; align-items: flex-start; background: var(--gelb-bg); color: var(--gelb-text); border-radius: 8px; padding: 11px 14px; font-size: 13px; margin-top: 12px; }
.modal-aktionen { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #262324; color: #fff; border-radius: 10px; padding: 12px 20px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 60; display: flex; gap: 9px; align-items: center; max-width: calc(100vw - 40px);
}
.toast.sichtbar { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg.ic { color: #6fc79a; }

/* ── 404 ── */
.leer-seite { text-align: center; padding: 80px 24px; }
.leer-seite h1 { font-size: 26px; margin-bottom: 10px; }
.leer-seite p { color: var(--muted); margin-bottom: 22px; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .kacheln { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .summen-mini { margin-left: 0; }
}
@media (max-width: 720px) {
  .topbar-inner { padding: 0 16px; gap: 10px; }
  .brand-sub { display: none; }
  .tabs { order: 3; width: 100%; margin-left: 0; border-top: 1px solid var(--topbar-line); }
  .tabs a { padding: 12px 10px; }
  .badge-demo { margin-left: auto; }
  .wrap { padding: 22px 16px 50px; }
  h1 { font-size: 21px; }
  .summen-karte { padding: 20px; gap: 18px; }
}
