/* =========================================================================
   Finanzklar — Stylesheet
   1 Tokens · 2 Reset · 3 Layout · 4 Header · 5 Startseite · 6 Karten
   7 Artikel · 8 Prosa · 9 Seiten/Formulare · 10 Footer · 11 Print
   ========================================================================= */

/* ---------- 1 Tokens --------------------------------------------------- */
:root {
  --paper:        #ffffff;
  --paper-soft:   #f6f5f1;
  --paper-sunk:   #ece9e2;
  --ink:          #16191c;
  --ink-soft:     #4b555d;
  --ink-faint:    #7b848c;
  --line:         #e2ded6;
  --line-strong:  #cdc7bb;

  --brand:        #0f5c52;
  --brand-deep:   #0a403a;
  --brand-tint:   #e4efec;
  --accent:       #b5502a;
  --accent-tint:  #f8ece6;
  --warn-tint:    #fbf3dd;
  --warn-line:    #e3c46a;

  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(22, 25, 28, .05), 0 6px 18px -12px rgba(22, 25, 28, .18);
  --shadow-md:    0 2px 6px rgba(22, 25, 28, .06), 0 20px 40px -24px rgba(22, 25, 28, .28);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell:        1180px;
  --measure:      40rem;
  --header-h:     68px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper:        #14171a;
  --paper-soft:   #1b1f23;
  --paper-sunk:   #23282d;
  --ink:          #eceae5;
  --ink-soft:     #b2b8bd;
  --ink-faint:    #868e95;
  --line:         #2d3338;
  --line-strong:  #3d454b;

  --brand:        #6ec3b2;
  --brand-deep:   #a7dcd0;
  --brand-tint:   #1a2b29;
  --accent:       #e8906a;
  --accent-tint:  #2b1f1a;
  --warn-tint:    #2b2619;
  --warn-line:    #7a6630;

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:    0 2px 6px rgba(0, 0, 0, .35), 0 24px 48px -28px rgba(0, 0, 0, .75);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #14171a;
    --paper-soft:   #1b1f23;
    --paper-sunk:   #23282d;
    --ink:          #eceae5;
    --ink-soft:     #b2b8bd;
    --ink-faint:    #868e95;
    --line:         #2d3338;
    --line-strong:  #3d454b;

    --brand:        #6ec3b2;
    --brand-deep:   #a7dcd0;
    --brand-tint:   #1a2b29;
    --accent:       #e8906a;
    --accent-tint:  #2b1f1a;
    --warn-tint:    #2b2619;
    --warn-line:    #7a6630;

    --shadow-sm:    0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:    0 2px 6px rgba(0, 0, 0, .35), 0 24px 48px -28px rgba(0, 0, 0, .75);

    color-scheme: dark;
  }
}

/* ---------- 2 Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  overflow-wrap: break-word;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.35rem); }

p { margin: 0 0 1.15em; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3 Layout --------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 60rem) { .shell { padding-inline: 32px; } }

.band { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.band--soft { background: var(--paper-soft); }
.band--tight { padding-block: clamp(2rem, 3.5vw, 3rem); }

.eyebrow {
  font-family: var(--font-text);
  font-size: .745rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--ink-soft); max-width: 46ch; font-size: .94rem; }
.section-head .more { font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.section-head .more::after { content: " \2192"; }

.lede {
  font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* ---------- 4 Header -------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .topbar { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(150%) blur(10px); }
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand__name span { color: var(--brand); }
.brand:hover { color: var(--ink); }

.nav { display: none; }
@media (min-width: 62rem) {
  .nav { display: flex; align-items: center; gap: .3rem; }
}
.nav a {
  display: inline-block;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .925rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { background: var(--paper-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--brand-tint); font-weight: 600; }

.topbar__tools { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .ico-moon { display: none; }
:root[data-theme="dark"] .icon-btn .ico-moon { display: block; }
:root[data-theme="dark"] .icon-btn .ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .ico-moon { display: block; }
  :root:not([data-theme="light"]) .icon-btn .ico-sun { display: none; }
}
@media (min-width: 62rem) { .nav-toggle { display: none; } }

.drawer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: .75rem 0 1.25rem;
}
@media (min-width: 62rem) { .drawer { display: none !important; } }
.drawer a {
  display: block;
  padding: .7rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.drawer a:last-child { border-bottom: 0; }

.progress {
  position: fixed; inset: 0 auto auto 0;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 95;
}

/* ---------- 5 Startseite ---------------------------------------------- */
.hero {
  background:
    radial-gradient(118% 92% at 8% 0%, var(--brand-tint) 0%, transparent 58%),
    radial-gradient(90% 80% at 100% 10%, var(--accent-tint) 0%, transparent 55%),
    var(--paper-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }
.hero h1 { margin-bottom: .6rem; }
.hero .lede { margin-bottom: 1.6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip {
  display: inline-block;
  padding: .42rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: .845rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

.searchbox { display: flex; gap: .5rem; max-width: 30rem; }
.searchbox input {
  flex: 1 1 auto; min-width: 0;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
.searchbox input::placeholder { color: var(--ink-faint); }
.searchbox button {
  flex: none;
  padding: .8rem 1.15rem;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
}
.searchbox button:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
:root[data-theme="dark"] .searchbox button { color: #0c1512; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .searchbox button { color: #0c1512; }
}

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 34rem) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--paper); padding: 1.1rem 1.15rem; }
.fact__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.fact__label { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; line-height: 1.45; }
.fact__note { font-size: .74rem; color: var(--ink-faint); margin-top: .2rem; }

/* ---------- 6 Karten -------------------------------------------------- */
.grid { display: grid; gap: 1.6rem; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__media { aspect-ratio: 16 / 10; background: var(--paper-sunk); overflow: hidden; max-width: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__title { font-size: 1.12rem; line-height: 1.25; margin: 0 0 .5rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__text { font-size: .91rem; color: var(--ink-soft); margin: 0 0 1rem; }
.card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .6rem;
  align-items: center;
  font-size: .775rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: .75rem;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }

.card--lead { border: 0; border-radius: 0; background: transparent; }
@media (min-width: 54rem) {
  .card--lead { display: grid; grid-template-columns: 1.08fr 1fr; gap: 2rem; align-items: center; }
  .card--lead .card__media { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); }
  .card--lead .card__body { padding: 0; }
}
.card--lead:hover { transform: none; box-shadow: none; }
.card--lead .card__title { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); line-height: 1.12; }
.card--lead .card__text { font-size: 1.02rem; }

.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.row-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.row-item:last-child { border-bottom: 0; padding-bottom: 0; }
.row-item__media { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-sunk); }
.row-item__media img { width: 100%; height: 100%; object-fit: cover; }
.row-item h3 { font-size: 1.01rem; line-height: 1.3; margin: 0 0 .3rem; }
.row-item h3 a { color: var(--ink); text-decoration: none; }
.row-item h3 a:hover { color: var(--brand); }
.row-item p { font-size: .82rem; color: var(--ink-faint); margin: 0; }

