/* Steuerpolster – gemeinsames Stylesheet für Depot, Ratgeber und Rechtsseiten.
   Gleiche Tokens, Navigation, Buttons und Fußzeile wie die Startseite (home.css);
   dazu Seitenkopf, Artikel-Typografie, Tabellen und die Bausteine des Depot-Rechners. */

@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f6;
  --ink: #0b1220;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --brand: #0e7a5f;
  --brand-600: #0b6650;
  --brand-50: #e9f7f1;
  --brand-100: #c9ecdd;
  --mint: #3ddc97;
  --navy: #0b1220;
  --on-dark: #a8b3c7;
  --warn: #c2410c;
  --bad: #b42318;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -14px rgba(16, 24, 40, .14);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 32px 72px -28px rgba(11, 18, 32, .32);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; hyphens: auto; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 650; text-wrap: balance; hyphens: manual; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { top: 12px; }
.hint { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
p.hint, div.hint { margin-top: 6px; }
.print-only { display: none; }
table.data td, .tile .val, .kzno { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .14); transition: background .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
/* .btn.ghost wird vom Depot-Skript erzeugt (OeKB-Link) und sieht aus wie .btn-ghost */
.btn-ghost, .btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 24, 40, .05); }
.btn-ghost:hover, .btn.ghost:hover { background: var(--surface); }
.btn.ghost { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-light { background: #fff; color: var(--brand); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35); }
.btn-light:hover { background: var(--brand-50); }
.btn-mint { background: var(--mint); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(61, 220, 151, .7); }
.btn-mint:hover { background: #5be5a9; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--surface-2); color: #98a2b3; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-link { background: none; border: 0; padding: 0; min-height: 32px; display: inline-flex; align-items: center; gap: 6px;
  font: 600 14.5px/1.3 var(--font); color: var(--brand); cursor: pointer; text-decoration: none; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 600; }

/* ---------- Navigation (wie Startseite) ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid rgba(228, 231, 236, .8); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--brand); font-weight: 600; }

/* ---------- Bausteine der Startseite ---------- */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, .04); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(61, 220, 151, .25); flex: none; }
.checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14.5px; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; background: var(--brand-50); border-radius: 50%; padding: 1px; flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.section { padding: 104px 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head.row-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.9rem, 1.35rem + 1.8vw, 2.75rem); line-height: 1.08; letter-spacing: -0.04em; }
.sec-lead { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 36em; }
.sec-lead a { color: var(--brand); font-weight: 600; text-decoration: none; }
.sec-lead a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Ratgeber-Karten */
.guides { background: var(--surface); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide { display: flex; flex-direction: column; gap: 12px; padding: 22px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.guide:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.g-tag { align-self: flex-start; height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 600; }
.g-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; hyphens: manual; }
.g-title::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease), border-color .2s; }
.guide:hover .g-title::after { border-color: var(--brand); transform: translateX(3px) rotate(45deg); }
.g-text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
/* Erste Karte einer Übersicht über die volle Breite: 1 + 3×3 bzw. 1 + 3 füllt das Raster ohne Lücke */
.guide.featured { grid-column: 1 / -1; padding: 30px 32px; gap: 14px; background: radial-gradient(40% 140% at 100% 0%, rgba(61, 220, 151, .16), transparent 70%), #fff; }
.guide.featured .g-title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.2; max-width: 30em; justify-content: flex-start; gap: 16px; }
.guide.featured .g-title::after { margin-top: .45em; }
.guide.featured .g-text { font-size: 16px; max-width: 60ch; }

/* FAQ */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.qs details { border-bottom: 1px solid var(--line); }
.qs details:first-child { border-top: 1px solid var(--line); }
.qs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 18px; transition: transform .25s var(--ease), background .2s; }
.qs details[open] summary::after { transform: rotate(45deg); background: var(--brand-50); color: var(--brand); }
.qs details p { padding: 0 48px 22px 0; color: var(--muted); }

