/* suono Cockpit – Gestaltung nach Figma-Designsystem (Variablen 1:1 übernommen) */
:root {
  --orange-400: #FF6A55; --orange-500: #FF462E; --orange-600: #E63A23;
  --bg-base: #0E0E10; --bg-surface: #17171A; --bg-raised: #1F1F23; --bg-hover: #2A2A30;
  --bg-glass: rgba(255,255,255,.04); --border: rgba(255,255,255,.08); --border-strong: rgba(255,255,255,.16);
  --text-primary: #F5F5F7; --text-secondary: #A1A1AA; --text-muted: #6B6B73; --text-on-accent: #FFFFFF;
  --accent: var(--orange-500); --accent-hover: var(--orange-400); --accent-soft: rgba(255,70,46,.12); --accent-soft-strong: rgba(255,70,46,.24);
  --ok: #3DDC97; --wait: #FFB547; --error: #FF5A6E; --info: #5B8CFF; --chart-4: #A78BFA;
  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-24: 24px; --space-32: 32px; --space-48: 48px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-full: 999px;
  --font-head: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg-base); color: var(--text-primary); font: 400 15px/24px var(--font-ui); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* Typografie */
.t-display { font: 600 48px/56px var(--font-head); }
.t-h1 { font: 600 32px/40px var(--font-head); margin: 0; }
.t-h2 { font: 600 20px/28px var(--font-head); margin: 0; }
.t-h3 { font: 600 16px/24px var(--font-ui); margin: 0; }
.t-body { font: 400 15px/24px var(--font-ui); }
.t-strong { font: 500 15px/24px var(--font-ui); }
.t-label { font: 500 13px/18px var(--font-ui); }
.t-caption { font: 400 12px/16px var(--font-ui); }
.t-overline { font: 600 11px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.c-sec { color: var(--text-secondary); } .c-mut { color: var(--text-muted); } .c-acc { color: var(--accent); } .c-ok { color: var(--ok); } .c-err { color: var(--error); }

/* Grundraster */
.app { display: grid; grid-template-columns: 280px 1fr; height: 100vh; min-height: 640px; }
.sidebar { background: var(--bg-surface); border-right: 1px solid var(--border); padding: var(--space-32) var(--space-16); display: flex; flex-direction: column; gap: var(--space-8); overflow-y: auto; }
.sidebar .logo { padding: 0 12px 24px; } .sidebar .logo img { width: 180px; height: auto; display: block; }
.userbox { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-lg); background: var(--bg-glass); border: 1px solid var(--border); margin-bottom: 16px; }
.userbox .ico { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--accent-soft-strong); display: grid; place-items: center; color: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-md); color: var(--text-secondary); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; transition: background .15s; }
.nav-item:hover { background: var(--bg-hover); }
.nav-item .nr { font: 400 12px/16px var(--font-ui); color: var(--text-muted); }
.nav-item .lbl { flex: 1; font: 500 15px/24px var(--font-ui); }
.nav-item .cnt { font: 400 12px/16px var(--font-ui); padding: 4px 8px; border-radius: var(--radius-full); background: var(--bg-raised); }
.nav-item.active { background: var(--accent-soft); color: var(--text-primary); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 12px; width: 3px; height: 20px; border-radius: 2px; background: var(--accent); }
.nav-item.active .nr { color: var(--accent); } .nav-item.active svg { color: var(--accent); }
.nav-item.active .cnt { background: var(--accent); color: var(--text-on-accent); }
.sidebar .spacer { flex: 1; }

.main { display: grid; grid-template-rows: 72px 1fr 40px; min-width: 0; height: 100vh; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--border); }
.crumbs { display: flex; align-items: center; gap: 8px; flex: 1; font: 500 13px/18px var(--font-ui); color: var(--text-secondary); }
.crumbs button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.crumbs .last { color: var(--text-primary); } .crumbs svg { color: var(--text-muted); }
.search { display: flex; align-items: center; gap: 8px; width: 320px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-muted); font: 500 13px/18px var(--font-ui); }
.search span { flex: 1; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 500 13px/18px var(--font-ui); text-decoration: none; }
.content { overflow: auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.statusbar { display: flex; align-items: center; gap: 24px; padding: 0 32px; background: var(--bg-surface); border-top: 1px solid var(--border); font: 400 12px/16px var(--font-ui); color: var(--text-secondary); }
.statusbar .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
.statusbar .grow { flex: 1; }

/* Seitenkopf */
.pagehead { display: flex; align-items: flex-end; gap: 16px; }
.pagehead .titles { flex: 1; } .pagehead p { margin: 4px 0 0; color: var(--text-secondary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-md); border: 1px solid transparent; font: 500 15px/24px var(--font-ui); cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-raised); border-color: var(--border-strong); color: var(--text-primary); } .btn-secondary:hover { background: var(--bg-hover); }
.btn-ghost { background: none; color: var(--text-secondary); } .btn-ghost:hover { background: var(--bg-hover); }

