/* MK Groups Dashboard. Gestaltung nach dem freigegebenen Entwurf (Milchglas, Navigation links, dunkles Bild). */

@font-face {
  font-family: 'Montserrat';
  src: url('/statisch/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html { background: #0B0E10; }
body { margin: 0; min-height: 100vh; background: #0B0E10; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }

.app {
  --bg: #F7F7F3; --stone2: #B8B7AE;
  --fg: #111315; --text: #2E3032; --leise: rgba(46, 48, 50, .76); --label: #4A545C;
  --linie: rgba(17, 19, 21, .10); --linie-stark: rgba(17, 19, 21, .24);
  --glas: rgba(250, 250, 247, .82); --glas-stark: rgba(252, 252, 250, .9); --glas-rand: rgba(255, 255, 255, .6); --glas-licht: rgba(255, 255, 255, .92);
  --glas-schatten: 0 30px 80px -40px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .12);
  --glas-blur: blur(22px) saturate(1.3);
  --weich: cubic-bezier(.19, 1, .22, 1); --sanft: cubic-bezier(.33, 0, .2, 1);
  --fokus: #4A545C; --pill: #FFFFFF;
  --chip: rgba(17, 19, 21, .06); --warn: #8C3A31; --amber: #E1B35E;
  --zeile: rgba(255, 255, 255, .45); --zeile-hover: rgba(255, 255, 255, .8);
  --kopf: #F4F5F2; --kopf-leise: rgba(244, 245, 242, .8);
  position: relative; min-height: 100vh; color: var(--text);
  transition: color .6s var(--sanft);
}
.app.dunkel {
  --bg: #0B0E10; --stone2: #4A5056;
  --fg: #F4F5F2; --text: #E6E7E3; --leise: rgba(236, 235, 230, .76); --label: #A9B3BA;
  --linie: rgba(247, 247, 243, .12); --linie-stark: rgba(247, 247, 243, .28);
  --glas: rgba(14, 18, 22, .55); --glas-stark: rgba(28, 34, 40, .74); --glas-rand: rgba(255, 255, 255, .10); --glas-licht: rgba(255, 255, 255, .08);
  --glas-schatten: 0 30px 80px -40px rgba(0, 0, 0, .8), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --fokus: #C8CDD1; --pill: rgba(56, 64, 72, .82);
  --chip: rgba(247, 247, 243, .09);
  --zeile: rgba(255, 255, 255, .03); --zeile-hover: rgba(255, 255, 255, .08);
}

[hidden] { display: none !important; }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #0B0E10 url('/statisch/hintergrund.webp') center / cover no-repeat; }
.seg-breit { width: min(100%, 560px); }
.seg-mittel { width: min(100%, 360px); }
.suche-wrap { position: relative; }
.auf-bild { margin: 0; padding: 0 4px; color: var(--kopf-leise); font-size: 13px; }
.firma-karte { display: flex; flex-direction: column; gap: 12px; text-align: left; color: var(--text); font-family: 'Montserrat', system-ui, sans-serif; cursor: pointer; transition: transform .5s var(--weich), background-color .6s; }
.firma-karte:hover { transform: translateY(-3px); }
.firma-karte:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.firma-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.loeschen { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--linie); }
.loeschen-frage .text { margin-bottom: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.laden { position: relative; z-index: 1; margin: 0; padding: 40vh 16px 0; text-align: center; color: rgba(244, 245, 242, .8); font-size: 14px; }

/* Glas */
.glass { background: var(--glas); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); border: 1px solid var(--glas-rand); box-shadow: var(--glas-schatten), inset 0 1px 0 var(--glas-licht); border-radius: 20px; transition: background-color .6s var(--sanft), border-color .6s var(--sanft), box-shadow .6s var(--sanft); }

/* Rahmen */
.shell { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding: 20px; max-width: 1680px; margin: 0 auto; }
.nav { position: relative; flex: 1 1 240px; max-width: 268px; min-width: 0; padding: 18px 12px 12px; display: flex; flex-direction: column; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 2px; color: var(--fg); text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--glas-stark); border: 1px solid var(--glas-rand); box-shadow: inset 0 1px 0 var(--glas-licht); }
.brand-name { font-size: 14px; font-weight: 300; letter-spacing: .34em; white-space: nowrap; }
.brand-mark .logo { display: block; width: auto; height: 26px; }
.app .logo-dunkel, .app.dunkel .logo-hell { display: none; }
.app.dunkel .logo-dunkel { display: block; }
.nav-list { position: relative; }
.nav-pill { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 13px; background: var(--pill); border: 1px solid var(--glas-rand); box-shadow: 0 10px 24px -16px rgba(28, 38, 48, .55), inset 0 1px 0 var(--glas-licht); transition: transform .65s var(--weich), background-color .6s; z-index: 0; }
.nav-item { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; margin: 0 0 2px; padding: 0 12px; border: 0; border-radius: 13px; background: transparent; color: var(--leise); font: 400 14px/1 'Montserrat', system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; transition: color .35s var(--sanft), transform .45s var(--weich), background-color .35s; }
.nav-item:hover { color: var(--fg); transform: translateX(3px); }
.nav-item[aria-current='page'] { color: var(--fg); font-weight: 500; }
.nav-item[aria-current='page'] .ico { transform: scale(1.1); }
.nav-item:focus-visible { outline: 2px solid var(--fokus); outline-offset: -2px; }
.nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--fg); animation: puls 2.4s var(--sanft) infinite; }
.nav-sep { display: flex; align-items: center; height: 17px; padding: 0 12px; }
.nav-sep::before { content: ''; flex: 1; height: 1px; background: var(--linie); }
.nav-foot { display: flex; align-items: center; gap: 10px; padding: 12px 4px 2px 12px; border-top: 1px solid var(--linie); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500; transition: background-color .6s, color .6s; }
.nav-user { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nav-user-name { font-size: 13px; font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-sub { font-size: 12px; color: var(--label); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--weich); }
.ico-s { width: 16px; height: 16px; }

.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.topbar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.search { position: relative; display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; height: 44px; padding: 0 14px; border-radius: 13px; background: var(--glas); border: 1px solid var(--linie); color: var(--label); cursor: text; transition: width .6s var(--weich), background-color .4s, border-color .4s; }
.search:focus-within { width: 360px; background: var(--glas-stark); border-color: var(--linie-stark); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--fg); font: 400 14px 'Montserrat', system-ui, sans-serif; outline: none; }
.search input::placeholder { color: var(--label); }
.topbar-space { flex: 1; }
.hint { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--chip); color: var(--label); font-size: 12px; font-weight: 500; white-space: nowrap; }
.treffer { position: absolute; left: 0; top: 52px; width: min(420px, calc(100vw - 32px)); padding: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--glas-stark); z-index: 20; animation: aufklappen .35s var(--weich) both; }
.treffer[hidden] { display: none; }
.treffer-leer { padding: 12px; font-size: 13px; color: var(--label); }
@keyframes aufklappen { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Schaltflächen */
.icon-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 13px; border: 1px solid var(--linie); background: var(--glas-stark); color: var(--fg); cursor: pointer; transition: transform .4s var(--weich), background-color .4s, color .4s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); transition-duration: .08s; }
.icon-btn:active .ico { transform: rotate(-18deg) scale(.9); }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--linie); background: var(--glas-stark); color: var(--fg); font: 500 14px/1 'Montserrat', system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .45s var(--weich), box-shadow .45s var(--weich), background-color .4s, color .4s, opacity .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(28, 38, 48, .6); color: var(--fg); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-primary, .btn-primary:hover { background: var(--fg); color: var(--bg); border-color: transparent; }
.btn-warn, .btn-warn:hover { background: var(--warn); color: #FFFFFF; border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn.laedt::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.btn::after, .icon-btn::after, .kpi::after, .row::after, .chip-btn::after, .mini-btn::after { content: ''; position: absolute; inset: -40%; background: radial-gradient(circle, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 58%); opacity: 0; transform: scale(.25); transition: opacity .7s var(--weich), transform .8s var(--weich); pointer-events: none; }
.btn:active::after, .icon-btn:active::after, .kpi:active::after, .row:active::after, .chip-btn:active::after, .mini-btn:active::after { opacity: 1; transform: scale(1); transition: 0s; }
.btn-primary::after { background: radial-gradient(circle, rgba(255, 255, 255, .35) 0, rgba(255, 255, 255, 0) 58%); }
:is(.btn, .icon-btn, .kpi, .row, .chip-btn, .seg button, .mini-btn, .feld input, .feld select, .feld textarea, .tab-zeile):focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

/* Seiten */
.screen { display: flex; flex-direction: column; gap: 20px; animation: auftauchen .75s var(--weich) both; }
.stagger > * { animation: auftauchen .75s var(--weich) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; }
.stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; }
.stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; }
.stagger > *:nth-child(7) { animation-delay: .3s; }
.stagger > *:nth-child(8) { animation-delay: .35s; }
.stagger > *:nth-child(9) { animation-delay: .4s; }
.stagger > *:nth-child(n+10) { animation-delay: .45s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 4px 4px 0; }
.title { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 300; color: var(--kopf); letter-spacing: -.01em; text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.title-sub { padding-left: 20px; border-left: 1px solid rgba(244, 245, 242, .3); color: var(--kopf-leise); font-size: 14px; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.head .chip { background: var(--glas-stark); color: var(--fg); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); }
.card { padding: 22px; }
.card-title { margin: 0 0 16px; font-size: 15px; line-height: 1.3; font-weight: 500; color: var(--fg); }
.card-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-kopf .card-title { margin: 0; }
.grid { display: grid; gap: 20px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-klein { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-2 { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1.6fr) minmax(min(100%, 300px), 1fr); }
.col-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--text); }
.leise { color: var(--label); font-size: 12px; }

