:root {
  color-scheme: light;
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --surface-2: #F0ECE3;
  --ink: #15171C;
  --ink-2: #5B606B;
  --line: #E0DBD0;
  --accent: #D63A24;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(214, 58, 36, 0.10);
  --down: #1E7A4C;
  --down-soft: rgba(30, 122, 76, 0.12);
  --field: #FFFFFF;
  --hero-bg: #15171C;
  --hero-ink: #F4F1EA;
  --hero-ink-2: #A3A7B0;
  --hero-line: #2E3139;
  --hero-accent: #FF6A55;
  --hero-down: #6FD6A2;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px rgba(20, 20, 30, 0.06);
  --nav-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-scheme="dark"] {
  color-scheme: dark;
  --bg: #101114;
  --surface: #191B20;
  --surface-2: #22252B;
  --ink: #ECEAE4;
  --ink-2: #9DA2AD;
  --line: #2C2F36;
  --accent: #FF6A55;
  --accent-ink: #15171C;
  --accent-soft: rgba(255, 106, 85, 0.13);
  --down: #5CC692;
  --down-soft: rgba(92, 198, 146, 0.13);
  --field: #14161A;
  --hero-bg: #24272E;
  --hero-ink: #F1EFEA;
  --hero-ink-2: #A3A7B0;
  --hero-line: #3A3D45;
  --hero-accent: #FF7A66;
  --nav-bg: rgba(25, 27, 32, 0.94);
  --shadow: none;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app { max-width: 1080px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
@media (min-width: 880px) { .app { padding-bottom: 48px; } }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.logo { width: 32px; height: 32px; flex: none; }
.logo rect { fill: #E34B35; }
.logo path { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-tag { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.country-pick select {
  font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 30px 7px 13px; min-height: 38px; max-width: 46vw;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.country-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Navigation: oben auf grossen Bildschirmen, unten auf dem Handy */
.tabs { display: none; }
@media (min-width: 880px) {
  .tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: max-content; }
  .tabs button { font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
  .tabs button[aria-current="page"] { background: var(--ink); color: var(--bg); }
}
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--nav-bg); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: inherit; font-size: 11px; font-weight: 650; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 0 2px;
}
.bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav circle { fill: currentColor; stroke: none; }
.bottom-nav button[aria-current="page"] { color: var(--accent); }
@media (min-width: 880px) { .bottom-nav { display: none; } }

.install-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px 10px 14px; font-size: 14px; font-weight: 600;
}

/* Raster */
.grid { display: grid; gap: 28px; }
.col { display: grid; gap: 14px; align-content: start; }
@media (min-width: 880px) {
  .grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  #view-rechner .result { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; }
}
.grid.two { gap: 14px; }
.view { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* Eingabeseite */
.stand {
  display: inline-block; margin: 2px 0 0; font-size: 12px; font-weight: 650; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--surface);
}
h1 { font-size: clamp(30px, 6.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; margin: 12px 0 10px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--ink-2); margin: 0 0 20px; max-width: 46ch; }

.quick { margin: 0 0 22px; }
.quick-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; min-height: 40px;
}
.chip:hover { border-color: var(--ink-2); }
.chip:active { transform: translateY(1px); }

.field { display: block; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type="text"] {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px;
  font-variant-numeric: tabular-nums;
}
input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input::placeholder { color: var(--ink-2); opacity: 0.6; }

.money, .pct { position: relative; display: block; }
.money .cur { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--ink-2); pointer-events: none; }
.money input { padding-left: 48px; text-align: right; }
.pct input { padding-right: 34px; text-align: right; font-size: 18px; font-weight: 700; }
.pct .unit { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); pointer-events: none; }
.wage input { font-size: 20px; font-weight: 750; min-height: 54px; }

