/* Portal-Layout: Kopfleiste mit Tabs (keine Seitenleiste), Inhalte in Karten. Komponenten aus stp.css. */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.logo b { color: var(--accent); font-weight: 800; }
.brand { text-decoration: none; }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: var(--sp-4); min-height: 60px; }
.top-row .grow { flex: 1; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 12px 12px 14px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-s); white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tabs .count { margin-left: 6px; font-size: .7rem; padding: 2px 6px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); }
.switcher { max-width: 240px; }
.kbd { font: 600 .7rem/1 var(--mono); padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--text-3); }

main.page { padding-top: var(--sp-6); padding-bottom: var(--sp-8); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.page-head h1 { font-size: var(--fs-2xl); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.section-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 700; margin: var(--sp-6) 0 var(--sp-3); }

/* Verbrauch je Monat */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: var(--sp-2); }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart .colbar { width: 100%; max-width: 28px; min-height: 2px; border-radius: 5px 5px 2px 2px; background: var(--accent); opacity: .85; }
.chart .collabel { font-size: .65rem; color: var(--text-3); }

/* Abdeckung */
.cov { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--sp-3); align-items: center; padding: 6px 0; border: 0; background: none; width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-s); }
.cov:hover { background: var(--surface-2); }
.legend { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Checkliste */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.checklist li { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-s); }
.checklist .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); color: var(--text-3); flex: none; }
.checklist .done .dot { background: var(--ok-soft); color: var(--ok); }

/* Übersetzen */
.split { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.split .sticky { position: sticky; top: 140px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: var(--fs-s); }
.reasons li { display: flex; justify-content: space-between; gap: var(--sp-3); }
.reasons .n { font-variant-numeric: tabular-nums; color: var(--text-2); }
.big-number { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
details.adv > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-s); padding: var(--sp-2) 0; }

/* Aktualität */
.ocard { display: grid; gap: var(--sp-3); }
.ocard-head { display: flex; gap: var(--sp-3); align-items: flex-start; }
.ocard-head input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.ocard-title { font-weight: 650; }
.cmp { display: grid; gap: var(--sp-3); grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .cmp { grid-template-columns: 1fr; } }
.cmp .box { background: var(--surface-2); border-radius: var(--r-m); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-s); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.cmp .box h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 6px; }
del.d { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
ins.d { background: var(--ok-soft); color: var(--ok); text-decoration: none; }
.trlist { display: grid; gap: 6px; font-size: var(--fs-s); }
.trlist .tr { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-2); }
.bulkbar { position: sticky; bottom: 16px; z-index: 10; display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; padding: var(--sp-3) var(--sp-4); background: var(--brand); color: var(--brand-ink); border-radius: var(--r-l); box-shadow: var(--shadow-2); margin-top: var(--sp-4); }
.bulkbar .btn { min-height: 34px; }

/* Lauf-Details */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 var(--sp-4) var(--sp-4); font-size: var(--fs-s); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text-3); }
.timeline li.error::before { border-color: var(--bad); } .timeline li.ok::before { border-color: var(--ok); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps span { font-size: var(--fs-xs); padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-3); font-weight: 600; }
.steps span.on { background: var(--accent-soft); color: var(--text); }
.steps span.done { background: var(--ok-soft); color: var(--ok); }

/* Anmeldung */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background:
  radial-gradient(1200px 500px at 10% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); padding: var(--sp-6); }
.auth-card .brand { display: inline-block; margin-bottom: var(--sp-5); }
.auth-title { font-size: var(--fs-xl); }

/* Schnellsuche (Cmd-K) */
.palette-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.palette-list button { width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; padding: 10px 12px; border-radius: var(--r-m); cursor: pointer; }
.palette-list button:hover, .palette-list button.sel { background: var(--surface-2); }

@media (max-width: 640px) {
  .top-row { gap: var(--sp-2); }
  .hide-s { display: none !important; }
  .card { padding: var(--sp-4); }
}