/* Raster für Bausteine */
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.row.fill { flex: 1; min-height: 520px; }
.row.fill > div > .card:last-child { flex: 1; }
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.card.accent { border-color: var(--accent); box-shadow: 0 0 40px rgba(255,70,46,.12); }
.card-head { display: flex; align-items: center; gap: 10px; } .card-head h2 { flex: 1; }
.card-body { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }

/* Kleinteile */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius-full); background: var(--bg-glass); border: 1px solid var(--border); font: 400 12px/16px var(--font-ui); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--b, var(--text-secondary)); }
.badge.demo { border: 1px dashed var(--accent); color: var(--accent); }
.tile { background: var(--bg-glass); border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.tile.sel { background: var(--accent-soft); outline: 1px solid var(--accent); }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; border-radius: 3px; background: var(--bg-raised); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.kpi .value { font: 600 32px/40px var(--font-head); }
.tabs { display: flex; gap: 24px; } .tab { background: none; border: 0; padding: 0 0 10px; cursor: pointer; color: var(--text-secondary); font: 500 15px/24px var(--font-ui); border-bottom: 2px solid transparent; display: inline-flex; gap: 8px; align-items: center; }
.tab.active { color: var(--text-primary); border-color: var(--accent); }
.tab .cnt { font: 400 12px/16px var(--font-ui); padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-raised); } .tab.active .cnt { background: var(--accent-soft); color: var(--accent); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--bg-raised); }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-sm); border: 0; background: none; color: var(--text-secondary); font: 500 13px/18px var(--font-ui); cursor: pointer; }
.seg button.active { background: var(--bg-hover); color: var(--text-primary); } .seg button.active svg { color: var(--accent); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.tbl th { text-align: left; font: 600 11px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 0 16px; }
.tbl td { background: var(--bg-glass); padding: 12px 16px; vertical-align: middle; }
.tbl td:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); } .tbl td:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.tbl tr.sel td { background: var(--accent-soft); }
.ms { display: inline-flex; align-items: center; gap: 4px; } .ms i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--text-muted); } .ms i.on { background: var(--accent); border-color: var(--accent); } .ms b { width: 14px; height: 2px; background: var(--bg-raised); } .ms b.on { background: var(--accent); }

/* Kalender */
.cal-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; text-align: center; }
.cal-grid .h { font: 600 11px/24px var(--font-ui); letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }
.cal-day { height: 44px; border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 500 15px/20px var(--font-ui); }
.cal-day.out { color: var(--text-muted); } .cal-day.today { background: var(--accent); color: #fff; }
.cal-day .d { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); } .cal-day.today .d { background: #fff; }
.cal-kw { font: 500 13px/44px var(--font-ui); color: var(--text-muted); } .cal-kw.cur { color: var(--accent); }
.months { display: flex; justify-content: space-between; gap: 4px; flex: 1; } .months span { padding: 4px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); font: 500 13px/18px var(--font-ui); } .months span.cur { background: var(--accent-soft); color: var(--accent); }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; flex: 1; min-height: 120px; }
.week > div { background: var(--bg-glass); border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; gap: 8px; } .week > div.cur { background: var(--accent-soft); }
.week .ev { background: var(--bg-raised); border-radius: var(--radius-sm); padding: 4px 8px; font: 400 12px/16px var(--font-ui); }

