/* =========================================================================
   resyDict INVEST — Design-System
   Hell-zuerst nach dem Familien-Standard resyDict ONE (Entscheidung Markus,
   30.08.2026: „ONE war stark farblich – das ist das Ziel"). Alle Farbwerte
   stammen 1:1 aus resyDict ONE (static/css/app.css); die Zuordnung alt→neu
   steht in MARKE.md. Dunkel folgt dem ONE-Dreiblock-Muster: automatisch bei
   System-Dunkel (media-Query mit Guard) UND bei ausdrücklicher Wahl
   (data-theme="dark") – beide Blöcke müssen identisch bleiben.
   Keine externen Abhängigkeiten.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Farb-Tokens (Hell) — Werte aus resyDict ONE */
  --bg:            #eef1f6;
  --bg-soft:       #eef1f6;   /* ONE kennt keinen zweiten Seitengrund – Verläufe darauf werden flach */
  --surface:       #ffffff;
  --surface-2:     #eef1f6;
  --surface-3:     #fafafc;   /* Hover-Hauch zwischen Weiß und leiser Fläche (ONE-Muster) */
  --border:        #d6dce5;
  --border-soft:   #e4e8ef;
  --border-field:  #7b8391;   /* Bedienelement-Rand, eigener Wert wegen WCAG 1.4.11 (≥3:1) */

  --text:          #171a21;
  --text-soft:     #3a4150;
  --text-dim:      #636d7c;

  --brand:         #2b49d4;
  --brand-strong:  #2139ae;
  --brand-deep:    #2139ae;
  --accent:        #2b49d4;
  /* Vom Akzent abgeleitet (theme.js überschreibt zur Laufzeit) – Fallback hier: */
  --brand-contrast: #ffffff;
  --brand-soft:    #eef1fd;
  --brand-glow:    rgba(43,73,212,.45);
  --brand-ink:     #2139ae;   /* Akzent als Text (Links/Eyebrow); theme.js bringt ihn auf Mindestkontrast */

  /* Status-Familien Text/Fläche/Rahmen (ONE: erfolg/warnung/fehler), je Theme */
  --good: #157a52;  --good-fl: #e9f6f0;  --good-li: #b7e0cc;
  --warn: #8a6710;  --warn-fl: #fbf3e3;  --warn-li: #f0e0bc;
  --bad:  #b23a33;  --bad-fl:  #fbeeed;  --bad-li:  #edc3bf;
  /* Alt-Aliasse (werden von JS-Fallbacks noch gelesen) */
  --mint:  var(--good);
  --amber: var(--warn);
  --rose:  var(--bad);

  --ring: 0 0 0 3px rgba(43, 73, 212, .32);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow:    0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .05);
  --shadow-lg: 0 4px 10px rgba(17, 24, 39, .05), 0 18px 44px rgba(17, 24, 39, .13);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Form-Sprache (pro Theme-Vorlage überschreibbar, theme.js). Defaults = bisheriger Look. */
  --r-card:    12px;   /* Standard-Karten-Radius */
  --r-field:   10px;   /* Eingaben/kleine Flächen */
  --glass-blur: 8px;   /* Glas-Effekt auf .card--glass (0 = flach) */
  --glow-op:    0;     /* Hintergrund-Glühen abgeschafft (ONE hat keins); Token bleibt für Vorlagen */
  --font-head: var(--font);  /* Headline-Schrift (z. B. Serif je Vorlage) */

  --maxw: 1180px;
  --nav-w: 248px;

  /* Ein Akzent-Verlauf für alle dekorativen Flächen (ONE-Muster: akzent → tief);
     --grad-mint = zweite Familie im ONE-Umfeld (Verabredet-Violett → Akzent). */
  --grad-brand: linear-gradient(135deg, #2b49d4, #2139ae);
  --grad-warm:  linear-gradient(135deg, #2b49d4, #2139ae);
  --grad-mint:  linear-gradient(135deg, #5b3fd1, #2b49d4);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, monospace;
}

/* Dunkel automatisch bei System-Dunkel – solange keine ausdrückliche Hell-Wahl
   gesetzt ist. MUSS wertgleich mit :root[data-theme="dark"] darunter bleiben. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:            #131315;
    --bg-soft:       #131315;
    --surface:       #1c1c1f;
    --surface-2:     #232327;
    --surface-3:     #242429;
    --border:        #45464e;
    --border-soft:   #33343a;
    --border-field:  #7c7d86;
    --text:          #f2f2f5;
    --text-soft:     #adadb5;
    --text-dim:      #9fa0a8;
    --brand-soft:    #1b2440;
    --brand-ink:     #8fb0e6;   /* #2b49d4 misst auf Dunkelgrund nur ~2,7:1 – als Text IMMER das helle Blau */
    --good: #8ad3a0;  --good-fl: #16261b;  --good-li: #315f3d;
    --warn: #e8c979;  --warn-fl: #2a2411;  --warn-li: #6a5a2a;
    --bad:  #f0a1a1;  --bad-fl:  #2b1616;  --bad-li:  #6b3a3a;
    --ring: 0 0 0 3px rgba(143, 176, 230, .45);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow:    0 1px 2px rgba(0,0,0,.45), 0 6px 20px rgba(0,0,0,.55);
    --shadow-lg: 0 4px 10px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.62);
  }
}

/* Ausdrückliche Dunkel-Wahl – wertgleich mit dem media-Block darüber. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #131315;
  --bg-soft:       #131315;
  --surface:       #1c1c1f;
  --surface-2:     #232327;
  --surface-3:     #242429;
  --border:        #45464e;
  --border-soft:   #33343a;
  --border-field:  #7c7d86;
  --text:          #f2f2f5;
  --text-soft:     #adadb5;
  --text-dim:      #9fa0a8;
  --brand-soft:    #1b2440;
  --brand-ink:     #8fb0e6;
  --good: #8ad3a0;  --good-fl: #16261b;  --good-li: #315f3d;
  --warn: #e8c979;  --warn-fl: #2a2411;  --warn-li: #6a5a2a;
  --bad:  #f0a1a1;  --bad-fl:  #2b1616;  --bad-li:  #6b3a3a;
  --ring: 0 0 0 3px rgba(143, 176, 230, .45);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow:    0 1px 2px rgba(0,0,0,.45), 0 6px 20px rgba(0,0,0,.55);
  --shadow-lg: 0 4px 10px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.62);
}

:root[data-theme="light"] { color-scheme: light; }

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Das frühere atmosphärische Hintergrund-Glühen (body::before) ist mit dem
   ONE-Standard abgeschafft: ruhiger Grund, Karten heben sich über Fläche und
   Schatten ab. --glow-op bleibt nur für Theme-Vorlagen erhalten. */