.rows-head { display: flex; justify-content: space-between; align-items: end; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 26px 0 0; }
.rate-head { min-width: 84px; text-align: right; white-space: nowrap; }
.group-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 750; color: var(--accent); margin: 20px 0 2px; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 128px 84px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row-label { min-width: 0; }
.row-label b { display: block; font-weight: 600; font-size: 15px; }
.row-label span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.row .rate { text-align: right; padding-left: 8px; padding-right: 10px; }
.row .rate.custom { border-color: var(--accent); color: var(--accent); font-weight: 700; }
@media (max-width: 420px) {
  .row { grid-template-columns: minmax(0, 1fr) 108px 66px; gap: 6px; }
  .rate-head { min-width: 66px; }
  .row .money .cur { display: none; }
  .row .money input { padding-left: 10px; }
}
.hint { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }
.actions-inline { margin-top: 14px; }

.switch { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Knöpfe */
.btn { font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer; min-height: 48px; padding: 0 18px; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn.as-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.btn.primary { width: 100%; background: var(--accent); color: var(--accent-ink); }
.btn.secondary { flex: 1; background: var(--surface-2); color: var(--ink); border-color: var(--line); min-height: 44px; }
.btn.ghost { background: none; color: var(--ink-2); border-color: var(--line); min-height: 40px; font-weight: 600; font-size: 14px; }
.btn.ghost.danger { color: var(--accent); border-color: var(--accent-soft); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn.primary { flex: 1.4; width: auto; min-height: 44px; }

/* Karten und Ergebnis */
.result { display: grid; gap: 14px; align-content: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-title { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; margin: 0 0 4px; }
.card-lead { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }

.card.hero {
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 106, 85, 0.20), transparent 60%), var(--hero-bg);
  color: var(--hero-ink); border-color: transparent; padding: 22px 22px 20px;
}
.hero .empty p:last-child, .hero .muted { color: var(--hero-ink-2); margin: 6px 0 4px; }
.kicker { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 750; color: var(--hero-ink-2); }
.big { margin: 4px 0 0; font-size: clamp(44px, 12vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--hero-accent); }
.big.down { color: var(--hero-down); }
.big small { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--hero-ink); margin-top: 6px; }
.big.mid { font-size: clamp(30px, 8vw, 40px); letter-spacing: -0.03em; line-height: 1.08; }
.sub { margin: 10px 0 0; color: var(--hero-ink-2); }
.sub b { color: var(--hero-ink); }

.meter { display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hero-line); }
.m-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: 14px; }
.m-label { color: var(--hero-ink-2); font-weight: 600; }
.m-track { height: 10px; background: var(--hero-line); border-radius: 5px; overflow: hidden; }
.m-fill { height: 100%; border-radius: 5px; background: var(--hero-accent); }
.m-row.off .m-fill { background: var(--hero-ink-2); }
.m-fill.down { background: var(--hero-down); }
.m-val { text-align: right; font-weight: 750; }
.m-row.off .m-val { color: var(--hero-ink-2); }
.meter-note { margin: 10px 0 0; font-size: 13px; color: var(--hero-ink-2); }