/* Büro */
.office { position: relative; flex: 1; min-height: 420px; }
.office svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.office .legend { position: absolute; left: 0; top: 0; display: flex; gap: 16px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-raised); border: 1px solid var(--border); font: 400 12px/16px var(--font-ui); color: var(--text-secondary); }
.office .hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--text-primary); padding: 8px 16px; border-radius: var(--radius-full); background: var(--bg-raised); border: 1px solid var(--border-strong); font: 500 13px/18px var(--font-ui); }
.office .desk { cursor: pointer; } .office .desk:hover .ring { stroke-width: 3.5; }

/* Ablagefeld */
.drop { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1.5px dashed var(--accent); }

/* Login / Ersteinrichtung */
body.auth { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(ellipse at 80% 90%, rgba(255,70,46,.14), transparent 55%), var(--bg-base); }
.auth-card { width: min(420px, calc(100% - 32px)); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font: 600 24px/32px var(--font-head); margin: 8px 0 0; }
.auth-logo { width: 180px; height: auto; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font: 500 13px/18px var(--font-ui); color: var(--text-secondary); }
.auth-form input { padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--bg-raised); color: var(--text-primary); font: 400 15px/24px var(--font-ui); }
.auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-error { color: var(--error); margin: 0; font: 500 13px/18px var(--font-ui); }
.auth-hint { color: var(--text-secondary); margin: 0; font: 400 13px/20px var(--font-ui); }

/* Schmale Fenster */
@media (max-width: 1200px) {
  .row { grid-template-columns: 1fr; } .row > * { grid-column: auto !important; }
  .search { display: none; }
}
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; } .sidebar { display: none; }
  .content { padding: 16px; }
}

/* ===== v0.2: Bedienung, Hover, Formulare, Menü ===== */
button { cursor: pointer; }
.sidebar .logo { background: none; border: 0; text-align: left; border-radius: var(--radius-md); transition: opacity .15s; }
.sidebar .logo:hover { opacity: .8; }
.card { transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--border-strong); }
.tile { transition: background .15s, outline-color .15s; }
.tile.click { cursor: pointer; } .tile.click:hover { background: var(--bg-hover); }
.tile.sel:hover { background: var(--accent-soft-strong); }
.tab:hover { color: var(--text-primary); }
.seg button:hover { color: var(--text-primary); }
.iconbtn { position: relative; transition: background .15s, color .15s; } .iconbtn:hover { background: var(--bg-hover); color: var(--text-primary); }
.iconbtn.sm { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.btn.sm { padding: 4px 10px; font: 500 13px/18px var(--font-ui); }
.btn:disabled { opacity: .4; cursor: default; }
.c-err.btn-ghost { color: var(--error); }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; padding: 0; } .linkbtn:hover { color: var(--text-primary); }
.dotbadge { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-raised); }
.avatar { border: 0; overflow: hidden; padding: 0; cursor: pointer; transition: box-shadow .15s; }
.avatar:hover { box-shadow: 0 0 0 3px var(--accent-soft-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 48px; height: 48px; cursor: default; flex: none; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--bg-hover); }
.check { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--border-strong); background: none; color: transparent; display: grid; place-items: center; transition: all .15s; }
.check:hover { border-color: var(--ok); color: var(--ok); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: radial-gradient(ellipse at 50% 0, var(--accent-soft), transparent 70%); }
.empty .t-caption { max-width: 340px; } .empty .btn { margin-top: 8px; }
.empty-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 6px rgba(255,255,255,.025); margin-bottom: 6px; }
.empty.loading { background: none; border-style: solid; border-color: var(--border); }
.empty-ic.spin svg { animation: spin 1.1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.barcol { width: 36px; border-radius: 6px 6px 0 0; transition: filter .15s; } .barcol:hover { filter: brightness(1.25); }
.funnelbar { height: 52px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; transition: transform .15s; } .funnelbar:hover { transform: scale(1.02); }

/* Kalender v0.2 */
.cal-day { background: none; border: 0; color: inherit; transition: background .12s; }
.cal-day:hover { background: var(--bg-hover); }
.cal-day.sel { outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.cal-day.today:hover { background: var(--accent-hover); }
.months button { background: none; border: 0; padding: 4px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); font: 500 13px/18px var(--font-ui); }
.months button:hover { background: var(--bg-hover); color: var(--text-primary); }
.months button.cur { background: var(--accent-soft); color: var(--accent); }
.dayinfo { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-glass); }
.week { grid-template-columns: repeat(7, 1fr); }
.week > div { cursor: pointer; transition: background .12s; } .week > div:hover { background: var(--bg-hover); }
.week > div.selcol { outline: 1px solid var(--accent); }
.week .ev { border: 0; color: var(--text-primary); text-align: left; cursor: pointer; transition: background .12s; } .week .ev:hover { background: var(--bg-hover); filter: brightness(1.3); }
.week .ev.add { color: var(--text-muted); text-align: center; background: none; border: 1px dashed var(--border-strong); opacity: 0; } .week > div:hover .ev.add { opacity: 1; }