img, svg { display: block; max-width: 100%; }
.ic { width: 20px; height: 20px; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.18; font-weight: 700; letter-spacing: -.015em; font-family: var(--font-head); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brand-strong); color: var(--brand-contrast); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ----------------------------------------------------------------- Layout */
#app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  display: flex; flex-direction: column; padding: 1.1rem .9rem 0;
  overflow-y: auto;
}
/* „Dunkel"-Schalter unten in einer 48px-Leiste – fluchtet mit der Fußzeile rechts. */
#themebtn { min-height: 48px; font-size: .85rem; }
.brand { display: flex; align-items: center; gap: .65rem; padding: .35rem .5rem 1.1rem; }
.brand__logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--grad-brand); display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px var(--brand-glow);
}
.brand__logo svg { width: 22px; height: 22px; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.brand__logo--img { background: none; box-shadow: none; }
.brand__name { font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.brand__sub { font-size: .72rem; color: var(--text-dim); letter-spacing: .14em; text-transform: uppercase; }

/* Account-Menü (oben rechts) */
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: .4rem; }
.acct__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; z-index: 60;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: .35rem; display: none; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
}
.acct.open .acct__menu { display: block; }
.acct__menu a, .acct__menu button {
  display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left;
  padding: .55rem .6rem; border-radius: 9px; background: none; border: 0; cursor: pointer;
  color: var(--text); font: inherit; text-decoration: none;
}
.acct__menu a:hover, .acct__menu button:hover { background: var(--surface-3); }
.acct__menu .acct__sep { height: 1px; background: var(--border); margin: .3rem .2rem; }
.acct__head { padding: .5rem .6rem .2rem; }
.acct__head b { display: block; font-size: .92rem; }
.acct__head span { font-size: .76rem; color: var(--text-dim); }

.legal-doc { line-height: 1.6; }
.legal-doc h1 { font-size: 1.5rem; margin: 0 0 .6rem; }
.legal-doc h2 { font-size: 1.1rem; margin: 1.1rem 0 .4rem; }
.legal-doc p { margin: .5rem 0; color: var(--text-soft); }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: .3rem; }
.nav__group { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; padding: .9rem .6rem .3rem; }
.nav__group:first-child { padding-top: .2rem; }
.nav__item {
  display: flex; align-items: center; gap: .75rem;
  padding: .62rem .7rem; border-radius: 11px; color: var(--text-soft);
  font-weight: 600; font-size: .94rem; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s; text-align: left; width: 100%;
  background: none;
}
.nav__item:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav__item .ic { width: 20px; height: 20px; flex: none; opacity: .85; }
.nav__item--active {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
  box-shadow: inset 3px 0 0 0 var(--brand);
}
.nav__spacer { flex: 1; }
/* Zähler-Badge in der Navigation (z. B. fällige Termine) */
.navbadge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: var(--brand-contrast, #fff);
  font-size: .7rem; font-weight: 700; line-height: 1;
}
.nav__foot { font-size: .74rem; color: var(--text-dim); padding: .6rem .7rem; }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: .8rem;
  /* Seiten-Padding wie .main (sonst wirkt die Topbar breiter als der Inhalt).
     Oben zusätzlich Safe-Area, damit Uhr/WLAN-Statusleiste des Handys nicht
     über Login/Konto läuft (viewport-fit=cover). */
  padding: calc(.8rem + env(safe-area-inset-top)) clamp(1.1rem, 3vw, 2.2rem) .8rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.topbar__title { font-size: 1.02rem; font-weight: 700; }
.topbar__crumb { color: var(--text-dim); font-size: .8rem; }
.topbar__spacer { flex: 1; }
/* Marke oben links (Mobil) statt Zurück-Pfeil – tippt zum Dashboard. */
.topbar__brand { display: inline-flex; align-items: center; text-decoration: none; }
/* Der Seitentitel steht bereits als Überschrift auf jeder Seite – in der Topbar wäre
   er doppelt. Daher generell ausblenden (auf Mobil bleibt nur der saubere Zurück-Pfeil). */
.topbar__title { display: none; }
/* Einklappbares Hinweis-/Erinnerungs-Panel (Portfolio): Übersicht bleibt oben dominant. */
.hints-sum { cursor: pointer; display: flex; align-items: center; gap: .55rem; list-style: none; user-select: none; border-radius: var(--r-field); padding: .15rem .25rem; margin: -.15rem -.25rem; min-height: 1.9rem; flex-wrap: nowrap; }
.hints-sum:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.hints-sum::-webkit-details-marker { display: none; }
.hints-caret { color: var(--brand-ink, var(--brand)); font-size: 1.15rem; line-height: 1; transition: transform .15s ease; flex: none; }
details[open] > .hints-sum .hints-caret { transform: rotate(90deg); }
.hints-toggle-hint { margin-left: auto; font-size: .76rem; color: var(--text-dim); white-space: nowrap; }
/* Preisseite: „Alle Funktionen anzeigen" – schlanker Aufklapp-Link je Tarif-Karte. */
.price-more { margin-top: .1rem; }
.price-more__sum { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .35rem;
  color: var(--brand-ink, var(--brand)); font-size: .84rem; font-weight: 600; padding: .2rem 0; user-select: none; }
.price-more__sum::-webkit-details-marker { display: none; }
.price-more__sum::before { content: '▸'; font-size: .9em; line-height: 1; transition: transform .15s ease; }
.price-more[open] > .price-more__sum::before { transform: rotate(90deg); }

/* In-App-Monatskalender (Termine) */
.cal-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.cal-title { font-size: 1.02rem; min-width: 9.5rem; text-align: center; }
.cal-grid { display: grid; grid-template-columns: 2.2rem repeat(7, 1fr); gap: 6px; }
.cal-wd { text-align: center; font-size: .74rem; color: var(--text-dim); font-weight: 600; padding: .2rem 0; }
.cal-kw { display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--text-dim); }
.cal-day { min-height: 64px; border: 1px solid var(--border-soft); border-radius: var(--r-field); padding: .3rem .35rem; display: flex; flex-direction: column; gap: .25rem; }
.cal-day--out { opacity: .4; }
.cal-day--today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-day--has { cursor: pointer; }
.cal-day--has:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.cal-day--sel { outline: 2px solid var(--brand); outline-offset: -1px; }
.cal-day__n { font-size: .82rem; font-weight: 600; }
.cal-day--out .cal-day__n { font-weight: 400; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.cal-dot--urgent { background: var(--bad); }
.cal-dot--warn { background: var(--warn); }
.cal-dot--info { background: var(--brand); }
.cal-detail { margin-top: .9rem; border-top: 1px solid var(--border-soft); padding-top: .8rem; }
@media (max-width: 600px) { .cal-day { min-height: 48px; } .cal-title { min-width: 6.5rem; font-size: .92rem; } }

.main { padding: clamp(1.1rem, 3vw, 2.2rem); max-width: var(--maxw); width: 100%; margin: 0 auto; flex: 1; }

.appfoot {
  border-top: 1px solid var(--border-soft);
  padding: 1rem clamp(1.1rem, 3vw, 2.2rem);   /* Seiten-Padding wie .main (sonst wirkt der Footer breiter) */
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--text-dim); line-height: 1.4;
}
.appfoot__links { white-space: nowrap; }
/* Fußzeile einheitlich gedämpft; Akzent nur beim Hover (keine bunten Misch-Farben). */
.appfoot a { color: var(--text-dim); text-decoration: none; }
.appfoot a:hover { color: var(--brand-ink); text-decoration: underline; }
@media (max-width: 920px) { .appfoot { margin-bottom: 5rem; } }
/* Desktop: Fußzeile mit Rechtshinweis bleibt als schmale Leiste immer sichtbar
   (sticky am unteren Rand). Auf Mobil NICHT sticky, sonst Überlappung mit der
   unteren Navigationsleiste (botnav). */
