:root {
  --bg: #060607;
  --ink: #f3f1ec;
  --dim: rgba(243, 241, 236, .58);
  --faint: rgba(243, 241, 236, .34);
  --line: rgba(255, 255, 255, .09);
  --accent: #c8b48c;
  --up: #a9dcae;
  --down: #ff6f61;
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --safe-t: max(env(safe-area-inset-top), 14px);
  --safe-b: max(env(safe-area-inset-bottom), 14px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #000; color: var(--ink); overflow: hidden; }
body { font-family: "Urbanist", "SF Pro Display", system-ui, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
button { cursor: pointer; }
a { color: inherit; }

/* Bühne: am Rechner als Handy, auf dem Handy bildschirmfüllend */
.stage { height: 100%; display: grid; place-items: center; background: #0c0c0c; }
.phone { position: relative; width: 100%; height: 100%; background: var(--bg); overflow: hidden; isolation: isolate; }
@media (min-width: 560px) {
  .phone { width: 390px; height: min(844px, 96vh); border-radius: 54px; box-shadow: 0 0 0 10px #101112, 0 0 0 11px #2a2c2e, 0 60px 120px rgba(0, 0, 0, .7); }
}

main { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: calc(var(--safe-t) + 14px) 18px calc(var(--safe-b) + 108px); }
main::-webkit-scrollbar { display: none; }
main.bare { padding: 0; overflow: hidden; }
.screen { animation: enter .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } }

/* Flüssiges Glas */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .055) 45%, rgba(255, 255, 255, .07));
  -webkit-backdrop-filter: blur(26px) saturate(170%) brightness(1.08);
  backdrop-filter: blur(26px) saturate(170%) brightness(1.08);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 1px 0 0 rgba(255, 255, 255, .08),
    inset -1px 0 0 rgba(255, 255, 255, .04),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    inset 0 0 22px rgba(255, 255, 255, .035),
    0 18px 40px rgba(0, 0, 0, .34);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 12% 0%, rgba(255, 255, 255, .16), transparent 55%), radial-gradient(90% 60% at 100% 100%, rgba(255, 255, 255, .07), transparent 60%);
  mix-blend-mode: screen;
}
.glass.tint-green { background: linear-gradient(150deg, rgba(150, 190, 150, .22), rgba(60, 80, 62, .10) 50%, rgba(255, 255, 255, .05)); }
.glass.tint-red { background: linear-gradient(150deg, rgba(255, 110, 96, .26), rgba(120, 40, 36, .16) 55%, rgba(255, 255, 255, .04)); }
.glass.tint-warm { background: linear-gradient(150deg, rgba(200, 180, 140, .22), rgba(90, 78, 56, .10) 55%, rgba(255, 255, 255, .04)); }
.card { padding: 18px; }
.card + .card, .stack > * + * { margin-top: 12px; }

/* Schrift */
.eyebrow { font-size: 12px; letter-spacing: .02em; color: var(--dim); font-weight: 400; }
.title { font-size: 30px; font-weight: 300; letter-spacing: -.02em; line-height: 1.08; }
.title b { font-weight: 300; color: var(--faint); }
.big { font-size: 46px; font-weight: 300; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small, .num small { font-size: .52em; color: var(--faint); letter-spacing: -.01em; margin-left: 2px; }
.num { font-variant-numeric: tabular-nums; font-weight: 300; letter-spacing: -.02em; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.small { font-size: 12.5px; line-height: 1.45; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt18 { margin-top: 18px; } .mt26 { margin-top: 26px; }

/* Kopfzeile */
.head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.mark { display: inline-flex; align-items: center; gap: 10px; height: 26px; }
.mark img:first-child { height: 26px; }
.mark img:last-child { height: 9.5px; }
.roundbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; }

/* Wahlleiste */
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 9px 15px; border-radius: 99px; font-size: 13px; color: var(--dim); background: rgba(255, 255, 255, .045); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); transition: .25s; }
.pill.on { color: var(--ink); background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px rgba(0, 0, 0, .3); }

/* Diagramme */
canvas.chart { display: block; width: 100%; height: 150px; }
canvas.spark { width: 64px; height: 28px; flex: none; }

/* Listen */
.item { display: flex; align-items: center; gap: 13px; padding: 14px 16px; width: 100%; text-align: left; }
.item + .item { border-top: 1px solid var(--line); }
.item .ph-light { font-size: 20px; color: var(--dim); }
.item .chev { font-size: 15px; color: var(--faint); }
.badge { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 11px; font-weight: 500; letter-spacing: .04em; background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); flex: none; }
.dot.red { background: var(--down); box-shadow: 0 0 12px var(--down); }
.tag { font-size: 10.5px; padding: 3px 8px; border-radius: 99px; background: rgba(200, 180, 140, .16); color: var(--accent); }