/* ---------- Seitenkopf (Ratgeber, Rechtliches, Depot) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 64px; border-bottom: 1px solid var(--line);
  background: radial-gradient(46% 90% at 88% 0%, rgba(61, 220, 151, .20), transparent 70%), radial-gradient(40% 70% at 0% 0%, rgba(14, 122, 95, .06), transparent 70%); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11, 18, 32, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 18, 32, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(60% 100% at 80% 0%, #000 25%, transparent 75%); mask-image: radial-gradient(60% 100% at 80% 0%, #000 25%, transparent 75%); }
.page-hero > .wrap { position: relative; }
.page-hero-in { max-width: 840px; }
.page-hero.center .page-hero-in { margin-inline: auto; text-align: center; }
.page-hero.center .page-lead { margin-inline: auto; }
.page-hero.center .hero-cta { justify-content: center; }
.page-hero h1 { margin-top: 20px; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.04em; }
.page-hero-in > h1:first-child { margin-top: 0; }
.page-lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.page-lead strong { color: var(--ink); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; padding: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--brand); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.page-hero.center .meta-chips { justify-content: center; }
.meta-chips li { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, .04); font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.meta-chips svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.err-code { font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: var(--brand); }

/* ---------- Artikel ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; padding-block: 56px 104px; }
.article-layout.solo { grid-template-columns: minmax(0, 1fr); }
.article-aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.toc { padding: 20px 22px; }
.toc-h, .aside-h { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc a { display: flex; gap: 12px; padding: 7px 0; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; hyphens: manual; transition: color .2s; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); flex: none; min-width: 18px; padding-top: 1px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--brand); }
.aside-cta { position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.aside-cta::before { content: ""; position: absolute; width: 320px; height: 320px; right: -140px; top: -170px; background: radial-gradient(closest-side, rgba(61, 220, 151, .28), transparent); pointer-events: none; }
.aside-cta > * { position: relative; }
.ac-title { color: #fff; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.aside-cta p:not(.ac-title) { margin-top: 8px; font-size: 14.5px; line-height: 1.5; }
.aside-cta .btn { margin-top: 18px; width: 100%; }

.prose { min-width: 0; max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; }
.prose h3 { margin-top: 32px; font-size: 19px; letter-spacing: -0.015em; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose > :first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--brand); font-weight: 500; text-decoration: underline; text-decoration-color: var(--brand-100); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:not(.btn):hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.prose .meta { font-size: 14px; color: var(--muted); }
.prose ul, .prose ol { padding: 0; list-style: none; display: grid; gap: 10px; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 5px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.prose ol { counter-reset: step; }
.prose ol > li { position: relative; padding-left: 40px; counter-increment: step; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 13.5px; font-weight: 650; line-height: 1; }
.prose .tbl-wrap { margin-block: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; hyphens: auto; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); vertical-align: bottom; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td.n, .prose th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose td strong { color: var(--ink); }

.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.55; }
.callout p { margin: 0; }
.callout .ico { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1; }
.callout.warn { background: #fff7ed; box-shadow: inset 0 0 0 1px #fed7aa; color: #7c2d12; }
.callout.warn .ico { background: var(--warn); color: #fff; }
.callout.info { background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); color: #064e3b; }
.callout.info .ico { background: var(--brand); color: #fff; }
.prose .callout { margin-block: 26px; font-size: 15.5px; }

/* Abschluss-CTA im Artikel und auf der Übersicht */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 36px; border-radius: 22px; color: #d6f5e7;
  background: radial-gradient(60% 120% at 100% 0%, rgba(61, 220, 151, .35), transparent 60%), var(--brand); box-shadow: var(--shadow-lg); }