@media (min-width: 921px) {
  .appfoot {
    position: sticky; bottom: 0; z-index: 25;
    max-width: none; margin: 0;
    min-height: 48px; padding: 0 clamp(1rem, 3vw, 2rem);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px) saturate(140%);
  }
}
section.view { animation: rise .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- Bits */
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--brand-ink); font-weight: 700; }
.muted { color: var(--text-soft); }
.dim { color: var(--text-dim); }
.lead { font-size: 1.08rem; color: var(--text-soft); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.right { margin-left: auto; }
.grid { display: grid; gap: 1rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.25rem; box-shadow: var(--shadow-sm);
}
.card--pad-lg { padding: 1.5rem 1.6rem; }
.card--glass { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(var(--glass-blur)); }
.card h3 { margin-bottom: .2rem; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
}
.pill--brand { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: color-mix(in srgb, var(--brand) 65%, var(--text)); }
.pill--mint  { background: var(--good-fl); border-color: var(--good-li); color: var(--good); }
.pill--amber { background: var(--warn-fl); border-color: var(--warn-li); color: var(--warn); }
.pill--rose  { background: var(--bad-fl);  border-color: var(--bad-li);  color: var(--bad); }
/* Premium-Chip: gefüllter Marken-Verlauf (kein Braun/Amber), kleines Schloss – dezent, aber klar als Upgrade erkennbar. */
.pill--premium { background: var(--grad-brand); border-color: transparent; color: var(--brand-contrast); box-shadow: 0 4px 12px -7px var(--brand-glow); font-size: .72rem; padding: .22rem .55rem; gap: .3rem; }
.pill--premium .ic { width: 13px; height: 13px; }
/* Die Status-Familien-Tokens sind seit dem ONE-Standard selbst theme-abhängig –
   die früheren Hellmodus-Sonderregeln für Pills/Metriken sind damit entfallen. */

.tag { font-size: .72rem; color: var(--text-dim); background: var(--surface-2); border:1px solid var(--border-soft); padding: .15rem .5rem; border-radius: 7px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.05rem; border-radius: var(--r-card); font-weight: 700; font-size: .94rem;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
  user-select: none; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--grad-brand); border: 1px solid transparent; color: var(--brand-contrast); box-shadow: 0 12px 28px -12px var(--brand-glow); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; }
.btn--sm { padding: .42rem .72rem; font-size: .84rem; border-radius: var(--r-field); }
.btn--lg { padding: .9rem 1.4rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
/* Touch-Geräte: komfortable Mindest-Trefferfläche für ALLE Buttons (Apple-Richtwert ~44px).
   Greift global – Rechner-Aktionszeilen, Admin, Dialoge usw. profitieren ohne Einzeländerung. */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; padding-top: .55rem; padding-bottom: .55rem; }
  input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; }
  input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; }
}
/* Kontext-Karte „Rechnen für" im Rechner: auf schmalen Screens einklappbar, damit das
   Ergebnis schneller sichtbar ist; die Zusammenfassung zeigt den aktuellen Kontext. */
.ctx-pick { padding: .55rem .9rem; }
.ctx-pick > summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font-weight: 700; font-size: .92rem; }
.ctx-pick > summary::-webkit-details-marker { display: none; }
.ctx-pick > summary .ctx-cur { margin-left: auto; color: var(--text-dim); font-weight: 600; font-size: .82rem; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-pick > summary .ctx-chev { width: 18px; height: 18px; color: var(--text-dim); transition: transform .2s; flex: none; }
.ctx-pick[open] > summary .ctx-chev { transform: rotate(90deg); }
.ctx-pick[open] > summary { margin-bottom: .6rem; }
.ctx-pick__body { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
/* Aktionszeile: alle Buttons gleich breit & gleich hoch (auch der shareMenu-Wrapper .acct) */
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .6rem; align-items: stretch; }
.btn-row > * { min-width: 0; }
.btn-row > .btn, .btn-row > .acct, .btn-row > .acct > .btn { width: 100%; }
/* Label darf in der Aktionszeile umbrechen statt über den Button-Rand zu laufen */
.btn-row .btn { height: 100%; white-space: normal; text-align: center; line-height: 1.2; }
/* kleine Buttons in der Aktionszeile auf Normalmaß → einheitliche Höhe/Optik */
.btn-row .btn--sm { padding: .7rem 1.05rem; font-size: .94rem; border-radius: var(--r-card); }

.iconbtn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; color: var(--text-soft);
}
.iconbtn:hover { color: var(--text); background: var(--surface-3); }
.iconbtn .ic { width: 20px; height: 20px; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.field .hint { font-size: .76rem; color: var(--text-dim); }
.input, select.input, textarea.input {
  width: 100%; padding: .68rem .8rem; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-field); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input--money { font-variant-numeric: tabular-nums; }
.inputgroup { display: flex; align-items: stretch; }
.inputgroup .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.inputgroup .suffix {
  display: grid; place-items: center; padding: 0 .8rem; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border); border-left: none;
  border-top-right-radius: 11px; border-bottom-right-radius: 11px; font-weight: 600; font-size: .9rem;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--surface-3); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-brand); border: 3px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); cursor: grab;
}

