/* Gemeinsame Gestaltung für Ratgeber, Impressum, Datenschutz, Kontakt und Fehlerseite, wie bei Vitalis Digital:
   Creme-Grund, dunkles Petrol, Gold als Akzent, Source Serif Pro und Source Sans Pro vom eigenen Server. */
@font-face { font-family: "Source Sans Pro"; src: url("/fonts/SourceSansPro-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/fonts/SourceSansPro-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/fonts/SourceSansPro-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("/fonts/SourceSerifPro-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("/fonts/SourceSerifPro-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --bg: #f4f0e8; --surface: #fdfbf7; --field: #f7f3ec; --ink: #0c262e; --ink-2: #3a4f55; --line: #d6cfc3;
  --accent: #1a4c58; --accent-soft: #e4ece9; --on-accent: #ffffff; --knopf: #0c262e; --knopf-ink: #f7f8f6;
  --gold: #e8b86d; --gold-hover: #f0c889; --teal-900: #0c262e; --teal-800: #123a44; --muted: #bcd1d1;
  --shadow-s: 0 1px 2px rgba(12, 38, 46, 0.06), 0 8px 24px rgba(12, 38, 46, 0.05);
  --font: "Source Sans Pro", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  --serif: "Source Serif Pro", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --zahl: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1d22; --surface: #10272d; --field: #16323a; --ink: #eef2ef; --ink-2: #b4c6c4; --line: #24434b;
    --accent: #9fd3d1; --accent-soft: #15353b; --on-accent: #06171b; --knopf: #e8b86d; --knopf-ink: #0c262e;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.seite { max-width: 46rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 10px 56px; }
.leiste { display: flex; align-items: center; gap: 10px; padding-block: 6px 22px; flex-wrap: wrap; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; text-decoration: none; }
.logo svg { width: 24px; height: 24px; }
.name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.leiste .rechts { margin-left: auto; font-weight: 700; }
/* auf schmalen Handys die kurze Fassung, damit die Kopfzeile in eine Zeile passt */
.leiste .kurz { display: none; }
@media (max-width: 389px) { .leiste .lang { display: none; } .leiste .kurz { display: inline; } }
.pfad { margin: 0 0 8px; font-size: .92rem; color: var(--ink-2); }
.pfad a { color: var(--ink-2); }
h1 { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 600px) { h1 { -webkit-hyphens: none; hyphens: none; } }
h2 { margin: 40px 0 10px; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
h3 { margin: 24px 0 6px; font-size: 1.1rem; line-height: 1.3; }
p, li { max-width: 40rem; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.2rem); color: var(--ink-2); margin: 0 0 10px; text-wrap: pretty; }
.meta { font-family: var(--zahl); font-size: .88rem; color: var(--ink-2); margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }
.kasten { background: var(--accent-soft); border-radius: 18px; padding: 16px 20px; margin: 24px 0; }
.kasten p { margin: 6px 0; }
.kasten .titel { font-weight: 700; margin: 0 0 4px; }
.beispiel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 20px 0; box-shadow: var(--shadow-s); }
.beispiel .titel { font-weight: 700; color: var(--accent); margin: 0 0 6px; }
/* Vorher und nachher: ruhig untereinander, ohne rote Durchstreichung, wie auf der Startseite */
.beispiel .statt, .beispiel .neu { margin: 0; padding: 10px 0; line-height: 1.45; }
.beispiel .statt b, .beispiel .neu b { display: block; font-size: .88rem; font-style: normal; color: var(--ink-2); margin-bottom: 3px; }
.beispiel .statt { color: var(--ink-2); font-style: italic; }
.beispiel .neu { font-weight: 700; border-top: 1px dashed var(--line); padding-bottom: 2px; }
.beispiel .neu b { color: var(--accent); }
.tabelle { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-s); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--field); font-size: .95rem; }
td.zahl { font-family: var(--zahl); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
td.zahl small { display: block; max-width: 9rem; margin-top: 4px; font-family: var(--font); font-size: .85rem; font-weight: 400; white-space: normal; color: var(--ink-2); }
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 36px 0; box-shadow: var(--shadow-s); }
.cta h2 { margin: 0 0 6px; font-size: 1.35rem; }
.cta p { margin: 0 0 16px; color: var(--ink-2); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 22px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.knopf:hover { filter: brightness(1.08); }
.knopf:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.zweit { display: inline-flex; align-items: center; min-height: 50px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.zweit:hover { border-color: var(--accent); color: var(--accent); }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.karten { list-style: none; padding: 0; display: grid; gap: 12px; margin: 20px 0; }
.karten li { margin: 0; max-width: none; }
.karten a { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 46px 16px 18px; text-decoration: none; color: var(--ink); }
/* kleiner Pfeil nach rechts: hier geht es weiter */
.karten a::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--accent); border-top: 2.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.karten a:hover { border-color: var(--accent); }
.karten b { display: block; color: var(--accent); font-size: 1.08rem; margin-bottom: 2px; }
.karten span { color: var(--ink-2); font-size: .95rem; }
.quellen { font-size: .92rem; color: var(--ink-2); }
.quellen li { margin: 4px 0; }
.hinweis { font-size: .92rem; color: var(--ink-2); }
footer { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); display: grid; gap: 6px; }
footer p { margin: 0; }
/* Impressum und Datenschutz: viele kurze Abschnitte, deshalb kleinere Zwischenüberschriften */
.recht h2 { font-size: 1.22rem; margin: 30px 0 8px; }
.tipp-zeile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
/* Gut sichtbarer Hinweis oben auf jeder Ratgeberseite: allgemeine Information, keine Beratung */
.hinweis-oben { margin: 0 0 28px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--ink-2); }
.hinweis-oben b { color: var(--ink); }
/* Kontaktformular */
.formular { display: grid; gap: 16px; margin: 22px 0; max-width: 40rem; }
.formular label { display: block; font-weight: 700; margin-bottom: 4px; }
.formular label small { font-weight: 400; color: var(--ink-2); font-size: .92rem; }
.formular input, .formular textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.formular textarea { resize: vertical; min-height: 9em; }
.formular input:focus-visible, .formular textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.formular input::placeholder, .formular textarea::placeholder { color: var(--ink-2); opacity: 1; }
.formular p { margin: 0; }
.formular button.knopf { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.formular button.knopf:disabled { opacity: .6; cursor: default; }
/* Feld nur für Spam-Programme, für Menschen unsichtbar */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 16px 0; font-weight: 700; }
.status:empty { display: none; }
.status.ok, .status.warn { padding: 12px 16px; background: var(--surface); border-radius: 0 12px 12px 0; }
.status.ok { border-left: 4px solid var(--accent); }
.status.warn { border-left: 4px solid #c2571a; }
html { scroll-padding-top: 4.75rem; }
/* Kopfzeile wie bei Vitalis */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 240, 232, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header { background: rgba(11, 29, 34, 0.94); } }
.header-inner { width: min(100%, 72rem); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.6rem; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark span { font-weight: 400; color: var(--ink-2); }
.kopf-nav { display: flex; align-items: center; gap: .15rem; }
.kopf-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .45rem .7rem; border-radius: 8px; }
.kopf-nav a:hover { background: var(--field); }
.kopf-nav a.nav-cta { background: var(--knopf); color: var(--knopf-ink); margin-left: .3rem; }
.kopf-nav a.nav-cta:hover { filter: brightness(1.15); background: var(--knopf); }
@media (max-width: 479px) { .kopf-nav a.neben { display: none; } }
/* Dunkler Titelbereich der Ratgeber, mit Goldstreifen */
.seiten-kopf { position: relative; color: #f7f8f6; padding: 2.6rem 0 2.8rem; background: radial-gradient(ellipse at 80% 15%, rgba(28, 82, 94, 0.35), transparent 55%), linear-gradient(180deg, var(--teal-900) 0%, var(--teal-800) 100%); }
.seiten-kopf::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--gold); }
.seiten-kopf .innen { max-width: 46rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.seiten-kopf h1 { color: #f7f8f6; }
.seiten-kopf .lead { color: var(--muted); }
.seiten-kopf .meta { color: var(--muted); margin-bottom: 0; }
.seiten-kopf .pfad, .seiten-kopf .pfad a { color: var(--gold); }
.seiten-kopf + .seite { padding-top: 26px; }
.eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2 { font-weight: 600; }
.knopf { background: var(--knopf); color: var(--knopf-ink); border-radius: 10px; }
.zweit { border-radius: 10px; }