.bars { display: grid; gap: 10px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 14px; }
.bar-row .r { color: var(--ink-2); }
.bar-row .v { font-weight: 750; }
.bar-row .v.down { color: var(--down); }
.bar-track { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.bar-fill.down { background: var(--down); }
.fine { font-size: 13px; color: var(--ink-2); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* Lohngespräch */
.empty-view { max-width: 560px; margin: 8px auto 0; text-align: center; }
.empty-view p { margin: 0 0 16px; color: var(--ink-2); }
.empty-view .btn { width: auto; padding: 0 24px; }
.offer-result:empty { display: none; }
.offer-result { margin-top: 14px; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.offer-grid > div { padding: 11px 13px; }
.offer-grid > div + div { border-left: 1px solid var(--line); }
.o-num { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.o-label { display: block; font-size: 12px; color: var(--ink-2); }
.verdict { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.verdict.ok { background: var(--down-soft); color: var(--down); }
.verdict.bad { background: var(--accent-soft); color: var(--accent); }
.muted-line { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.muted-line b { color: var(--ink); }
.arg { margin: 0 0 12px; padding: 14px 15px; background: var(--surface-2); border-radius: 12px; font-size: 15px; line-height: 1.55; border-left: 3px solid var(--accent); }
.check { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--ink-2); margin: 10px 0 12px; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Verlauf */
.hist-rows { border-top: 1px solid var(--line); }
.hist-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hist-row b { font-weight: 650; }
.hist-row small { display: block; font-size: 12px; color: var(--ink-2); }
.chart { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hero-line); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--hero-line); stroke-width: 1; }
.chart .axis-label { fill: var(--hero-ink-2); font-size: 13px; }
.chart .line-wage { fill: none; stroke: var(--hero-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-power { fill: none; stroke: var(--hero-ink-2); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.chart .dot { fill: var(--hero-accent); stroke: var(--hero-bg); stroke-width: 2; }
.chart .series-label { font-size: 13px; font-weight: 700; }
.chart .series-label.wage { fill: var(--hero-accent); }
.chart .series-label.power { fill: var(--hero-ink-2); }
.hero .fine-note { margin: 12px 0 0; font-size: 12px; color: var(--hero-ink-2); }
.snap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.snap:last-child { border-bottom: 0; }
.snap .s-top { font-weight: 700; }
.snap .s-sub { font-size: 13px; color: var(--ink-2); grid-column: 1; }
.snap .s-diff.up { color: var(--accent); }
.snap .s-diff.down { color: var(--down); }
.snap button { grid-row: 1 / span 2; grid-column: 2; font: inherit; font-size: 13px; color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.empty-line { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* Mehr */
.settings { display: grid; gap: 14px; max-width: 680px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg.wide { display: flex; margin-top: 8px; }
.seg button {
  flex: 1; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 650;
  padding: 7px 10px; border-radius: 999px; cursor: pointer; min-height: 36px;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.info { font-size: 14px; color: var(--ink-2); }
.info p { margin: 8px 0 0; }
.info ul { padding-left: 18px; margin: 8px 0 0; }
.info li + li { margin-top: 4px; }
.info a { color: inherit; }

/* Leiste unten auf dem Handy (über der Navigation) */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 20; max-width: 560px; margin: 0 auto; }
.dock button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  background: var(--hero-bg); color: var(--hero-ink); border: 0; border-radius: 16px; padding: 9px 16px; min-height: 54px;
  font: inherit; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.d-left { display: grid; }
.d-num { color: var(--hero-accent); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.d-num.down { color: var(--hero-down); }
.d-sub { font-size: 12px; color: var(--hero-ink-2); }
.d-go { font-weight: 700; font-size: 14px; white-space: nowrap; }
@media (min-width: 880px) { .dock { display: none !important; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 880px) { .toast { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.report { display: none; }

@media print {
  @page { size: A4; margin: 18mm; }
  body, :root[data-scheme="dark"] body { background: #fff; color: #000; font-size: 11pt; }
  .app, .dock, .toast, .bottom-nav { display: none !important; }
  .report { display: block; }
  .report h1 { font-size: 20pt; margin: 0 0 2mm; letter-spacing: -0.01em; }
  .report .meta { color: #444; margin: 0 0 8mm; }
  .report .headline { border: 1.5pt solid #000; padding: 5mm 6mm; margin-bottom: 7mm; }
  .report .headline .n { font-size: 26pt; font-weight: 800; letter-spacing: -0.02em; }
  .report .headline p { margin: 1mm 0 0; }
  .report h2 { font-size: 10pt; color: #000; margin: 7mm 0 2mm; }
  .report table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .report th, .report td { text-align: right; padding: 1.6mm 2mm; border-bottom: 0.5pt solid #999; }
  .report th:first-child, .report td:first-child { text-align: left; padding-left: 0; }
  .report th { font-weight: 700; border-bottom: 1pt solid #000; }
  .report tfoot td { font-weight: 700; border-bottom: 0; border-top: 1pt solid #000; }
  .report .argp { margin: 0; line-height: 1.5; }
  .report .small { font-size: 8.5pt; color: #444; }
  .report ul { padding-left: 5mm; margin: 0; }
}

/* =========================================================
   Reallohn Design Refresh 2026
   UI-only layer: calculation logic and markup remain unchanged.
   ========================================================= */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1eee8;
  --ink: #15171c;
  --ink-2: #69707b;
  --line: #e5e1d9;
  --accent: #e34b35;
  --accent-ink: #ffffff;
  --accent-soft: rgba(227, 75, 53, .09);
  --down: #168253;
  --down-soft: rgba(22, 130, 83, .10);
  --field: #ffffff;
  --hero-bg: #111318;
  --hero-ink: #fbfaf7;
  --hero-ink-2: #a8adb7;
  --hero-line: #30343d;
  --hero-accent: #ff765f;
  --hero-down: #72d6a4;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(18,20,26,.03), 0 14px 40px rgba(18,20,26,.07);
}

body {
  background:
    radial-gradient(circle at 15% -10%, rgba(227,75,53,.055), transparent 28rem),
    var(--bg);
  letter-spacing: -.005em;
}

.app {
  max-width: 1180px;
  padding-left: 22px;
  padding-right: 22px;
}

.top {
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(229,225,217,.75);
  margin-bottom: 18px;
}

.brand {
  gap: 10px;
  font-size: 18px;
  letter-spacing: -.025em;
}

.logo {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.08));
}

.seg {
  padding: 4px;
  box-shadow: 0 3px 12px rgba(18,20,26,.04);
}

.seg button {
  min-height: 36px;
  padding: 7px 15px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.install-banner {
  border: 1px solid rgba(227,75,53,.14);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(227,75,53,.05);
}

.grid {
  gap: 34px;
}

@media (min-width: 880px) {
  .grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 54px;
  }

  .result {
    top: 18px;
    max-height: calc(100vh - 36px);
  }
}

.stand {
  margin-top: 8px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 2px 8px rgba(18,20,26,.03);
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: .99;
  letter-spacing: -.055em;
  margin: 18px 0 14px;
}

h1 em {
  color: var(--accent);
  position: relative;
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 58ch;
  margin-bottom: 26px;
}

.quick {
  margin: 0 0 28px;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
  border-radius: 18px;
}

.quick-label {
  margin: 0 0 10px 2px;
}

.chips {
  gap: 9px;
}

.chip {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 13px;
  min-height: 42px;
  padding: 9px 14px;
  box-shadow: 0 2px 8px rgba(18,20,26,.025);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.chip:hover {
  border-color: rgba(227,75,53,.42);
  box-shadow: 0 5px 16px rgba(18,20,26,.07);
  transform: translateY(-1px);
}

.field-label {
  margin-bottom: 7px;
  letter-spacing: .005em;
}

input[type="text"] {
  border-radius: 14px;
  border-color: var(--line);
  min-height: 50px;
  box-shadow: inset 0 1px 1px rgba(18,20,26,.025);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(227,75,53,.7);
  box-shadow: 0 0 0 4px rgba(227,75,53,.10);
}

.wage input {
  min-height: 62px;
  font-size: 23px;
  border-radius: 16px;
}

.rows-head {
  margin-top: 30px;
  padding: 0 2px 9px;
}

.rows {
  border-top: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.48);
}

.group-title {
  margin: 22px 3px 7px;
  font-size: 11px;
  letter-spacing: .13em;
}

.row {
  padding: 11px 12px;
  border-bottom-color: var(--line);
  transition: background .16s ease;
}

.row:hover {
  background: rgba(227,75,53,.025);
}

.row:last-child {
  border-bottom: 0;
}

.row-label b {
  font-weight: 650;
}

.row .money input,
.row .rate {
  border-radius: 11px;
}

.row .rate.custom {
  box-shadow: 0 0 0 3px rgba(227,75,53,.07);
}

.hint {
  margin: 14px 3px 0;
  line-height: 1.5;
}

.btn {
  border-radius: 14px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  box-shadow: 0 8px 20px rgba(227,75,53,.20);
}

.btn.primary:hover {
  box-shadow: 0 11px 26px rgba(227,75,53,.27);
}

.btn.secondary {
  border-radius: 13px;
}

.btn.ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.result {
  gap: 16px;
}

.card {
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 18px;
  letter-spacing: -.025em;
}

.card-lead {
  line-height: 1.5;
}

.card.hero {
  min-height: 265px;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(255,118,95,.22), transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(255,255,255,.045), transparent 55%),
    var(--hero-bg);
  box-shadow: 0 18px 48px rgba(17,19,24,.18);
}

.kicker {
  letter-spacing: .13em;
}

.big {
  font-size: clamp(50px, 7vw, 76px);
  letter-spacing: -.065em;
  margin-top: 8px;
}

.big small {
  font-size: 18px;
  margin-top: 9px;
}

.sub {
  font-size: 14px;
  line-height: 1.5;
  max-width: 48ch;
}

.meter {
  margin-top: 23px;
  padding-top: 18px;
}

.m-track {
  height: 9px;
  border-radius: 999px;
}

.m-fill {
  border-radius: 999px;
}

.bars {
  gap: 13px;
}

.bar-row {
  padding: 2px 0;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
}

.bar-fill {
  border-radius: 999px;
}

.offer-grid {
  border-radius: 14px;
  background: var(--surface-2);
}

.offer-grid > div {
  padding: 14px;
  background: rgba(255,255,255,.45);
}

.verdict {
  border-radius: 14px;
}

.arg {
  border-left-width: 4px;
  border-radius: 14px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(18,20,26,.02);
}

.pdf-box {
  margin-top: 20px;
}

.about {
  padding: 4px 5px;
}

.about summary {
  padding: 9px 0;
}

.privacy {
  opacity: .8;
}

.dock {
  left: 14px;
  right: 14px;
}

.dock button {
  border-radius: 18px;
  min-height: 62px;
  padding: 11px 17px;
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}

.toast {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

@media (max-width: 879px) {
  .app {
    padding-left: 15px;
    padding-right: 15px;
  }

  .top {
    padding-top: 13px;
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .lead {
    font-size: 16px;
  }

  .card.hero {
    border-radius: 21px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: card-in .35s ease both;
  }

  .result .card:nth-child(2) { animation-delay: .04s; }
  .result .card:nth-child(3) { animation-delay: .08s; }
  .result .card:nth-child(4) { animation-delay: .12s; }

  @keyframes card-in {
    from { opacity: .7; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

:root[data-scheme="dark"] {
  --bg: #0e1013;
  --surface: #17191e;
  --surface-2: #20232a;
  --ink: #f0eee8;
  --ink-2: #a3a8b2;
  --line: #2d3037;
  --accent: #ff705a;
  --accent-soft: rgba(255,112,90,.12);
  --field: #131519;
  --hero-bg: #191c22;
  --hero-ink: #f7f5ef;
  --hero-ink-2: #a8adb7;
  --hero-line: #383c45;
  --shadow: 0 12px 38px rgba(0,0,0,.24);
}

:root[data-scheme="dark"] body {
  background:
    radial-gradient(circle at 15% -10%, rgba(255,112,90,.07), transparent 28rem),
    var(--bg);
}

:root[data-scheme="dark"] .top {
  border-bottom-color: rgba(45,48,55,.75);
}

:root[data-scheme="dark"] .stand,
:root[data-scheme="dark"] .quick,
:root[data-scheme="dark"] .chip {
  background: rgba(23,25,30,.82);
}

:root[data-scheme="dark"] .rows {
  background: rgba(23,25,30,.5);
}

:root[data-scheme="dark"] .row:hover {
  background: rgba(255,112,90,.045);
}

@media (max-width: 420px) {
  .quick {
    padding: 13px;
  }

  .row {
    padding-left: 9px;
    padding-right: 9px;
  }

  .card {
    padding: 18px;
  }

  .card.hero {
    padding: 21px;
  }
}

/* =========================================================
   Korrekturen zum Design-Refresh (Dunkelmodus, Fokus)
   Der Refresh setzt einige Farben nur für hell; hier die dunklen Werte.
   ========================================================= */

:root[data-scheme="dark"] {
  --accent-ink: #15171c;
  --down: #5cc692;
  --down-soft: rgba(92, 198, 146, .13);
  --hero-accent: #ff7a66;
  --hero-down: #6fd6a2;
}

:root[data-scheme="dark"] .offer-grid > div {
  background: rgba(23, 25, 30, .5);
}

/* Sichtbarer Fokus für Tastatur-Bedienung */
input[type="text"]:focus {
  box-shadow: 0 0 0 3px rgba(227, 75, 53, .35);
}

.btn:focus-visible,
.chip:focus-visible,
.seg button:focus-visible,
.tabs button:focus-visible,
.bottom-nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   Neue Elemente: Fortschritt, Budget, Einmalzahlung, Forderung,
   letzte Lohnerhöhung, Rückgängig, Sicherung
   ========================================================= */

.progress { display: block; font-weight: 500; }
.rate-head { flex: none; }
.budget { margin: 6px 0 2px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.field.extra { margin-top: 12px; }
.verdict.warn { background: var(--surface-2); color: var(--ink); border-left: 4px solid var(--accent); }
.fine-line { margin: 8px 0 0; font-size: 12px; color: var(--ink-2); }

.select {
  width: 100%; font: inherit; color: var(--ink); cursor: pointer;
  background-color: var(--field); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 36px 11px 12px; min-height: 50px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-row.wrap { flex-wrap: wrap; }
.btn-row.wrap .btn { flex: 1 1 auto; }

.toast { width: max-content; }
.toast.has-action { display: flex; align-items: center; gap: 12px; pointer-events: auto; padding: 6px 8px 6px 16px; text-align: left; }
.toast button {
  flex: none; font: inherit; font-size: 14px; font-weight: 750; color: inherit; cursor: pointer;
  background: none; border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px; min-height: 34px;
}
.toast button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mehr: Karten nie breiter als der Bildschirm */
.settings { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 879px) {
  .seg button { padding: 7px 8px; }
}

/* =========================================================
   Neue Elemente: Gruppen, Rate-Etikett, Brutto, CSV-Import,
   Mietzins-Check, Erinnerung, Rangliste, Einstieg
   ========================================================= */

.btn.slim { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Gruppen einklappbar, mit Summe */
.group-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 18px 0 7px; padding: 6px 3px; min-height: 40px;
  font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.group-head .group-title { margin: 0; flex: 1; min-width: 0; }
.group-sum { font-size: 13px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.group-head[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.group-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* Zeile: Rate als kleines Etikett, antippen macht ein Feld daraus */
.row { grid-template-columns: minmax(0, 1fr) 128px 84px; }
.rate-cell { display: flex; justify-content: flex-end; }
.rate-cell .rate { width: 100%; }
.rate-chip {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  min-height: 40px; min-width: 66px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid transparent; white-space: nowrap;
}
.rate-chip:hover { border-color: var(--line); color: var(--ink); }
.rate-chip.custom { color: var(--accent); background: var(--accent-soft); border-color: rgba(227, 75, 53, .3); }
.rate-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row-label .variant {
  display: block; margin-top: 4px; max-width: 100%;
  font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; min-height: 32px;
}
@media (max-width: 420px) {
  .row { grid-template-columns: minmax(0, 1fr) 104px 70px; }
  .rate-chip { min-width: 0; width: 100%; padding: 0 6px; font-size: 13px; }
}

/* Brutto (aufklappbar) */
.gross { margin-top: 10px; }
.gross summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 650; color: var(--ink-2);
}
.gross summary::-webkit-details-marker { display: none; }
.gross summary::before {
  content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-weight: 800; color: var(--accent); background: var(--accent-soft);
}
.gross[open] summary::before { content: "−"; }
.gross summary:hover { color: var(--ink); }
.gross summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.gross .field { margin-top: 6px; }
.gross .hint { margin-top: 8px; }
.gross-line { margin-top: 4px; }

/* CSV-Import */
.csv-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.csv-panel { margin: -12px 0 28px; }
.file-pick { position: relative; display: inline-flex; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick .btn { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0 18px; }
.file-pick input:focus-visible + .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.csv-result:empty { display: none; }
.csv-result { margin-top: 12px; }
.csv-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.csv-table th, .csv-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.csv-table th:first-child, .csv-table td:first-child { text-align: left; padding-left: 0; }
.csv-table th { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.csv-result .check { align-items: flex-start; }
.csv-result .check input { margin-top: 2px; flex: none; }
.csv-result .btn-row { margin-top: 12px; }

/* Ergebnis-Knöpfe: drei Knöpfe, der Hauptknopf auf eigener Zeile */
#resultActions { flex-wrap: wrap; }
#resultActions .btn.secondary { flex: 1 1 140px; }
#resultActions .btn.primary { flex: 1 1 100%; }

/* Mietzins-Check */
.form-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.field-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.rent-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.rent-lines li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.rent-lines li.total { color: var(--ink); font-weight: 700; border-bottom: 0; }
.verdict.neutral { background: var(--surface-2); color: var(--ink); }
#rentResult .verdict { font-weight: 600; line-height: 1.5; }
.muted-line.small { font-size: 12px; line-height: 1.5; }
.muted-line a { color: inherit; }

/* Erinnerung */
.input {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; min-height: 50px;
}
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Europa-Rangliste */
.rank-list { display: grid; gap: 2px; margin-bottom: 12px; }
.rank-row { display: grid; grid-template-columns: 24px minmax(7.5em, 1.3fr) minmax(48px, 1fr) 54px; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 10px; font-size: 14px; }
.rank-row .rk { color: var(--ink-2); font-size: 12px; text-align: right; }
.rank-row .rn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .rb { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.rank-row .rf { display: block; height: 100%; background: var(--ink-2); border-radius: 999px; opacity: .55; }
.rank-row .rf.down { background: var(--down); opacity: 1; }
.rank-row .rf.over { background-image: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(255, 255, 255, .45) 4px 6px); }
.rank-row .rv { text-align: right; font-weight: 650; }
.rank-row.mine { background: var(--surface-2); font-weight: 700; }
.rank-row.mine .rf { background: var(--ink); opacity: 1; }
.rank-row.you { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.rank-row.you .rk { color: var(--accent); }
.rank-row.you .rf { background: var(--accent); opacity: 1; }

/* Einstieg beim ersten Öffnen */
body.no-scroll { overflow: hidden; }
.onboard {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow-y: auto;
  padding: 16px; background: rgba(14, 16, 19, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ob-card {
  width: 100%; max-width: 460px; margin: auto; padding: 26px 22px 22px;
  background: var(--surface); color: var(--ink); border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.ob-logo { width: 44px; height: 44px; }
.ob-card h2 { font-size: clamp(24px, 6.4vw, 30px); line-height: 1.08; letter-spacing: -.04em; margin: 14px 0 16px; text-wrap: balance; }
.ob-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; counter-reset: ob; }
.ob-points li { position: relative; padding-left: 38px; font-size: 14px; color: var(--ink-2); line-height: 1.45; counter-increment: ob; }
.ob-points li::before {
  content: counter(ob); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--accent); background: var(--accent-soft);
}
.ob-points b { display: block; color: var(--ink); font-size: 15px; }
.ob-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ob-card .btn-row .btn.primary { flex: 1 1 100%; }
.ob-card .btn-row .btn.secondary { flex: 1 1 100%; }
@media (max-width: 360px) { .ob-picks { grid-template-columns: 1fr; } }

/* Hinweis «neue Zahlen» */
.news {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start;
  margin: 14px 0 0; padding: 14px 16px; border-radius: 16px;
  background: var(--accent-soft); border: 1px solid rgba(227, 75, 53, .18);
}
.news svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.news .btn { grid-column: 2; justify-self: start; margin-top: 6px; }

/* Krankenkasse */
#kkCard .muted-line { margin: 0 0 14px; }
#kkCard .btn { flex: 1 1 180px; }
.news .btn { background: var(--surface); color: var(--ink); }

/* Lohnrunden */
.wr-list { display: grid; gap: 4px; }
.wr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.wr-l b { display: block; font-size: 14px; font-weight: 650; }
.wr-l small { display: block; font-size: 12px; color: var(--ink-2); }
.wr-v { font-weight: 750; }
.wr-bar { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.wr-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink-2); opacity: .55; }
.wr-row.demand .wr-bar span { background: transparent; opacity: 1; border: 1.5px dashed var(--ink-2); box-sizing: border-box; }
.wr-row.you { background: var(--accent-soft); }
.wr-row.you b, .wr-row.you .wr-v { color: var(--accent); }
.wr-row.you .wr-bar span { background: var(--accent); opacity: 1; }

/* Handy: Spalten nie breiter als der Bildschirm (sonst bestimmt der breiteste Inhalt die Spalte) */
@media (max-width: 879px) {
  .grid, .grid.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .rank-row { grid-template-columns: 20px minmax(0, 1.4fr) minmax(32px, 1fr) 50px; gap: 8px; }
}

/* Geteiltes Ergebnis */
.card.shared { margin-bottom: 22px; min-height: 0; }
.shared-drivers { list-style: none; margin: 16px 0 18px; padding: 14px 0 0; border-top: 1px solid var(--hero-line); display: grid; gap: 6px; }
.shared-drivers li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.shared-drivers b { color: var(--hero-accent); }

/* Haushalte */
.hh-pick { margin-bottom: 14px; }
.hh-list { display: grid; gap: 8px; margin-bottom: 12px; }
.hh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.hh-row input { min-height: 44px; }
.hh-tag { font-size: 13px; font-weight: 700; color: var(--accent); padding: 0 6px; white-space: nowrap; }
.hh-del { min-width: 40px; padding: 0 10px; font-size: 18px; }

/* Arbeitsweg */
.commute { margin-top: 14px; }
.commute .form-grid { margin-top: 8px; }
.commute .muted-line { margin: 12px 0; }

/* Jahresrückblick */
.spark { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.commute .form-grid { grid-template-columns: 1fr 1fr; align-items: end; }

/* PayPace Plus */
body.no-plus .plus-only { display: none !important; }
body:not(.no-plus) .plus-teaser { display: none !important; }
.plus-badge {
  display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
}
.plus-teaser .btn.primary { margin-top: 4px; }
.teaser-arg { position: relative; max-height: 4.8em; overflow: hidden; }
.teaser-arg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(transparent, var(--surface-2)); }
.plus-card { position: relative; }
.plus-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  font: inherit; font-size: 22px; line-height: 1; color: var(--ink-2); background: var(--surface-2); border: 0; cursor: pointer;
}
.plus-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plus-card h2 { font-size: clamp(24px, 6vw, 28px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; }
.plus-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.plus-list li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.45; }
.plus-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.plus-active { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-weight: 700; background: var(--down-soft); color: var(--down); }
#plusBuy { width: 100%; }
.plus-code { margin-top: 12px; }
.plus-code summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.plus-code .field { margin: 6px 0 10px; }
.plus-code input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }

/* Diesen Monat */
.month-card { margin: 0 0 24px; padding: 16px 18px; }
.kicker-plain { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.month-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.month-item:first-child { border-top: 0; padding-top: 2px; }
.month-item b { display: block; font-size: 15px; }
.month-item span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.month-item .btn { white-space: nowrap; }
.year-plan { margin-top: 8px; }
.year-plan summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.year-plan ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.year-plan li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--ink-2); }
.year-plan li b { color: var(--ink); font-weight: 650; }
.year-plan li.now b, .year-plan li.now span:first-child { color: var(--accent); }
@media (max-width: 400px) { .year-plan li { grid-template-columns: 1fr; gap: 0; } .month-item { grid-template-columns: 1fr; } .month-item .btn { justify-self: start; } }

/* Module: Strom, Nebenkosten, Steuern */
.module .form-grid { margin-bottom: 6px; }
@media (min-width: 560px) { #powerCard .form-grid { grid-template-columns: 1fr 1fr 1fr; } }
.module .btn.secondary { margin-top: 12px; }
.tax-list { display: grid; gap: 2px; }
.tax-list .check { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.tax-list .check:last-child { border-bottom: 0; }
.tax-list .check input:checked + span { color: var(--ink-2); text-decoration: line-through; }
.card.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); } }