/* Segmented control */
.seg { display: flex; flex-wrap: wrap; padding: 4px; gap: 4px; background: var(--surface-2); border:1px solid var(--border); border-radius: 13px; }
.seg__btn {
  padding: .5rem .85rem; border-radius: var(--r-field); border: 1px solid transparent; background: transparent;
  color: var(--text-soft); font-weight: 600; cursor: pointer; font-size: .88rem;
  transition: background .12s, color .12s, border-color .12s;
}
.seg__btn--active { background: var(--surface); color: var(--text); border-color: var(--brand); box-shadow: var(--shadow-sm); font-weight: 700; }
/* Voll-breite, gleich große Segmente (z. B. „Mit Makler / Provisionsfrei") */
.seg--fill { flex-wrap: nowrap; width: 100%; }
.seg--fill .seg__btn { flex: 1 1 0; min-width: 0; text-align: center; }
/* Such-Combobox (z. B. Städte): Live-Trefferliste direkt unter dem Suchfeld */
.combo { position: relative; }
.combo__list { display: flex; flex-direction: column; gap: 2px; margin-top: .4rem; max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); padding: 4px; box-shadow: var(--shadow-sm); }
.combo__item { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .6rem .7rem; border: none; background: transparent; color: var(--text); border-radius: 9px; cursor: pointer; font-size: .9rem; }
.combo__item:hover { background: var(--surface-2); }
.combo__empty { padding: .6rem .7rem; font-size: .85rem; color: var(--text-soft); }
/* „Mehr"-Menü: klappt über der Fußleiste nach oben auf, Fußleisten-Farbe, Breite = Inhalt */
.moremenu-back { position: fixed; inset: 0; z-index: 120; opacity: 0; transition: opacity .18s ease;
  background: color-mix(in srgb, var(--bg) 38%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.moremenu-back--open { opacity: 1; }
/* Milchglas hinter dem Konto-Menü (oben rechts) – Chrome bleibt scharf, Inhalt frostet */
.acct-back { position: fixed; inset: 0; z-index: 25; opacity: 0; transition: opacity .18s ease;
  background: color-mix(in srgb, var(--bg) 38%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.acct-back--open { opacity: 1; }
.moremenu { position: fixed; right: 0; z-index: 121; /* bottom + max-height per JS */
  width: max-content; max-width: 100vw; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: .1rem; padding: .35rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-right: none; border-bottom: none; border-radius: 16px 0 0 0; box-shadow: var(--shadow);
  transform: translateY(10px) scale(.98); opacity: 0; transform-origin: bottom right;
  transition: transform .16s ease, opacity .16s ease; }
.moremenu--open { transform: none; opacity: 1; }
.sheet__item { display: flex; align-items: center; gap: .7rem; padding: .62rem .7rem; border-radius: 11px;
  color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.sheet__item:active { background: var(--surface-2); }
@media (hover: hover) { .sheet__item:hover { background: var(--surface-2); } }
.sheet__item .ic { width: 20px; height: 20px; color: var(--text-soft); flex: 0 0 auto; }
.stepbtn {
  flex: 0 0 auto; min-width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface-2); color: var(--text); font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; user-select: none; -webkit-user-select: none;
}
.stepbtn:hover { border-color: var(--brand); }
.stepbtn:active { transform: translateY(1px); }

/* Choice cards */
.choices { display: grid; gap: .7rem; }
.choice {
  display: flex; gap: .9rem; align-items: flex-start; text-align: left; width: 100%;
  padding: 1rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .08s, background .15s;
}
@media (hover: hover) { .choice:hover { border-color: var(--brand); background: var(--surface-2); } }
.choice:active { transform: translateY(1px); }
.choice--active { border-color: var(--brand); box-shadow: var(--ring); background: var(--surface-2); }
.choice__ic { width: 42px; height: 42px; border-radius: var(--r-card); flex: none; display: grid; place-items: center; background: var(--surface-2); }
.choice__ic .ic { width: 22px; height: 22px; color: var(--brand-ink); }
.choice__title { display: block; font-weight: 700; line-height: 1.3; }
.choice__desc { display: block; margin-top: .15rem; font-size: .85rem; color: var(--text-soft); line-height: 1.4; }

/* Stat / metric */
.metric { display: flex; flex-direction: column; gap: .2rem; }
.metric__label { font-size: .8rem; color: var(--text-dim); font-weight: 600; }
.metric__value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric__value--lg { font-size: 2.3rem; }
.metric__sub { font-size: .8rem; color: var(--text-soft); }
.metric--good .metric__value { color: var(--good); }
.metric--bad .metric__value { color: var(--bad); }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--border-soft); }
.kv:last-child { border-bottom: none; }
.kv__k { color: var(--text-soft); }
.kv__v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv--total { border-top: 2px solid var(--border); margin-top: .3rem; padding-top: .7rem; }
.kv--total .kv__k { color: var(--text); font-weight: 700; }
.kv--total .kv__v { font-size: 1.15rem; color: var(--brand-ink); }

/* Progress */
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); transition: width .5s cubic-bezier(.2,.7,.2,1); }

.bar-track { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; }
.bar-track > span { height: 100%; }

/* ---- Ergebnis-Dashboard (Kapitalanlage & Mehrfamilienhaus) ---- */
.dash-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.1rem; }
.dash-hero__cell { border-radius: var(--radius); padding: 1.5rem 1.6rem; border: 1px solid var(--border); background: var(--surface-2); position: relative; overflow: hidden; }
.dash-hero__cell::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; opacity: .12; background: currentColor; pointer-events: none; }
.dash-hero__cell--good  { border-color: var(--good-li); background: var(--good-fl); color: var(--good); }
.dash-hero__cell--bad   { border-color: var(--bad-li);  background: var(--bad-fl);  color: var(--bad); }
.dash-hero__cell--brand { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent); color: var(--brand-ink); }
.dash-hero__label { font-size: .82rem; color: var(--text-soft); font-weight: 600; display: flex; align-items: center; gap: .45rem; position: relative; z-index: 1; }
.dash-hero__label .ic { width: 18px; height: 18px; color: inherit; }
.dash-hero__value { font-size: 2.6rem; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.04; margin-top: .25rem; color: var(--text); position: relative; z-index: 1; }
.dash-hero__cell--good .dash-hero__value { color: var(--good); }
.dash-hero__cell--bad  .dash-hero__value { color: var(--bad); }
.dash-hero__cell--brand .dash-hero__value { color: var(--text); }
.dash-hero__sub { font-size: .82rem; color: var(--text-soft); margin-top: .35rem; position: relative; z-index: 1; }
.dash-hero__badge { display: inline-flex; align-items: center; gap: .3rem; margin-top: .55rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: color-mix(in srgb, currentColor 18%, transparent); color: inherit; position: relative; z-index: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.stat { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-soft); }
.stat__ic { width: 42px; height: 42px; border-radius: var(--r-card); display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.stat__ic .ic { width: 21px; height: 21px; }
.stat__ic--good { background: var(--good-fl); color: var(--good); }
.stat__ic--bad  { background: var(--bad-fl);  color: var(--bad); }
.stat__label { font-size: .78rem; color: var(--text-dim); font-weight: 600; line-height: 1.25; }
.stat__value { font-size: 1.34rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2; margin-top: .1rem; }
.stat__value--good { color: var(--good); }
.stat__value--bad  { color: var(--bad); }
.stat__sub { font-size: .72rem; color: var(--text-soft); margin-top: .05rem; }

.dash-head { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.dash-head .ic { width: 22px; height: 22px; color: var(--brand-ink); }
.dash-head strong { font-size: 1.2rem; font-weight: 700; }
.dash-head .legend { margin-left: auto; }

/* Großer Kopf des Ergebnisbereichs */
.dash-title { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dash-title .ic { width: 26px; height: 26px; color: var(--brand-ink); }
.dash-title strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; }

@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-hero__value { font-size: 2.2rem; }
  .dash-title strong { font-size: 1.3rem; }
}

/* Sondertilgungs-Zeitachse (Szenario): ziehbare Jahres-Balken */
.sptl-field { display: flex; flex-direction: column; gap: .35rem; }
.sptl__chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: .45rem; background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: var(--r-field); }
.sptl__bar { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; background: var(--surface-3); border-radius: 6px; cursor: ns-resize; touch-action: none; transition: background .15s; }
.sptl__bar:hover { background: color-mix(in srgb, var(--brand) 18%, var(--surface-3)); }
.sptl__bar:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sptl__fill { display: block; width: 100%; min-height: 2px; height: 0; background: var(--grad-brand); border-radius: 6px; pointer-events: none; }
.sptl__axis { display: flex; gap: 4px; }
.sptl__yr { flex: 1 1 0; text-align: center; font-size: .62rem; color: var(--text-dim); }
.sptl__foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; }
.sptl__reset { background: none; border: 0; color: var(--brand-ink); cursor: pointer; font: inherit; padding: .1rem .2rem; }
@media (prefers-reduced-motion: reduce) { .sptl__bar { transition: none; } }