/* Kennzahlen */
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px; text-align: left; text-decoration: none; cursor: pointer; color: var(--text); font-family: 'Montserrat', system-ui, sans-serif; transition: transform .5s var(--weich), box-shadow .5s var(--weich), background-color .6s; }
.kpi:hover { transform: translateY(-3px); }
.kpi:active { transform: scale(.98); transition-duration: .08s; }
.kpi-label { font-size: 13px; color: var(--label); font-weight: 500; }
.kpi-value { font-size: 30px; font-weight: 200; line-height: 1.1; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi-sub { font-size: 12px; color: var(--leise); }

/* Listen */
.list { display: flex; flex-direction: column; gap: 8px; }
.row { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--zeile); color: var(--text); font: 400 14px/1.4 'Montserrat', system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .35s, border-color .35s, transform .45s var(--weich); }
.row:hover { background: var(--zeile-hover); border-color: var(--glas-rand); transform: translateX(3px); }
.row:active { transform: scale(.99); transition-duration: .08s; }
.row-static { cursor: default; }
.row-static:hover { transform: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { color: var(--fg); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--leise); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; color: var(--label); font-size: 12px; }
.initial { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--chip); color: var(--fg); font-size: 13px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip-neu { background: var(--fg); color: var(--bg); }
.chip-arbeit { background: var(--amber); color: #2E3032; }
.chip-warn { background: var(--warn); color: #FFFFFF; }
.leer { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--zeile); color: var(--text); font-size: 14px; }

/* Umschalter */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 15px; background: var(--glas); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); border: 1px solid var(--glas-rand); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 11px; background: var(--pill); border: 1px solid var(--glas-rand); box-shadow: 0 8px 20px -14px rgba(28, 38, 48, .55), inset 0 1px 0 var(--glas-licht); transition: transform .6s var(--weich); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--leise); font: 500 13px/1.25 'Montserrat', system-ui, sans-serif; cursor: pointer; transition: color .35s; }
.seg button[aria-pressed='true'] { color: var(--fg); }