.tag {
  display: inline-block;
  font-size: .715rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: .25rem .55rem;
  border-radius: 999px;
  text-decoration: none;
}
.tag:hover { background: var(--brand); color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
:root[data-theme="dark"] .btn { color: #0c1512; }
:root[data-theme="dark"] .btn:hover { color: #0c1512; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { color: #0c1512; }
}
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
:root[data-theme="dark"] .btn--ghost { color: var(--brand); }

/* ---------- 7 Artikel ------------------------------------------------- */
.crumbs { font-size: .8rem; color: var(--ink-faint); padding-block: 1.15rem .25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; opacity: .5; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.article-head { padding-bottom: 1.5rem; }
.article-head h1 { margin-bottom: .7rem; max-width: 30ch; }
.article-head .lede { max-width: 58ch; margin-bottom: 1.5rem; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .75rem;
  font-size: .825rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: .8rem;
}
.byline strong { color: var(--ink-soft); font-weight: 600; }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }

.hero-figure { margin: 1.75rem 0 0; }
.hero-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.hero-figure figcaption { font-size: .78rem; color: var(--ink-faint); margin-top: .6rem; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2rem clamp(2.5rem, 5vw, 4rem);
}
.article-layout > * { min-width: 0; }
@media (min-width: 64rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 3.5rem; align-items: start; }
}

.toc { font-size: .88rem; }
@media (min-width: 64rem) {
  .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
}
.toc__title {
  font-family: var(--font-text);
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .8rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: .4rem 0 .4rem .9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover { color: var(--brand); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

@media (max-width: 63.999rem) {
  aside > .toc { display: none; }
}

.toc-mobile { margin: 0 0 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
@media (min-width: 64rem) { .toc-mobile { display: none; } }
.toc-mobile > summary {
  cursor: pointer;
  padding: .85rem 1rem;
  font-weight: 600;
  font-size: .92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.toc-mobile > summary::-webkit-details-marker { display: none; }
.toc-mobile > summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.toc-mobile[open] > summary::after { content: "\2013"; }
.toc-mobile .toc { padding: 0 1rem 1rem; }

/* ---------- 8 Prosa --------------------------------------------------- */
.prose {
  max-width: 100%;
  width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink);
  overflow-wrap: break-word;
}

@media (max-width: 34rem) {
  .prose, .page-body, .lede { hyphens: auto; }
  h1, h2, h3 { hyphens: auto; }
}

/* Sehr schmale Geraete: Platz fuer lange Komposita wie
   eKrankenkassenpraemienc, damit sie nicht umbrochen werden muessen. */
@media (max-width: 24.5rem) {
  h1 { font-size: 1.68rem; }
  h2 { font-size: 1.4rem; }
}
@media (min-width: 48rem) { .prose { font-size: 1.11rem; } }
.prose p { margin: 0 0 1.3em; }
.prose h2 { margin: 2.6em 0 .7em; scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2em 0 .55em; scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.prose strong { font-weight: 650; }
.prose a { font-weight: 500; }

.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--brand); }

.prose blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.22em;
  line-height: 1.45;
  color: var(--ink);
}
.prose blockquote p { margin-bottom: .4em; }
.prose blockquote cite { display: block; font-family: var(--font-text); font-size: .62em; font-style: normal; color: var(--ink-faint); }

.table-wrap { margin: 2em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 28rem; }
.table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: .9rem 1rem .25rem;
  font-size: .8rem;
  color: var(--ink-faint);
}
.table-wrap th, .table-wrap td { padding: .72rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th {
  background: var(--paper-soft);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td + td, .table-wrap th + th { border-left: 1px solid var(--line); }
.table-wrap td { font-variant-numeric: tabular-nums; }

.note {
  margin: 2em 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-soft);
  font-size: .98rem;
  line-height: 1.68;
}
.note__title {
  font-family: var(--font-text);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
  color: var(--ink-soft);
}
.note > :last-child { margin-bottom: 0; }
.note ul, .note ol { margin-bottom: 0; padding-left: 1.2em; }
.note li { margin-bottom: .4em; }
.note li::marker { color: var(--brand); }

.note--key { background: var(--brand-tint); border-color: var(--line-strong); }
.note--key .note__title { color: var(--brand-deep); }
.note--tip { background: var(--accent-tint); border-color: var(--line-strong); }
.note--tip .note__title { color: var(--accent); }
.note--warn { background: var(--warn-tint); border-color: var(--warn-line); }
.note--calc { background: var(--paper-soft); border-left: 3px solid var(--brand); }
.note--calc .note__title { color: var(--brand); }

.faq { margin: 2.25em 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  position: relative;
  font-weight: 600;
  font-size: 1.01rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .25rem; top: .95rem;
  color: var(--brand); font-weight: 700; font-size: 1.15rem;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--brand); }
.faq__answer { padding: 0 0 1.1rem; font-size: .99rem; color: var(--ink-soft); }
.faq__answer > :last-child { margin-bottom: 0; }

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); font-size: .88rem; max-width: 100%; width: var(--measure); }
.sources h2 { font-size: 1.1rem; margin: 0 0 .9rem; }
.sources ol { margin: 0; padding-left: 1.3em; color: var(--ink-soft); }
.sources li { margin-bottom: .5em; }
.sources a { word-break: break-word; }