/* Formular-Fenster */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; animation: fade .15s; }
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 64px); overflow: auto; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px rgba(0,0,0,.45); }
.modal-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.modal-fields label { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; font: 500 13px/18px var(--font-ui); color: var(--text-secondary); }
.modal-fields label.half { flex: 1 1 calc(50% - 8px); }
.modal-fields input, .modal-fields select, .modal-fields textarea { padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--bg-raised); color: var(--text-primary); font: 400 15px/24px var(--font-ui); color-scheme: dark; }
.modal-fields input:focus, .modal-fields select:focus, .modal-fields textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.modal-actions { display: flex; gap: 8px; align-items: center; }

/* Profilmenü */
.menu { position: fixed; top: 64px; right: 24px; width: 300px; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 8px; z-index: 40; box-shadow: 0 24px 48px rgba(0,0,0,.45); animation: fade .12s; display: flex; flex-direction: column; }
.menu-head { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu button, .menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-md); background: none; border: 0; color: var(--text-secondary); text-decoration: none; font: 500 14px/20px var(--font-ui); text-align: left; }
.menu button:hover, .menu a:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Hinweise */
.toast { position: fixed; bottom: 56px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--bg-raised); border: 1px solid var(--ok); color: var(--text-primary); padding: 10px 18px; border-radius: var(--radius-full); font: 500 14px/20px var(--font-ui); z-index: 60; transition: all .25s; }
.toast.err { border-color: var(--error); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* v0.3.1: Heute – Projekte jetzt und Zeitleiste, Kalenderkopf */
.calhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 8px; }
.calhead .months { flex: 1 1 420px; flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
.tl { display: flex; flex-direction: column; gap: 4px; }
.tl-row { display: grid; grid-template-columns: minmax(80px, 130px) 1fr; gap: 12px; align-items: center; min-height: 30px; border-radius: var(--radius-sm); }
.tl-row.click { cursor: pointer; } .tl-row.click:hover { background: var(--bg-hover); }
.tl-track { position: relative; height: 26px; }
.tl-head .tl-track { height: 34px; }
.tl-cell { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.tl-cell.we { background: rgba(255, 255, 255, .025); } .tl-cell.today { background: var(--accent-soft); }
.tl-day { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; font: 500 11px/14px var(--font-ui); color: var(--text-secondary); }
.tl-day b { font-weight: 500; color: var(--text-muted); font-size: 10px; } .tl-day.we { color: var(--text-muted); } .tl-day.today, .tl-day.today b { color: var(--accent); font-weight: 700; }
.tl-bar { position: absolute; top: 8px; height: 10px; border-radius: 5px; } .tl-bar.open { border: 1px dashed var(--border); height: 8px; }
.tl-goal { position: absolute; top: 5px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); border-radius: 3px; box-shadow: 0 0 0 2px var(--bg-surface); }
.tl-dot { position: absolute; top: 7px; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; transform: translateX(-50%); background: var(--accent); cursor: pointer; box-shadow: 0 0 0 2px var(--bg-surface); }
.tl-dot:hover { transform: translateX(-50%) scale(1.3); }
.tl-tag { position: absolute; top: 5px; padding-left: 6px; font: 600 11px/16px var(--font-ui); white-space: nowrap; } .tl-tag.end { right: 0; padding: 0 6px; border-radius: 4px; background: var(--bg-surface); color: var(--text-secondary); }
.tl-none { position: absolute; top: 5px; left: 6px; }
i.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; margin-right: 6px; vertical-align: middle; }
.statusbar i.dot { width: 6px; height: 6px; margin-right: 8px; }
/* v0.3.2: gestapelte Karten nicht stauchen, nur die letzte füllt den Rest */
.row.fill > div > .card:not(:last-child) { flex: none; }
.row.fill > div > .card:not(:last-child) > .card-body { overflow: visible; }

