/* deinesteuerberaterin.de – ruhig, gut lesbar, hell und dunkel. Schriften selbst gehostet (SIL OFL 1.1). */
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --flaeche: #ffffff;
  --tinte: #1c2a2d;
  --leise: #53636a;
  --linie: #dcd7cb;
  --akzent: #1d5c57;
  --akzent-hell: #e3eeeb;
  --hinweis-bg: #fbf4e3;
  --hinweis-rand: #d9b86a;
  --markierung: #f3e3b3;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a1c;
    --flaeche: #172225;
    --tinte: #e4ebe9;
    --leise: #a2b1b3;
    --linie: #2c3b3e;
    --akzent: #86c9bf;
    --akzent-hell: #183330;
    --hinweis-bg: #2a2416;
    --hinweis-rand: #8a7234;
    --markierung: #4a3f1c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }

a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 2px; }

.sprung { position: absolute; left: -9999px; top: 0; background: var(--flaeche); padding: 0.5rem 1rem; z-index: 10; }
.sprung:focus { left: 1rem; top: 1rem; }

.breit { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.schmal { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

/* Kopf */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-innen { padding-top: 1rem; padding-bottom: 0.6rem; }
.marke { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--tinte); }
.marke-name { font-family: var(--serif); font-weight: 650; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1.2; }
.marke-name .tld { color: var(--akzent); }
.marke-zeile { color: var(--leise); font-size: 0.95rem; }

.hauptnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.15rem 0.25rem; margin: 0 auto; padding-bottom: 0.6rem; }
.hauptnav a {
  display: inline-block; padding: 0.3rem 0.6rem; border-radius: 999px;
  color: var(--tinte); text-decoration: none; font-size: 0.98rem;
}
.hauptnav a:hover { background: var(--akzent-hell); }
.hauptnav a[aria-current="page"] { background: var(--akzent); color: var(--flaeche); }

/* Artikel */
main { padding-top: 2rem; padding-bottom: 3rem; }
.artikelkopf { margin-bottom: 1.25rem; }
.rubrik { margin: 0 0 0.25rem; color: var(--akzent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem); font-weight: 650; margin: 0 0 0.6rem; }
h2 { font-size: 1.55rem; font-weight: 620; margin: 2.4rem 0 0.6rem; }
h3 { font-size: 1.2rem; font-weight: 620; margin: 1.8rem 0 0.4rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--leise); }
.einleitung { font-size: 1.25rem; line-height: 1.55; color: var(--tinte); margin-bottom: 0.6rem; }
.stand { color: var(--leise); font-size: 0.92rem; margin: 0; }
.klein { font-size: 0.92rem; color: var(--leise); }
strong { font-weight: 650; }

.hinweis {
  background: var(--hinweis-bg); border-left: 4px solid var(--hinweis-rand);
  padding: 0.8rem 1rem; border-radius: 0 6px 6px 0; margin: 0 0 1.8rem; font-size: 0.98rem;
}
.hinweis p { margin: 0; }

.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.kasten > :last-child { margin-bottom: 0; }
.kasten h2, .kasten h3 { margin-top: 0.2rem; }
.kasten.akzent { background: var(--akzent-hell); border-color: transparent; }

a.ref {
  font-size: 0.85em; white-space: nowrap; color: var(--leise);
  text-decoration: underline dotted; text-underline-offset: 0.2em;
}
a.ref::before { content: "("; }
a.ref::after { content: ")"; }
a.ref:hover { color: var(--akzent); }

/* Themenkarten auf der Startseite */
.karten { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; margin: 1rem 0 2rem; }
.karten li { margin: 0; }
.karten a {
  display: block; height: 100%; padding: 0.9rem 1rem; border: 1px solid var(--linie); border-radius: 10px;
  background: var(--flaeche); color: var(--tinte); text-decoration: none;
}
.karten a:hover { border-color: var(--akzent); }
.karten strong { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--akzent); margin-bottom: 0.2rem; }
.karten span { color: var(--leise); font-size: 0.98rem; line-height: 1.5; display: block; }

/* Tabellen */
.tabelle { overflow-x: auto; margin: 0 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; margin: 0; }
caption { text-align: left; color: var(--leise); font-size: 0.92rem; padding-bottom: 0.4rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--linie); }
thead th { font-weight: 650; border-bottom: 2px solid var(--linie); }
table.vergleich { min-width: 36rem; }
.nur-schmal { display: none; }
@media (max-width: 40rem) { .nur-schmal { display: table-caption; } }
td.zahl, th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Checklisten (rein optisch, kein Formular) */
ul.check { list-style: none; padding-left: 0; }
ul.check li { position: relative; padding-left: 1.9rem; }
ul.check li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.3em; width: 1.05rem; height: 1.05rem;
  border: 2px solid var(--akzent); border-radius: 3px;
}

/* Glossar */
dl.glossar dt { font-family: var(--serif); font-weight: 650; font-size: 1.12rem; margin-top: 1.4rem; scroll-margin-top: 1rem; }
dl.glossar dd { margin: 0.2rem 0 0; }
.abc { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; list-style: none; padding: 0; }

/* Quellen */
.quellen { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--linie); font-size: 0.95rem; }
.quellen h2 { font-size: 1.25rem; margin-top: 0.5rem; }
.quellen ol { padding-left: 1.5rem; }
.quellen li:target { background: var(--markierung); border-radius: 4px; }

/* Blättern */
.blaettern { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.blaettern a {
  flex: 1 1 14rem; display: block; padding: 0.8rem 1rem; border: 1px solid var(--linie); border-radius: 10px;
  text-decoration: none; background: var(--flaeche); font-family: var(--serif); font-size: 1.1rem;
}
.blaettern a span { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--leise); }
.blaettern .vor { text-align: right; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); padding: 1.5rem 0 2rem; font-size: 0.95rem; }
.fuss-hinweis { max-width: 46rem; }
.fuss-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .marke-zeile { font-size: 0.88rem; }
  .hauptnav a { font-size: 0.95rem; padding: 0.25rem 0.55rem; }
  h2 { font-size: 1.38rem; }
  .einleitung { font-size: 1.15rem; }
  .blaettern .vor { text-align: left; }
}

@media print {
  .kopf, .hauptnav, .blaettern, .fuss, .sprung { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .hinweis, .kasten { border: 1px solid #999; background: #fff; }
}