.prose .cta-box { margin-top: 52px; }
.cta-box p { font-size: 15.5px; line-height: 1.55; max-width: 46ch; }
.cta-box .cta-title { color: #fff; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 6px; max-width: none; }
.cta-box .btn { flex: none; }
.sources { margin-top: 32px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); font-size: 14px; line-height: 1.6; color: var(--muted); }
.prose .sources a:not(.btn) { font-weight: 500; }
.sources-h { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.sources p + p { margin-top: 10px; }

/* Ratgeber-Übersicht, 404 */
.guide-sec + .guide-sec { background: var(--surface); }
.guide-sec .cta-box { margin-top: 28px; }
.page-hero.center { padding: 112px 0 120px; border-bottom: 0; }

/* ---------- Depot-Rechner ---------- */
.dh-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.depot-hero .page-hero-in { max-width: none; }
.depot-hero h1 { margin-top: 22px; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.75rem); line-height: 1.03; letter-spacing: -0.045em; }
.steps { list-style: none; padding: 10px 26px; max-width: 440px; margin-left: auto; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.s-no { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; font-size: 15px; }
.s-done .s-no { background: var(--brand); box-shadow: none; }
.s-no svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-title { color: var(--ink); font-weight: 600; line-height: 1.35; }
.s-text { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.kz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kz-chips span { height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; background: var(--brand-50); color: var(--brand); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }

.tool { padding: 64px 0 104px; background: var(--surface); }
.depot { max-width: 1040px; display: grid; gap: 20px; }
.work { display: grid; gap: 20px; min-width: 0; }
.tool-card { padding: 28px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head .card-title { margin-bottom: 0; }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.step { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 14px; font-weight: 650; }
.step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step.alt { background: var(--surface-2); color: var(--ink); }
.r-actions { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.tool-card h3 { font-size: 15.5px; letter-spacing: -0.01em; }

.dropzone { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 36px 20px; border-radius: 16px; cursor: pointer;
  border: 2px dashed var(--line-2); background: var(--surface); transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-50); }
.dropzone:focus-within { outline: 3px solid var(--brand-100); outline-offset: 2px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -8px rgba(16, 24, 40, .25); margin-bottom: 4px; }
.dz-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dz-line { display: block; font-size: 16px; color: var(--ink-2); }
.dz-line strong { color: var(--ink); font-weight: 600; }
.linkish { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.files { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; }
.files:empty { display: none; }
.file { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.5; }
.file > span { min-width: 0; }
.file strong { color: var(--ink); font-weight: 600; }
.file.err { box-shadow: inset 0 0 0 1px #fecdca; background: #fffbfa; }
.warn-text { color: var(--bad); }
.privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); color: #064e3b; font-size: 13.5px; line-height: 1.5; }
.privacy svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

details.more { margin-top: 14px; border-top: 1px solid var(--line); }
details.more + details.more { margin-top: 0; }
details.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; font-size: 15px; font-weight: 600; color: var(--ink); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ""; margin-left: auto; margin-right: 4px; width: 8px; height: 8px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); }
details.more[open] summary::after { transform: rotate(-135deg); }
details.more > div { padding-bottom: 16px; }
details.more .hint p + p { margin-top: 8px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.tag:empty { display: none; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { display: block; margin-bottom: 12px; min-width: 0; }
.field > span:first-child { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; line-height: 1.35; }
input[type="number"], input[type="text"], input[type="date"], select, textarea {
  width: 100%; min-width: 0; font: 400 15px/1.3 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
input[type="number"]:focus, input[type="text"]:focus, input[type="date"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }

.asset { margin-top: 12px; padding: 16px 18px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.asset.is-fund { box-shadow: inset 0 0 0 1px var(--brand-100), inset 3px 0 0 var(--brand); }
.asset-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.asset-head > div { min-width: 0; }
.asset-head strong { color: var(--ink); font-weight: 600; }
.asset-head select { width: auto; min-width: 130px; flex: none; }
.oekb { margin-top: 12px; }
.oekb-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.oekb-row .field { margin: 0; }
.oekb-row .field > span:first-child { font-size: 12px; }
.oekb .btn-row { margin-top: 10px; }
.oekb-row > .btn-link { min-height: 44px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--surface); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.tile .lab { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tile .val { font-size: 23px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); line-height: 1.3; margin-top: 2px; }
#tiles .tile:first-child { position: relative; overflow: hidden; background: var(--navy); }
#tiles .tile:first-child::before { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -150px; background: radial-gradient(closest-side, rgba(61, 220, 151, .3), transparent); pointer-events: none; }
#tiles .tile:first-child > * { position: relative; }
#tiles .tile:first-child .lab { color: var(--on-dark); }
#tiles .tile:first-child .val { color: #fff; }
#warnings .callout { margin-top: 12px; }

.tbl-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th { font-size: 12.5px; font-weight: 600; color: var(--muted); vertical-align: bottom; white-space: normal; line-height: 1.25; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td.wrap { white-space: normal; min-width: 160px; }
table.data tbody tr:last-child td { border-bottom: 0; }
/* zweite Spalte ist in allen Depot-Tabellen Text (Bezeichnung, Wertpapier, ISIN, Vorgang) */
.depot table.data th:nth-child(2), .depot table.data td:nth-child(2) { text-align: left; }
table.kz td:nth-child(3) { font-weight: 650; color: var(--ink); }
table.kz tr.zero td { color: var(--muted); }
table.kz tr.zero td:nth-child(3) { font-weight: 400; color: var(--muted); }
.kzno { display: inline-flex; align-items: center; justify-content: center; min-width: 3.4em; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-weight: 650; }
table.kz tr.zero .kzno { background: var(--surface-2); color: var(--muted); }
.neg-red { color: var(--bad); }
.tool-note { max-width: 70ch; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.tool-note strong { color: var(--ink-2); }

/* ---------- Footer (wie Startseite) ---------- */
.footer { background: var(--navy); color: var(--on-dark); padding: 72px 0 32px; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .logo { color: #fff; }
.foot-brand p { margin-top: 16px; max-width: 36ch; font-size: 14px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: 4px; }
.foot-col a { color: var(--on-dark); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); font-size: 13px; }

.noscript { padding: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide:hover { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-aside { display: none; }
  .prose { max-width: 760px; }
  .dh-in, .faq-in { grid-template-columns: 1fr; gap: 48px; }
  .steps { margin: 0; }
  .guide-grid, .guide-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .oekb-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Telefon ---------- */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .page-hero { padding: 44px 0 40px; }
  .page-hero h1 { font-size: 2.05rem; }
  .depot-hero h1 { font-size: 2.4rem; }
  .err-code { font-size: 5rem; }
  .page-lead { font-size: 17px; }
  .hero-cta .btn { flex: 1; }
  .steps { display: none; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 28px; }
  .sec-head.row-head { flex-direction: column; align-items: flex-start; }
  .article-layout { padding-block: 36px 72px; }
  .prose { font-size: 16.5px; }
  .prose h2 { margin-top: 40px; font-size: 22px; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose table { font-size: 14px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-box .btn { width: 100%; }
  .guide-grid, .guide-grid.cols-4 { grid-template-columns: 1fr; }
  .guide.featured { padding: 22px; }
  .tool { padding: 32px 0 72px; }
  .tool-card { padding: 20px 16px; }
  .card-title { font-size: 17px; }
  .dropzone { padding: 26px 16px; }
  .row3 { grid-template-columns: 1fr; gap: 0; }
  .oekb-row { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  #tiles .tile:first-child { grid-column: 1 / -1; }
  .tile .val { font-size: 20px; }
  .asset { padding: 14px; }
  .asset-head { flex-wrap: wrap; }
  .qs details p { padding-right: 0; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; }
}

/* Kennzahlen-Tabelle auf dem Telefon als Zeilenkarten: KZ, Betrag und Kopieren oben, Bezeichnung darunter */
@media screen and (max-width: 680px) {
  table.kz thead { display: none; }
  table.kz, table.kz tbody { display: block; }
  table.kz tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "kz amt copy" "label label label"; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.kz tbody tr:last-child { border-bottom: 0; }
  table.kz td { padding: 0; border: 0; }
  table.kz td:nth-child(1) { grid-area: kz; }
  .depot table.kz td:nth-child(2) { grid-area: label; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
  table.kz td:nth-child(3) { grid-area: amt; text-align: right; }
  table.kz td:nth-child(4) { grid-area: copy; }
}

/* ---------- Druck: Ratgeber als Text, Depot als Prüfbericht ---------- */
@media print {
  .nav, .skip, .footer, .article-aside, .related, .cta-box, .page-hero .meta-chips, .depot-hero, .faq, .guides, .no-print { display: none !important; }
  body { font-size: 11pt; background: #fff; }
  .page-hero { padding: 0 0 12pt; background: none; border: 0; }
  .page-hero::before { display: none; }
  .article-layout { display: block; padding: 12pt 0 0; }
  .tool { padding: 0; background: #fff; }
  .depot, .wrap { max-width: none; padding: 0; }
  .card, .asset, .file { box-shadow: none; border: 1px solid #d0d5dd; }
  .tool-card { padding: 12pt; break-inside: auto; }
  .tile { border: 1px solid #d0d5dd; break-inside: avoid; }
  #tiles .tile:first-child { background: #fff; }
  #tiles .tile:first-child::before { display: none; }
  #tiles .tile:first-child .lab { color: var(--muted); }
  #tiles .tile:first-child .val { color: var(--ink); }
  table.data tr { break-inside: avoid; }
  .print-only { display: block; font-size: 14pt; margin-bottom: 8pt; }
  a { color: inherit; text-decoration: none; }
}