.disclaimer-box {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: .83rem;
  color: var(--ink-faint);
  line-height: 1.6;
  max-width: 100%;
  width: var(--measure);
}
.disclaimer-box > :last-child { margin-bottom: 0; }

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--paper-soft);
  font-size: .87rem;
  margin-top: 1.75rem;
}
.aside-card h3 { font-size: .98rem; margin: 0 0 .7rem; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { padding: .45rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card a { color: var(--ink); text-decoration: none; font-weight: 500; }
.aside-card a:hover { color: var(--brand); }

/* ---------- 9 Seiten / Formulare --------------------------------------- */
.page-head { padding-block: clamp(2rem, 4vw, 3.25rem) 0; }
.page-body { max-width: 100%; width: var(--measure); font-size: 1.03rem; line-height: 1.75; padding-block: 1.5rem clamp(2.5rem, 5vw, 4rem); }
.page-body h2 { margin: 2.2em 0 .6em; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin: 1.8em 0 .5em; }
.page-body ul, .page-body ol { padding-left: 1.3em; }
.page-body li { margin-bottom: .5em; }
.page-body li::marker { color: var(--brand); }

.kv { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-faint); margin: 0; }
.kv dd { margin: 0; }
@media (max-width: 34rem) { .kv > div { grid-template-columns: 1fr; gap: .15rem; } }

.results { margin-top: 2rem; }
.results__count { font-size: .88rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
.results mark { background: var(--warn-tint); color: inherit; padding: 0 .1em; border-radius: 2px; }

.cta-band {
  background: var(--brand-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 52rem) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #ffffff; margin: 0 0 .5rem; }
.cta-band p { color: #c8d8d3; margin: 0; max-width: 52ch; font-size: .97rem; }
.cta-band .btn { background: #ffffff; border-color: #ffffff; color: #0a403a; }
.cta-band .btn:hover { background: #dfeeea; border-color: #dfeeea; color: #0a403a; }
:root[data-theme="dark"] .cta-band { background: #11312c; }
:root[data-theme="dark"] .cta-band h2 { color: #eaf4f1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band { background: #11312c; }
  :root:not([data-theme="light"]) .cta-band h2 { color: #eaf4f1; }
}

.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 80;
  width: 42px; height: 42px;
  display: none;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.to-top.is-on { display: grid; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 10 Footer -------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-soft); padding-block: 2.75rem 2rem; font-size: .88rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.footer h2 {
  font-family: var(--font-text);
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--brand); }
.footer__about p { color: var(--ink-soft); max-width: 44ch; margin: .75rem 0 0; }
.footer__legal {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
  font-size: .79rem;
  color: var(--ink-faint);
}
.footer__legal p { margin: 0; max-width: 70ch; }

/* ---------- 11 Print --------------------------------------------------- */
@media print {
  .topbar, .drawer, .progress, .toc, .toc-mobile, .to-top, .cta-band, .footer__grid, .related, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-layout { display: block; padding: 0; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .prose h2 { page-break-after: avoid; }
  .table-wrap, .note, .faq details { page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
}
