/* Zeitoo Hub – gleiches Erscheinungsbild wie zeitoo.de (Inter vom eigenen Server, Markenfarbe Türkis), dazu Glas-Leisten im Apple-Stil */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #0FA99B; --brand-d: #0B8578; --brand-50: #E6F7F5; --brand-g: #14C4B3;
  --accent: #1B2638;
  --bg: #F5F6F8; --panel: #FFFFFF; --panel-2: #F9FAFB; --glass: rgba(255, 255, 255, .72);
  --text: #111827; --text-2: #374151; --muted: #6B7280; --faint: #9CA3AF;
  --line: #E5E7EB; --line-2: #F0F1F3;
  --ok: #15803D; --ok-50: #E8F5EC; --warn: #B45309; --warn-50: #FEF3E2; --err: #B91C1C; --err-50: #FDECEC; --info: #1D4ED8; --info-50: #E8EEFD; --violet: #33466B; --violet-50: #E9EDF5; --accent-ink: #1B2638;
  --r: 12px; --r-lg: 18px;
  --sh: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-lg: 0 18px 48px rgba(16, 24, 40, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E13; --panel: #12161D; --panel-2: #171C24; --glass: rgba(18, 22, 29, .72); --text: #F3F4F6; --text-2: #D1D5DB; --muted: #9CA3AF; --faint: #6B7280;
    --line: #232A35; --line-2: #1B212A; --brand-50: rgba(46, 230, 212, .14); --brand-d: #2EE6D4;
    --ok-50: rgba(34, 197, 94, .14); --warn-50: rgba(245, 158, 11, .14); --err-50: rgba(239, 68, 68, .15); --info-50: rgba(96, 165, 250, .15); --violet-50: rgba(143, 180, 255, .15);
    --ok: #4ADE80; --warn: #FBBF24; --err: #F87171; --info: #93C5FD; --violet: #A9C1F5; --accent-ink: #8FB4FF;
    --sh: 0 1px 2px rgba(0, 0, 0, .3); --sh-lg: 0 18px 48px rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E13; --panel: #12161D; --panel-2: #171C24; --glass: rgba(18, 22, 29, .72); --text: #F3F4F6; --text-2: #D1D5DB; --muted: #9CA3AF; --faint: #6B7280;
  --line: #232A35; --line-2: #1B212A; --brand-50: rgba(46, 230, 212, .14); --brand-d: #2EE6D4;
  --ok-50: rgba(34, 197, 94, .14); --warn-50: rgba(245, 158, 11, .14); --err-50: rgba(239, 68, 68, .15); --info-50: rgba(96, 165, 250, .15); --violet-50: rgba(143, 180, 255, .15);
  --ok: #4ADE80; --warn: #FBBF24; --err: #F87171; --info: #93C5FD; --violet: #A9C1F5; --accent-ink: #8FB4FF;
  --sh: 0 1px 2px rgba(0, 0, 0, .3); --sh-lg: 0 18px 48px rgba(0, 0, 0, .55); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
a { color: var(--brand-d); text-decoration: none; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; } svg.i.lg { width: 22px; height: 22px; } svg.i.xl { width: 28px; height: 28px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .bold { font-weight: 650; } .num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 14px; } .gap-s { gap: 6px; } .gap-l { gap: 22px; } .hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.break { overflow-wrap: anywhere; }

/* ---------- Grundbausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--faint); } .btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
:root[data-theme="dark"] .btn.primary:hover { color: #06201d; }
.btn.dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--panel-2); }
.btn.danger { color: var(--err); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn.icon { width: 38px; padding: 0; } .btn.sm.icon { width: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }
.card.pad { padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.card-h h3 { font-size: 15px; } .card-b { padding: 14px 20px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; } .field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-50); color: var(--ok); border-color: transparent; } .pill.warn { background: var(--warn-50); color: var(--warn); border-color: transparent; }
.pill.err { background: var(--err-50); color: var(--err); border-color: transparent; } .pill.info { background: var(--info-50); color: var(--info); border-color: transparent; }
.pill.brand { background: var(--brand-50); color: var(--brand-d); border-color: transparent; } .pill.violet { background: var(--violet-50); color: var(--violet); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex-shrink: 0; } .dot.ok { background: #22C55E; } .dot.warn { background: #F59E0B; } .dot.err { background: #EF4444; } .dot.live { background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; flex-shrink: 0; letter-spacing: .02em; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; } .avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--line-2); gap: 2px; }
.seg button { height: 30px; padding: 0 13px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--sh); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--panel-2); }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; } .switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + i { background: var(--brand); } .switch input:checked + i::after { transform: translateX(18px); }

/* ---------- Startseite (Auswahl Team / Kunde) ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 600px at 15% -10%, rgba(15, 169, 155, .18), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(29, 78, 216, .10), transparent 60%), var(--bg); }
.gate-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; }
.wordmark { height: 30px; display: block; } .wordmark.dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark.light { display: none; } :root:not([data-theme="light"]) .wordmark.dark { display: block; } }
:root[data-theme="dark"] .wordmark.light { display: none; } :root[data-theme="dark"] .wordmark.dark { display: block; }
.gate-hero { max-width: 1040px; width: 100%; margin: 0 auto; padding: 40px 24px 60px; flex: 1; }
.gate-hero h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.035em; font-weight: 800; line-height: 1.05; }
.gate-hero h1 em { font-style: normal; background: linear-gradient(110deg, var(--brand), #3B82F6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-hero p.intro { font-size: 18px; color: var(--muted); max-width: 620px; margin: 16px 0 36px; }
.gate-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gate-tile { text-align: left; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.gate-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.gate-tile .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-d); }
.gate-tile.dark { background: linear-gradient(150deg, #1B2638, #0F1724); color: #fff; border-color: #1B2638; } .gate-tile.dark .ic { background: rgba(255, 255, 255, .1); color: #5EEAD4; } .gate-tile.dark p { color: #AEB8C6; }
.gate-tile h2 { font-size: 22px; } .gate-tile p { margin: 0; color: var(--muted); } .gate-tile .go { margin-top: 6px; font-weight: 650; display: flex; align-items: center; gap: 6px; color: var(--brand-d); } .gate-tile.dark .go { color: #5EEAD4; }
.gate-tile ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13.5px; } .gate-tile li { display: flex; gap: 8px; align-items: center; }
.gate-status { margin-top: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.gate-foot { padding: 20px 28px; color: var(--faint); font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, rgba(15, 169, 155, .16), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; padding: 32px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.03em; }
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.who button { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; border: 1px solid var(--line); text-align: left; transition: border-color .15s, background .15s; }
.who button.on { border-color: var(--brand); background: var(--brand-50); }
.demo-note { font-size: 12.5px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px dashed var(--line); }

/* ---------- Backoffice-Rahmen ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; }
.side .brandrow { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.side .brandrow img { height: 24px; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--accent); color: #fff; }
.side .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 650; padding: 16px 10px 6px; }
.nav { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-weight: 550; width: 100%; text-align: left; transition: background .12s; }
.nav:hover { background: var(--panel-2); } .nav.on { background: var(--brand-50); color: var(--brand-d); }
.nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav .count.soft { background: var(--line-2); color: var(--muted); }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.top { position: sticky; top: 0; z-index: 20; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 26px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.search-btn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; min-width: 280px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--faint); }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel-2); font-size: 11px; font-weight: 600; color: var(--muted); }
.page { padding: 26px; max-width: 1440px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 30px; letter-spacing: -.03em; font-weight: 800; } .page-h p { margin: 4px 0 0; color: var(--muted); }
.menu-btn { display: none; }

/* ---------- Kennzahlen & Diagramme ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi .val { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; font-weight: 650; padding-right: 104px; } .delta.up { color: var(--ok); } .delta.down { color: var(--err); }
.kpi svg.spark { position: absolute; right: 14px; bottom: 14px; width: 96px; height: 34px; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.c8 { grid-column: span 8; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c12 { grid-column: span 12; } .c5 { grid-column: span 5; } .c7 { grid-column: span 7; }
.chart { width: 100%; display: block; }
.chart text { fill: var(--faint); font-size: 11px; font-family: inherit; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .legend span { display: flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel .st { display: grid; grid-template-columns: 120px 1fr 54px; align-items: center; gap: 10px; font-size: 13px; }
.funnel .st .b { height: 28px; border-radius: 8px; background: linear-gradient(90deg, var(--brand), var(--brand-g)); display: flex; align-items: center; padding: 0 10px; color: #fff; font-weight: 700; font-size: 12px; min-width: 34px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.feed { display: flex; flex-direction: column; } .feed .it { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); } .feed .it:last-child { border-bottom: 0; }
.feed .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--panel-2); color: var(--muted); }
.ring { position: relative; display: grid; place-items: center; } .ring b { position: absolute; font-size: 12px; font-weight: 800; }
.insight { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-50), var(--info-50)); border: 1px solid var(--line); }
.insight .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); color: var(--brand-d); flex-shrink: 0; }

/* ---------- Kanban (Leads) ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col { background: var(--line-2); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 360px; transition: background .15s; }
.col.over { background: var(--brand-50); outline: 2px dashed var(--brand); outline-offset: -2px; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px; font-weight: 700; font-size: 13px; }
.col-h .sum { font-weight: 600; color: var(--muted); font-size: 12px; }
.lead { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 12px; cursor: grab; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .12s; }
.lead:hover { box-shadow: var(--sh-lg); } .lead.drag { opacity: .45; transform: rotate(2deg); }
.score { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.score.hot { background: var(--err-50); color: var(--err); } .score.warm { background: var(--warn-50); color: var(--warn); } .score.cold { background: var(--info-50); color: var(--info); }

/* ---------- Newsletter ---------- */
.nl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.block-list { display: flex; flex-direction: column; gap: 10px; }
.block { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.block .bh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.phone { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 42px; padding: 12px; background: #0B0E13; box-shadow: var(--sh-lg); position: sticky; top: 80px; }
.phone .scr { border-radius: 32px; overflow: hidden; background: #F5F6F8; height: 640px; overflow-y: auto; color: #111827; }
.phone .notch { width: 110px; height: 26px; border-radius: 99px; background: #000; margin: 6px auto 0; position: relative; z-index: 2; }
.mail-h { padding: 14px 18px; background: #fff; border-bottom: 1px solid #E5E7EB; font-size: 12.5px; }
.mail-b { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mail-b h2 { font-size: 22px; letter-spacing: -.02em; color: #111827; } .mail-b p { margin: 0; color: #374151; line-height: 1.6; }
.mail-b .cta { align-self: flex-start; background: #0FA99B; color: #fff; padding: 11px 18px; border-radius: 11px; font-weight: 700; }
.mail-b .hero { height: 150px; border-radius: 14px; background: linear-gradient(135deg, #0FA99B, #1D4ED8); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; text-align: center; padding: 12px; }
.mail-b .tip { padding: 12px 14px; border-radius: 12px; background: #E6F7F5; color: #0B8578; font-size: 13px; }
.mail-f { padding: 16px 18px 26px; color: #9CA3AF; font-size: 11px; text-align: center; }
.flow { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.flow .node { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; font-weight: 600; }
.flow .wire { width: 2px; height: 16px; background: var(--line); margin-left: 26px; }

/* ---------- Support ---------- */
.inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0; height: calc(100vh - 62px - 52px - 120px); min-height: 520px; overflow: hidden; }
.inbox .list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox .tk { padding: 14px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.inbox .tk:hover { background: var(--panel-2); } .inbox .tk.on { background: var(--brand-50); }
.inbox .tk.unread .subj { font-weight: 750; }
.inbox .conv { display: flex; flex-direction: column; min-width: 0; }
.conv .msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--panel-2); }
.msg { max-width: 78%; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); }
.msg.note { align-self: stretch; max-width: none; background: var(--warn-50); border: 1px dashed var(--warn); color: var(--text); }
.msg .meta { font-size: 11px; opacity: .7; margin-top: 6px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.ai-sug { padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, var(--violet-50), var(--info-50)); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.sla { font-size: 11.5px; font-weight: 700; } .sla.late { color: var(--err); } .sla.soon { color: var(--warn); } .sla.ok { color: var(--ok); }
.status-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); } .status-row:last-child { border-bottom: 0; }
.uptime { display: flex; gap: 2px; } .uptime i { width: 5px; height: 22px; border-radius: 2px; background: #22C55E; display: block; } .uptime i.w { background: #F59E0B; } .uptime i.e { background: #EF4444; }

/* ---------- Schubladen, Dialoge, Befehlspalette, Meldungen ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 23, 36, .38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 60; animation: fade .18s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--panel); z-index: 61; box-shadow: var(--sh-lg); display: flex; flex-direction: column; animation: slide .26s cubic-bezier(.2, .8, .2, 1); }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border-radius: 22px; z-index: 61; box-shadow: var(--sh-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.palette { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); background: var(--panel); border-radius: 18px; z-index: 62; box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--line); animation: pop2 .18s ease; }
.palette input { width: 100%; height: 58px; border: 0; outline: 0; padding: 0 20px; font-size: 17px; background: transparent; border-bottom: 1px solid var(--line); }
.palette .res { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette .r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; } .palette .r.on { background: var(--brand-50); }
.palette .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 10px 12px 4px; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 14px; background: rgba(17, 24, 39, .92); color: #fff; font-weight: 600; box-shadow: var(--sh-lg); backdrop-filter: blur(12px); display: flex; gap: 8px; align-items: center; animation: up .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } } @keyframes pop { from { transform: translate(-50%, -46%) scale(.97); opacity: 0; } } @keyframes pop2 { from { transform: translateX(-50%) scale(.97); opacity: 0; } } @keyframes up { from { transform: translateY(12px); opacity: 0; } }
.view-in { animation: fade .25s ease; }

/* ---------- Kundenportal ---------- */
.portal-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 24px; height: 62px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.portal-top nav { display: flex; gap: 4px; margin-left: 18px; }
.portal-top nav button { height: 34px; padding: 0 13px; border-radius: 9px; font-weight: 600; color: var(--muted); } .portal-top nav button.on { color: var(--text); background: var(--line-2); }
.portal { max-width: 1040px; margin: 0 auto; padding: 28px 24px 60px; }
.p-hero { padding: 34px; border-radius: 26px; background: linear-gradient(135deg, #0FA99B, #0B6E8F 60%, #1B2638); color: #fff; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.p-hero h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; font-weight: 800; }
.p-hero .q { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 15px; background: rgba(255, 255, 255, .96); color: #111827; max-width: 620px; }
.p-hero .q input { border: 0; outline: 0; flex: 1; font-size: 16px; background: transparent; color: #111827; }
.p-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); text-align: left; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; }
.topic:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.topic.cta { background: linear-gradient(135deg, #0FA99B, #0B6E8F); color: #fff; border-color: transparent; } .topic.cta .ic { background: rgba(255, 255, 255, .16); color: #fff; }
.topic .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-d); }
.article { line-height: 1.7; font-size: 15px; } .article h2 { font-size: 24px; margin-bottom: 8px; } .article ol, .article ul { padding-left: 20px; } .article li { margin: 6px 0; }
.steps { display: flex; gap: 8px; } .steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); } .steps i.on { background: var(--brand); }
.lang-sel { height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); padding: 0 8px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c8, .c4, .c6, .c5, .c7 { grid-column: span 12; } .nl-grid { grid-template-columns: 1fr; } .phone { position: static; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 70; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--sh-lg); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .search-btn { min-width: 0; flex: 1; } .search-btn .kbd, .search-btn .lbl { display: none; }
  .top { padding: 0 14px; } .page { padding: 18px 16px; } .page-h h1 { font-size: 25px; }
  .gate-tiles, .grid2, .grid3 { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr 1fr; gap: 10px; } .topic { padding: 14px; }
  .inbox { grid-template-columns: 1fr; height: auto; } .inbox .list { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); } .conv .msgs { min-height: 320px; }
  /* ohne Glas-Effekt, sonst hängt die feste Reiterleiste an der Kopfleiste statt am Bildschirm */
  .portal-top { padding: 0 14px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel); } .portal-top .wordmark { height: 22px; }
  /* Handy: Reiter unten wie in iOS-Apps */
  .portal-top nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
  .portal-top nav button { height: auto; flex-direction: column; display: flex; align-items: center; gap: 3px; padding: 4px 2px; font-size: 10.5px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; background: none !important; position: relative; }
  .portal-top nav button.on { color: var(--brand-d); } .portal-top nav button svg.i { width: 22px; height: 22px; }
  .portal-top nav button .pill { position: absolute; top: 0; right: 18%; }
  body:has(.portal-top) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .portal { padding: 18px 16px 50px; } .p-hero { padding: 24px; }
  .kpis { gap: 10px; } .kpi .val { font-size: 23px; } .kpi svg.spark { display: none; } .kpi .delta { padding-right: 0; }
  .gate-top { padding: 18px 16px; } .gate-hero { padding: 24px 16px 40px; }
}
@media (max-width: 600px) { .who { grid-template-columns: 1fr; } }

/* Anmeldung und Hinweise */
.form-err { color: var(--err); min-height: 1px; }
.form-err:empty { display: none; }
.auth-card .btn[disabled], .btn[disabled] { opacity: .55; pointer-events: none; }
.sync-note { display: flex; align-items: baseline; gap: 8px; margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.sync-note .dot { flex-shrink: 0; transform: translateY(-1px); }
.sync-note.warn { color: var(--warn); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