/* Aufklapp-Sektionen im Objekt-Editor (Akkordeon) */
.acc-sec { border: 1px solid var(--surface-3); border-radius: var(--r-field); background: var(--surface-2); margin-top: .6rem; overflow: hidden; }
.acc-sec__sum { display: flex; justify-content: space-between; align-items: center; gap: .6rem; cursor: pointer; padding: .7rem .9rem; list-style: none; user-select: none; }
.acc-sec__sum::-webkit-details-marker { display: none; }
.acc-sec__sum:hover { background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); }
.acc-sec__hint { color: var(--text-dim); font-size: .8rem; font-weight: 500; }
.acc-sec__chev { width: 18px; height: 18px; flex: 0 0 auto; color: var(--text-dim); transition: transform .2s; }
.acc-sec[open] .acc-sec__chev { transform: rotate(90deg); }
.acc-sec[open] .acc-sec__sum { border-bottom: 1px solid var(--surface-3); }
.acc-sec__body { padding: .85rem .9rem 1rem; }

/* Callout */
.callout { border-radius: var(--radius); padding: 1rem 1.1rem; border: 1px solid var(--border); background: var(--surface-2); display: flex; gap: .8rem; }
.callout .ic { width: 22px; height: 22px; flex: none; margin-top: 2px; }
/* Ein Hinweiskasten in einer Karte klebt nicht am nächsten Element (Knopfzeile, Text):
   Befund Markus 04.09.2026 (Konto → 2FA-Pflicht → „2FA einrichten" ohne Luft). Gilt nur
   für direkte Kartenkinder; .stack regelt seine Abstände selbst über --gap. */
.card > .callout:not(:last-child) { margin-bottom: .9rem; }
.callout--info  { border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.callout--good  { border-color: var(--good-li); background: var(--good-fl); }
.callout--warn  { border-color: var(--warn-li); background: var(--warn-fl); }
.callout--bad   { border-color: var(--bad-li);  background: var(--bad-fl); }
/* Tipp = Hinweis-Charakter → Akzentfamilie (ONE: hinweis ist auf den Akzent abgestimmt) */
.callout--tip   { align-items: center; border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  background: var(--brand-soft); }
.callout--tip .callout__badge { width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand-contrast);
  background: var(--grad-brand); box-shadow: 0 4px 12px -6px var(--brand-glow); }
.callout--tip .callout__badge .ic { width: 22px; height: 22px; margin: 0; }
.callout__title { font-weight: 700; margin-bottom: .3rem; }
/* Callout-Fließtext (z. B. Hinweis-Box im Ratgeber): komfortabel & bündig in der Box */
.callout .md { line-height: 1.6; }
.callout .md p { margin: 0; }
.callout .md p + p { margin-top: .55rem; }

