/* Hookmind Admin-CRM */
@font-face { font-family: 'Michroma'; src: url(fonts/michroma-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #131412; --side: #0F100E; --card: #1B1D1A; --card2: #202320; --hover: #232622; --line: #2D302C; --line2: #3A3D37;
  --text: #F3F1EA; --nav: #BEBBB2; --mut: #A9A69D; --mut2: #8C897F; --akzent: #FF4F7B; --akzent2: #FF8FAB;
  --ok: #9FE3B9; --ok-bg: rgba(126, 214, 160, .1); --ok-rand: rgba(126, 214, 160, .4);
  --warn: #F2C14E; --warn-bg: rgba(242, 193, 78, .1); --warn-rand: rgba(242, 193, 78, .45);
  --bad: #FF8FAB; --bad-bg: rgba(255, 79, 123, .12); --bad-rand: rgba(255, 79, 123, .5);
  --mono: 'JetBrains Mono', ui-monospace, monospace; --disp: 'Michroma', 'Arial Black', sans-serif; --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 400 14.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--text); }
a:hover { color: var(--akzent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ico.k { width: 15px; height: 15px; }
.mut { color: var(--mut); }
.klein { font-size: 13px; }
.mono { font-family: var(--mono); }
.eb { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 0; }
.dom { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--mut); overflow-wrap: anywhere; }
.n { font-variant-numeric: tabular-nums; }

/* ---------- Grundgerüst */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.side { width: 248px; flex: 0 0 248px; background: var(--side); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 4px 6px; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-family: var(--disp); font-weight: 400; font-size: 14px; letter-spacing: .1em; }
.adm { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--akzent); color: var(--akzent); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 0 10px; border-radius: 10px; text-decoration: none; color: var(--nav); min-height: 42px; }
.nav a:hover { background: var(--card); color: var(--text); }
.nav a.on { background: var(--hover); color: var(--text); font-weight: 600; }
.ct { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--akzent); color: var(--bg); font-weight: 500; }
.ct.n { background: var(--line); color: var(--text); }
.navlbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--mut2); padding: 10px 10px 4px; }
.side .fuss { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.wer { display: flex; align-items: center; gap: 10px; padding: 6px; }
.wer .name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.wer .mut { font-size: 12px; }
.wer .ib { margin-left: auto; }
.av { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; background: #4A2230; color: #FFC2D2; }
.av.g { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.av.av-leer { background: var(--line); color: var(--mut); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 72px; position: sticky; top: 0; background: rgba(19, 20, 18, .94); backdrop-filter: blur(8px); z-index: 20; }
.top h1 { font-family: var(--disp); font-weight: 400; font-size: 20px; margin: 0; letter-spacing: .01em; }
.titelblock { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ib.menu { display: none; }
.search { flex: 1 1 220px; max-width: 380px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--mut2); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14px; min-height: 40px; }
.search:focus-within { border-color: var(--line2); }
.demo { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; border: 1px dashed #5A5D55; color: var(--mut); text-decoration: none; white-space: nowrap; }
.tr { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.body { padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stand { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); margin: 0; }

/* ---------- Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.card.flach { padding: 0; overflow: hidden; }
.ch2 { font-size: 15.5px; font-weight: 700; margin: 0; }
.hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card.flach > .hd { padding: 16px 18px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--line2); background: transparent; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: var(--text); color: var(--text); }
.btn.p { background: var(--akzent); border-color: var(--akzent); color: var(--bg); }
.btn.p:hover { background: #FF6A8F; border-color: #FF6A8F; color: var(--bg); }
.btn.rot { border-color: var(--bad-rand); color: var(--bad); }
.btn.rot:hover { background: var(--bad-bg); }
.btn.s { padding: 0 13px; font-size: 13px; min-height: 38px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.voll { width: 100%; }
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ib { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; text-decoration: none; }
.ib:hover { border-color: var(--line2); background: var(--card); color: var(--text); }
.ib.s { width: 36px; height: 36px; }
.link { background: none; border: 0; padding: 0; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.link:hover { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--nav); white-space: nowrap; line-height: 1.3; }
.pill.ok { background: var(--ok-bg); border-color: var(--ok-rand); color: var(--ok); }
.pill.wait { background: var(--warn-bg); border-color: var(--warn-rand); color: var(--warn); }
.pill.bad { background: var(--bad-bg); border-color: var(--bad-rand); color: var(--bad); }
.pill.k { background: var(--akzent); border-color: var(--akzent); color: var(--bg); font-weight: 500; }
.pill.bsp { border-style: dashed; color: var(--mut); font-size: 10px; letter-spacing: .08em; padding: 2px 7px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--nav); cursor: pointer; font-size: 14px; }
.chip b { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--mut2); }
.chip:hover { border-color: var(--line2); color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.chip.on b { color: #5A5D55; }
.leer { text-align: center; padding: 34px 18px; color: var(--mut); }
.leer h3 { color: var(--text); margin: 0 0 6px; font-size: 16px; }
.leer .knoepfe { justify-content: center; margin-top: 14px; }
.hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--warn-rand); background: var(--warn-bg); color: #F6DDA0; font-size: 13.5px; }
.hinweis.bad { border-color: var(--bad-rand); background: var(--bad-bg); color: #FFC2D2; }
.hinweis.info { border-color: var(--line2); background: var(--card2); color: var(--nav); }
.hinweis .ico { margin-top: 1px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi .kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kv { font-family: var(--disp); font-size: 25px; margin: 12px 0 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kv small { font-family: var(--sans); font-size: 19px; margin-left: 4px; font-weight: 500; }
.up { font-family: var(--mono); font-size: 11.5px; color: var(--ok); }
.up.runter { color: var(--bad); }
.spark { width: 100%; height: 30px; display: block; margin-top: 4px; }
.spark path { fill: none; stroke: var(--akzent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--akzent); }

.zwei { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.zwei.r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }

.fn { display: grid; grid-template-columns: 190px minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 8px 0; }
.fn .bar { height: 14px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fn .bar i { display: block; height: 100%; background: var(--akzent); border-radius: 4px; min-width: 2px; }
.fn .v { font-family: var(--mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.planbalken { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--line); margin: 4px 0 6px; gap: 2px; }
.planbalken i { display: block; height: 100%; }
.stapel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stapel-lose { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.farbe { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }

/* Tabellen */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); text-align: left; font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.plan-name { white-space: nowrap; }
td.firma-zelle { min-width: 180px; }
.kunden-layout.mit-detail .opt { display: none; }
tfoot td { font-weight: 700; border-top: 1px solid var(--line); }
tr.klick { cursor: pointer; }
tr.klick:hover td { background: var(--hover); }
tr.on td { background: #2A1E22; }
tr.on td:first-child { box-shadow: inset 3px 0 0 var(--akzent); }
.firma { font-weight: 600; }
.unten { font-family: var(--mono); font-size: 11.5px; color: var(--mut2); padding: 12px 14px; }

.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); min-height: 44px; }
.li:first-child { border-top: 0; }
a.li:hover { color: var(--akzent); }
.li .zahl { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line2); flex: 0 0 auto; }
.li .zahl.wait { border-color: var(--warn-rand); color: var(--warn); background: var(--warn-bg); }
.li .zahl.bad { border-color: var(--bad-rand); color: var(--bad); background: var(--bad-bg); }
.li .ico:last-child { margin-left: auto; color: var(--mut2); }

/* Kunden */
.kunden-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.kunden-layout.ohne { grid-template-columns: minmax(0, 1fr); }
.werkzeug { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.werkzeug .search { max-width: none; }
select.wahl { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; color: var(--nav); }
.kliste { display: none; }
.kkarte { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); cursor: pointer; }
.kkarte:first-child { border-top: 0; }
.kkarte .zeile { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.kkarte .unterzeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--mut); font-size: 13px; }

.detail { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.dkopf { display: flex; gap: 12px; align-items: flex-start; }
.dkopf .titel { flex: 1; min-width: 0; }
.dkopf h2 { font-size: 18px; margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.zurueck { display: none; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.kachel { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card2); }
.kachel .eb { font-size: 10px; }
.kachel b { display: block; margin-top: 4px; font-size: 15px; }
.kachel small { color: var(--mut); font-size: 12px; }
.zeilen { margin: 6px 0 0; }
.zeilen > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.zeilen > div > span:first-child { color: var(--mut); flex: 0 0 auto; }
.zeilen > div > span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.zeilen .pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.abschnitt { margin-top: 18px; }
.abschnitt > .eb { margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.verlauf { list-style: none; padding: 0; margin: 0; }
.verlauf li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.verlauf li:last-child { border-bottom: 0; }
.verlauf .d { font-family: var(--mono); font-size: 11.5px; color: var(--mut2); padding-top: 2px; }
.verlauf .wer { display: inline; padding: 0; color: var(--mut2); font-size: 12px; }
.dienste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dienst { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; min-width: 0; }
.dienst b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dienst .mut { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--mut2); flex: 0 0 auto; }
.punkt.ok { background: #7ED6A0; }
.punkt.bad { background: var(--akzent); }
.punkt.wait { background: var(--warn); }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* Prüfung */
.pruef-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.faelle { display: flex; flex-direction: column; gap: 10px; }
.fall { display: block; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; color: var(--text); }
.fall:hover { border-color: var(--line2); }
.fall.on { border-color: var(--akzent); background: #241A1D; }
.fall .zeile { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.fall .zeile b { font-size: 14.5px; }
.fall .pill { margin-top: 8px; white-space: normal; text-align: left; }
.pruefliste { list-style: none; margin: 0; padding: 0; }
.pruefliste li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pruefliste li:last-child { border-bottom: 0; }
.pruefliste .sym { width: 22px; height: 22px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.pruefliste .sym.ok { color: #7ED6A0; }
.pruefliste .sym.warn { color: var(--warn); }
.pruefliste .sym.bad { color: var(--akzent); }
.pruefliste .sym.neutral { color: var(--mut2); }
.pruefliste small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 1px; overflow-wrap: anywhere; }
.schnipsel { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; }
.schnipsel mark { background: rgba(255, 79, 123, .28); color: var(--text); border-radius: 3px; padding: 0 2px; }
.regel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.regel:last-of-type { border-bottom: 0; }
.regel small { display: block; color: var(--mut); font-size: 12px; }
.schalter { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.schalter input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; }
.schalter i { position: absolute; inset: 0; border-radius: 999px; background: var(--line2); transition: background .15s; pointer-events: none; }
.schalter i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.schalter input:checked + i { background: var(--akzent); }
.schalter input:checked + i::after { transform: translateX(18px); background: var(--bg); }
.schalter input:focus-visible + i { outline: 2px solid var(--text); outline-offset: 2px; }
.branchen { display: flex; gap: 8px; flex-wrap: wrap; }
.branche { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font-size: 13px; cursor: pointer; color: var(--text); }
.branche:hover { border-color: var(--text); }
.branche.neu { border-style: dashed; color: var(--mut); }

/* Experten-Checks */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.spalte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.spalte > .eb { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.ckarte { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; color: var(--text); }
.ckarte:hover { border-color: var(--line2); }
.ckarte.on { border-color: var(--akzent); }
.ckarte .firma { display: block; }
.ckarte .kamp { display: block; color: var(--nav); font-size: 13.5px; margin-top: 2px; }
.ckarte .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ckarte .wer2 { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.ckarte .av { width: 24px; height: 24px; font-size: 10px; border-radius: 7px; }
.check-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.frage { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.checkliste label { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.checkliste label:last-child { border-bottom: 0; }
.checkliste input { width: 20px; height: 20px; accent-color: var(--akzent); flex: 0 0 auto; }
.drop { border: 1.5px dashed var(--line2); border-radius: 14px; padding: 22px 16px; text-align: center; color: var(--mut); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop:hover, .drop.ueber { border-color: var(--akzent); color: var(--text); background: #1F1A1C; }
.drop b { color: var(--text); }
.fortschritt { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--akzent); transition: width .2s; }
video.vorschau { width: 100%; max-height: 420px; border-radius: 12px; background: #000; display: block; }
textarea, input.feld, select.feld { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; color: var(--text); font-size: 15px; outline: 0; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
textarea:focus, input.feld:focus, select.feld:focus { border-color: var(--text); }
input.feld, select.feld { min-height: 46px; }
.gespeichert { font-family: var(--mono); font-size: 11px; color: var(--ok); margin-left: 8px; }

/* Formulare */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.form .ganz { grid-column: 1 / -1; }
.form label > span:first-child { display: block; font-size: 13px; color: var(--nav); margin-bottom: 6px; font-weight: 500; }
.form .tipp { display: block; font-size: 12px; color: var(--mut2); margin-top: 5px; }
.form .fehlt { border-color: var(--akzent) !important; }
.wahlen { display: flex; gap: 8px; flex-wrap: wrap; }
.wahlen label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); cursor: pointer; font-size: 14px; }
.wahlen input { accent-color: var(--akzent); margin: 0; }
.wahlen label:has(input:checked) { border-color: var(--akzent); background: #2A1E22; }
.statusliste label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.statusliste label:has(input:checked) { border-color: var(--akzent); background: #241A1D; }
.statusliste input { accent-color: var(--akzent); margin-top: 3px; }
.statusliste small { display: block; color: var(--mut); font-size: 12.5px; }

/* Modal und Toast */
.schleier { position: fixed; inset: 0; background: rgba(8, 9, 8, .72); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal { background: var(--card); border: 1px solid var(--line2); border-radius: 18px; width: min(560px, 100%); max-height: calc(100dvh - 36px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.modal.breit { width: min(720px, 100%); }
.modal .mkopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0 22px; }
.modal h2 { margin: 0; font-size: 18px; }
.modal .minhalt { padding: 16px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal .mfuss { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 0 22px 20px; }
.modal .fehler { color: var(--bad); font-size: 13.5px; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100% - 32px); }
.toast.bad { background: var(--akzent); }
.kopierfeld { display: flex; gap: 8px; align-items: stretch; }
.kopierfeld input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; }
.mailtext { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; max-height: 260px; overflow-y: auto; }
.menue { position: absolute; z-index: 60; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; min-width: 220px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); display: flex; flex-direction: column; }
.menue button, .menue a { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 42px; }
.menue button:hover, .menue a:hover { background: var(--hover); color: var(--text); }
.menue .mut { font-size: 12px; }

/* Anmelden und Einrichten */
.anmelden { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.anmelden .card { width: min(420px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.anmelden .brand { padding: 0; }
.anmelden h1 { font-family: var(--disp); font-weight: 400; font-size: 20px; margin: 4px 0 0; }
.anmelden label > span { display: block; font-size: 13px; color: var(--nav); margin-bottom: 6px; font-weight: 500; }
.anmelden .fehler { color: var(--bad); margin: 0; font-size: 14px; }
.anmelden.breit .card { width: min(520px, 100%); }
.qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr img { width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 6px; }
.qr code { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; word-break: break-all; color: var(--text); }
.schritt { display: flex; gap: 12px; }
.schritt .nr { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--akzent); color: var(--akzent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; flex: 0 0 auto; margin-top: 1px; }
.schritt > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.schritt p { margin: 0; }
.code { letter-spacing: .3em; font-family: var(--mono); font-size: 20px !important; text-align: center; }

/* Umsatz */
.chart { width: 100%; height: 220px; display: block; }
.chart .linie { fill: none; stroke: var(--akzent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .flaeche { fill: rgba(255, 79, 123, .12); }
.chart .gitter { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.achse { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--mut2); margin-top: 6px; }
.monate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 140px; }
.monat { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 12px; }
.monat .saeule { width: 100%; max-width: 46px; border-radius: 6px 6px 0 0; background: var(--akzent); min-height: 2px; }
.monat .saeule.minus { background: var(--line2); }
.monat .wert { font-family: var(--mono); font-size: 11px; color: var(--mut); }

/* Einstellungen */
.einst { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-zeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-zeile:last-child { border-bottom: 0; }
.admin-zeile .titel { flex: 1; min-width: 140px; }
.admin-zeile .knoepfe { margin-left: auto; }
.reihe { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.reihe label { flex: 1 1 140px; }
.reihe label > span { display: block; font-size: 13px; color: var(--nav); margin-bottom: 6px; }

/* ---------- Tablet */
@media (max-width: 1240px) {
  .pruef-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .pruef-layout .regeln { grid-column: 1 / -1; }
  .kunden-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1080px) {
  .zwei, .zwei.r, .einst, .check-detail { grid-template-columns: minmax(0, 1fr); }
  .kunden-layout { grid-template-columns: minmax(0, 1fr); }
  .kunden-layout .tabelle-desktop { display: none; }
  .kunden-layout .kliste { display: block; }
  .kunden-layout.mit-detail .liste-teil { display: none; }
  .detail { position: static; max-height: none; overflow: visible; }
  .zurueck { display: inline-flex; }
}

/* ---------- Handy */
@media (max-width: 900px) {
  .stapel { gap: 14px; }
  .app { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; z-index: 90; transform: translateX(-105%); transition: transform .2s ease; width: 280px; box-shadow: 10px 0 40px rgba(0, 0, 0, .5); }
  .app.offen .side { transform: none; }
  .app.offen::after { content: ''; position: fixed; inset: 0; background: rgba(8, 9, 8, .6); z-index: 80; }
  .ib.menu { display: inline-flex; }
  .titelblock { flex-direction: column; align-items: flex-start; gap: 3px; }
  .titelblock .demo { font-size: 9px; padding: 2px 7px; }
  .top { padding: 10px 16px; min-height: 64px; gap: 10px; }
  .top h1 { font-size: 16px; }
  .top .search { display: none; }
  .body { padding: 16px 16px 40px; gap: 14px; }
  .card { padding: 16px; border-radius: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis .kpi:first-child { grid-column: 1 / -1; }
  .kv { font-size: 21px; }
  .fn { grid-template-columns: minmax(0, 1fr) 80px; gap: 6px 10px; }
  .fn .bar { grid-column: 1 / -1; grid-row: 2; }
  .pruef-layout { grid-template-columns: minmax(0, 1fr); }
  .pruef-layout.mit-detail .faelle-teil, .pruef-layout.mit-detail .regeln { display: none; }
  .pruef-layout:not(.mit-detail) .fall-detail { display: none; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .checks-seite.mit-detail .board, .checks-seite.mit-detail .board-kopf { display: none; }
  .form { grid-template-columns: 1fr; }
  .dienste { grid-template-columns: 1fr; }
  .schleier { align-items: flex-end; padding: 0; }
  .modal, .modal.breit { width: 100%; border-radius: 18px 18px 0 0; max-height: 92dvh; }
  .modal .mfuss .btn { flex: 1 1 auto; }
  table.mobil-karten thead { display: none; }
  .neueste-tbl .spalte-karte, .neueste-tbl .spalte-status { display: none; }
  .tr .btn .txt { display: none; }
  .tr .btn { padding: 0 12px; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kacheln { grid-template-columns: 1fr 1fr; }
  .zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