/* Tabellen als Raster */
.table-wrap { overflow-x: auto; }
.t { min-width: 640px; display: flex; flex-direction: column; }
.t-row { display: grid; gap: 12px; align-items: center; padding: 13px 12px; border: 0; border-bottom: 1px solid var(--linie); background: transparent; color: var(--text); font: 400 13px/1.4 'Montserrat', system-ui, sans-serif; text-align: left; transition: background-color .3s; }
.t-row:last-child { border-bottom: 0; }
.t-head { padding-top: 4px; padding-bottom: 10px; color: var(--label); font-weight: 500; }
.tab-zeile { width: 100%; cursor: pointer; border-radius: 10px; }
.tab-zeile:hover { background: var(--zeile-hover); }
.t-kontakte { grid-template-columns: 1.2fr 1.3fr 1.5fr 1fr .9fr; }
.t-protokoll { grid-template-columns: 1fr 1fr 1.6fr 1fr; }
.t-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { color: var(--fg); font-weight: 500; }

/* Pipeline */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.kanban-5 { grid-template-columns: repeat(5, minmax(230px, 1fr)); }
.btn-leise { align-self: flex-start; background: var(--glas); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 14px; border-radius: 18px; background: var(--glas); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); border: 1px solid var(--glas-rand); }
.col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 6px; font-size: 13px; font-weight: 500; color: var(--fg); }
.col-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--chip); color: var(--label); font-size: 12px; }
.col-leer { padding: 12px 6px; font-size: 12px; color: var(--label); }
.deal { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--pill); border: 1px solid var(--glas-rand); box-shadow: 0 10px 24px -20px rgba(0, 0, 0, .5); animation: karte .6s var(--weich) both; }
@keyframes karte { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: none; } }
.deal-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.deal-oeffnen { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.deal-name { font-size: 14px; font-weight: 500; color: var(--fg); }
.deal-titel { font-size: 13px; color: var(--leise); }
.deal-wert { font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; }
.deal-next { font-size: 12px; color: var(--label); }
.mini-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--linie); background: var(--glas-stark); color: var(--fg); cursor: pointer; transition: transform .45s var(--weich); }
.mini-btn:hover { transform: translateX(3px); }
.mini-btn:active { transform: scale(.9); transition-duration: .08s; }
.faellig { color: var(--warn); font-weight: 500; }
.app.dunkel .faellig { color: #E9A39A; }

/* Formulare */
.formular { display: flex; flex-direction: column; gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 8px; }
.feld label, .feld-label { font-size: 13px; font-weight: 500; color: var(--label); }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 46px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--linie); background: var(--glas); color: var(--fg); font: 400 14px/1.4 'Montserrat', system-ui, sans-serif; transition: border-color .3s, background-color .3s, box-shadow .4s var(--weich); }
.feld textarea { min-height: 96px; resize: vertical; }
.feld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--linie-stark); background-color: var(--glas-stark); box-shadow: 0 0 0 4px var(--chip); }
.feld-zeile { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text); cursor: pointer; }
.haken input { width: 20px; height: 20px; accent-color: var(--fg); }
.fehler-text { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(140, 58, 49, .14); color: var(--warn); font-size: 13px; }
.app.dunkel .fehler-text { color: #E9A39A; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.knoepfe .btn { flex: 1 1 auto; }

/* Verlauf */
.verlauf { display: flex; flex-direction: column; gap: 10px; }
.eintrag { padding: 12px 14px; border-radius: 12px; background: var(--zeile); font-size: 13px; line-height: 1.5; color: var(--text); white-space: pre-line; }
.eintrag-kopf { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 12px; color: var(--label); }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 12px 20px; margin: 0; font-size: 13px; }
.kv dt { color: var(--label); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.nachricht { margin: 0; padding: 16px; border-radius: 14px; background: var(--zeile); color: var(--text); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 14px; color: var(--text); }
.setting:last-child { border-bottom: 0; }

/* Seitenfenster */
.backdrop { position: fixed; inset: 0; z-index: 30; padding: 0; border: 0; background: rgba(17, 19, 21, .25); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; cursor: pointer; transition: opacity .45s var(--sanft), visibility 0s .45s; }
.backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--sanft), visibility 0s; }
.backdrop:not(.is-open), .drawer:not(.is-open) { pointer-events: none; }
.drawer { position: fixed; top: 16px; right: 16px; bottom: 16px; z-index: 31; width: min(460px, calc(100% - 32px)); padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; background: var(--glas-stark); transform: translateX(calc(100% + 40px)); visibility: hidden; transition: transform .6s var(--weich), visibility 0s .6s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .7s var(--weich), visibility 0s; }
.drawer:focus { outline: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 300; color: var(--fg); }
.drawer-inhalt { display: flex; flex-direction: column; gap: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 16px; background: var(--fg); color: var(--bg); font-size: 14px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transform: translate(-50%, 20px) scale(.96); transition: opacity .4s var(--sanft), transform .6s var(--weich), visibility 0s .6s; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .4s var(--sanft), transform .6s var(--weich), visibility 0s; }
.toast.ist-fehler { background: var(--warn); color: #FFFFFF; }

/* Anmeldung */
.anmeldung { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.anmeldung .glass { width: min(420px, 100%); padding: 32px; display: flex; flex-direction: column; gap: 22px; animation: auftauchen .9s var(--weich) both; }
.anmeldung .brand { padding: 0; }
.anmeldung h1 { margin: 0; font-size: 26px; font-weight: 300; color: var(--fg); }

.status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--fg); animation: puls 2.8s var(--sanft) infinite; }
@keyframes puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

@media (max-width: 980px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .shell { padding: 12px 16px; gap: 14px; }
  .nav { flex-basis: 100%; max-width: none; padding: 12px; gap: 10px; }
  .nav-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .nav-pill, .nav-sep, .nav-user, .nav-foot .avatar { display: none; }
  .nav-item { width: auto; flex: none; margin: 0; }
  .nav-item:hover { transform: none; }
  .nav-item[aria-current='page'] { background: var(--glas-stark); box-shadow: inset 0 0 0 1px var(--glas-rand); }
  .nav-foot { position: absolute; top: 8px; right: 8px; padding: 0; border-top: 0; }
  .title { font-size: 24px; }
  .title-sub { width: 100%; padding-left: 0; border-left: 0; }
  .search, .search:focus-within { width: 100%; }
  .topbar-space { display: none; }
  .head-actions { margin-left: 0; }
  .kpi-value { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .stagger > *, .deal, .treffer, .status-dot, .nav-dot, .anmeldung .glass { animation: none; }
  .app *, .app *::before, .app *::after { transition-duration: .01ms; }
}
.mehr { display: flex; justify-content: center; margin-top: 12px; }
.mehr:empty { display: none; }