/* v0.3.3: Inbox-Ansichten */
.card.mini { padding: 12px 6px; align-items: center; gap: 8px; }
.iconbtn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* v0.4: CMS – Bearbeiten-Modus, Bibliothek, Verwaltung */
.erow { position: relative; align-items: start; }
.ecol { display: flex; flex-direction: column; gap: 16px; min-height: 120px; padding: 6px; margin: -6px; border-radius: calc(var(--radius-lg) + 6px); transition: background .15s; }
.ecol.dropin { background: var(--accent-soft); }
.eblock { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-surface); padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; cursor: grab; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.eblock:hover { border-color: var(--accent); box-shadow: 0 0 32px var(--accent-soft); }
.eblock.dragging { opacity: .35; }
.eblock.dropbefore { box-shadow: 0 -4px 0 0 var(--accent); }
.eblock.off .ebody { opacity: .2; } .eblock.off .ehead .t-strong { color: var(--text-muted); }
.ehead { display: flex; align-items: center; gap: 8px; }
.egrip { color: var(--text-muted); display: flex; cursor: grab; }
.echip { font: 500 12px/16px var(--font-ui); color: var(--text-secondary); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.ebody { pointer-events: none; max-height: 260px; overflow: hidden; opacity: .7; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.ebody > .card { border: 0; padding: 4px 0 0; background: none; box-shadow: none; }
.edrop { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: none; color: var(--text-secondary); padding: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; font: 500 13px/18px var(--font-ui); cursor: pointer; transition: all .15s; }
.edrop:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.erowadd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0 24px; }
.erowdel { position: absolute; right: -10px; top: -10px; }
.modal-bg.drawer { place-items: stretch end; }
.modal-bg.drawer .modal { width: min(480px, 100%); max-height: none; height: 100vh; border-radius: 0; border-width: 0 0 0 1px; animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(48px); opacity: 0; } }
.modal.lib { width: min(1040px, calc(100% - 32px)); gap: 20px; padding: 32px; border-radius: 24px; }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.libcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px; border-radius: var(--radius-lg); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-primary); cursor: pointer; transition: border-color .15s, transform .15s; }
.libcard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.libcard.sel { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px; }
.libprev { height: 76px; border-radius: var(--radius-md); background: radial-gradient(circle at 30% 20%, var(--accent-soft-strong), transparent 60%), var(--bg-surface); display: grid; place-items: center; color: var(--accent); margin-bottom: 4px; }
.libok { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.libsearch { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-muted); min-width: 260px; }
.libsearch input { background: none; border: 0; outline: 0; color: var(--text-primary); font: 400 15px/24px var(--font-ui); flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg-surface); box-shadow: 0 0 0 2px transparent; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.swatch:hover { transform: scale(1.08); } .swatch.on { box-shadow: 0 0 0 2px var(--text-primary); }
.switchrow { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switchrow input { display: none; }
.switchrow i { width: 40px; height: 24px; border-radius: 12px; background: var(--bg-hover); position: relative; flex: none; transition: background .15s; }
.switchrow i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-primary); transition: left .15s; }
.switchrow input:checked + i { background: var(--accent); } .switchrow input:checked + i::after { left: 18px; }
.prow { gap: 12px; }
.pmove { display: flex; flex-direction: column; gap: 2px; width: 26px; }
.iconbtn.xs { width: 26px; height: 18px; border-radius: 5px; }
.textrow { width: 100%; border: 0; color: var(--text-primary); font: inherit; gap: 16px; text-align: left; }
.textlbl { display: flex; flex-direction: column; min-width: 130px; }
body.no-demo .badge.demo { display: none; }
.ebody .card-head { display: none; }
.modal-bg.drawer .modal-actions { margin-top: auto; }

/* v0.4.1: Karten nie zusammenquetschen; Seite scrollt stattdessen. Ausnahme Inbox: Liste scrollt in sich */
#content:not([data-page="inbox"]) .row.fill { flex: 1 0 auto; }
#content:not([data-page="inbox"]) .row.fill > div > .card:last-child { flex: 1 0 auto; }

