/* Rechnerwerk: helles, weißes Design. Keine externen Schriften oder Bilder. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --bar: rgba(255, 255, 255, .9);
  --grey1: #e6eaf3;
  --grey2: #eef1f7;
  --grey3: #d3d9e6;
  --glow: #edf1ff;
  --soft: #f7f9fc;
  --tint: #f3f6ff;
  --line: #e8ecf3;
  --line-2: #d8deea;
  --text: #0b1220;
  --text-2: #2a3446;
  --muted: #5a6579;
  --accent: #1f4bff;
  --accent-600: #1538d1;
  --accent-soft: #eaf0ff;
  --accent-ring: rgba(31, 75, 255, .22);
  --ok: #0a7d45;
  --ok-bg: #e8f7ef;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-sm: 0 1px 2px rgba(11, 18, 32, .05);
  --sh-md: 0 1px 2px rgba(11, 18, 32, .04), 0 10px 28px -8px rgba(11, 18, 32, .12);
  --sh-lg: 0 2px 4px rgba(11, 18, 32, .04), 0 28px 56px -20px rgba(31, 75, 255, .22);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
::selection { background: var(--accent-soft); color: var(--accent-600); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-600); }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 6px; }
svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bar); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.brand-name .brand-w { color: var(--accent); font-weight: 800; }
.nav-pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none; background: var(--surface);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.nav-pill:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--sh-sm); }

main { padding: 28px 0 72px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.7rem); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: 1.55rem; line-height: 1.25; margin: 44px 0 12px; letter-spacing: -.025em; font-weight: 750; }
h3 { font-size: 1.12rem; margin: 26px 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 16px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 68ch; margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 6px 13px 6px 11px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; line-height: 1.4;
  letter-spacing: 0;
}
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-head { margin: 4px 0 28px; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--tint) 0%, var(--surface) 70%);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 6vw, 68px); margin-bottom: 48px;
}
.hero::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 75, 255, .16), transparent 66%); pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); line-height: 1.07; letter-spacing: -.04em; margin-bottom: 18px; }
.hero-visual { display: block; }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 28px; }
}
.hv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sh-lg); }
.hv-label { display: block; margin-bottom: 12px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.hv-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.hv-row b { color: var(--text-2); font-weight: 650; white-space: nowrap; }
.hv-result { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; font-size: .82rem; color: var(--muted); font-weight: 650; }
.hv-result .hv-num { font-size: 2.3rem; line-height: 1.1; letter-spacing: -.04em; color: var(--accent); font-weight: 800; }
.hv-result.sm { padding-top: 0; }
.hv-result.sm .hv-num { font-size: 1.55rem; }
.hv-good .hv-result .hv-num { color: var(--ok); }
.hv-good { background: linear-gradient(180deg, var(--surface), var(--ok-bg)); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 28px; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: .92rem; font-weight: 500; box-shadow: var(--sh-sm);
}
.chips svg { color: var(--accent); flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; background: var(--accent); color: #fff;
  border-radius: 12px; font-weight: 650; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(31, 75, 255, .55);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }
button.btn { border: 0; font: inherit; font-weight: 650; cursor: pointer; min-height: 48px; }
button.btn:disabled { opacity: .6; cursor: progress; transform: none; }
button.btn:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

.section-title { margin-top: 0; }
.section-sub { color: var(--muted); margin: -4px 0 0; }

/* ---------- Kacheln ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding: 0; margin: 24px 0 0; list-style: none; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--text);
  box-shadow: var(--sh-sm); transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tile:hover { border-color: rgba(31, 75, 255, .45); box-shadow: var(--sh-lg); transform: translateY(-3px); color: var(--text); }
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tile-cat { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tile-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--text); text-decoration: none; }
.tile-name::after { content: ""; position: absolute; inset: 0; }
.tile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-text { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.tile-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 650; font-size: .94rem; }
.tile-go svg { transition: transform .18s; }
.tile:hover .tile-go svg { transform: translateX(4px); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
}
.icon-badge.sm { width: 38px; height: 38px; border-radius: 12px; }

/* ---------- Vorteile ---------- */
.features { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { padding: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; }
.features strong { display: block; margin: 14px 0 6px; font-size: 1.05rem; letter-spacing: -.01em; }
.features p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Rechner-Panel ---------- */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
}
@media (min-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.calc-form { padding: clamp(20px, 3vw, 32px); }
.calc-result { padding: clamp(20px, 3vw, 32px); background: var(--tint); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (min-width: 860px) {
  .calc-result { border-top: 0; border-left: 1px solid var(--line); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
  .result-sticky { position: sticky; top: 92px; }
}
.pane-title { margin: 0 0 18px; font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 650; font-size: .94rem; margin-bottom: 7px; color: var(--text-2); }
.field .hint { display: block; color: var(--muted); font-size: .84rem; margin-top: 6px; line-height: 1.45; }
.input-wrap { position: relative; }
.input-wrap input, .field select {
  width: 100%; min-height: 50px; padding: 11px 14px; font: inherit; font-size: 1.04rem; font-weight: 500;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  appearance: none; -webkit-appearance: none; box-shadow: var(--sh-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.input-wrap input.has-unit { padding-right: 96px; }
.input-wrap input[type="date"], .input-wrap input[type="time"] { display: block; text-align: left; min-width: 0; }
.input-wrap input[type="date"]::-webkit-date-and-time-value, .input-wrap input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.input-wrap .unit {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 4px 9px; border-radius: 8px;
  background: var(--soft); color: var(--muted); font-size: .8rem; font-weight: 650; pointer-events: none; white-space: nowrap;
}
.input-wrap input:hover, .field select:hover { border-color: var(--line-2); }
.input-wrap input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

/* ---------- Farbwelten je Kategorie ---------- */
.cat-finanzen  { --cat: #1f4bff; --cat-soft: #eaf0ff; --cat-deep: #1538d1; }
.cat-steuern   { --cat: #7c3aed; --cat-soft: #f1eafe; --cat-deep: #5b21b6; }
.cat-handel    { --cat: #f97316; --cat-soft: #fff0e3; --cat-deep: #b94a08; }
.cat-beruf     { --cat: #0ea5e9; --cat-soft: #e5f5fd; --cat-deep: #0369a1; }
.cat-haushalt  { --cat: #f59e0b; --cat-soft: #fff5dc; --cat-deep: #a16207; }
.cat-gesundheit{ --cat: #e11d48; --cat-soft: #fde8ee; --cat-deep: #9f1239; }
.cat-auto      { --cat: #0f9d8a; --cat-soft: #e0f6f2; --cat-deep: #0b6b5e; }
.cat-hobby     { --cat: #65a30d; --cat-soft: #eef7dc; --cat-deep: #3f6212; }
.cat-gaming    { --cat: #c026d3; --cat-soft: #fbe8fd; --cat-deep: #86198f; }
.cat-studium   { --cat: #4f46e5; --cat-soft: #ecebfd; --cat-deep: #3730a3; }
.cat-mathe     { --cat: #0891b2; --cat-soft: #e0f4f9; --cat-deep: #0e5f77; }
.cat-alltag    { --cat: #ec4899; --cat-soft: #fde8f3; --cat-deep: #be185d; }

/* ---------- Illustrationen ---------- */
.il { display: block; width: 100%; height: auto; }
.il .c1 { fill: var(--cat, var(--accent)); }
.il .c2 { fill: var(--cat-soft, var(--accent-soft)); }
.il .c3 { fill: var(--cat-deep, var(--accent-600)); }
.il .w  { fill: var(--surface); }
.il .gr { fill: var(--grey1); }
.il .gr2 { fill: var(--grey3); }
.il .sh { fill: rgba(11, 18, 32, .07); }
.il .card { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.il .st { stroke: var(--cat-deep, var(--accent-600)); stroke-width: 2; }
.il .ln { fill: none; stroke: var(--cat, var(--accent)); stroke-linecap: round; stroke-linejoin: round; }
.il .wl { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.il text { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.il .t1 { fill: var(--cat, var(--accent)); }
.il .t3 { fill: var(--cat-deep, var(--accent-600)); }

/* ---------- Design-Upgrade ---------- */
body { background: radial-gradient(900px 420px at 88% -90px, var(--glow) 0%, rgba(237, 241, 255, 0) 72%) no-repeat, var(--surface); }
.eyebrow { background: var(--cat-soft, var(--accent-soft)); color: var(--cat-deep, var(--accent)); }
.icon-badge { background: linear-gradient(145deg, var(--cat-soft, var(--accent-soft)), var(--surface) 140%); color: var(--cat-deep, var(--accent)); box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .04); }
.tile { position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cat, var(--accent)); opacity: 0; transition: opacity .18s; }
.tile:hover::before { opacity: 1; }
.tile:hover { border-color: color-mix(in srgb, var(--cat, var(--accent)) 45%, var(--surface)); }
.tile-go { color: var(--cat-deep, var(--accent)); }
.related a:hover { border-color: color-mix(in srgb, var(--cat, var(--accent)) 45%, var(--surface)); }
.calc { border-top: 4px solid var(--cat, var(--accent)); }
.calc-result { background: color-mix(in srgb, var(--cat-soft, var(--tint)) 55%, var(--surface)); }
.result-row.is-big dd { color: var(--cat-deep, var(--accent)); }
.result-row.is-big.tone-ok dd { color: var(--ok); }
.result-row.is-big.tone-bad dd { color: var(--bad); }
#result .result-list { animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: .55; } to { opacity: 1; } }

.page-head.has-il { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
.ph-il { display: none; }
@media (min-width: 900px) {
  .page-head.has-il { grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: 44px; }
  .ph-il { display: block; }
}

.nav-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--accent)); flex: none; }
.cat-count { background: var(--cat-soft, var(--accent-soft)); color: var(--cat-deep, var(--accent)); }
.cat {
  margin-top: 28px; padding: clamp(18px, 3vw, 30px); border-radius: 26px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cat-soft) 60%, var(--surface)) 0%, var(--surface) 62%);
  border: 1px solid color-mix(in srgb, var(--cat-soft) 85%, var(--surface));
}
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; }
.ch-il { display: none; }
@media (min-width: 900px) { .cat-head { grid-template-columns: minmax(0, 1fr) 170px; } .ch-il { display: block; } }
.cat-title a:hover { color: var(--cat-deep, var(--accent)); }
.cat-more a { color: var(--cat-deep, var(--accent)); }

.hero-visual { position: relative; }
.hero-visual .hv-card { position: relative; z-index: 1; }
.hero-deco { position: absolute; z-index: 0; left: -32px; top: -34px; width: calc(100% + 64px); height: calc(100% + 68px); pointer-events: none; }
.hero + .stats { margin-top: -36px; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; padding: 0 clamp(8px, 3vw, 28px); list-style: none; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sh-md); }
.stats .stat-num { display: block; font-size: 1.85rem; line-height: 1.1; letter-spacing: -.04em; color: var(--accent); font-weight: 800; }
.stats span { color: var(--muted); font-size: .9rem; }
.steps { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); counter-reset: st; padding: 0; margin: 24px 0 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: st; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-sm); }
.steps li::before {
  content: counter(st); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 13px; background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(31, 75, 255, .6);
}
.steps strong { display: block; font-size: 1.08rem; margin-bottom: 6px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #1f4bff, #7c3aed, #f97316, #0ea5e9, #f59e0b, #e11d48, #0f9d8a, #ec4899);
}
@media (prefers-reduced-motion: reduce) { #result .result-list { animation: none; } }

/* ---------- Kategorien auf der Startseite ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 8px; list-style: none; }
.cat-nav .nav-pill { gap: 8px; }
.cat-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; }
.cat { margin-top: 44px; }
.cat-title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -.02em; scroll-margin-top: 84px; }
.cat-sub { margin: 6px 0 0; color: var(--muted); }
.cat .grid { margin-top: 18px; }

.cat-title a { color: inherit; text-decoration: none; }
.cat-title a:hover { color: var(--accent); }
.cat-more { margin: 14px 0 0; font-weight: 650; }
.cat-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; }
.cat-more svg { flex: none; }
.cat-h2 { margin-top: 44px; }
.cat-intro { margin-top: -6px; }
.pane-title { display: block; }

/* ---------- Kontaktformular ---------- */
.contact-card { max-width: 640px; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-sm); }
.field textarea {
  display: block; width: 100%; min-height: 150px; padding: 12px 14px; font: inherit; font-size: 1.04rem; font-weight: 500; line-height: 1.5;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; resize: vertical; box-shadow: var(--sh-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea:hover { border-color: var(--line-2); }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.field.hp { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
.field.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); }
.field.check label { margin: 0; font-weight: 500; font-size: .92rem; line-height: 1.5; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 550; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--bad-bg); color: var(--bad); }
.form-status[hidden] { display: none; }
.hint-line { color: var(--muted); margin-top: 18px; }

/* ---------- Ergebnis ---------- */
.result-list { margin: 0; padding: 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-sm); }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-row dt { color: var(--muted); font-size: .94rem; min-width: 0; overflow-wrap: anywhere; }
.result-row dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.result-row.is-big { flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 0 18px; }
.result-row.is-big dt { font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.result-row.is-big dd {
  font-size: clamp(2.2rem, 6.5vw, 3.1rem); line-height: 1.08; font-weight: 800; color: var(--accent);
  text-align: left; letter-spacing: -.04em; overflow-wrap: anywhere;
}
.result-row.is-big.tone-ok dd, .result-row.is-big.tone-bad dd {
  font-size: 1.02rem; line-height: 1.5; font-weight: 650; letter-spacing: 0; padding: 12px 14px; border-radius: 12px; width: 100%;
}
.result-row.is-big.tone-ok dd { color: var(--ok); background: var(--ok-bg); }
.result-row.is-big.tone-bad dd { color: var(--bad); background: var(--bad-bg); }
.result-note { font-size: .84rem; color: var(--muted); margin: 14px 2px 0; line-height: 1.5; }
.result-error { color: var(--bad); background: var(--bad-bg); padding: 12px 14px; border-radius: 12px; margin: 0; font-weight: 550; }

.result-table { margin-top: 18px; }
.result-table summary { cursor: pointer; font-weight: 650; padding: 10px 2px; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.table-wrap { overflow: auto; max-height: 380px; margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--soft); font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--line); }
tbody tr + tr td { border-top: 1px solid var(--line); }

/* Mitlaufende Ergebnisleiste (nur Handy) */
.sticky-result {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px;
  box-shadow: 0 14px 36px -10px rgba(11, 18, 32, .35); transform: translateY(150%); transition: transform .25s ease;
}
.sticky-result .sr-label { color: var(--muted); font-size: .86rem; }
.sticky-result .sr-value { color: var(--accent); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 859px) {
  .sticky-result.has-value { display: flex; }
  .sticky-result.show { transform: none; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Inhalt ---------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 52px; }
@media (min-width: 1000px) { .content { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.prose { max-width: 74ch; font-size: 1.02rem; line-height: 1.75; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.formula {
  background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.7; overflow-x: auto; margin: 0 0 16px;
}
.example { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; color: var(--text-2); }
.example strong:first-child { color: var(--accent-600); }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
details.faq[open] { border-color: var(--line-2); box-shadow: var(--sh-md); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; min-height: 52px; display: flex; align-items: center; position: relative; font-weight: 650; color: var(--text); line-height: 1.45;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.faq p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

.side { align-self: start; }
@media (min-width: 1000px) { .side { position: sticky; top: 92px; } }
.side .pane-title { margin-bottom: 14px; }
.related { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.related a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .95rem; line-height: 1.35;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.related a:hover { border-color: rgba(31, 75, 255, .45); box-shadow: var(--sh-md); transform: translateY(-1px); color: var(--text); }

.disclaimer { font-size: .84rem; color: var(--muted); margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.6; }
.placeholder { background: #fff3bf; color: #5c4400; padding: 0 4px; border-radius: 3px; }
.ad-slot { margin: 28px 0; min-height: 90px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1.6fr 1fr; } }
.footer-grid h3 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-2); }
.footer-grid p { margin: 12px 0 0; max-width: 34ch; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid .cols { columns: 2; column-gap: 24px; }
.footer-grid li { margin-bottom: 8px; break-inside: avoid; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .tile:hover, .btn:hover, .related a:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .side, .ad-slot, .sticky-result { display: none; }
  body { color: #000; }
  .calc { box-shadow: none; }
}

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 559px) {
  .wrap { padding: 0 16px; }
  main { padding: 20px 0 56px; }
  .hero { padding: 24px 20px 28px; border-radius: 22px; margin-bottom: 36px; }
  .chips { margin: 20px 0 22px; }
  .chips li { font-size: .88rem; padding: 7px 12px; }
  .btn { width: 100%; justify-content: center; }
  h2 { font-size: 1.35rem; margin-top: 36px; }
  .nav-pill { min-height: 44px; }
  .tile { padding: 18px; }
  .calc-form, .calc-result { padding: 20px 18px; }
  .result-list { padding: 4px 14px; }
  .result-row { padding: 12px 0; }
  .result-row dt { font-size: .9rem; }
  th, td { padding: 9px 10px; font-size: .85rem; }
  .footer-grid .cols { columns: 1; }
  .content { margin-top: 40px; }
  .site-footer { padding-top: 36px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.1rem; }
  .nav-pill { padding: 0 14px; font-size: .86rem; }
  .result-row.is-big dd { font-size: 2rem; }
}

.il .ln.deep{stroke:var(--cat-deep)}
.il .ln.wht{stroke:#fff}

/* ---------- Ergebnis-Grafiken ---------- */
.viz { margin: 18px 0 4px; padding: 14px 16px 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 16%, var(--grey1)); border-radius: 16px; }
.viz-title { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #5b6478); margin-bottom: 10px; }
.viz .s-a { background: var(--cat, var(--accent)); fill: var(--cat, var(--accent)); }
.viz .s-b { background: color-mix(in srgb, var(--cat, var(--accent)) 38%, var(--surface)); fill: color-mix(in srgb, var(--cat, var(--accent)) 38%, var(--surface)); }
.viz .s-c { background: #e11d48; fill: #e11d48; }
.viz .s-d { background: #94a3b8; fill: #94a3b8; }
.viz-split { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--grey2); gap: 2px; }
.viz-split .seg { display: block; min-width: 3px; height: 100%; }
.viz-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.viz-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: .9rem; }
.viz-legend .sw { width: 12px; height: 12px; border-radius: 4px; display: block; }
.viz-legend em { font-style: normal; color: var(--muted, #5b6478); font-size: .82rem; min-width: 46px; text-align: right; }
.viz-legend.inline { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.viz-legend.inline li { display: flex; gap: 6px; }
.viz-row { display: grid; grid-template-columns: minmax(74px, 30%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .9rem; margin: 8px 0; }
.viz-row .track { display: block; height: 16px; border-radius: 8px; background: var(--grey2); overflow: hidden; }
.viz-row .fill { display: block; height: 100%; border-radius: 8px; }
.viz-scale { position: relative; display: flex; height: 16px; border-radius: 8px; margin: 26px 0 6px; }
.viz-scale .zone { display: block; height: 100%; }
.viz-scale .zone:first-of-type { border-radius: 8px 0 0 8px; }
.viz-scale .zone:nth-last-of-type(2) { border-radius: 0 8px 8px 0; }
.z-ok { background: #16a34a; } .z-ok2 { background: #86d08e; } .z-w { background: #f5b942; } .z-bad { background: #e5484d; }
.viz-scale .marker { position: absolute; top: -8px; width: 0; height: 32px; border-left: 3px solid #0b1220; transform: translateX(-1.5px); }
.viz-scale .marker::before { content: ""; position: absolute; left: -7px; top: -6px; border: 6px solid transparent; border-top-color: #0b1220; border-bottom: 0; }
.viz-scale .marker b { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); background: #0b1220; color: #fff; font-size: .78rem; padding: 2px 7px; border-radius: 7px; white-space: nowrap; }
.viz-zones { display: flex; font-size: .78rem; color: var(--muted, #5b6478); }
.viz-zones .zl { text-align: center; overflow-wrap: normal; padding: 0 2px; }
.viz-cols { display: block; width: 100%; height: 130px; border-radius: 8px; background: linear-gradient(var(--grey2), var(--grey2)); }
.viz-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted, #5b6478); margin-top: 4px; }
@media (max-width: 899px) { .ph-il { display: block; max-width: 250px; margin: 4px auto 0; } }

/* ---------- Suche, Suchbegriffe, A bis Z ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search { position: relative; margin: 18px 0 6px; }
.search input { width: 100%; padding: 15px 16px 15px 48px; font: inherit; font-size: 1.02rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink, #0b1220); box-shadow: 0 6px 22px rgba(31, 75, 255, .07); }
.search input:focus { outline: none; border-color: var(--accent, #1f4bff); box-shadow: 0 0 0 4px rgba(31, 75, 255, .14); }
.search-ic { position: absolute; left: 16px; top: 15px; color: var(--muted, #5b6478); display: inline-flex; }
.search-status { margin: 8px 4px 0; min-height: 1.3em; font-size: .9rem; color: var(--muted, #5b6478); }
[hidden] { display: none !important; }
.aka-intro { margin-bottom: 8px; }
.aka { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aka li { padding: 6px 12px; border-radius: 999px; font-size: .88rem; background: var(--cat-soft, var(--accent-soft)); color: var(--cat-deep, var(--accent)); }
.az { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.az li { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.az a { font-weight: 700; font-size: .98rem; text-decoration: none; color: inherit; display: block; }
.az a::after { content: ""; position: absolute; inset: 0; }
.az li:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.az li:hover { border-color: color-mix(in srgb, var(--cat, var(--accent)) 45%, var(--surface)); }
.az small { display: block; color: var(--muted, #5b6478); font-size: .82rem; line-height: 1.35; }

/* Kategorie-Seiten: Zusatztext unter den Kacheln */
.cat-text { margin-top: 48px; max-width: 760px; }
.cat-text h2:first-child { margin-top: 0; }

/* ---------- Teilen ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line, var(--line)); }
.share-label { font-size: .88rem; color: var(--muted, #5b6478); margin-right: 4px; }
.share a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line, var(--line)); border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--text); background: var(--surface); }
.share a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Startseite: Beispielrechner ---------- */
.chips a { display: inline-flex; align-items: center; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: .92rem; font-weight: 550; text-decoration: none; box-shadow: var(--sh-sm); transition: border-color .15s, color .15s, transform .15s; }
.chips a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chips li { padding: 0; border: 0; background: none; box-shadow: none; }
.hero-visual .demo { position: relative; z-index: 1; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 16px; box-shadow: var(--sh-lg); }
.demo-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--tint, #f2f5ff); border-radius: 14px; }
.demo-tabs button { flex: 1 1 0; min-width: 0; padding: 9px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.demo-tabs button:hover { color: var(--accent); }
.demo-tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--sh-sm); }
.demo-tabs button:focus-visible { outline: 3px solid var(--accent-ring, rgba(31, 75, 255, .35)); outline-offset: 1px; }
.demo-field { margin-bottom: 14px; }
.demo-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; color: var(--muted); }
.demo-field-head output { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.demo input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
.demo input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
.demo input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.demo input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.demo input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(31, 75, 255, .3); transition: transform .12s; }
.demo input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(31, 75, 255, .3); }
.demo input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.demo input[type=range]:focus-visible { outline: 3px solid var(--accent-ring, rgba(31, 75, 255, .35)); outline-offset: 2px; border-radius: 6px; }
.demo-result { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--tint, #f2f5ff); }
.demo-label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.demo-num { font-size: clamp(2rem, 4.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.demo-sub { font-size: .9rem; color: var(--text-2); }
.demo-link { display: inline-block; margin-top: 12px; font-size: .92rem; font-weight: 600; }

/* Kategorie-Leiste bleibt beim Scrollen sichtbar */
.cat-nav { position: sticky; top: 64px; z-index: 5; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 16px -4px 8px; padding: 10px 4px; background: var(--bar); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cat-nav a[aria-current="true"] { border-color: var(--cat, var(--accent)); background: var(--cat-soft, var(--accent-soft)); color: var(--cat-deep, var(--accent)); }
@media (max-width: 759px) {
  .cat-nav { margin-left: calc(-1 * var(--gutter, 16px)); margin-right: calc(-1 * var(--gutter, 16px)); padding-left: var(--gutter, 16px); padding-right: var(--gutter, 16px); }
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav .nav-pill { white-space: nowrap; flex: none; }
section.cat { scroll-margin-top: 132px; }
@media (max-width: 559px) { .chips a { font-size: .86rem; padding: 7px 12px; } }
@media (prefers-reduced-motion: reduce) { .chips a, .demo-tabs button, .demo input[type=range]::-webkit-slider-thumb { transition: none; } }

.stand-note { font-size: .88rem; color: var(--text-2); background: var(--soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; margin: 0 0 20px; line-height: 1.55; }
.cmp-wrap { overflow-x: auto; margin: 12px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cmp { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.cmp caption { text-align: left; font-weight: 650; padding: 12px 14px 4px; color: var(--text-2); }
.cmp th, .cmp td { padding: 9px 14px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.cmp th:first-child, .cmp td:first-child { text-align: left; font-weight: 600; }
.cmp thead th { color: var(--muted); font-weight: 600; font-size: .82rem; border-top: 0; }
.related a span, .tile-name { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* Ergebnis teilen, weitere Rechner (SEO-Update) */
.result-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.btn-mini{font:inherit;font-size:.9rem;font-weight:600;min-height:44px;padding:8px 14px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface);color:inherit;cursor:pointer}
.btn-mini:hover{border-color:#1f4bff;color:#1f4bff}
.copy-ta{position:fixed;opacity:0;top:0;left:0;width:1px;height:1px}
.more-links{list-style:none;padding:0;margin:8px 0 12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px 18px}
.more-links a{display:block;padding:11px 0}
.tbl-links{margin-top:10px}
@media print{.site-header,.site-footer,.share,.side,.ad-slot,.result-tools,.sticky-result{display:none!important}}

/* ---------- Darkmode (Standard ist hell, Umschalter im Kopf) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1220; --surface: #151c2e; --bar: rgba(13, 18, 32, .9);
  --soft: #111829; --tint: #1a2440; --line: #26314a; --line-2: #36435f;
  --text: #e9eef9; --text-2: #c7d0e4; --muted: #9ba8c2;
  --accent: #7d97ff; --accent-600: #9db0ff; --accent-soft: #1f2c57; --accent-ring: rgba(125, 151, 255, .35);
  --ok: #4ade80; --ok-bg: #12301f; --bad: #ff8a80; --bad-bg: #3a1a19;
  --grey1: #26314a; --grey2: #1c2540; --grey3: #34415f; --glow: #1a2750;
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-md: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -8px rgba(0, 0, 0, .5);
  --sh-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 56px -20px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .cat-finanzen, html[data-theme="dark"] .cat-steuern, html[data-theme="dark"] .cat-handel,
html[data-theme="dark"] .cat-beruf, html[data-theme="dark"] .cat-haushalt, html[data-theme="dark"] .cat-gesundheit,
html[data-theme="dark"] .cat-auto, html[data-theme="dark"] .cat-hobby, html[data-theme="dark"] .cat-alltag, html[data-theme="dark"] .cat-gaming, html[data-theme="dark"] .cat-studium, html[data-theme="dark"] .cat-mathe {
  --cat-soft: color-mix(in srgb, var(--cat) 20%, #151c2e);
  --cat-deep: color-mix(in srgb, var(--cat) 62%, #ffffff);
}
html[data-theme="dark"] body { background: radial-gradient(900px 420px at 88% -90px, #18224a 0%, rgba(24, 34, 74, 0) 72%) no-repeat, var(--bg); }
html[data-theme="dark"] .hero { background: linear-gradient(135deg, #17213f 0%, var(--surface) 75%); }
html[data-theme="dark"] .placeholder { background: #4a3b00; color: #ffe9a0; }
html[data-theme="dark"] .viz-scale .marker b { background: #e9eef9; color: #0d1220; }
html[data-theme="dark"] .viz-scale .marker { border-left-color: #e9eef9; }
html[data-theme="dark"] .viz-scale .marker::before { border-top-color: #e9eef9; }
html[data-theme="dark"] .il .sh { fill: rgba(0, 0, 0, .35); }
html[data-theme="dark"] .tile-name, html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3 { color: var(--text); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color-scheme: dark; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin-left: 8px;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.site-header nav { display: flex; align-items: center; }

/* ---------- Startseite: kompakter ---------- */
.cat-toggle { display: none; }
.cat-all { display: none; }
.cat.is-collapsible .grid > li.extra { display: none; }
.cat.is-collapsible.all .grid > li.extra { display: list-item; }
body.searching .cat.is-collapsible .grid > li.extra { display: list-item; }
body.searching .cat.is-collapsible .grid { display: grid; }
.cat.is-collapsible .cat-all {
  display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0; min-height: 44px; padding: 0 18px; font: inherit; font-weight: 650;
  color: var(--cat-deep, var(--accent)); background: var(--cat-soft, var(--accent-soft)); border: 0; border-radius: 12px; cursor: pointer;
}
.cat.is-collapsible.all .cat-all, body.searching .cat-all { display: none; }
.cat-count-n { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (min-width: 760px) {
  .grid { gap: 14px; }
  .tile { padding: 18px 20px; }
  .tile-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 759px) {
  .cat-nav { display: none; }
  .cat { margin-top: 12px; padding: 14px 16px; border-radius: 18px; }
  .cat-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cat-sub { display: none; }
  .cat-title { margin: 0; font-size: 1.12rem; }
  .cat.is-collapsible .cat-head { position: relative; padding-right: 52px; min-height: 44px; display: flex; align-items: center; }
  .cat.is-collapsible .cat-toggle {
    display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--cat-soft, var(--accent-soft)); color: var(--cat-deep, var(--accent)); cursor: pointer;
  }
  .cat-toggle svg { transition: transform .2s; }
  .cat.is-collapsible.is-open .cat-toggle svg { transform: rotate(180deg); }
  .cat.is-collapsible:not(.is-open) .grid, .cat.is-collapsible:not(.is-open) .cat-more, .cat.is-collapsible:not(.is-open) .cat-all { display: none; }
  body.searching .cat.is-collapsible .grid { display: grid; }
  .grid { gap: 8px; margin-top: 12px; }
  .tile { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; height: auto; }
  .tile-top { margin: 0; }
  .tile-text, .tile-go { display: none; }
  .tile-name { font-size: 1rem; }
  .icon-badge { width: 40px; height: 40px; }
  .stats { display: none; }
  .hero + .stats { margin-top: 0; }
  .section-sub { display: none; }
}
@media (max-width: 759px) {
  .cat ~ h2, .cat ~ .steps, .cat ~ .features { display: none; }
  .site-header .nav-pill { white-space: nowrap; padding: 0 14px; }
  .site-header .wrap { gap: 8px; }
  .brand-name { white-space: nowrap; }
  .hero .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; margin-right: -20px; padding: 2px 20px 6px 4px; scrollbar-width: none; }
  .hero .chips::-webkit-scrollbar { display: none; }
  .hero .chips li { flex: none; }
  .hero .eyebrow { display: none; }
  h2.section-title { margin-top: 28px; }
}
html[data-theme="dark"] .il [fill="#fff"], html[data-theme="dark"] .il .w, html[data-theme="dark"] .il .card { fill: #1c2540; }
html[data-theme="dark"] .il .card { stroke: #2d3a5c; }
html[data-theme="dark"] .il .gr { fill: #26314a; }
html[data-theme="dark"] .il .gr2 { fill: #34415f; }
html[data-theme="dark"] .btn, html[data-theme="dark"] .btn:hover { color: #0d1220; }
html[data-theme="dark"] .steps li::before, html[data-theme="dark"] .demo-tabs button[aria-selected="true"] { color: #0d1220; }
html[data-theme="dark"] .demo-tabs button[aria-selected="true"] { color: var(--accent); }
html[data-theme="dark"] .hero-deco [fill="#e6ecff"] { fill: #1e2b57; }
html[data-theme="dark"] .hero-deco [fill="#eef2ff"] { fill: #1a2448; }

/* ---------- Rechnerpfade, Home-FAQ, Stand im Footer ---------- */
.pfade { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 900px) { .pfade-home .pfade { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.pfad { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-sm); overflow: hidden; }
.pfad[open] { border-color: var(--line-2); box-shadow: var(--sh-md); }
.pfad summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 18px 20px; position: relative; padding-right: 48px; min-height: 44px; }
.pfad summary::-webkit-details-marker { display: none; }
.pfad summary::after { content: ""; position: absolute; right: 20px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.pfad[open] summary::after { transform: rotate(-135deg); top: 28px; }
.pfad-t { font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; color: var(--text); }
.pfad-b { color: var(--muted); font-size: .94rem; line-height: 1.45; }
.pfad-n { color: var(--accent); font-weight: 650; font-size: .85rem; }
.pfad-steps { margin: 0; padding: 4px 20px 18px 54px; counter-reset: ps; list-style: none; }
.pfad-steps li { counter-increment: ps; position: relative; padding: 9px 0; border-top: 1px solid var(--line); display: grid; gap: 1px; }
.pfad-steps li::before { content: counter(ps); position: absolute; left: -34px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: .82rem; display: flex; align-items: center; justify-content: center; }
.pfad-steps a { font-weight: 650; text-decoration: none; }
.pfad-steps a:hover { text-decoration: underline; }
.pfad-steps span { color: var(--muted); font-size: .9rem; }
.pfade-more { margin: 14px 0 0; font-weight: 650; }
.pfade-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.faq-list { margin-top: 14px; }
.footer-stand { display: inline-block; margin-top: 6px; color: var(--muted); font-size: .88rem; }
.imp-list { padding-left: 0; list-style: none; }
.imp-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