/* Hero */
.hero { position: relative; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
              radial-gradient(120% 140% at 100% 20%, rgba(167,139,250,.18), transparent 55%),
              linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.hero .lead { max-width: 60ch; margin-top: .8rem; }
.hero__grid { position:absolute; inset:0; opacity:.4; pointer-events:none;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(70% 70% at 80% 0%, #000, transparent 70%); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: .9rem; }
.msg { display: flex; gap: .7rem; max-width: 100%; }
.msg__avatar { width: 34px; height: 34px; border-radius: var(--r-field); flex: none; display: grid; place-items: center; background: var(--surface-2); border:1px solid var(--border); }
.msg__bubble { padding: .8rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); max-width: 78%; }
.msg--user { flex-direction: row-reverse; }
.msg--user .msg__bubble { background: var(--grad-brand); color: var(--brand-contrast); border: none; }
.msg--user .msg__avatar { background: var(--brand-deep); }
.msg__bubble p + p { margin-top: .5rem; }
.typing span { display:inline-block; width:7px; height:7px; margin:0 1px; border-radius:50%; background: var(--text-dim); animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.2s } .typing span:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{ opacity:.25 } 30%{ opacity:1 } }
.suggests { display:flex; gap:.5rem; flex-wrap:wrap; }
.composer { display:flex; gap:.6rem; align-items:flex-end; }
.composer textarea { resize: none; max-height: 140px; }

/* Accordion / knowledge */
.acc { border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; background: var(--surface); }
.acc + .acc { margin-top: .7rem; }
.acc__head { display:flex; align-items:center; gap:.7rem; width:100%; padding: 1rem 1.1rem; background:none; border:none; cursor:pointer; text-align:left; color:var(--text); }
.acc__head:hover { background: var(--surface-2); }
.acc__q { font-weight: 700; flex:1; }
.acc__chev { transition: transform .2s; color: var(--text-dim); }
.acc--open .acc__chev { transform: rotate(90deg); }
.acc__body { padding: 0 1.1rem 1.1rem; color: var(--text-soft); display:none; }
.acc--open .acc__body { display:block; animation: rise .25s both; }
.acc__body p + p { margin-top:.6rem }
.acc__body ul { margin: .5rem 0 .5rem 1.1rem; }
.acc__body li { margin: .2rem 0; }

/* Artikel-Lesefluss (Ratgeber) */
.md__h { margin: 1.1rem 0 .35rem; color: var(--text); font-size: 1.05rem; }
h3.md__h { font-size: 1.18rem; }
.md p { line-height: 1.65; }
.md p + p { margin-top: .7rem; }
.md a { text-decoration: underline; text-underline-offset: 2px; }
.article { max-width: 74ch; }
.article__meta { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; margin:.2rem 0 1rem; }
.article__lead { font-size: 1.08rem; color: var(--text-soft); line-height: 1.6; }
.article__foot { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .82rem; }
.article-card { cursor: pointer; transition: border-color .15s, transform .08s; }
.article-card:hover { border-color: var(--brand); }
.article-card:active { transform: translateY(1px); }

/* Quer-Verweise auf Artikel (dezent) */
.reflist { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; background: var(--surface-2); }
.reflist__head { display:flex; align-items:center; gap:.5rem; margin-bottom:.5rem; color: var(--text-soft); font-size:.92rem; }
.reflist__head .tag { margin-left:auto; }
.reflist__items { display:flex; flex-direction:column; }
.reflist__item { display:flex; align-items:center; gap:.6rem; padding:.5rem .2rem; color: var(--text);
  border-top: 1px solid var(--border-soft); text-decoration:none; font-weight:600; font-size:.9rem; }
.reflist__item:first-child { border-top:none; }
.reflist__item:hover { color: var(--brand-ink); text-decoration:none; }
.reflist__item .reflist__title { flex:1; }
.reflist__item .ic:last-child { color: var(--text-dim); }
.reflist__item:hover .ic:last-child { color: var(--brand-ink); }

/* Stepper */
.stepper { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.stepper__dot { width: 9px; height: 9px; border-radius:50%; background: var(--surface-3); }
.stepper__dot--done { background: var(--brand); }
.stepper__dot--now { background: var(--brand); box-shadow: var(--ring); }

/* Tables */
table.tbl { width:100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align:left; padding: .55rem .6rem; border-bottom: 1px solid var(--border-soft); }
.tbl th { color: var(--text-dim); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:hover td { background: var(--surface-2); }

/* Mobil: .tbl--cards rendert jede Zeile als gestapelte Karte (Spaltenlabel vor Wert). */
@media (max-width: 600px) {
  .tbl--cards { display: block; }
  .tbl--cards thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .tbl--cards tbody, .tbl--cards tfoot { display: block; }
  .tbl--cards tr { display: block; border: 1px solid var(--border); border-radius: var(--r-card); padding: .25rem .65rem; margin-bottom: .55rem; background: var(--surface); }
  .tbl--cards tfoot tr { background: var(--surface-2); }
  .tbl--cards tr:hover td { background: transparent; }
  .tbl--cards td { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--border-soft); text-align: right; }
  .tbl--cards tr td:last-child { border-bottom: 0; }
  .tbl--cards td.num { text-align: right; }
  .tbl--cards td::before { content: attr(data-label); flex: 0 0 auto; text-align: left; color: var(--text-dim); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .tbl--cards td .input, .tbl--cards td .inputgroup { flex: 1 1 auto; min-width: 0; max-width: 60%; }
  .tbl--cards td > .btn { margin-left: auto; }
}

/* Chart */
.chart { width: 100%; }
.chart text { fill: var(--text-dim); font-size: 11px; font-family: var(--font); }
.chart .axis { stroke: var(--border); stroke-width: 1; }
.chart .grid-line { stroke: var(--border-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.legend { display:flex; gap: 1rem; flex-wrap: wrap; font-size:.82rem; color: var(--text-soft); }
.legend__item { display:flex; align-items:center; gap:.4rem; }
.legend__swatch { width: 12px; height: 12px; border-radius: 4px; }

.chart--zoom { touch-action: none; -webkit-user-select: none; user-select: none; }
.chart-tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .1s;
  transform: translate(0, -112%); z-index: 5; min-width: 104px; max-width: min(82vw, 240px);
  background: var(--surface-3); border:1px solid var(--border); border-radius: var(--r-card);
  padding:.5rem .65rem; box-shadow: var(--shadow);
}
.chart-tip__hd { font-weight: 800; font-size: .82rem; margin-bottom: .3rem; white-space: nowrap; }
.chart-tip__row { display: flex; align-items: baseline; gap: .45rem; font-size: .82rem; line-height: 1.5; }
.chart-tip__sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; align-self: center; }
.chart-tip__name { color: var(--text-dim); overflow-wrap: anywhere; }
.chart-tip__val { margin-left: auto; padding-left: .6rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-evt { font-size: 11px; font-weight: 800; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }

/* Timeline / Fahrplan */
.timeline { position: relative; margin-left: .6rem; }
.tl-item { position: relative; padding: 0 0 1.2rem 1.9rem; border-left: 2px solid var(--border); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-dot { position:absolute; left: -11px; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--border); display: grid; place-items: center; }
.tl-dot .ic { width: 12px; height: 12px; }
.tl-item--done > .tl-dot { background: var(--mint); border-color: var(--mint); color: #06121f; }
.tl-item--now > .tl-dot { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); box-shadow: var(--ring); }
.tl-item--done { border-left-color: var(--mint); }

/* Check-Item */
.chk { display:flex; gap:.7rem; align-items:flex-start; width:100%; text-align:left; padding:.55rem .2rem;
  background:none; border:none; cursor:pointer; color:var(--text); border-bottom:1px solid var(--border-soft); }
.chk:last-child { border-bottom: none; }
.chk__box { width:22px; height:22px; border-radius:7px; border:2px solid var(--border); flex:none; display:grid; place-items:center; margin-top:1px; }
.chk--done .chk__box { background: var(--mint); border-color: var(--mint); color:#06121f; }
.chk--done .chk__label { color: var(--text-dim); text-decoration: line-through; }
.chk__box .ic { width:14px; height:14px; opacity:0; }
.chk--done .chk__box .ic { opacity:1; }

/* Vergleichs-Tabelle (sticky erste Spalte) */
.cmp-wrap { overflow-x: auto; }
.cmp { border-collapse: collapse; width: 100%; min-width: 520px; }
.cmp th, .cmp td { padding: .6rem .7rem; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
.cmp th.rowhead, .cmp td.rowhead { position: sticky; left: 0; background: var(--surface); font-weight: 600; color: var(--text-soft); z-index: 1; }
.cmp td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cmp .best { color: var(--mint); font-weight: 700; }
.cmp thead th { font-size: .9rem; }
.rank-badge { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background: var(--surface-3); font-size:.78rem; font-weight:800; }
.rank-badge--1 { background: var(--grad-mint); color:#fff; }

/* Toast */
.toast-wrap { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 80; display:flex; flex-direction:column; gap:.5rem; }
.toast { background: var(--surface-3); border:1px solid var(--border); border-radius: var(--r-card); padding:.7rem 1rem; box-shadow: var(--shadow); animation: rise .25s both; max-width: 320px; font-size: .9rem; }

/* Utility grids */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split { display:grid; grid-template-columns: 1.05fr .95fr; gap: 1.2rem; align-items: start; }
/* Donut + Aufstellung (Kaufnebenkosten): feste Donut-Spalte auf Desktop, gestapelt auf Mobil. */
.split--donut { grid-template-columns: 200px 1fr; }
/* Hilfe/FAQ-Aufklapper (native <details>) */
.faq { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; cursor: pointer; font-weight: 650; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__caret { width: 18px; height: 18px; color: var(--text-dim); transition: transform .2s; flex: none; }
.faq[open] .faq__caret { transform: rotate(90deg); }
.faq[open] .faq__q { border-bottom: 1px solid var(--border-soft); }
.faq__a { padding: .6rem .9rem .8rem; color: var(--text-dim); font-size: .9rem; }
.faq__a p { margin: .3rem 0; }
/* Aktionsbutton-Reihen (Onboarding, Dashboard-Hero): auf Phones sauber full-width und
   gleich breit untereinander statt unterschiedlich breit / wild umbrechend. */
@media (max-width: 560px) {
  .onb-actions, .hero-actions, .btn-stack { flex-direction: column; align-items: stretch; }
  .onb-actions > .btn, .hero-actions > .btn,
  .btn-stack > .btn, .btn-stack > .acct, .btn-stack > .acct > .btn,
  .btn-stack > .row, .btn-stack > .row > .btn { width: 100%; justify-content: center; }
}

/* Bottom nav (mobile) */
.botnav { display: none; }

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .split, .split--donut { grid-template-columns: 1fr; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .main { padding-bottom: 6rem; }
  .botnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom));
  }
  .botnav__item { display:flex; flex-direction:column; align-items:center; gap:2px; padding:.45rem 0;
    background:none; border:none; color: var(--text-dim); font-size:.68rem; font-weight:600; cursor:pointer; }
  .botnav__item .ic { width: 22px; height: 22px; }
  .botnav__item--active { color: var(--brand-ink); }
  /* Elemente, die auf Mobil weichen sollen (z. B. „Planer starten" oben rechts –
     konkurriert mit „Anmelden"; der Planer ist über die untere Leiste erreichbar). */
  .hide-mobile { display: none !important; }
}
@media (min-width: 921px) { .only-mobile { display: none !important; } }
/* Top-rechts: „Meine Fälle" und „Planer starten" gleich breit (nur Desktop – mobil
   ist „Meine Fälle" nur ein Icon und „Planer starten" ausgeblendet). */
@media (min-width: 921px) { .acct-cta { min-width: 150px; } }

/* Effekt: Erfolgs-„Burst" (per JS nur eingefügt, wenn Effekte an UND keine Reduce-Motion).
   Deutlich sichtbar: 16 farbige Punkte fächern weit auf, dazu ein zentraler Flash-Ring. */
.fx-burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 2; }
.fx-burst i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); opacity: 0; transform: translate(-50%, -50%);
  animation: fx-burst-dot 1.2s cubic-bezier(.18,.7,.3,1) forwards; animation-delay: var(--dl, 0ms); }
@keyframes fx-burst-dot {
  0%   { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateX(10px) scale(1.15); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r, 120px)) scale(.35); }
}
/* Zentraler Flash-Ring – gibt dem Moment einen klaren „Puls". */
.fx-burst::before { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px;
  margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid var(--brand); opacity: 0;
  transform: scale(.3); animation: fx-burst-ring 1s ease-out forwards; }