/* v0.5: Erinnerungen */
.cronurl { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border-radius: var(--radius-md); background: var(--bg-raised); border: 1px solid var(--border); }
.cronurl code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-secondary); }

/* v0.5: Kopfbereich mit 3D-Symbol */
button.userbox { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
button.userbox:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.ico3d { position: relative; width: 46px !important; height: 46px !important; border-radius: 14px !important; color: #fff !important;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 70%, #fff 30%) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 65%, #000 35%) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -4px 8px rgba(0,0,0,.28), 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000 45%), 0 10px 22px -6px var(--accent-soft-strong), 0 14px 28px -12px rgba(0,0,0,.7);
  transform: perspective(240px) rotateX(10deg) rotateY(-12deg); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; flex: none; }
.ico3d::before { content: ""; position: absolute; inset: 2px 3px 52% 3px; border-radius: 12px 12px 10px 10px; background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,0)); pointer-events: none; }
.ico3d svg { position: relative; filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.4)); }
.userbox:hover .ico3d { transform: perspective(240px) rotateX(0) rotateY(0) translateY(-2px) scale(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -4px 8px rgba(0,0,0,.25), 0 3px 0 color-mix(in srgb, var(--accent) 55%, #000 45%), 0 16px 30px -8px var(--accent-soft-strong), 0 18px 32px -12px rgba(0,0,0,.7); }
.userbox.demo-box { display: inline-flex; padding: 10px; margin: 0; }
.iconpick { display: flex; flex-wrap: wrap; gap: 6px; }
.iconbtn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.textrow { flex-wrap: wrap; align-items: flex-start; row-gap: 4px; }
.textrow .textlbl { flex-direction: row; gap: 8px; align-items: baseline; min-width: 100%; }
.textrow > .grow { flex: 1 1 0; min-width: 0; }

/* v0.6: verbundene Kalender und Suche */
.cal-day .dots { display: flex; gap: 3px; justify-content: center; }
.week .ev.ext { background: color-mix(in srgb, var(--c) 16%, var(--bg-raised)); box-shadow: inset 3px 0 0 var(--c); }
.calsw { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.iconbtn.warn { color: var(--wait); border-color: var(--wait); }
button.search { font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
button.search:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.modal-bg.search-bg { place-items: start center; padding-top: 12vh; }
.modal.searchbox { width: min(680px, calc(100% - 32px)); gap: 12px; padding: 16px; border-radius: 20px; }
.libsearch.big { padding: 12px 14px; } .libsearch.big input { font-size: 17px; }
.kbd { font: 500 11px/16px var(--font-ui); color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px; }
.sresults { display: flex; flex-direction: column; gap: 4px; max-height: 56vh; overflow: auto; }
.sgroup { padding: 10px 4px 4px; }
.shit { width: 100%; border: 1px solid transparent; color: var(--text-primary); font: inherit; text-align: left; gap: 12px; background: none; }
.shit.on, .shit:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Finanzen (v0.7) ---------- */
.finbig { font: 600 24px/32px var(--font-head); white-space: nowrap; }
.finbig.lg { font-size: 36px; line-height: 44px; }
.finseg { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--bg-raised); gap: 2px; }
.finseg i { display: block; height: 100%; min-width: 3px; }
.fingrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile.finmini { flex-direction: column; align-items: stretch; gap: 6px; }
.tile.finmini b { font: 600 18px/24px var(--font-head); }
.acctgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile.accttile { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; border-top: 3px solid var(--bc); }
.bankchip { font: 600 12px/18px var(--font-ui); padding: 2px 10px; border-radius: 999px; color: var(--bc); background: color-mix(in srgb, var(--bc) 14%, transparent); }
.tile.acctadd { flex-direction: column; justify-content: center; gap: 6px; border: 1px dashed var(--border, rgba(255,255,255,.14)); background: none; color: var(--text-secondary); min-height: 200px; cursor: pointer; font: inherit; }
.tile.acctadd:hover { color: var(--text-primary); border-color: var(--accent); }
.stepdot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-raised); color: var(--text-muted); }
.stepdot.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.fchart { display: flex; align-items: flex-end; gap: 12px; }
.fmonth { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; border-radius: var(--radius-sm); padding: 4px 0; }
.fmonth.on { background: var(--bg-glass); }
.fpair { display: flex; align-items: flex-end; gap: 4px; height: 180px; }
.fbar { width: 18px; display: flex; flex-direction: column-reverse; gap: 1px; }
.fbar i { display: block; border-radius: 3px; }
.finrow { display: flex; align-items: center; gap: 12px; padding: 6px 4px; border: 0; background: none; color: inherit; font: inherit; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.finrow:hover { background: var(--bg-glass); }
.fintools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.finsel { background: var(--bg-raised); color: var(--text-primary); border: 0; border-radius: var(--radius-md); padding: 8px 12px; font: 500 13px/18px var(--font-ui); }
.fintbl td { padding: 10px 14px; }
@media (max-width: 900px) { .fingrid2 { grid-template-columns: 1fr; } }
.fintbl { table-layout: fixed; }
.fintbl th:nth-child(1) { width: 92px; } .fintbl th:nth-child(3) { width: 170px; } .fintbl th:nth-child(4) { width: 116px; }
.fintbl td:nth-child(2), .fintbl td:nth-child(3) { overflow: hidden; }

/* ---------- Zwei-Faktor (v0.8) ---------- */
.qrbox { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.qrbox svg.qr { flex: none; border-radius: var(--radius-md); max-width: 100%; height: auto; }
.qrbox > div { flex: 1; min-width: 220px; }
code.secret { font: 600 14px/20px ui-monospace, Menlo, monospace; letter-spacing: .04em; background: var(--bg-raised); padding: 8px 10px; border-radius: var(--radius-sm); word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes code { font: 600 15px/22px ui-monospace, Menlo, monospace; background: var(--bg-raised); padding: 8px 12px; border-radius: var(--radius-sm); text-align: center; user-select: all; }
.menu button .badge { margin-left: auto; }

/* ---------- Einnahmen / Ausgaben (v0.8) ---------- */
.txblock { display: flex; flex-direction: column; gap: 4px; }
.txhead { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-left: 3px solid var(--c); background: var(--bg-glass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex-wrap: wrap; }
label[data-kind="Einnahme"] select { border-color: var(--ok); color: var(--ok); }
label[data-kind="Ausgabe"] select { border-color: var(--accent); color: var(--accent); }

/* ---------- Instagram-Redaktion (v0.9) ---------- */
.igboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow-x: auto; min-height: 0; flex: 1; }
.igcol { background: var(--bg-glass); border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; min-width: 0; }
.igcol-head { display: flex; align-items: center; gap: 8px; } .igcol-head .t-label { flex: 1; }
.igcol-head .cnt { font: 400 12px/16px var(--font-ui); padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-raised); }
.igcol-body { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; }
.igempty { padding: 16px 4px; text-align: center; }
.igcard { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, transform .15s; }
.igcard:hover { border-color: var(--accent); }
.igthumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-raised); display: grid; place-items: center; }
.igthumb.reel { aspect-ratio: 4 / 3; }
.igthumb img { object-position: center 30%; }
.igthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igkind { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(0,0,0,.6); color: #fff; font: 500 11px/16px var(--font-ui); }
.igmeta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.igmedia { display: flex; gap: 8px; flex-wrap: wrap; }
.igm { position: relative; width: 120px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-raised); }
.igm.reel { width: 150px; aspect-ratio: 9 / 16; }
.igm img, .igm video { width: 100%; height: 100%; object-fit: cover; display: block; }
.igm .iconbtn { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; background: rgba(0,0,0,.6); color: #fff; }
.igm.empty-m { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.igactions { display: flex; gap: 8px; flex-wrap: wrap; }
.igkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; }
.stepdot.err { background: color-mix(in srgb, var(--error) 20%, transparent); color: var(--error); }
.c-wait { color: var(--wait); }
@media (max-width: 1100px) { .igboard { grid-template-columns: repeat(4, 220px); } }
.igconn { display: flex; flex-direction: column; gap: 6px; background: var(--bg-glass); border-radius: var(--radius-md); padding: 12px; }
.igconn-head { display: flex; align-items: center; gap: 10px; } .igconn-head .t-strong { flex: 1; }
