/* Zentrale: dunkles Bento-Design. Akzent Limette für Geld und Live-Werte, Rot nur für Überfälliges. */
:root {
  --bg: #000; --panel: #0f0f11; --panel2: #1c1c1e; --sidebar: rgba(28,28,30,.72); --text: #f4f4f6; --text2: #c9c9d1; --muted: #85858f;
  --line: rgba(255,255,255,.075); --fill: rgba(255,255,255,.05); --fill2: rgba(255,255,255,.09);
  --accent: #30d158; --accent-ink: #04210d; --accent-soft: rgba(48,209,88,.16); --accent2: #bf5af2; --blue: #0a84ff; --indigo: #5e5ce6; --orange: #ff9f0a; --teal: #64d2ff;
  --ok: #30d158; --warn: #ff9f0a; --bad: #ff453a; --bad-soft: rgba(255,69,58,.15); --warn-soft: rgba(255,159,10,.14);
  --radius: 26px; --shadow: 0 0 0 1px var(--line); --shadow-lg: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.6);
  --btn-hover: #26262b; --btn-ring: 0 0 0 1px rgba(255,255,255,.1);
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.35, .64, 1);
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 13.5px/1.45 var(--font-text); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent); text-decoration: none; }
h1 { font: 650 30px/1.1 var(--font-display); letter-spacing: -.035em; margin: 0 0 4px; }
h2 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 12px; letter-spacing: 0; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 12px; } .num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); } .center { text-align: center; }
label { display: grid; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; padding: 9px 12px; background: var(--panel2); color: var(--text); border: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
input:focus, select:focus, textarea:focus { outline: 0; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input.missing, select.missing { box-shadow: 0 0 0 1px var(--warn); }
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: 0; border-radius: 999px; padding: 7px 14px; min-height: 34px; font-weight: 550; background: var(--panel2); box-shadow: var(--btn-ring); transition: transform .15s var(--ease), background .15s; }
button:hover { background: var(--btn-hover); }
button:active { transform: scale(.97); }
button.primary { background: var(--blue); color: #fff; box-shadow: none; }
button.primary:hover { background: #409cff; }
button.danger { color: var(--bad); }
button.sm { padding: 4px 11px; font-size: 12px; min-height: 28px; }
button.lg { padding: 13px 18px; font-size: 14.5px; font-weight: 650; border-radius: 16px; width: 100%; }
button.link { background: none; box-shadow: none; color: var(--muted); font-size: 12.5px; width: 100%; }
button.link:hover { color: var(--text); }
button:disabled { opacity: .45; pointer-events: none; }
a.btn { display: inline-flex; align-items: center; background: var(--panel2); box-shadow: var(--btn-ring); color: var(--text); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 550; min-height: 28px; }
.error { color: var(--bad); font-size: 13px; }
.error:empty { display: none; }

/* Anmeldung */
.auth { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 16px; position: relative; isolation: isolate; background: #05070c; }
.auth-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: saturate(1.1) brightness(.72); }
.auth-card { width: 400px; max-width: 100%; grid-template-columns: minmax(0, 1fr); background: rgba(16,16,19,.78); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); border-radius: 28px; padding: 34px 30px 26px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; animation: up .5s var(--ease); }
.auth-card h1 { text-align: center; font-size: 24px; margin: 0; }
.auth-card p { margin: 0 0 6px; }
.auth-logo { display: grid; place-items: center; margin-bottom: 8px; }
.auth-logo svg { width: 72px; height: 72px; filter: drop-shadow(0 12px 28px rgba(10,95,214,.5)); }
.auth-group { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.auth-group:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
.auth-group input { box-shadow: none !important; border-radius: 0; padding: 13px 14px; font-size: 14.5px; background: transparent; }
.auth-group input + input { border-top: 1px solid var(--line); }
.auth-foot { color: rgba(255,255,255,.75); font-size: 11px; font-weight: 600; letter-spacing: .24em; margin: 0; }
.otp { display: flex; justify-content: center; gap: 6px; margin: 10px 0 6px; width: 100%; min-width: 0; }
.otp-gap { width: 10px; flex: none; display: grid; place-items: center; } .otp-gap::before { content: ''; width: 8px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.3); }
.otp-box { width: auto; height: 54px; flex: 1 1 0; max-width: 46px; min-width: 0; padding: 0; caret-color: var(--accent); text-align: center; font: 600 21px var(--font-mono); border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,255,255,.16); transition: box-shadow .15s, transform .2s var(--spring); }
.otp-box:focus { transform: translateY(-2px); }
.otp-box:disabled { opacity: .55; }
.otp-wrong { animation: otpshake .32s; }
@keyframes otpshake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes up { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Rahmen */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 100%; }
nav { background: var(--sidebar); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border-right: 1px solid var(--line); padding: 20px 12px 14px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 650; padding: 0 8px 20px; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; }
nav button { justify-content: flex-start; gap: 10px; background: none; box-shadow: none; padding: 7px 10px; font-weight: 500; color: var(--text2); border-radius: 8px; }
nav button svg { width: 17px; height: 17px; flex: none; color: var(--blue); }
nav button .count { margin-left: auto; }
nav button:hover { background: var(--fill); color: var(--text); }
nav button.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
nav .count { font: 650 11px var(--font-mono); color: #fff; background: var(--bad); border-radius: 999px; padding: 1px 7px; }
nav .bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 6px 0; font-size: 12px; color: var(--muted); display: grid; gap: 8px; word-break: break-all; }
nav .bottom button { background: var(--panel2); box-shadow: var(--btn-ring); justify-content: center; color: var(--text); border-radius: 999px; }
main { min-width: 0; overflow-y: auto; background: radial-gradient(1200px 500px at 70% -10%, rgba(48,209,88,.05), transparent 60%), radial-gradient(900px 500px at 0% 0%, rgba(59,158,255,.07), transparent 60%); }
.page { padding: 30px 30px 60px; max-width: 1280px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.demo-bar { background: var(--warn-soft); color: var(--warn); padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 16px; display: inline-block; }
.card, .tile { background: var(--panel); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; position: relative; overflow: hidden; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi b { display: block; font: 600 28px/1.15 var(--font-mono); letter-spacing: -.04em; margin-bottom: 2px; }
.kpi span { font-size: 12px; }
.kpi.alert b { color: var(--bad); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c12 { grid-column: span 12; }
.hero { font: 600 32px/1.1 var(--font-mono); letter-spacing: -.04em; }
.delta { font: 500 12px var(--font-text); color: var(--muted); margin-left: 8px; letter-spacing: 0; }

/* Neue Übersicht */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; }
.tile > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.tile > header h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.tile > header h3 sup { font: 600 10px var(--font-mono); color: var(--text2); margin-left: 2px; }
.span2 { grid-column: span 2; } .row2 { grid-row: span 2; }
.t-hero { grid-column: 1 / span 2; }
.greet { font: 650 32px/1.08 var(--font-display); letter-spacing: -.035em; margin: 0; }
.greet em { font-style: normal; color: var(--accent); }
.bignum { font: 600 42px/1 var(--font-mono); letter-spacing: -.05em; }
.midnum { font: 600 23px/1.1 var(--font-mono); letter-spacing: -.03em; }
.sub { font: 500 12px var(--font-mono); color: var(--muted); margin-top: 6px; }
.up { color: var(--accent); }
.heroRow { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.strip { display: flex; align-items: flex-end; gap: 3px; flex: 1; min-height: 76px; margin-top: 24px; }
.strip i { flex: 1; height: 6%; border-radius: 4px; background: var(--accent); opacity: .3; transition: height .9s var(--ease), opacity .2s; }
.strip i.zero { background: rgba(255,255,255,.12); opacity: 1; }
.strip:hover i { opacity: .2; } .strip i:hover { opacity: 1 !important; }
.stripLegend { display: flex; justify-content: space-between; font: 500 11px var(--font-mono); color: var(--muted); margin-top: 8px; }
.pills, .seg { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(118,118,128,.24); gap: 0; }
.pills button, .seg button { background: none; box-shadow: none; min-height: 24px; padding: 2px 12px; font: 500 12px var(--font-text); color: var(--text); border-radius: 7px; }
.pills button:hover, .seg button:hover { background: rgba(255,255,255,.06); }
.pills button.on, .seg button.on { background: #636366; color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.04); }
.livepill { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--font-mono); color: var(--accent); }
.livepill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(48,209,88,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }
.gauge { display: grid; place-items: center; flex: 1; }
.gauge svg { overflow: visible; }
.gauge .track { stroke: rgba(255,255,255,.08); }
.gauge .arc { stroke: var(--accent); transition: stroke-dashoffset 1.2s var(--ease); }
.gauge .needle { transition: transform 1.2s var(--ease); transform-origin: 75px 78px; }

/* Tarif-Karten */
.stackWrap { position: relative; margin: 0 -20px -20px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 236px; }
.stack { position: relative; height: 170px; }
.tcard { position: absolute; left: 50%; width: calc(100% - 40px); max-width: 290px; aspect-ratio: 1.586; border-radius: 16px; padding: 14px 16px; text-align: left; display: block; box-shadow: 0 -12px 30px -14px rgba(0,0,0,.85); transform-origin: top center; transition: top .65s var(--spring), transform .65s var(--spring), opacity .5s ease; cursor: pointer; overflow: hidden; color: #10140a; }
.tcard:hover { background: inherit; }
.tcard .face { position: absolute; inset: 0; }
.tcard .holo { position: absolute; inset: 0; background-image: linear-gradient(115deg, transparent 18%, rgba(255,140,220,.5) 32%, rgba(120,200,255,.5) 42%, rgba(190,255,140,.45) 52%, rgba(255,220,120,.4) 62%, transparent 78%); background-size: 260% 100%; background-position: var(--glare, 30%) 0; mix-blend-mode: soft-light; transition: background-position .7s var(--ease); }
.tcard.idle .holo { animation: holo 6s ease-in-out infinite alternate; }
@keyframes holo { from { background-position: 10% 0; } to { background-position: 70% 0; } }
.tcard .row1 { position: relative; display: flex; justify-content: space-between; font-weight: 750; font-size: 13px; letter-spacing: -.01em; }
.tcard .row1 span:last-child { font: 650 12px var(--font-mono); }
.tcard .chip { position: relative; width: 28px; height: 21px; border-radius: 5px; background: linear-gradient(135deg, #f6e7a8, #c9b064); margin-top: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.t-basis .face { background: radial-gradient(110% 90% at 100% 0%, #ff9c6b 0%, transparent 60%), linear-gradient(135deg, #ffd29a, #ff8f5a); }
.t-plus .face { background: radial-gradient(110% 90% at 100% 0%, #8f6dff 0%, transparent 60%), linear-gradient(135deg, #d9c6ff, #9a7bf0); }
.t-pro .face { background: radial-gradient(110% 90% at 100% 0%, #3fd6a0 0%, transparent 60%), linear-gradient(135deg, #d6ff7a, #8fe04a); }
.frost { position: relative; z-index: 9; height: 84px; padding: 0 20px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: rgba(19,19,22,.72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-top: 1px solid var(--line); }
.frost b { display: block; font: 650 15px var(--font-mono); letter-spacing: .02em; }

/* Soll und Ist */
.chartBox { position: relative; flex: 1; min-height: 230px; margin-top: 14px; touch-action: pan-y; }
.chartBox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chartBox .gridl { stroke: rgba(255,255,255,.07); }
.chartBox .soll { stroke: #85858f; }
.chartBox .ist { stroke: var(--accent); }
.chartBox .areaF { opacity: 0; transition: opacity .9s ease .4s; }
.mounted .chartBox .areaF { opacity: 1; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.18); transform: translateX(-50%); opacity: 0; pointer-events: none; }
.dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--panel); background: var(--accent); transform: translate(-50%, -50%); pointer-events: none; }
.dot.s { width: 10px; height: 10px; border-width: 2px; background: #85858f; opacity: 0; }
.axis { display: flex; justify-content: space-between; font: 500 11px var(--font-mono); color: var(--muted); margin-top: 10px; }
.legendRow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 30px; }
.legendRow p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.swatch { width: 16px; height: 3px; border-radius: 3px; background: var(--accent); }
.swatch.dash { height: 0; border-top: 2px dashed #85858f; background: none; }
.badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; font: 650 11px var(--font-mono); background: var(--accent-soft); color: var(--accent); }

/* Aufteilung */
.segbar { display: flex; height: 36px; gap: 4px; margin-top: 14px; }
.segbar i { border-radius: 9px; flex-basis: 20%; transition: flex-basis 1s var(--ease), opacity .2s; min-width: 4px; }
.segbar:hover i { opacity: .35; } .segbar i:hover { opacity: 1; }
.seglist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 12px; }
.seglist li { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.seglist li span:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seglist b { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.seglist .mono { color: var(--muted); }

/* Limetten-Kachel */
.t-lime { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.t-lime > header h3 { color: var(--accent-ink); opacity: .72; font-weight: 650; }
.t-lime .tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(4,33,13,.12); font: 650 11px var(--font-mono); }
.t-lime .tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.limeNum { font: 650 50px/1 var(--font-mono); letter-spacing: -.06em; margin-top: 4px; }
.limeNum small { font-size: 22px; }
.limeBox { margin-top: 18px; border-radius: 16px; padding: 12px; background: rgba(4,33,13,.1); }
.limeBox .lr { display: flex; justify-content: space-between; font-size: 12px; font-weight: 650; }
.limeBar { height: 6px; border-radius: 6px; background: rgba(4,33,13,.15); margin-top: 8px; overflow: hidden; }
.limeBar i { display: block; height: 100%; width: 0; background: var(--accent-ink); border-radius: 6px; transition: width 1.2s var(--ease); }
.t-lime dl { margin: 14px 0 0; display: grid; gap: 7px; font-size: 12px; }
.t-lime dl div { display: flex; justify-content: space-between; }
.t-lime dt { opacity: .7; } .t-lime dd { margin: 0; font: 650 12px var(--font-mono); }
.minibars { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: auto; padding-top: 18px; }
.minibars i { flex: 1; height: 6%; border-radius: 4px; background: var(--accent-ink); transition: height 1s var(--ease); }
.t-lime button { margin-top: 14px; width: 100%; border-radius: 16px; min-height: 46px; background: var(--accent-ink); color: var(--accent); box-shadow: none; font-weight: 650; }
.t-lime button:hover { background: #0a3a18; }

/* Überfällig und Aktivität */
.t-due .midnum { color: var(--bad); }
.duelist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.duelist li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; cursor: pointer; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; }
.duelist li:hover { background: var(--fill); }
.feed { list-style: none; margin: -4px -8px; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s var(--ease), background .15s; }
.mounted .feed li { opacity: 1; transform: none; }
.feed li:hover { background: var(--fill); }
.feed .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; flex: none; color: var(--text2); }
.feed .ic svg { width: 16px; height: 16px; }
.feed .tx { min-width: 0; flex: 1; }
.feed .tx b { display: block; font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .tx span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .when { font: 500 11px var(--font-mono); color: var(--muted); }

/* Diagramme */
.chart { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.s-accent { stroke: var(--accent); } .f-accent { fill: var(--accent); } .stop-accent { stop-color: var(--accent); } .cell0 { fill: rgba(255,255,255,.045); }
.hit .cross { stroke: var(--muted); opacity: 0; }
.hit .dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; opacity: 0; }
.hit:hover .cross, .hit:hover .dot { opacity: 1; }
.bar:hover path { opacity: .8; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cardhead h2 { margin: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.lg-basis { background: #2f8fef; } .lg-plus { background: #17a68c; } .lg-pro { background: #9d78f2; }

/* Tabellen und Listen */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 500; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.link { cursor: pointer; } tr.link:hover td { background: var(--fill); }
th.right, td.right { text-align: right; }
th:last-child, td:last-child { padding-right: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 11px var(--font-mono); background: var(--fill); color: var(--text2); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6e6e78; }
.pill.aktiv::before, .pill.offen-key::before, .pill.bezahlt::before, .pill.uebernommen::before { background: var(--accent); }
.pill.test::before { background: #5aa9ff; }
.pill.gekuendigt::before, .pill.zu_pruefen::before, .pill.offen::before { background: var(--warn); }
.pill.gesperrt, .pill.ueberfaellig { color: var(--bad); background: var(--bad-soft); }
.pill.gesperrt::before, .pill.ueberfaellig::before { background: var(--bad); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form .full { grid-column: 1 / -1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mt { margin-top: 14px; }
.newkey { background: var(--panel); box-shadow: 0 0 0 1px var(--accent); border-radius: var(--radius); padding: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.newkey img { width: 120px; height: 120px; border-radius: 12px; background: #fff; padding: 4px; }
.newkey code { font-size: 17px; font-weight: 650; word-break: break-all; user-select: all; display: block; margin: 6px 0; color: var(--accent); }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }
dl.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; word-break: break-word; }
dialog { border: 0; border-radius: 26px; padding: 26px; width: 640px; max-width: calc(100% - 32px); background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.drop { border: 1.5px dashed rgba(255,255,255,.18); border-radius: var(--radius); padding: 48px 20px; text-align: center; display: block; cursor: pointer; color: var(--text); font-size: 13.5px; background: var(--panel); transition: border-color .2s, background .2s; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { display: block; font-size: 17px; margin-bottom: 4px; }
.ocrtext { background: var(--panel2); border-radius: 14px; padding: 14px; font: 12px/1.5 var(--font-mono); white-space: pre-wrap; max-height: 520px; overflow: auto; color: var(--text2); }
.preview { max-width: 100%; border-radius: 12px; display: block; margin-bottom: 10px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--fill2); border-top-color: var(--accent); border-radius: 50%; animation: s .8s linear infinite; display: inline-block; vertical-align: -4px; margin-right: 8px; }
@keyframes s { to { transform: rotate(360deg); } }
.tooltip { position: fixed; z-index: 50; pointer-events: none; background: #f4f4f6; color: #0a0a0c; padding: 5px 10px; border-radius: 999px; font: 600 11.5px var(--font-mono); white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* Karte */
.mapview { display: grid; grid-template-columns: minmax(0, 1fr) 330px; height: 100%; }
.mapwrap { position: relative; overflow: hidden; background: #000; min-height: 340px; touch-action: none; }
.mapwrap canvas { display: block; position: absolute; inset: 0; cursor: grab; }
.map-ctl { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(28,28,32,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.map-stat { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 24px; background: rgba(28,28,32,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 18px; border-radius: 20px; font-size: 11px; color: #9a9aa3; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.map-stat b { display: block; color: #fff; font: 600 20px var(--font-mono); }
.map-stat .bad b { color: var(--bad); }
.map-hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 13px; padding: 7px 16px; border-radius: 999px; white-space: nowrap; }
.map-hint[hidden] { display: none; }
.map-tip { position: absolute; z-index: 4; pointer-events: none; background: rgba(28,28,32,.95); padding: 8px 11px; border-radius: 12px; font-size: 12px; color: #9a9aa3; max-width: 210px; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.map-tip b { color: #fff; display: block; }
.mappanel { background: var(--sidebar); border-left: 1px solid var(--line); overflow-y: auto; padding: 16px; }
.mappanel .card { border-radius: 20px; }
.salonrow { display: flex; align-items: center; width: 100%; justify-content: space-between; gap: 8px; background: none; box-shadow: none; text-align: left; padding: 8px 10px; border-radius: 12px; font-weight: 500; }
.salonrow:hover { background: var(--fill); }
.salonrow.on { background: var(--fill2); }
.salonrow small { display: block; color: var(--muted); font-weight: 400; }

@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-hero, .span2 { grid-column: span 2; } .row2 { grid-row: auto; } }
@media (max-width: 1000px) { .c4, .c5, .c6, .c7 { grid-column: span 12; } .mapview { grid-template-columns: 1fr; grid-template-rows: minmax(340px, 60%) minmax(0, 1fr); } .mappanel { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); } nav { flex-direction: row; overflow-x: auto; padding: 8px; } nav .brand, nav .bottom { display: none; } nav button { white-space: nowrap; flex: none; gap: 6px; } .page { padding: 20px 14px 40px; } .form { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr; } .t-hero, .span2 { grid-column: auto; } .bignum { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .draw { stroke-dashoffset: 0; } .feed li { opacity: 1; transform: none; } }

/* Lichtschein, der der Maus folgt: Rand und Fläche leuchten in der Farbe der Kachel */
.glow { --mx: -999px; --my: -999px; --glow: 10, 132, 255; isolation: isolate; }
.glow::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--glow), .95), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 2; }
.glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--glow), .13), transparent 65%), linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 26px 26px; -webkit-mask: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 75%); mask: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 75%); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 0; }
.glow:hover::before, .glow:hover::after, .glow.touch::before, .glow.touch::after { opacity: 1; }
.glow > * { position: relative; z-index: 1; }
.g-green { --glow: 48, 209, 88; } .g-blue { --glow: 10, 132, 255; } .g-indigo { --glow: 94, 92, 230; } .g-purple { --glow: 191, 90, 242; } .g-orange { --glow: 255, 159, 10; } .g-red { --glow: 255, 69, 58; } .g-teal { --glow: 100, 210, 255; }
.t-lime.glow::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,255,255,.28), transparent 65%); }

/* Live-Protokoll im Terminal-Stil */
.term { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; border-radius: 14px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); padding: 14px; font: 12px/1.55 var(--font-mono); min-height: 210px; }
.term div { display: flex; gap: 9px; animation: slide .35s var(--ease) both; }
.term .m { width: 12px; flex: none; text-align: center; }
.term .ok { color: var(--accent); } .term .bad { color: var(--bad); } .term .info { color: var(--muted); } .term .cmd { color: var(--accent2); }
.term .t { color: var(--text2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term .w { margin-left: auto; color: #5c5c66; flex: none; }
.traffic { display: flex; gap: 6px; } .traffic i { width: 11px; height: 11px; border-radius: 50%; } .traffic i:nth-child(1) { background: #ff5f57; } .traffic i:nth-child(2) { background: #febc2e; } .traffic i:nth-child(3) { background: #28c840; }
.cursorBlink { display: inline-block; width: 7px; height: 13px; background: var(--accent2); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes slide { from { opacity: 0; transform: translateY(6px); } }

/* Ringe für Quoten */
.rings { display: flex; justify-content: space-between; gap: 6px; flex: 1; align-items: center; }
.ring { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.ring > div { position: relative; width: 58px; height: 58px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bgc { stroke: rgba(255,255,255,.08); }
.ring .fg { transition: stroke-dashoffset 1.3s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 650 13px var(--font-mono); color: var(--text); }

.gsub { margin-top: 6px; } .rlabel { margin: 0 0 4px; text-align: right; } .tr { text-align: right; } .gnum { margin: 8px 0 0; } .gsub2 { margin-top: 2px; }
.needle { transform: rotate(-90deg); }
.limeSub { margin: 6px 0 0; font-size: 12px; font-weight: 600; opacity: .75; } .dim { opacity: .7; } .limeFoot { font-size: 10px; opacity: .6; margin: 6px 0 0; }
.heroRow .right { text-align: right; }
.frost > b { white-space: nowrap; }
.frost > div { min-width: 0; } .frost .small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otp-box:not(:placeholder-shown), .otp-box.filled { box-shadow: 0 0 0 1px rgba(255,255,255,.32); background: rgba(255,255,255,.1); }
.auth-card p.center { text-wrap: balance; }
@media (max-width: 400px) { .auth-card { padding: 28px 18px 22px; } .otp { gap: 4px; } .otp-box { height: 48px; font-size: 19px; border-radius: 10px; } }

/* Werkzeugleisten, Reiter, Sheets */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1 1 260px; width: auto; border-radius: 10px; background: rgba(118,118,128,.24); box-shadow: none; padding-left: 14px; }
.toolbar select { width: auto; border-radius: 10px; background: rgba(118,118,128,.24); box-shadow: none; padding-right: 28px; }
.switch { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; color: var(--text2); font-size: 12.5px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 38px; height: 23px; border-radius: 999px; background: rgba(120,120,128,.32); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .25s var(--spring); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(15px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(118,118,128,.18); margin: 4px 0 14px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs button { background: none; box-shadow: none; border-radius: 9px; min-height: 30px; padding: 4px 14px; font-size: 13px; color: var(--text2); white-space: nowrap; }
.tabs button.on { background: #636366; color: #fff; }
.tabbody .grid4 { margin-bottom: 0; }
.midnum.bad { color: var(--bad); }
.acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bulk { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 16px; background: rgba(10,132,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(10,132,255,.4); font-weight: 600; }
.bulk[hidden] { display: none; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); }
input.inline { background: transparent; box-shadow: none; padding: 4px 6px; border-radius: 8px; min-width: 140px; }
input.inline:hover { background: var(--fill); }
.formSection { grid-column: 1 / -1; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.formSection:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
dialog { max-height: calc(100vh - 40px); overflow-y: auto; animation: sheetIn .35s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheetTitle { font: 650 19px var(--font-display); color: var(--text); margin: 0 0 14px; letter-spacing: -.02em; }
.sheetBtns { justify-content: flex-end; position: sticky; bottom: -26px; background: var(--panel); padding: 12px 0 0; }
dialog textarea { font: 13px/1.5 var(--font-text); }
.secret { font-size: 14px; color: var(--accent); user-select: all; word-break: break-all; }
.qr { width: 180px; height: 180px; background: #fff; border-radius: 14px; padding: 6px; display: block; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { display: flex; gap: 10px; align-items: flex-start; }
.notes li > div { flex: 1; min-width: 0; }
.notes p { margin: 0 0 2px; white-space: pre-wrap; word-break: break-word; }
.stack { display: grid; gap: 12px; }

/* Passkey */
.pk { width: 100%; min-height: 48px; border-radius: 14px; background: #fff; color: #000; font-weight: 650; font-size: 15px; gap: 10px; box-shadow: none; }
.pk:hover { background: #e8e8ed; }
.pk svg { width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; margin: 2px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pkcard .pkonly { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.slugIn { max-width: 220px; }
.qrDialog { width: 460px; text-align: center; }
.qrBig { width: 340px; max-width: 100%; aspect-ratio: 1; background: #fff; border-radius: 20px; padding: 12px; margin: 6px auto 12px; display: block; }
@media print { body * { visibility: hidden; } .qrDialog, .qrDialog * { visibility: visible; } .qrDialog { position: fixed; inset: 0; box-shadow: none; background: #fff; color: #000; } .qrDialog .sheetBtns { display: none; } }
.accessCard { text-align: left; width: 520px; }
.accessCard .brandRow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.accessCard .brandRow svg { width: 34px; height: 34px; }
.facts.big { grid-template-columns: 90px minmax(0, 1fr); gap: 12px 16px; margin-bottom: 14px; }
.facts.big .secret { font-size: 16px; }
.steps { margin: 0 0 12px 18px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--text2); }
@media print { .accessCard, .accessCard * { visibility: visible; } .accessCard .secret { color: #000; } }
.autoCard { margin-bottom: 12px; }
.autoGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.autoItem { align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--fill); }
.autoItem b { display: block; color: var(--text); font-size: 13.5px; } .autoItem small { display: block; font-size: 12px; }
.warnTxt { color: var(--warn); }
.fcGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 22px; }
.fcIn span:first-child { color: var(--text2); font-weight: 600; font-size: 12.5px; }
.fcIn input[type=range] { flex: 1; accent-color: var(--accent); background: none; box-shadow: none; padding: 0; }
.fcIn input[type=number] { width: 90px; }
.todayLine { stroke: var(--muted); stroke-dasharray: 2 4; }
.lgLine, .lgDash, .lgCost { display: inline-block; width: 16px; height: 0; border-top: 2.5px solid var(--accent); margin-right: 6px; vertical-align: middle; }
.lgDash { border-top-style: dashed; opacity: .75; } .lgCost { border-top: 2px dotted #ff9f0a; }
td.bad { color: var(--bad); }
.attn { margin-bottom: 12px; box-shadow: 0 0 0 1px rgba(255,159,10,.45); }
.attnRow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.attnRow span:first-child { flex: 1; min-width: 200px; }
details summary { cursor: pointer; color: var(--accent); margin-top: 6px; }