@keyframes fx-burst-ring {
  0%   { opacity: .85; transform: scale(.3); }
  100% { opacity: 0;   transform: scale(7); }
}

/* Sanftes, gestaffeltes Einblenden von Ergebnis-Karten (Klasse per JS gesetzt, gated). */
.fx-rise { opacity: 0; animation: rise .5s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .fx-burst { display: none !important; }
  .fx-rise { animation: none !important; opacity: 1 !important; }
}

/* ---- Geführte Kurz-Tour (Coachmarks/Spotlight) ---- */
.tour-back { position: fixed; inset: 0; z-index: 200; }
.tour-back--interactive { pointer-events: none; }   /* „Mach-mit": Klicks/Tippen gehen an die App durch */
.tour-hole { position: fixed; display: none; border-radius: var(--r-card); pointer-events: none;
  box-shadow: 0 0 0 3px var(--brand), 0 0 0 100vmax rgba(2, 8, 20, .62); transition: all .25s ease; }
.tour-card { position: fixed; left: 50%; top: 50%; width: min(330px, 92vw); z-index: 201; pointer-events: auto;
  background: var(--surface-2, var(--surface)); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem 1.1rem; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); }
.tour-card__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.tour-card__step { font-size: .78rem; color: var(--text-soft); white-space: nowrap; }
.tour-card__text { font-size: .9rem; color: var(--text-soft); margin: .2rem 0 .85rem; }
.tour-card__row { display: flex; align-items: center; gap: .4rem; }

/* ---- Makler-Präsentationsmodus (ablenkungsarme Vollbild-Ansicht) ---- */
body.present-mode .shell { display: block; }
body.present-mode .sidebar,
body.present-mode .topbar,
body.present-mode .botnav,
body.present-mode .appfoot,
body.present-mode .lead-card { display: none !important; }
body.present-mode .main { padding: clamp(1rem, 3vw, 2.6rem); }
body.present-mode .view { max-width: 1080px; margin: 0 auto; font-size: 1.06rem; }
body.present-mode .view h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
body.present-mode .view h3 { font-size: 1.45rem; }
body.present-mode .main { padding-bottom: 88px; }   /* Platz für die Story-Leiste */
.present-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 210;
  display: flex; align-items: center; gap: .5rem; width: min(720px, 94vw); padding: .5rem .7rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2, var(--surface));
  color: var(--text); box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .5); }
.present-bar__btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
.present-bar__btn:hover { border-color: var(--brand); }
.present-bar__exit { color: var(--text-soft); }
.present-bar__label { font-size: .9rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Bild-Karte: Vorschau-Modal mit Vorlagen + Reveal ---- */
.cardimg-back { position: fixed; inset: 0; z-index: 130; background: rgba(2, 6, 23, .6); display: grid; place-items: center; padding: 1rem; }
.cardimg-modal { width: min(420px, 95vw); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .6); }
.cardimg-stage { position: relative; border-radius: var(--r-card); overflow: hidden; }
.cardimg-preview { display: block; width: 100%; border-radius: var(--r-card); }
.cardimg-preview.reveal { animation: cardimg-reveal .5s ease-out both; }
@keyframes cardimg-reveal { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.cardimg-shine { position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .28) 48%, transparent 64%); }
.cardimg-shine.run { animation: cardimg-shine .75s ease-out; }
@keyframes cardimg-shine { to { transform: translateX(130%); } }
.cardimg-tpls { display: flex; gap: .4rem; flex-wrap: wrap; margin: .25rem 0 .8rem; }
.cardimg-tpl { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font-size: .85rem; }
.cardimg-tpl--active { border-color: var(--brand); color: var(--brand); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .cardimg-preview.reveal, .cardimg-shine.run { animation: none; } }

/* ---- Skeleton-Ladezustände (statt „Lade …") ---- */
.skel-card { display: grid; gap: .6rem; }
.skel-line { height: 12px; border-radius: 6px; background: var(--border);
  background-image: linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--text) 12%, transparent) 45%, transparent 80%);
  background-size: 240% 100%; background-repeat: no-repeat; animation: skel 1.25s ease-in-out infinite; }
@keyframes skel { 0% { background-position: 140% 0; } 100% { background-position: -40% 0; } }

/* ---- Undo-Toast (mit Aktion) ---- */
.toast--action { display: flex; align-items: center; gap: .8rem; }
.toast__action { background: transparent; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; padding: .1rem .2rem; white-space: nowrap; }
.toast__action:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .skel-line { animation: none; } }

