/* TAXOS – Ratgeber (0.4.9): Übersicht /ratgeber und Artikel /ratgeber/<slug>. Fertiges HTML vom Server (app/seo/dienst-ratgeber.php),
   ohne JavaScript. Gleiche Schrift und Farben wie die Startseite (landing.css), hell und dunkel nach Systemeinstellung. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --seite: #FFFFFF;
  --seite-2: #F5F5F7;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --ink-3: #6E6E73;
  --linie: #E5E5EA;
  --linie-2: #D2D2D7;
  --fuellung: #EDEDF0;
  --blau: #0071E3;
  --blau-text: #0066CC;
  --blau-hell: #DCEBFC;
  --hervor: #F2F7FE;
  --fokus: #0071E3;
  --rand: clamp(16px, 4.5vw, 48px);
  --text-breite: 720px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --seite: #000000;
    --seite-2: #0F0F11;
    --ink: #F5F5F7;
    --ink-2: #D1D1D6;
    --ink-3: #98989F;
    --linie: #2C2C2E;
    --linie-2: #3A3A3C;
    --fuellung: #2C2C2E;
    --blau: #0A84FF;
    --blau-text: #5AAEFF;
    --blau-hell: rgba(10, 132, 255, .2);
    --hervor: #0B1A2C;
    --fokus: #0A84FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--seite); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--seite); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; }
/* lange deutsche Wörter („Umsatzsteuervoranmeldung“) am iPhone trennen statt abschneiden (Prüfung 0.4.9 M5) */
h1, h2, h3, .r-karte b { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
a { color: var(--blau-text); text-underline-offset: 2px; }
/* 0.4.10: Knöpfe (Ratgeber-Suche) ohne Browser-Rahmen und mit der Schrift der Seite – wie auf der Startseite */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
.sprung { position: fixed; left: 12px; top: 0; z-index: 10; background: var(--seite); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 600; transform: translateY(-120%); transition: transform .2s; }
.sprung:focus { transform: translateY(12px); }

.logo-bg { fill: #1D1D1F; stroke: none; }
@media (prefers-color-scheme: dark) { .logo-bg { fill: #2C2C2E; stroke: rgba(255, 255, 255, .14); stroke-width: 1; } }
.logo-bogen { stroke: #FFFFFF; }
.logo-punkt { fill: #FFFFFF; stroke: none; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: #0071E3; color: #FFFFFF; font-size: 1rem; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background-color .2s;
}
.knopf:hover { background: #0062C4; }
.knopf-klein { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.knopf-leise { background: transparent; color: var(--blau-text); box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.knopf-leise:hover { background: var(--seite-2); }

/* ---------- Kopf ---------- */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: calc(1100px + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); min-height: 64px; display: flex; align-items: center; gap: 20px; }
.marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 1.0625rem; }
.kopf-nav { display: flex; gap: 22px; margin-left: auto; font-size: .9375rem; }
.kopf-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.kopf-nav a:hover, .kopf-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 520px) { .kopf-nav { display: none; } .kopf .knopf { margin-left: auto; } }

/* ---------- Inhalt ---------- */
.seite, .artikel { max-width: calc(var(--text-breite) + 2 * var(--rand)); margin: 0 auto; padding: clamp(24px, 5vw, 48px) var(--rand) 0; }
.seite { max-width: calc(1100px + 2 * var(--rand)); }
.pfad ol { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: .875rem; color: var(--ink-3); }
.pfad li { margin: 0 !important; }
.pfad li + li::before { content: '›'; margin-right: 6px; color: var(--ink-3); }
.pfad a { color: var(--ink-3); text-decoration: none; }
.pfad a:hover { color: var(--ink); text-decoration: underline; }
.land { margin-top: 28px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blau-text); }
h1 { margin-top: 10px; font-size: clamp(1.875rem, 4.6vw, 2.875rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.seite h1 { margin-top: 28px; }
.stand { margin-top: 14px; font-size: .875rem; color: var(--ink-3); }
.kern { margin-top: 22px; font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.seite .kern { max-width: 46em; }
.artikel h2 { margin-top: 44px; font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.artikel p, .artikel ul, .artikel ol { margin-top: 14px; }
.artikel ul, .artikel ol { padding-left: 1.3em; }
.artikel li + li { margin-top: 8px; }
.artikel strong { font-weight: 650; }

.kurz { margin-top: 30px; padding: 22px 24px 24px; border-radius: 20px; background: var(--hervor); box-shadow: inset 0 0 0 1px var(--blau-hell); }
.kurz h2, .toc h2 { margin-top: 0; font-size: 1.0625rem; letter-spacing: -.01em; }
.kurz ul { margin-top: 12px; }
.toc { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--seite-2); }
.toc ol { margin-top: 10px; }
.toc li + li { margin-top: 4px; }

.tabelle { margin-top: 18px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--linie); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; }
th { font-size: .8125rem; font-weight: 600; color: var(--ink-3); background: var(--seite-2); }
td { border-top: 1px solid var(--linie); }
td:first-child { font-weight: 550; }

.app-box { margin-top: 48px; padding: 26px 26px 28px; border-radius: 22px; background: var(--seite-2); box-shadow: inset 0 0 0 1px var(--linie); }
.app-box h2 { margin-top: 0; font-size: 1.375rem; }
.app-box p { margin-top: 10px; color: var(--ink-2); }
.app-box .knopf { margin-top: 18px; margin-right: 10px; }

.fragen details { border-top: 1px solid var(--linie); }
.fragen details:last-of-type { border-bottom: 1px solid var(--linie); }
.fragen h2 + details { margin-top: 18px; }
.fragen summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 1.375rem; font-weight: 400; color: var(--ink-3); transition: transform .25s; }
.fragen details[open] summary::after { transform: rotate(45deg); color: var(--blau); }
.fragen .antwort { padding: 0 0 18px; color: var(--ink-2); }
.fragen .antwort p { margin-top: 0; }

.quellen ul { font-size: .9375rem; }
.hinweis { margin-top: 36px !important; padding: 16px 18px; border-radius: 14px; background: var(--seite-2); font-size: .875rem; color: var(--ink-3); }

/* ---------- Karten (Übersicht, Weiterlesen) ---------- */
.gruppe h2, .weiter h2 { margin-top: 48px; font-size: clamp(1.375rem, 2.6vw, 1.75rem); letter-spacing: -.02em; }
.karten { list-style: none; padding: 0 !important; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.karten li { display: flex; margin: 0 !important; }
.r-karte { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; border-radius: 20px; background: var(--seite-2); box-shadow: inset 0 0 0 1px var(--linie); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.r-karte:hover { background: var(--fuellung); }
.r-land { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blau-text); }
.r-karte b { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.012em; }
.r-satz { font-size: .9375rem; line-height: 1.45; color: var(--ink-3); }
.r-stand { margin-top: auto; padding-top: 6px; font-size: .8125rem; color: var(--ink-3); }
.weiter { max-width: calc(1100px + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Fuß ---------- */
.fuss { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--linie); background: var(--seite-2); padding: 40px var(--rand) 36px; font-size: .875rem; color: var(--ink-3); }
.fuss-innen { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.fuss-marke p { margin-top: 10px; max-width: 34em; }
.fuss-marke a:not(.marke) { color: var(--ink-2); }
.fuss-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 20px; }
.fuss-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
/* 0.4.10 (Prüfung N1): Tippflächen 44 px am Handy – Brotkrumen, Fuß-Links und Link-Listen; das Bild bleibt gleich
   (Polster und Gegen-Rand gleichen sich aus, nur die Fläche zum Antippen wächst) */
@media (pointer: coarse), (max-width: 760px) {
  .pfad a { display: inline-block; padding: 13px 0; margin: -13px 0; }
  .fuss-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .seite section > ul:not(.karten) li:has(> a:only-child) + li:has(> a:only-child) { margin-top: 0; }
  .seite section > ul:not(.karten) li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
}
.fuss-nav a:hover { color: var(--ink); text-decoration: underline; }
.fuss-fein { max-width: 1100px; margin: 24px auto 0; font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .kopf, .fuss, .app-box, .toc, .sprung { display: none; } body { font-size: 11pt; } a { color: inherit; } }

/* ---------- 0.4.10: Suche, Über/Kontakt/Rechtliches ---------- */
.r-suche { margin-top: 26px; display: grid; gap: 8px; max-width: 560px; }
.r-suche label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.r-suche-zeile { display: flex; gap: 10px; }
.r-suche input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--seite); box-shadow: inset 0 0 0 1.5px var(--ink-3); -webkit-appearance: none; appearance: none; } /* 0.4.10: Rand ≥ 3 : 1 (WCAG 1.4.11) */
.r-suche input::placeholder { color: var(--ink-3); }
.r-suche input:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.r-suche .knopf { flex: 0 0 auto; }
@media (max-width: 380px) { .r-suche-zeile { flex-direction: column; } .r-suche .knopf { width: 100%; } }
.treffer h2 { font-size: 1.25rem; }
.seite section > ul:not(.karten) { margin-top: 12px; padding-left: 1.25em; max-width: 46em; line-height: 1.6; }
.seite section > ul:not(.karten) li + li { margin-top: 6px; }
.seite section > p, .seite > p { max-width: 46em; line-height: 1.6; }
.seite section > p + p, .seite > p + p { margin-top: 14px; }
.seite section { margin-top: 36px; }
.anbieter { margin-top: 18px; line-height: 1.6; font-style: normal; }
.kontaktliste { list-style: none; margin-top: 8px !important; padding: 0 !important; line-height: 1.6; }
.kontaktliste li + li { margin-top: 0 !important; }
.kontaktliste a { display: inline-flex; align-items: center; min-height: 44px; }
.kontaktliste a, .seite p a { color: var(--blau-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