/* Tasten und Felder */
.btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 54px; border-radius: 99px; font-size: 16px; font-weight: 500; transition: transform .15s; }
.btn:active, .item:active, .pill:active, .tab:active { transform: scale(.97); }
.btn.solid { background: var(--ink); color: #0a0a0a; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.btn.ghost { height: 44px; font-size: 14px; color: var(--dim); font-weight: 400; }
.btn.danger { color: var(--down); }
.field { display: block; padding: 11px 18px 12px; border-radius: var(--r-md); }
.field span { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 3px; }
.field input, .field select { width: 100%; font-size: 16px; }
.field input::placeholder { color: var(--faint); }
.field select option { color: #111; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--dim); line-height: 1.4; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; flex: none; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.check input:checked { background: var(--ink) radial-gradient(circle, #0a0a0a 32%, transparent 36%); }
.switch { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: .25s; flex: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .28s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch:checked { background: rgba(169, 220, 174, .55); }
.switch:checked::after { transform: translateX(20px); }

/* Untere Leiste */
.tabs { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 8px); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 99px; z-index: 20; }
.tabs[hidden] { display: none; }
.tab { height: 50px; min-width: 50px; padding: 0 15px; border-radius: 99px; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); transition: background .3s, color .3s; }
.tab i { font-size: 21px; }
.tab span { display: none; }
.tab.on { background: rgba(255, 255, 255, .92); color: #0a0a0a; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.tab.on span { display: inline; font-weight: 500; }

/* 3D Fläche */
.model { position: relative; width: 100%; height: 250px; touch-action: none; }
.model canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.model.hero { position: absolute; inset: 0 0 auto 0; height: 58%; }

/* Willkommen und Anmeldung */
.welcome { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 22px calc(var(--safe-b) + 22px); }
.welcome .copy { margin-bottom: 26px; }
.auth { position: absolute; inset: 0; overflow-y: auto; padding: calc(var(--safe-t) + 14px) 22px calc(var(--safe-b) + 22px); }
.sep { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Karte */
#map { position: absolute; inset: 0; background: #000; }
.nomap { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0 44px; text-align: center; color: var(--dim); font-size: 14px; line-height: 1.5; }
.nomap i { font-size: 34px; color: var(--faint); }
.mapboxgl-ctrl-bottom-right, .mapboxgl-ctrl-bottom-left { display: none; }
.mapboxgl-ctrl-top-right { top: auto; bottom: calc(var(--safe-b) + 150px); opacity: .5; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { display: none; }
.mapcredit { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 76px); text-align: center; font-size: 9px; color: rgba(255, 255, 255, .35); z-index: 3; pointer-events: none; }
.maptop { position: absolute; left: 14px; right: 14px; top: calc(var(--safe-t) + 10px); z-index: 5; }
.mapbottom { position: absolute; left: 14px; right: 14px; bottom: calc(var(--safe-b) + 92px); z-index: 5; display: flex; gap: 10px; }
.mapbottom .btn { height: 50px; font-size: 14.5px; }
.mapfade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(#000c, transparent 22%, transparent 62%, #000e); }
.pin { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(0, 0, 0, .5); font-size: 20px; color: #fff; }

/* Agent */
.msg { padding: 15px 17px; }
.msg h4 { font-size: 15.5px; font-weight: 500; letter-spacing: -.005em; }
.msg p { font-size: 13.5px; color: var(--dim); line-height: 1.45; margin-top: 5px; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 22px; font-size: 14.5px; line-height: 1.4; }
.bubble.me { margin-left: auto; background: rgba(255, 255, 255, .9); color: #0a0a0a; border-bottom-right-radius: 7px; }
.bubble.ai { border-bottom-left-radius: 7px; }
.ask { position: absolute; left: 14px; right: 14px; bottom: calc(var(--safe-b) + 84px); z-index: 15; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 99px; }
.ask input { flex: 1; font-size: 15px; height: 42px; }
.ask button { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #0a0a0a; font-size: 19px; display: grid; place-items: center; flex: none; }

/* Blatt von unten */
.sheet { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .45); animation: fade .25s both; }
.sheet[hidden] { display: none; }
.sheet .panel { width: 100%; max-height: 88%; overflow-y: auto; scrollbar-width: none; border-radius: 38px 38px 0 0; padding: 12px 20px calc(var(--safe-b) + 22px); animation: rise .45s cubic-bezier(.2, .9, .2, 1) both; background: linear-gradient(160deg, rgba(60, 64, 62, .78), rgba(18, 19, 20, .86)); }
.sheet .grab { width: 38px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .28); margin: 0 auto 16px; }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 12px); transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 99px; font-size: 13.5px; white-space: nowrap; animation: enter .35s both; }
.toast[hidden] { display: none; }

/* Rechtstexte */
.legal h3 { font-size: 15px; font-weight: 500; margin: 20px 0 6px; }
.legal p { font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.legal p + p { margin-top: 8px; }
.note { font-size: 12px; color: var(--accent); line-height: 1.45; padding: 12px 15px; border-radius: 16px; background: rgba(200, 180, 140, .1); }

.meter { height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Meldungen des Agenten: eine ruhige Liste, nur das Wichtige bekommt eine Farbe */
.feed { padding: 4px 0; }
.note-row { display: grid; grid-template-columns: 74px 1fr; gap: 0 10px; width: 100%; text-align: left; padding: 16px 18px; position: relative; }
.note-row + .note-row { border-top: 1px solid var(--line); }
.note-row .when { font-size: 11.5px; color: var(--faint); padding-top: 3px; font-variant-numeric: tabular-nums; }
.note-row .what b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.005em; }
.note-row .what span { display: block; font-size: 13.5px; color: var(--dim); line-height: 1.45; margin-top: 4px; }
.note-row.hot::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--down); }
.note-row.hot .when { color: var(--down); }

/* Hintergrund wie in der Vorlage: sehr dunkles Grau mit weichem Licht von oben, keine Farbe */
.phone { background: radial-gradient(130% 55% at 50% -8%, #1d1e20 0%, #0d0d0e 46%, #060607 78%); }
.roundbtn.sm { width: 34px; height: 34px; font-size: 16px; }
label.item .chev { padding: 6px; margin-right: 2px; }
form.field { margin: 0; }

/* ---------- Nach der Vorlage: Leitstand ---------- */
:root { --accent: #c8b48c; --flat: #131314; }
.tiny { font-size: 10.5px; }
.glyph { height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 99px; font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, .055); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); white-space: nowrap; }
.chip i { font-size: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.chips::-webkit-scrollbar { display: none; }
.roundbtn { position: relative; }
.badge-dot { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--down); }
.tile { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 8px; padding: 13px 15px; border-radius: 20px; background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tile i { font-size: 17px; grid-column: 1 / -1; }
.tile span { font-size: 11.5px; color: var(--dim); }
.tile b { font-size: 26px; font-weight: 300; letter-spacing: -.02em; line-height: 1; color: var(--dim); }
.panel-flat { padding: 16px; border-radius: 24px; background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.mid { font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.mid small { font-size: 12px; color: var(--faint); letter-spacing: 0; }
.unit { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 13px 14px; border-radius: 22px; background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); font-size: 13.5px; min-height: 172px; }
.unit > .row i { font-size: 13px; color: var(--faint); }
.unit.lit { background: linear-gradient(165deg, rgba(190, 196, 190, .34), rgba(70, 76, 72, .16) 55%, rgba(255, 255, 255, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 26px rgba(255, 255, 255, .05); }
.unit.add { align-items: center; justify-content: center; font-size: 24px; color: var(--faint); min-height: 90px; grid-column: 1 / -1; }
.wire { position: relative; display: block; flex: 1; min-height: 78px; margin: 0 -6px; }
.wire img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .9; }
.wire em { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(14deg); font-style: normal; font-size: 10px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; font-variant-numeric: tabular-nums; }
canvas.spark.wide { width: 100%; height: 46px; flex: 1; }
.slider { position: relative; display: block; height: 9px; margin-top: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 4px); border-radius: 2px; }
.slider i { position: absolute; top: -3px; width: 9px; height: 15px; margin-left: -4px; border-radius: 3px; background: #fff; }
.tickrow { display: grid; grid-template-columns: 46px 1fr 44px; align-items: center; gap: 8px; font-size: 10.5px; color: var(--faint); height: 22px; }
.tickrow > span:last-child { text-align: right; color: var(--dim); }
.tickrow i { position: relative; height: 9px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 4px); }
.tickrow i::after { content: ""; position: absolute; left: var(--x); top: -3px; width: 7px; height: 15px; margin-left: -3px; border-radius: 50%; border: 1.5px solid #fff; background: var(--flat); }
.tickrow i.neg::after { border-color: var(--accent); }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.week div { display: grid; gap: 2px; padding-top: 6px; border-top: 1.5px solid rgba(255, 255, 255, .7); }
.week div.neg { border-color: var(--accent); }
.week b { font-size: 12.5px; font-weight: 400; }
.week span { font-size: 9.5px; color: var(--faint); }
.week div.neg span { color: var(--accent); }
.week em { font-style: normal; font-size: 9.5px; color: var(--faint); margin-top: 10px; }

/* Untere Leiste wie in der Vorlage: nur Zeichen, das aktive als weißer Kreis */
.tabs { gap: 6px; padding: 7px; }
.tab { width: 46px; min-width: 46px; height: 46px; padding: 0; justify-content: center; }
.tab i { font-size: 20px; }
.tab.on span, .tab span { display: none; }

/* Karte: großer Titel direkt auf der Karte, schwebende Karte am Fundort, runde Tasten */
.maptitle { position: absolute; left: 18px; right: 18px; top: calc(var(--safe-t) + 14px); z-index: 5; }
.maptitle h1 { font-size: 32px; font-weight: 300; letter-spacing: -.025em; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.mapcard { position: absolute; right: 18px; top: 44%; z-index: 5; width: 138px; display: grid; gap: 3px; padding: 12px 13px; border-radius: 18px; font-size: 12.5px; }
.mapcard i { font-size: 12px; color: var(--dim); }
.mapcard b { font-size: 26px; font-weight: 300; letter-spacing: -.02em; margin-top: 8px; }
.mapcard b small { font-size: 12px; color: var(--faint); }
.mapctl { position: absolute; left: 18px; bottom: calc(var(--safe-b) + 156px); z-index: 5; display: flex; gap: 8px; }

/* ---------- Kurs auf dem Display der Strichzeichnung ---------- */
.wire em { display: none; }
.wire .scr { position: absolute; left: 0; top: 0; width: 192px; height: 92px; transform-origin: 0 0; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 0 6px; padding: 8px 14px; color: #fff; pointer-events: none; }
.wire .scr b { font-size: 15px; font-weight: 500; letter-spacing: .04em; grid-column: 1 / -1; opacity: .75; }
.wire .scr strong { font-size: 38px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wire .scr em { display: block; position: static; transform: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; padding: 0 0 7px; align-self: end; font-style: normal; font-size: 14px; color: var(--up); font-variant-numeric: tabular-nums; }
.wire .scr em.neg { color: var(--down); }

/* ---------- Alle Flächen auf den Seiten flach wie auf der Startseite, Glas nur noch über Karte und Blättern ---------- */
.screen .glass:not(.btn):not(.roundbtn):not(.maptop) { background: var(--flat); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.screen .glass:not(.btn):not(.roundbtn)::before { display: none; }
.screen .glass.tint-warm { background: linear-gradient(165deg, rgba(200, 180, 140, .2), rgba(80, 70, 52, .1) 60%, var(--flat)); }
.roundbtn.flat { background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.tile b small { font-size: 12px; color: var(--faint); }

/* ---------- Agent als Chat ---------- */
.agent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.seg { display: flex; padding: 3px; border-radius: 99px; background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.seg button { height: 30px; padding: 0 13px; border-radius: 99px; font-size: 12.5px; color: var(--dim); transition: .2s; }
.seg button.on { background: rgba(255, 255, 255, .14); color: var(--ink); }
.chatpage { min-height: 100%; display: flex; flex-direction: column; padding-bottom: 64px; }
.chat-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding-bottom: 40px; }
.chat-empty img { height: 44px; opacity: .95; }
.chat-empty h2 { font-size: 25px; font-weight: 300; letter-spacing: -.02em; }
.sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 10px; }
.sugg button { text-align: left; padding: 13px 14px; border-radius: 18px; background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.35; color: var(--dim); min-height: 66px; }
.chat { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; }
.msg-me { align-self: flex-end; max-width: 82%; padding: 10px 15px; border-radius: 20px; background: #2a2a2c; font-size: 15px; line-height: 1.4; }
.msg-ai { align-self: flex-start; max-width: 94%; font-size: 15px; line-height: 1.55; color: var(--ink); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: blink 1s infinite both; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { position: absolute; left: 14px; right: 14px; bottom: calc(var(--safe-b) + 80px); z-index: 15; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 28px; background: #1c1c1e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px rgba(0, 0, 0, .5); }
.composer input { flex: 1; min-width: 0; height: 40px; font-size: 15px; padding: 0 4px; }
.composer input::placeholder { color: var(--faint); }
.c-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--dim); flex: none; }
.c-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--ink); color: #0a0a0a; flex: none; }

/* ---------- Untere Leiste wächst beim Agenten nach oben und nimmt die Eingabe auf ---------- */
.tabs { flex-direction: column; align-items: stretch; gap: 0; width: 268px; border-radius: 34px; transition: width .5s cubic-bezier(.2, .9, .2, 1), border-radius .5s; }
.tab-icons { display: flex; justify-content: space-between; }
.tab-composer { display: flex; align-items: center; gap: 4px; max-height: 0; opacity: 0; overflow: hidden; margin: 0; padding: 0 2px; border-bottom: 1px solid transparent; transition: max-height .5s cubic-bezier(.2, .9, .2, 1), opacity .3s, margin .5s, padding .5s, border-color .5s; }
.tab-composer input { flex: 1; min-width: 0; height: 42px; font-size: 15px; padding: 0 4px; }
.tab-composer input::placeholder { color: var(--faint); }
.tabs.expand { width: calc(100% - 28px); border-radius: 30px; }
.tabs.expand .tab-composer { max-height: 56px; opacity: 1; margin-bottom: 7px; padding: 0 2px 7px; border-color: rgba(255, 255, 255, .08); }
.tabs.expand .tab-icons { justify-content: space-around; }
.chatpage { padding-bottom: 34px; }

/* Rangliste */
.rkn { width: 24px; color: var(--faint); flex: none; }
.roundbtn.on i { color: var(--up); }

/* Logos der Marken und Filter nach Art */
.badge.logo img { width: 22px; height: 22px; object-fit: contain; display: block; }
.badge.xs { width: 22px; height: 22px; border-radius: 7px; font-size: 8px; letter-spacing: 0; }
.badge.xs.logo { background: none; box-shadow: none; }
.badge.xs.logo img { width: 18px; height: 18px; }
button.chip.on { background: rgba(255, 255, 255, .16); color: var(--ink); }
#addseg { justify-content: space-between; }
#addseg button { flex: 1; padding: 0 6px; }
#addlist { max-height: 46vh; overflow-y: auto; }

/* Karte: Vibrieren und Route fahren in der Leiste nach oben aus, so breit wie die Leiste */
.tab-actions { display: flex; gap: 6px; max-height: 0; opacity: 0; overflow: hidden; margin: 0; padding: 0; border-bottom: 1px solid transparent; transition: max-height .5s cubic-bezier(.2, .9, .2, 1), opacity .3s, margin .5s, padding .5s, border-color .5s; }
.tab-actions .btn { flex: 1; height: 42px; font-size: 13.5px; gap: 7px; border-radius: 99px; }
.tab-actions .btn.flat { background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.tabs.map { border-radius: 30px; }
.tabs.map .tab-actions { max-height: 56px; opacity: 1; margin-bottom: 7px; padding: 0 0 7px; border-color: rgba(255, 255, 255, .08); }
.mapctl { bottom: calc(var(--safe-b) + 142px); }
.mapcredit { bottom: calc(var(--safe-b) + 128px); left: auto; right: 22px; text-align: right; }
.mapctl { left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 140px); }
.mapcredit { bottom: calc(var(--safe-b) + 184px); left: 0; right: 0; text-align: center; }

/* Logo in Weiß und etwas eingerückt */
.glyph, .chat-empty img, .mark img { filter: brightness(0) invert(1); }
.head .glyph { margin-left: 6px; }
/* Start: ruhiges Bild des Geräts */
img.heroimg { object-fit: contain; padding: calc(var(--safe-t) + 26px) 6% 0; }
/* Mapbox Logo oben rechts, unter der Aussparung des Handys */
.mapboxgl-ctrl-top-right { top: calc(var(--safe-t) + 16px); bottom: auto; right: 8px; opacity: .45; z-index: 6; }
/* Seite eines Werts */
.wertpage { animation: none; view-transition-name: wert; }
#view.still .screen { animation: none; }
.wertpage .head { align-items: center; }
.wseg { width: 100%; }
.wseg button { flex: 1; }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.facts div { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.facts div:nth-child(-n+2) { border-top: 0; }
.facts span { font-size: 11.5px; color: var(--dim); }
.facts b { font-size: 15.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field.inset { background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 10px 14px 11px; min-width: 0; }
.ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
::view-transition-group(wert) { animation-duration: .48s; animation-timing-function: cubic-bezier(.2, .9, .2, 1); }
::view-transition-old(wert), ::view-transition-new(wert) { width: 100%; height: 100%; object-fit: cover; object-position: top; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
/* Leiste unten: der Inhalt springt beim Ausfahren leicht nach oben heraus */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } 60% { transform: translateY(-2px) scale(1.01); } }
.tabs.expand .tab-composer, .tabs.map .tab-actions { animation: pop .5s cubic-bezier(.2, .9, .2, 1) both; }
.tabs { transition: width .5s cubic-bezier(.3, 1.35, .5, 1), border-radius .5s; }
.item.cur { background: rgba(255, 255, 255, .06); }

/* Logo mit Schriftzug im Depot */
.head .mark { margin-left: 12px; align-self: center; height: 28px; }
.head .mark img:first-child { height: 28px; }
.head .mark img:last-child { height: 10px; }
/* Standbild des Geräts */
img.stillimg { display: block; object-fit: contain; height: 230px; padding: 4px 8% 14px; }
/* Suchknopf vor den Filtern */
.chip.round { width: 32px; padding: 0; justify-content: center; flex: none; color: var(--ink); }
.chip.round i { font-size: 15px; }
div.item[data-pos] { cursor: pointer; }
/* Auswahl */
.pickval { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--dim); }
.item .pickval i { font-size: 13px; color: var(--faint); }
.pickcheck { opacity: 0; }
.item.cur .pickcheck { opacity: 1; color: var(--up) !important; }
select option { color: #111; background: #fff; }
/* Vergrößern: die Seite wird aufgedeckt und nicht mehr als Bild hochgezogen */
::view-transition-group(wert) { overflow: clip; border-radius: 22px; }
::view-transition-old(wert), ::view-transition-new(wert) { width: auto; height: auto; max-width: none; object-fit: none; object-position: top left; }
::view-transition-old(wert) { animation-duration: .18s; }
::view-transition-new(wert) { animation-duration: .3s; }

/* Keine sichtbaren Rollbalken */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
/* Depot: Suche links, Filter rechts */
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filterbar .roundbtn { font-size: 20px; flex: none; }
.chips.right { margin: 0; padding: 0; justify-content: flex-end; flex: 1; }
/* Suchblatt: die ganze Liste rollt im Blatt, nicht in einem kleinen Kasten */
#addlist { max-height: none; overflow: visible; }
.sheet .panel.tall { min-height: 62%; }
.badge.logo.net img { border-radius: 50%; }
.nomap .btn { margin-top: 6px; }
/* Blätter: Griff zum Ziehen, Bewegung beim Schließen */
.sheet .grab { position: relative; touch-action: none; cursor: grab; }
.sheet .grab::after { content: ""; position: absolute; inset: -14px -130px -16px; }
@keyframes sink { to { transform: translateY(105%); } }
@keyframes fadeout { to { opacity: 0; } }
.sheet.out { animation: fadeout .24s both; }
.sheet.out .panel { animation: sink .24s cubic-bezier(.4, 0, 1, 1) both; }

/* Seite eines Werts: Kopf in drei Spalten, der Titel bleibt mittig und drückt die Knöpfe nie zusammen */
.wertpage .head { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 16px; align-items: center; }
.wtitle { gap: 10px; justify-content: center; min-width: 0; }
.wtitle .badge { flex: none; }
.roundbtn { flex: none; aspect-ratio: 1; }
/* Öffnen und Schließen: der Umriss der Kachel wächst zur ganzen Seite, der Inhalt blendet um, der Graph wandert an seinen Platz */
#pchart { view-transition-name: wchart; }
::view-transition-group(wert) { overflow: clip; border-radius: 22px; background: #111112; animation-duration: .42s; animation-timing-function: cubic-bezier(.3, .75, .2, 1); }
::view-transition-group(wchart) { animation-duration: .42s; animation-timing-function: cubic-bezier(.3, .75, .2, 1); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
::view-transition-old(wert) { animation: vt-out .12s linear both; }
::view-transition-new(wert) { animation: vt-in .2s .24s linear both; }
::view-transition-old(wchart), ::view-transition-new(wchart) { width: 100%; height: 100%; object-fit: fill; }

/* Suchblatt: feste Höhe, damit es beim Tippen nicht springt */
.sheet .panel.tall { height: 92%; max-height: 92%; min-height: 0; }
.searchfield { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-radius: 99px; }
.searchfield i { font-size: 19px; color: var(--dim); }
.searchfield input { flex: 1; min-width: 0; font-size: 16px; }
.searchfield input::placeholder { color: var(--faint); }
.listhead { display: block; margin: 18px 4px 8px; }
.rcol { text-align: right; flex: none; line-height: 1.25; }
.about { font-size: 14px; line-height: 1.5; color: var(--dim); }
.wertpage a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Onboarding */
.onb { display: flex; flex-direction: column; }
.onb > .grow { flex: 1; min-height: 12px; }
.onbtop { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.onbbar { flex: 1; display: flex; gap: 5px; }
.onbbar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); transition: background .3s; }
.onbbar i.on { background: var(--ink); }
.onbskip { width: auto; height: 42px; padding: 0 4px; font-size: 13px; }
.onbpic { flex: 1; min-height: 180px; display: grid; place-items: center; position: relative; }
.onbpic img { width: 100%; max-height: 300px; object-fit: contain; }
.onbpic.small { flex: none; height: 200px; min-height: 0; }
.onbpic.small img { max-height: 190px; }
.onbtext { margin-bottom: 26px; }
.onbtext p { font-size: 15px; line-height: 1.5; }
.onbcard { width: 100%; }
.onbmap { width: 100%; height: 230px; border-radius: 28px; display: grid; place-items: center; background:
  radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .09) 0 62px, transparent 63px),
  repeating-linear-gradient(28deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 35px),
  repeating-linear-gradient(118deg, transparent 0 46px, rgba(255, 255, 255, .05) 46px 47px), #131514; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.onbgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.onbval { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 18px; background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); font-size: 14px; text-align: left; min-width: 0; transition: background .2s; }
.onbval .ell { flex: 1; }
.onbval > i { font-size: 15px; opacity: 0; color: var(--up); }
.onbval.on { background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.onbval.on > i { opacity: 1; }
/* Wellen am Gerät: das Handy sucht nach dem Chip */
.nfcwave { position: absolute; right: 14%; top: 50%; width: 0; height: 0; }
.nfcwave i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: nfc 2.4s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.nfcwave i:nth-child(2) { animation-delay: .8s; }
.nfcwave i:nth-child(3) { animation-delay: 1.6s; }
@keyframes nfc { from { transform: scale(.3); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
html.shot .screen, html.shot .sheet, html.shot .sheet .panel { animation: none; }
.onbtop { min-height: 42px; }

/* Depot: Regler auf dem Graphen */
.chartwrap { position: relative; touch-action: pan-y; cursor: crosshair; }
.chartwrap canvas { display: block; width: 100%; }
.scrub { position: absolute; top: 0; bottom: 18px; width: 1px; background: rgba(255, 255, 255, .45); pointer-events: none; }
.scrubdot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); pointer-events: none; }
.scrub[hidden], .scrubdot[hidden] { display: none; }
/* Onboarding: Überschriften in einer Farbe, Formulare füllen die Höhe, Knöpfe sitzen unten */
.onb .title { font-size: 29px; line-height: 1.14; }
.onb .title b { color: inherit; }
.onbform { flex: 1; display: flex; flex-direction: column; }
.onbform .grow { flex: 1; min-height: 14px; }
.onbtext p { font-size: 14.5px; }
.onbwire { width: 100%; height: 250px; flex: none; margin: 0; }
.wire .scr.msg { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px 12px; }
.wire .scr.msg b { font-size: 12px; opacity: 1; color: var(--down); letter-spacing: .02em; }
.wire .scr.msg span { font-size: 12.5px; line-height: 1.25; }
#onbmap.onbmap { background: #131514; overflow: hidden; height: 300px; position: relative; display: block; }
.onbcredit { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 9px; color: rgba(255, 255, 255, .35); }
.onbpic .mapboxgl-ctrl-top-right { top: 8px; }
.sheet { overflow: hidden; }
.onbmapwrap { position: relative; width: 100%; }
.onbmapwrap .onbcredit { z-index: 3; }

/* Logos der Broker */
.badge.broker { background: #000; }
.badge.broker img { width: 20px; height: 20px; }
#wnote:empty { display: none; }

/* Hinweis unter einem Graphen ohne Daten */
.wnote { font-size: 12.5px; line-height: 1.45; color: var(--dim); margin-top: -150px; min-height: 150px; padding: 0 8px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.wnote:empty { display: none; }
#pchart[style*="visible"] + .wnote, #pchart:not([style*="hidden"]) + .wnote { margin-top: 8px; min-height: 0; font-size: 11px; color: var(--faint); justify-content: flex-start; text-align: left; padding: 0; }
/* Konten im Depot */
.acclist .item { padding: 12px 0; }
.acclist .item + .item { border-top: 1px solid var(--line); }
.badge i { font-size: 18px; }

.mt4 { margin-top: 4px; }
#wchg:empty { display: none; }
/* Hinweis ohne Verlauf liegt jetzt im Rahmen des Graphen */
#pwrap + .wnote { margin-top: -190px; min-height: 190px; }
#pwrap:has(#pchart:not([style*="hidden"])) + .wnote { margin-top: 8px; min-height: 0; font-size: 11px; color: var(--faint); justify-content: flex-start; text-align: left; padding: 0; }

/* Hilfe */
.helppage .composer.helpcomposer { position: sticky; bottom: calc(var(--safe-b) + 8px); left: auto; right: auto; margin-top: auto; }
.helppage { padding-bottom: 8px; }
.msg-team { color: var(--accent); }
.teambtn { align-self: flex-start; height: 36px; color: var(--ink); }
.helppage .chat-empty p { max-width: 280px; line-height: 1.45; }
#view:has(.helppage) { padding-bottom: calc(var(--safe-b) + 14px); }

/* Karte: kleine Anzeige statt der großen Karte, eigener Standort, Route */
.mapcard { display: none; }
.mapinfo { flex-wrap: wrap; }
.mapinfo .chip { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(20, 22, 22, .55); color: var(--ink); }
.mapinfo .chip.on { background: rgba(255, 255, 255, .9); color: #0a0a0a; }
.mapinfo .chip.on i { color: #0a0a0a; }
.medot { width: 16px; height: 16px; border-radius: 50%; background: #4aa3ff; border: 2.5px solid #fff; box-shadow: 0 0 0 7px rgba(74, 163, 255, .25), 0 2px 8px rgba(0, 0, 0, .5); }
.tab-actions .btn.on { background: rgba(255, 255, 255, .9); color: #0a0a0a; }

/* Hinweise passen immer auf den Bildschirm */
.toast { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); line-height: 1.35; border-radius: 22px; }
/* Blatt zur Freigabe des Standorts */
.locpic { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: rgba(74, 163, 255, .16); color: #8cc4ff; }
.sheettitle { text-align: center; font-size: 22px; font-weight: 300; letter-spacing: -.01em; }

/* Rangliste: eigene Zeile hell hinterlegt, Auf und Abstieg seit gestern */
.rkrow { gap: 10px; }
.rkrow.mine { background: rgba(255, 255, 255, .09); border-radius: 14px; }
.rkrow.mine + .item, .item + .rkrow.mine { border-top-color: transparent; }
.rkrow.mine .grow { color: var(--ink); font-weight: 500; }
.rkmove { width: 30px; flex: none; display: inline-flex; align-items: center; gap: 1px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rkmove i { font-size: 11px; }
.rkmove.up, .rkmove.up i { color: var(--up); }
.rkmove.down, .rkmove.down i { color: var(--down); }
.rkmove.same { color: var(--faint); padding-left: 3px; }

/* Schritte des Agenten */
.agentsteps { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 12.5px; color: var(--faint); line-height: 1.35; }
.agentsteps span { display: flex; align-items: center; gap: 7px; }
.agentsteps .now { color: var(--dim); }
.agentsteps .spin { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
details.agentsteps { gap: 0; }
details.agentsteps summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
details.agentsteps summary::-webkit-details-marker { display: none; }
details.agentsteps summary::before { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); margin-right: 2px; }
details.agentsteps[open] summary::before { transform: rotate(45deg); }
details.agentsteps[open] span { margin-top: 4px; padding-left: 12px; }

/* Abstand einer Regel zu ihrer Marke */
.rulestat { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rulestat.near { color: var(--accent); }
.rulestat.hit { color: var(--up); }

/* Leiste mit Admin Bereich */
.tabs.six { width: 316px; }
/* Admin */
.tkdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.tkdot.offen { background: var(--down); box-shadow: 0 0 8px var(--down); }
.tkdot.beantwortet { background: var(--up); }
.ticketchat { max-height: 40vh; overflow-y: auto; padding-bottom: 8px; }
.field textarea { width: 100%; font-size: 15px; resize: none; line-height: 1.45; }
/* Auswahl der Währung */
.curopt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 20px; background: var(--flat); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); text-align: left; transition: background .2s, box-shadow .2s; }
.curopt b { font-size: 28px; font-weight: 300; line-height: 1; }
.curopt span { font-size: 13.5px; color: var(--dim); }
.curopt i { position: absolute; top: 14px; right: 14px; font-size: 16px; opacity: 0; color: var(--ink); }
.curopt.on { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.curopt.on i { opacity: 1; }
.curpick { margin-bottom: 6px; }

/* Anleitung in Schritten */
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--dim); line-height: 1.45; }

/* Mikrofon: ruhige Wellenform beim Zuhören, beim Verbessern laufen die Striche langsam durch */
.tab-composer .c-btn { transition: width .35s cubic-bezier(.2, .9, .2, 1), background .3s, border-radius .35s; }
.c-btn.wave { width: 56px; border-radius: 20px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.wv { display: flex; align-items: center; gap: 3px; height: 20px; }
.wv i { width: 3px; height: 20px; border-radius: 3px; background: var(--ink); transform: scaleY(.16); transition: transform .06s linear; }
.c-btn.cleaning .wv i { transition: none; animation: wvwait 1.1s ease-in-out infinite; }
.c-btn.cleaning .wv i:nth-child(2) { animation-delay: .1s; }
.c-btn.cleaning .wv i:nth-child(3) { animation-delay: .2s; }
.c-btn.cleaning .wv i:nth-child(4) { animation-delay: .3s; }
.c-btn.cleaning .wv i:nth-child(5) { animation-delay: .4s; }
@keyframes wvwait { 0%, 100% { transform: scaleY(.16); opacity: .45; } 40% { transform: scaleY(.5); opacity: 1; } }

/* Kontingent des Agenten */
.qbar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .09); overflow: hidden; margin-top: 10px; }
.qbar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .6s cubic-bezier(.2, .9, .2, 1); }
.qbar.warn i { background: var(--accent); }
.qrow { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-top: 14px; }
.qrow b { font-weight: 500; }
.quota-note { text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--accent); margin: 18px 22px 0; }

/* Bestand, Kauf eintragen und Wecker */
.sechead { justify-content: space-between; align-items: center; }
.sechead .roundbtn { margin: -6px -6px -6px 0; }
.buyhead { gap: 12px; align-items: center; }
.buyhead b { font-weight: 500; font-size: 17px; }
form[data-mode="betrag"] [data-show="stueck"], form[data-mode="stueck"] [data-show="betrag"] { display: none; }
.field input[type="date"] { color-scheme: dark; min-height: 22px; }
.buyhint { min-height: 34px; line-height: 1.45; padding: 0 6px; }
.seg.full { width: 100%; }
.seg.full button { flex: 1; }
.alarms .alarm { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.alarms .alarm:first-child { border-top: 0; padding-top: 4px; }
.alarmtext { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; line-height: 1.35; min-width: 0; color: var(--ink); }
.alarmtext i { font-size: 20px; color: var(--dim); flex: none; }
.facts b span { font-size: inherit; color: inherit; }
.facts b span.up { color: var(--up); }
.facts b span.down { color: var(--down); }

/* Zahlenfelder: groß und ruhig, mit Einheit, ohne Pfeile */
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field .numrow { display: flex; align-items: baseline; gap: 8px; margin: 3px 0 0; font-size: inherit; color: inherit; }
.numfield input { flex: 1; min-width: 0; font-size: 24px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numfield em { font-style: normal; font-size: 15px; color: var(--dim); flex: none; }
.numfield:focus-within, .datefield.open { outline: 1px solid rgba(255, 255, 255, .24); outline-offset: -1px; }
.datefield { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.datebtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.datebtn b { font-size: 24px; font-weight: 300; letter-spacing: -.02em; }
.datebtn i { font-size: 21px; color: var(--dim); transition: color .2s; }
.datefield.open .datebtn i { color: var(--ink); }

/* Kalender */
.cal { padding: 12px 12px 10px; border-radius: 24px; background: rgba(16, 17, 18, .82); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); animation: calin .3s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes calin { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; min-height: 34px; }
.calhead .roundbtn:disabled { opacity: .25; }
.caltitle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 16px; margin: 0 auto; }
.caltitle i { font-size: 13px; color: var(--dim); }
button.caltitle:active { background: rgba(255, 255, 255, .08); }
.calweek, .caldays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calweek span { font-size: 11px; color: var(--faint); padding: 4px 0 6px; }
.caldays button { aspect-ratio: 1; max-height: 42px; display: grid; place-items: center; margin: 1px auto; width: 100%; max-width: 42px; border-radius: 50%; font-size: 15px; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.caldays button.we { color: var(--dim); }
.caldays button.today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.caldays button.on { background: var(--ink); color: #0a0a0a; box-shadow: none; }
.caldays button:disabled { color: rgba(243, 241, 236, .14); }
.caldays button:not(:disabled):not(.on):active { background: rgba(255, 255, 255, .1); }
.calgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.calscroll { position: relative; max-height: 236px; overflow-y: auto; scrollbar-width: none; }
.calscroll::-webkit-scrollbar { display: none; }
.calgrid button { padding: 13px 0; border-radius: 16px; font-size: 15px; background: rgba(255, 255, 255, .04); }
.calgrid button.on { background: var(--ink); color: #0a0a0a; }
.calgrid button:disabled { opacity: .25; }
.calnote { text-align: center; margin-top: 6px; }

/* Newsfeed */
.newslist .newsrow { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; }
.newslist .newsrow:first-child { border-top: 0; padding-top: 6px; }
.newsrow .grow { min-width: 0; }
.newsrow b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; font-size: 14.5px; line-height: 1.38; }
.newsrow .ntext { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.newsrow .meta { display: block; margin-top: 5px; font-size: 11.5px; color: var(--faint); }
.newsrow .meta em { font-style: normal; color: var(--down); }
.newsrow > img, .newsrow > .logo { margin-top: 2px; flex: none; }
.newsrow:active { opacity: .7; }
.sheet .panel.tall { background: linear-gradient(160deg, rgba(46, 49, 48, .95), rgba(14, 15, 16, .97)); }

/* Rechtstexte: Unterüberschriften, Listen, Tabellen, offene Angaben */
.legal h4 { font-size: 14px; font-weight: 500; margin: 14px 0 6px; color: var(--ink); }
.legal ul { margin: 6px 0 0 18px; font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.legal li + li { margin-top: 4px; }
.legal b { color: var(--ink); font-weight: 500; }
.legal mark { background: rgba(200, 180, 140, .16); color: var(--accent); border-radius: 4px; padding: 0 3px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .tablewrap { overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.legal table { border-collapse: collapse; font-size: 12.5px; color: var(--dim); min-width: 100%; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 500; border-top: 0; }

/* Anhänge im Chat */
.attbar { display: flex; gap: 6px; padding: 2px 4px 8px; overflow-x: auto; scrollbar-width: none; }
.tabs:not(.expand) .attbar { display: none; }
.attchip { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 12px; flex: none; }
.attchip img { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; flex: none; }
.attchip > i { font-size: 18px; color: var(--dim); padding-left: 4px; }
.attchip button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); flex: none; }
.attmini { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.attmini img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.attmini em { font-style: normal; font-size: 12px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