/* print */
/* Lead-/Kontaktformular */
.lead-card { border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, transparent), var(--bg-soft)); }
.lead-consent { display:flex; gap:.6rem; align-items:flex-start; margin-top:1rem; font-size:.86rem; color:var(--text-soft); cursor:pointer; }
.lead-consent input { margin-top:3px; width:18px; height:18px; flex:none; accent-color: var(--brand); }
.lead-err { margin-top:.7rem; color:#06121f; background:var(--amber); border-radius:10px; padding:.5rem .8rem; font-size:.86rem; font-weight:600; }
textarea.input { resize: vertical; }

/* Meine Fälle */
.cases-list { display:flex; flex-direction:column; }
.case-row { display:flex; align-items:center; gap:.8rem; padding:.6rem 0; border-top:1px solid var(--border-soft); }
.case-row:first-child { border-top:none; }
.case-row > div:first-child { min-width:0; }                 /* Titel/Meta darf umbrechen statt zu überlaufen */
.case-row > div:first-child strong { overflow-wrap:anywhere; }
.case-row > .row { flex:0 0 auto; justify-content:flex-end; } /* Aktionen bleiben rechts kompakt */
/* Handy: Zeile sauber stapeln – Titel oben (volle Breite), Aktionen darunter */
@media (max-width: 560px) {
  .case-row { flex-direction:column; align-items:stretch; gap:.55rem; }
  .case-row > .row { width:100%; justify-content:flex-start; gap:.4rem; }
  .case-row > .row > .btn { flex:1 1 auto; justify-content:center; }     /* Text-Aktionen teilen sich die Breite */
  .case-row > .row > .btn--icon { flex:0 0 auto; }                       /* Icon-Buttons (z. B. Papierkorb) bleiben schmal */
}

/* --- Anmeldung als Split-Karte (Familienmuster resyDict ONE, Markus 04.09.2026) ----------
   „Wir brauchen gleiche Einstiege": Aufbau, Klassen und Maße entsprechen .anmeldung-* in
   static/css/app.css des ONE-Repos (Split 1.05fr/1fr, 940 px, Radius 22, dunkles Markenpanel
   #171a21). Farben des rechten Panels kommen aus den Tokens, damit Hell/Dunkel beide passen.
   Der frühere Vollbild-Cockpit-Hintergrund (SVG-Data-URI) ist entfernt. */
.auth-screen { animation: rise .4s cubic-bezier(.2,.7,.2,1) both; width: 100%; display: flex; justify-content: center; }
.anmeldung-huelle {
  width: 100%; max-width: 940px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg, 0 24px 60px -30px rgba(2,6,23,.35));
  overflow: clip;
}
.anmeldung-marke {
  background: #171a21; color: #eef1f6;
  padding: 48px 32px;
  display: flex; flex-direction: column; gap: 32px;
}
.anmeldung-marke-kopf { display: flex; align-items: center; gap: 12px; }
.anmeldung-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.logo-wort { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.wortmarke-akzent { color: var(--brand); }
.anmeldung-marke .wortmarke-akzent { color: #9aa9ff; }
.anmeldung-marke-text h1 { font-size: 1.875rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; color: #fff; }
.anmeldung-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: #9aa9ff; margin: 0 0 12px; }
.anmeldung-unter { color: #b6bdc9; font-size: .9375rem; line-height: 1.55; margin: 0; max-width: 34ch; }
.anmeldung-marke-fuss { margin-top: auto; font-size: .7812rem; color: #7a8494; }
.anmeldung-form { padding: 48px 32px; display: flex; flex-direction: column; }
.anmeldung-form h2 { font-size: 1.625rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.anmeldung-form-unter { color: var(--text-dim); margin: 0 0 32px; }
.anmeldung-status { margin-top: 24px; font-size: .7812rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.anmeldung-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; }
.anmeldung-hinweis { margin: 12px 0 0; font-size: .82rem; }
.anmeldung-hinweis a { color: var(--text-dim); }
.anmeldung-hinweis a:hover { color: var(--brand); }
.rechtslinks-fuss { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .7812rem; margin-top: 16px; }
.rechtslinks-fuss a { color: var(--text-dim); text-decoration: none; }
.rechtslinks-fuss a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 720px) {
  .anmeldung-huelle { grid-template-columns: 1fr; max-width: 440px; }
  .anmeldung-marke { display: none; }
}
/* Auf der Anmeldeseite ist die Karte die ganze Seite: keine Seitenleiste, keine Kopfzeile,
   heller Grund – wie bei ONE. Auch der App-Fuß weicht: Datenschutz/Impressum stehen in der Karte. */
.shell:has(.auth-screen) { grid-template-columns: 1fr; }
.shell:has(.auth-screen) .sidebar, .shell:has(.auth-screen) .topbar, .shell:has(.auth-screen) .appfoot { display: none; }
/* Exakt wie ONE (.anmeldung-seite): volle Höhe, 24 px Rand, Karte in BEIDEN Achsen zentriert –
   Markus 04.09.2026: beim Wechsel zwischen den Fenstern sassen die Karten nicht identisch. */
.main:has(.auth-screen) { max-width: none; min-height: 100vh; margin: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); }

/* Druck-Kopf nur beim Drucken sichtbar */
.print-only { display: none; }
.print-head { display: none; }
.printsheet { display: none; }

@media print {
  :root {
    color-scheme: light;
    --bg:#fff; --bg-soft:#fff; --surface:#fff; --surface-2:#f7f8fa; --surface-3:#eef0f3;
    --border:#d6dce5; --border-soft:#e4e8ef; --text:#111; --text-soft:#333; --text-dim:#666;
  }
  body { background:#fff; }
  .sidebar, .topbar, .botnav, .composer, .suggests, .appfoot, .no-print { display: none !important; }
  body::before { display:none; }
  .shell { display:block; }
  .main { padding: 0; max-width: none; }
  .card { break-inside: avoid; box-shadow:none; border-color:#ddd; }
  .split { display:block !important; }
  .print-only { display: block; }
  .print-head {
    display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
    border-bottom: 2px solid #222; padding: 0 0 .5rem; margin: 0 0 1rem; color:#111;
  }
  .print-head .print-date { margin-left: auto; color:#555; }
  /* Im Druck dunkle Flächen vermeiden für lesbares PDF */
  .view, .card { color: #111; }

  /* --- Gebrandetes Ergebnis-Dossier --- */
  @page { margin: 16mm 14mm; }
  body.printing .shell, body.printing .botnav, body.printing .toast-wrap { display: none !important; }
  body.printing .printsheet { display: block; color: #111; }
  .ps-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--brand, #2b49d4); padding-bottom: 12px; margin-bottom: 18px; }
  .ps-logo { width: 54px; height: 54px; object-fit: contain; border-radius: var(--r-field); flex: none; }
  .ps-logo--mark { background: var(--brand, #2b49d4); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 26px; }
  .ps-name { font-weight: 800; font-size: 18px; color: #111; }
  .ps-product { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #666; }
  .ps-meta { margin-left: auto; text-align: right; }
  .ps-title { font-weight: 700; font-size: 16px; color: #111; }
  .ps-date { font-size: 12px; color: #666; }
  .ps-body .card { break-inside: avoid; border: 1px solid #e3e6ee; box-shadow: none; background: #fff; margin-bottom: 12px; }
  .ps-foot { margin-top: 20px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 11px; color: #555; display: flex; justify-content: space-between; gap: 1rem; }
}
