/* Karten & Raster */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5) var(--sp-6); box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; } .card .pad, .card.flush .empty.pad { padding: 16px 20px; }
.card.narrow { max-width: 560px; margin: 40px auto; } .center { text-align: center; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-4); }
.card-head h3 { font-size: var(--fs-md); }
.card-head > :first-child { margin-right: auto; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: 1 / -1; }
.section-title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack-lg { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; } .row.center { justify-content: center; }
.grow { flex: 1; } .spacer { flex: 1; } .top-gap { margin-top: 14px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 12%, var(--surface)), color-mix(in srgb, var(--accent) 14%, var(--surface))); }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-weight: var(--fw-semibold); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--border-strong); }
.kpi.accent-pink::before { background: var(--accent-2); } .kpi.accent-violet::before { background: var(--accent); }
.kpi.accent-blue::before { background: var(--blue); } .kpi.accent-amber::before { background: var(--amber); }
.kpi-label { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.kpi-value { display: block; font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi-sub { color: var(--faint); font-size: var(--fs-xs); }

/* Diagramme */
.chart-box { position: relative; height: 240px; } .chart-box.tall { height: 300px; }
.stats-loading .chart-box, .stats-loading .heatmap, .stats-loading .ranking { opacity: .35; transition: opacity .3s; }
.heatmap { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: var(--fs-2xs); color: var(--muted); }
.heatmap .hm-cell { aspect-ratio: 1 / 1; border-radius: 4px; background: var(--accent); min-height: 10px; }
.heatmap .hm-label { display: flex; align-items: center; } .heatmap .hm-hour { text-align: center; font-size: var(--fs-2xs); }
.heatmap.compact { gap: 2px; } .heatmap.compact .hm-cell { border-radius: 3px; }
.ranking { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranking li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); counter-increment: r; }
.ranking li::before { content: counter(r); width: 20px; color: var(--faint); font-weight: var(--fw-bold); font-size: var(--fs-xs); }
.ranking li:last-child { border-bottom: 0; } .ranking .rk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-medium); }
.ranking .rk-val { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Balken (Spielzeit pro Modus) */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 110px; gap: 4px 12px; align-items: center; }
.bar-label { font-weight: var(--fw-semibold); } .bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); }
.bar-track { height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s ease; }
.bar-extra { grid-column: 2 / -1; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table.hover tbody tr { cursor: pointer; } .table.hover tbody tr:hover { background: var(--surface-2); }
.card:not(.flush) .table th:first-child, .card:not(.flush) .table td:first-child { padding-left: 0; }
.card:not(.flush) .table th { background: transparent; }
.num { text-align: right; font-variant-numeric: tabular-nums; } .pos { color: var(--green); } .neg { color: var(--red); }
.ellipsis { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.details { max-width: 420px; font-size: var(--fs-xs); color: var(--muted); word-break: break-word; }
tr.reverted td { opacity: .5; text-decoration: line-through; } tr.reverted td:last-child { text-decoration: none; }

/* Personen */
.avatar { width: 34px; height: 34px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); flex: none; image-rendering: pixelated; }
.avatar.sm { width: 26px; height: 26px; border-radius: var(--r-sm); } .avatar.xl { width: 84px; height: 84px; border-radius: var(--r-lg); }
.person { display: inline-flex; align-items: center; gap: 10px; } .person small { display: block; color: var(--faint); }
.people { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.people a { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: var(--r-sm); }
.people a:hover { background: var(--surface-2); } .people-main { flex: 1; min-width: 0; } .people-main small { display: block; color: var(--muted); }
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 18px; }
.profile-main { display: flex; flex-direction: column; gap: 6px; } .profile-main h2 { display: flex; gap: 10px; align-items: center; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.profile-stats div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 14px; }
.profile-stats strong { display: block; font-size: var(--fs-md); } .profile-stats small { color: var(--muted); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 9px 12px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }
[data-copy] { cursor: copy; } [data-copy].copied { border-color: var(--green); color: var(--green); }

/* Badges, Tags, Chips, Status */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; } .badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.pink { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); border-color: transparent; }
.tag { display: inline-block; font-size: var(--fs-2xs); font-weight: var(--fw-semibold); padding: 1px 7px; border-radius: var(--r-xs); background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--muted); padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.online { color: var(--green); background: var(--green-soft); border-color: transparent; } .status.online::before { background: var(--green); }
.status.voice { color: var(--blue); } .status.voice::before { display: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.platforms { display: inline-flex; gap: 4px; }
.pf { width: 22px; height: 22px; border-radius: var(--r-xs); display: inline-grid; place-items: center; font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: #fff; }
.pf-discord { background: var(--brand-discord); } .pf-mc { background: #4f9b3a; } .pf-steam { background: var(--brand-steam); } .pf-twitch { background: var(--brand-twitch); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --c: var(--accent); display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--border)); background: color-mix(in srgb, var(--c) 10%, var(--surface)); font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--text); font-family: inherit; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: var(--fs-md); line-height: 1; padding: 0 0 0 2px; }
.chip-x:hover { color: var(--red); }
.chip.toggle { cursor: pointer; opacity: .55; } .chip.toggle.on { opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.chip.toggle:hover { opacity: 1; }

/* Formulare */
input[type=text], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], input[type=password], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; min-width: 0; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
select[multiple] { padding: 4px; } select[multiple] option { padding: 4px 6px; border-radius: var(--r-xs); }
input[type=color] { width: 54px; height: 38px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
label { display: flex; flex-direction: column; gap: 6px; font-weight: var(--fw-medium); } label.row { flex-direction: row; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: var(--fw-medium); } label.check input { width: auto; margin: 5px 0 0; flex: none; }
td.ellipsis.wide { max-width: 560px; }
.toolbar label.search, .toolbar > select, .toolbar > input, .row > select, .row > input { width: auto; }
.row > label { min-width: 0; } /* Felder nebeneinander dürfen schmaler werden statt überzulaufen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: var(--fw-semibold); min-height: 40px; padding: 8px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent); transition: filter .15s, background .15s, transform .1s var(--ease); white-space: nowrap; }
.btn:hover { filter: brightness(1.08); } .btn:active:not(:disabled) { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: none; } .btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.danger { background: var(--red-soft); color: var(--red); box-shadow: none; } .btn.tiny { min-height: 32px; padding: 4px 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
form.inline { display: inline; }
.hint { color: var(--muted); font-size: var(--fs-xs); margin: 6px 0 0; }
.link { color: var(--accent-text); font-weight: var(--fw-semibold); font-size: var(--fs-sm); } .link.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 220px; } .search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 36px; }
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented a { padding: 6px 13px; border-radius: var(--r-sm); font-weight: var(--fw-semibold); color: var(--muted); font-size: var(--fs-sm); }
.segmented a.active { background: var(--accent-soft); color: var(--accent-text); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: var(--r-pill); transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Einstellungen */
.layout-side { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.subnav { position: sticky; top: 84px; display: flex; flex-direction: column; padding: 10px; gap: 2px; }
.subnav a { padding: 7px 10px; border-radius: var(--r-sm); color: var(--muted); font-weight: var(--fw-medium); } .subnav a:hover { background: var(--surface-2); color: var(--text); }
.settings .setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.settings .setting:first-of-type { border-top: 0; }
.setting-text { display: flex; flex-direction: column; gap: 3px; } .setting-text label { font-weight: var(--fw-semibold); }
.setting-text .key { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--faint); }
.setting-input { display: flex; flex-direction: column; gap: 4px; justify-content: center; }

/* Rollen */
.role-list { display: flex; flex-direction: column; gap: 10px; }
.role-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface-2); }
.role-card.owner { background: color-mix(in srgb, var(--accent-2) 7%, var(--surface)); }
.role-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.perm-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .perm { font-size: var(--fs-2xs); }
.perm-group { border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 12px 10px; margin: 0; }
.perm-group legend { font-weight: var(--fw-bold); font-size: var(--fs-xs); color: var(--muted); padding: 0 6px; }
.perm-option { flex-direction: row; align-items: flex-start; gap: 10px; padding: 6px 0; font-weight: var(--fw-medium); cursor: pointer; }
.perm-option input { margin-top: 3px; accent-color: var(--accent); } .perm-option span { display: flex; flex-direction: column; }
.perm-option small { color: var(--muted); font-weight: var(--fw-regular); } .perm-option.sensitive strong { color: var(--red); }
.perm-option.locked { opacity: .45; cursor: not-allowed; }

/* Listen */
.timeline, .plain, .achievements { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px dashed var(--border); } .timeline li small { display: block; color: var(--muted); }
.timeline li:last-child, .plain li:last-child { border-bottom: 0; }
.plain li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; }
.achievements li { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.achievements li small { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 18px 0; margin: 0; }
.flash { margin: 16px 28px 0; padding: 11px 16px; border-radius: var(--r-md); background: var(--green-soft); color: var(--green); font-weight: var(--fw-semibold); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); }
.flash-err { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.content > .flash { margin: 0 0 16px; }

/* Responsiv */
@media (max-width: 1180px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: 1 / -1; }
  .profile { grid-template-columns: auto 1fr; } .profile-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .only-mobile { display: inline-grid; }
  .me-text { display: none; } .me { padding: 3px; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; } .flash { margin-left: 16px; margin-right: 16px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } .span-2, .span-3 { grid-column: auto; }
  .layout-side { grid-template-columns: minmax(0, 1fr); } .subnav { position: static; flex-direction: row; flex-wrap: wrap; }
  .settings .setting { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .profile { grid-template-columns: minmax(0, 1fr); text-align: left; } .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 100px 1fr 90px; }
  .heatmap { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; } .heatmap .hm-hour:nth-child(odd) { visibility: hidden; }
  .kpi-value { font-size: var(--fs-lg); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Themen-Auswahl oben rechts */
.picker { position: relative; }
.picker-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 236px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 14px; z-index: 50; }
.picker-pop h4 { margin: 0 0 8px; font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .06em; }
.swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.swatch.s-violet { background: #8b5cf6; } .swatch.s-pink { background: #db2777; } .swatch.s-blue { background: #2563eb; }
.swatch.s-teal { background: #0d9488; } .swatch.s-amber { background: #d97706; }
.swatch.s-cutegays { background: linear-gradient(135deg, #ff3e9a 0 50%, #9b4dff 50% 100%); }
.swatch.s-rainbow { background: conic-gradient(#e40303, #ff8c00, #ffed00, #008026, #004dff, #750787, #e40303); }
.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px; }
.mode-switch button { font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); border: 0; background: none; color: var(--muted); padding: 6px 0; border-radius: var(--r-xs); cursor: pointer; }
.mode-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Bestätigungsfenster */
.confirm-dlg { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.confirm-dlg::backdrop { background: rgba(10, 8, 20, .55); backdrop-filter: blur(2px); }
.confirm-dlg form { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.confirm-dlg h3 { margin: 0; font-size: var(--fs-md); }
.confirm-dlg .cd-text { margin: 0; color: var(--muted); }
.confirm-dlg .cd-lines { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sm); }
.confirm-dlg .cd-lines dt { color: var(--muted); }
.confirm-dlg .cd-lines dd { margin: 0; text-align: right; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.confirm-dlg .cd-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.confirm-dlg .cd-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.confirm-dlg .cd-ok.danger { background: var(--accent-2); border-color: var(--accent-2); }

/* Reiter (Tabs) – siehe [data-tabs] in common.js; ohne JS sind alle Bereiche sichtbar */
.tabs { position: sticky; top: 64px; z-index: 15; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-sm); color: var(--muted); font-weight: var(--fw-semibold); font-size: var(--fs-sm); white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.active { color: var(--accent-text); background: var(--accent-soft); }
.tabs .count { min-width: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-2xs); text-align: center; color: var(--muted); }
.tabs a.active .count { background: var(--surface); }
.tab-panels { min-width: 0; }
.tab-panel { scroll-margin-top: 130px; }
.tab-panel + .tab-panel { margin-top: var(--sp-5); }
.tab-panel[role=tabpanel] { margin-top: 0; animation: tab-in .2s var(--ease); }
@keyframes tab-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Kleine Überschriften über Listen (Seitenleiste, Dokumente, Inhaltsverzeichnis) ---------- */
.nav-label, .docs-group h4, .doc-toc h4, .pub-aside h4 { font-size: var(--fs-2xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }

/* ---------- Textknopf für gefährliche Aktionen ---------- */
.danger-text { color: var(--red); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.danger-text:hover { text-decoration: underline; }

/* ---------- Schnellsuche (Strg+K) ---------- */
.jump-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: var(--r-pill); border: var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.jump-btn:hover { color: var(--text); border-color: var(--border-strong); }
.jump-btn .ic { width: 16px; height: 16px; }
.jump-btn kbd { font: 600 11px/1 var(--font); padding: 3px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--faint); }
@media (max-width: 900px) { .jump-btn span, .jump-btn kbd { display: none; } .jump-btn { width: 36px; padding: 0; justify-content: center; } }
dialog.jump { padding: 0; border: 0; background: transparent; width: min(620px, calc(100% - 24px)); margin: 12vh auto auto; overflow: visible; color: var(--text); }
dialog.jump::backdrop { background: rgba(20, 14, 40, .45); backdrop-filter: blur(2px); }
.jump-box { background: var(--surface); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--pop-lg); overflow: hidden; }
.jump-box input { width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 18px; font: inherit; font-size: var(--fs-md); background: transparent; color: var(--text); outline: none; box-shadow: none; }
#jump-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
#jump-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none !important; }
#jump-list a small { color: var(--faint); font-size: var(--fs-xs); white-space: nowrap; }
#jump-list a.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
#jump-list a.sel small { color: var(--accent); }
.jump-empty { padding: 14px 12px; color: var(--muted); }
.jump-hint { margin: 0; padding: 8px 14px; border-top: 1px solid var(--border); font-size: var(--fs-2xs); color: var(--faint); background: var(--surface-2); }
