/* =====================================================================
   sofort-barrierefrei.de – Grundgestaltung
   Stand 16.11.2026: Gegenentwurf „finale Fassung“ (12.11.2026)
   Farben: Dunkel #141B2E, Blau #09318D, Knallpink #FF4FA3,
   Hellrosé #FFE8F4, Grau #4A5266. Blau nie dekorativ.
   ===================================================================== */

/* ===== Schriften (lokal, SIL OFL, siehe Fonts/OFL.txt) ===== */
@font-face { font-family: "Fira Sans"; src: url("../Fonts/fira-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../Fonts/fira-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../Fonts/fira-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../Fonts/fira-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../Fonts/fira-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ===== Farben und Maße ===== */
:root {
    --sb-dunkel: #141B2E;       /* Text, Überschriften, Trennlinien – 17,1 : 1 auf Weiß */
    --sb-blau: #09318D;         /* Marke und alles Klickbare – 11,4 : 1 auf Weiß */
    --sb-blau-dunkel: #06246A;  /* Hover, Footer */
    --sb-pink: #FF4FA3;         /* Was ich dem PDF hinzufüge – nur klein, Text darauf dunkel (5,6 : 1) */
    --sb-rose: #FFE8F4;         /* Kontaktbox, Datumszeilen im blauen Band */
    --sb-grau: #4A5266;         /* Nur Hinweise und Bildunterschriften – 7,8 : 1 */
    --sb-hellblau: #EEF2FA;     /* ruhige Flächen */
    --sb-linie: #B9C0D0;        /* feine Tabellenlinien (dekorativ) */
    --sb-feld: #6B7A88;         /* Rahmen von Formularfeldern – 4,4 : 1 */
    --sb-fehler: #A4262C;       /* Fehlermeldungen – 7,3 : 1 */

    --sb-breite: 1240px;
    --sb-rand: 24px;
    --sb-fahne: 104px;          /* Spalte für die Struktur-Fähnchen */
    --sb-fahne-abstand: 18px;
    --sb-zeile: 32em;           /* Zeilenlänge Fließtext */
}

/* ===== Grundlayout ===== */
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Fira Sans", system-ui, sans-serif;
    font-variant-ligatures: no-common-ligatures;
    font-size: 1.1875rem; /* 19 px */
    line-height: 1.6;
    color: var(--sb-dunkel);
    background: #FFFFFF;
}
img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    color: var(--sb-dunkel);
    font-weight: 700;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 10 4 4; /* kurze Wörter wie „Layout“ nicht trennen */
    overflow-wrap: break-word;
}
h1 { font-size: clamp(2.125rem, 4.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.4px; max-width: 22ch; margin: 0; }
h2 { font-size: 2.125rem; line-height: 1.2; margin: 0 0 1.5rem; }
h3 { font-size: 1.4375rem; line-height: 1.3; margin: 2.5rem 0 .5rem; }
h4 { font-size: 1.1875rem; line-height: 1.4; margin: 2rem 0 .5rem; }
@media (max-width: 760px) {
    h2 { font-size: 1.75rem; }
}

a { color: var(--sb-blau); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--sb-blau-dunkel); text-decoration-thickness: 2px; }

/* ===== Tastaturbedienung ===== */
:focus-visible { outline: 3px solid var(--sb-blau); outline-offset: 3px; }
.sb-band :focus-visible,
.sb-fuss :focus-visible { outline-color: var(--sb-pink); }

.sb-skip {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100; /* über dem klebenden Kopf (z-index 50) */
    padding: 12px 18px;
    border-radius: 4px;
    background: var(--sb-blau);
    color: #FFFFFF;
    font-weight: 600;
}
.sb-skip:focus { top: 12px; color: #FFFFFF; }

.sb-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;
}

/* ===== Wortmarke „Verborgene Zeichen“ ===== */
.sb-marke { white-space: nowrap; line-height: 1; }
.sb-marke__sofort { font-weight: 700; letter-spacing: -0.01em; }
.sb-marke__punkt { font-weight: 700; color: var(--sb-pink); padding: 0 .06em; }
.sb-marke__rest { font-weight: 400; }
.sb-marke__absatz { width: .626em; height: .776em; margin-left: .1em; vertical-align: -0.016em; fill: var(--sb-pink); }

/* ===== Kopf und Navigation ===== */
/* Leiste über die volle Breite; klebt oben, sobald genug Höhe da ist (siehe unten) */
.sb-kopfleiste {
    background: #FFFFFF;
    border-bottom: 1px solid transparent;
}
.sb-kopf {
    max-width: var(--sb-breite);
    margin: 0 auto;
    padding: 28px var(--sb-rand) 14px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 32px;
}
.sb-logo { font-size: 1.5625rem; color: var(--sb-blau); text-decoration: none; }
.sb-logo:hover { color: var(--sb-blau); }

.sb-nav { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sb-nav__liste {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.0625rem; /* 17 px */
}
.sb-nav__liste a { color: var(--sb-dunkel); }
.sb-nav__liste a[aria-current] { font-weight: 600; text-decoration-thickness: 3px; }

.sb-nav__schalter {
    display: none;
    align-items: center;
    min-height: 44px;
    padding: 6px 14px;
    border: 1.5px solid var(--sb-blau);
    border-radius: 4px;
    background: transparent;
    color: var(--sb-blau);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
}
@media (max-width: 760px) {
    .sb-kopf { column-gap: 16px; }
    .sb-nav--js .sb-nav__schalter { display: inline-flex; }
    .sb-nav--js .sb-nav__schalter[aria-expanded="false"] + .sb-nav__liste { display: none; }
    .sb-nav--js .sb-nav__liste { flex-direction: column; align-items: flex-end; gap: 2px; }
    .sb-nav--js .sb-nav__liste a { display: inline-block; padding: 8px 0; }
}

/* ===== Seitengerüst: Inhalt links, Platz für die wandernde Spalte rechts ===== */
.sb-rahmen {
    max-width: var(--sb-breite);
    margin: 0 auto;
    padding: 0 var(--sb-rand);
    box-sizing: border-box;
    display: flex;
    gap: 56px;
    align-items: flex-start;
}
.sb-inhalt {
    flex: 1 1 0;
    min-width: 0;
    padding-left: calc(var(--sb-fahne) + var(--sb-fahne-abstand));
    padding-bottom: var(--sb-fuss-abstand, 140px);
}
.sb-inhalt:focus { outline: none; }
/* Gleicher Abstand unten wie der Inhalt: Das mitlaufende Dokument hält dadurch
   bündig mit der Unterkante des letzten Inhalts (Kontaktbox) an, statt bis ans Band zu laufen. */
.sb-spalte { flex: 0 0 260px; align-self: stretch; padding-top: 64px; padding-bottom: var(--sb-fuss-abstand, 140px); box-sizing: border-box; }
@media (max-width: 999px) {
    .sb-spalte { display: none; }
}
@media (max-width: 760px) {
    .sb-inhalt { padding-left: 0; padding-bottom: 80px; }
}

/* ===== Struktur-Fähnchen (für Screenreader ausgeblendet) ===== */
.sb-inhalt .frame { position: relative; }
.sb-fahne {
    position: absolute;
    right: calc(100% + var(--sb-fahne-abstand));
    top: .45em;
    padding: 5px 15px 5px 9px;
    background: var(--sb-pink);
    color: var(--sb-dunkel);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .3px;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
    transition: opacity .2s;
}
.sb-fahnen-aus .sb-fahne { opacity: 0; }
/* Höhe am Inhalt ausrichten: neben einer H2 auf Mitte der ersten Zeile, sonst oben */
.frame:has(> header h2) > .sb-fahne { top: 11px; }
.frame:has(> header h3) > .sb-fahne { top: 5px; }
.frame-type-table > .sb-fahne { top: 4px; }
@media (max-width: 760px) {
    .sb-fahne { position: static; display: inline-block; margin: 0 0 8px; }
}

/* ===== Seitenkopf auf Unterseiten: Brotkrumen und h1 ===== */
.sb-seitenkopf { margin: 64px 0 3rem; }
.sb-brotkrumen { font-size: 1rem; }
.sb-brotkrumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.sb-brotkrumen li + li::before { content: "›" / ""; margin-right: .5rem; color: var(--sb-grau); }
.sb-brotkrumen [aria-current] { font-weight: 600; }
.sb-seitentitel { margin-top: 1rem; }
@media (max-width: 760px) {
    .sb-seitenkopf { margin-top: 36px; }
}

/* ===== Inhaltselemente: Abstände und Zeilenlänge ===== */
.sb-inhalt > .frame { margin-top: 1.75rem; }
.sb-inhalt > .frame:has(> header h2) { margin-top: 7.5rem; }
/* Überschrift am Anfang eines Elements ohne eigenen Abstand; den regelt das Element */
.sb-inhalt .frame > header > :is(h2, h3, h4):first-child { margin-top: 0; }
.sb-inhalt > .frame:has(> header h3) { margin-top: 2.5rem; }
.sb-inhalt > .frame:first-child,
.sb-seitenkopf + .frame { margin-top: 0 !important; }
@media (max-width: 760px) {
    .sb-inhalt > .frame:has(> header h2) { margin-top: 4.5rem; }
}

/* :where hält die Spezifität niedrig, damit Bausteine eigene Listen gestalten können */
.sb-inhalt :where(p, ul, ol, blockquote) { max-width: var(--sb-zeile); }
.sb-inhalt :where(p) { margin: 0 0 1em; }
.sb-inhalt :where(p, ul, ol, dl, table):last-child { margin-bottom: 0; }
.sb-inhalt :where(ul, ol) { padding-left: 1.25em; margin: 0 0 1em; }
.sb-inhalt :where(li) { margin: .35em 0; }
.sb-inhalt :where(li)::marker { color: var(--sb-dunkel); }
.sb-inhalt strong { font-weight: 600; }

.sb-inhalt hr { border: 0; border-top: 3px solid var(--sb-dunkel); margin: 2.5rem 0; max-width: 720px; }

.sb-inhalt blockquote { margin: 0 0 1em; padding-left: 1.25rem; border-left: 3px solid var(--sb-dunkel); }

/* Tabellen (kein overflow am Rahmen, sonst wird das Fähnchen im Rand abgeschnitten) */
.sb-inhalt table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 1.125rem; margin: 0 0 1em; }
.sb-inhalt caption { text-align: left; font-size: 1rem; color: var(--sb-grau); padding-bottom: 10px; }
.sb-inhalt th { text-align: left; font-weight: 600; padding: 10px 16px 10px 0; border-bottom: 2px solid var(--sb-dunkel); vertical-align: top; }
.sb-inhalt td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--sb-linie); vertical-align: top; }
.sb-inhalt tbody th { font-weight: 500; border-bottom: 1px solid var(--sb-linie); }
.sb-inhalt tbody tr:last-child > :is(td, th) { border-bottom: 0; }

/* Definitionslisten */
.sb-inhalt dl { margin: 0 0 1em; max-width: 720px; }
.sb-inhalt dt { font-weight: 700; }
.sb-inhalt dd { margin: 0 0 1em; }

/* Bilder und Bildunterschriften */
.sb-inhalt figure { margin: 0; }
.sb-inhalt figcaption { margin-top: .5rem; font-size: 1rem; color: var(--sb-grau); }

/* Text & Medien (Ersatz für das FSC-Stylesheet) */
.ce-textpic::after { content: ""; display: table; clear: both; }
.ce-gallery img { display: block; max-width: 100%; height: auto; }
.ce-above .ce-gallery { margin-bottom: 1.25rem; }
.ce-below .ce-gallery { margin-top: 1.25rem; }
.ce-center .ce-gallery { display: flex; justify-content: center; }
.ce-right:not(.ce-intext) .ce-gallery { display: flex; justify-content: flex-end; }
@media (min-width: 40em) {
    .ce-intext.ce-left .ce-gallery { float: left; max-width: 40%; margin: .25rem 1.5rem 1rem 0; }
    .ce-intext.ce-right .ce-gallery { float: right; max-width: 40%; margin: .25rem 0 1rem 1.5rem; }
    .ce-intext.ce-nowrap { display: flex; gap: 1.5rem; align-items: flex-start; }
    .ce-intext.ce-nowrap.ce-right { flex-direction: row-reverse; }
    .ce-intext.ce-nowrap .ce-gallery { float: none; margin: 0; flex: 0 0 auto; }
    .ce-intext.ce-nowrap .ce-bodytext { flex: 1 1 auto; min-width: 0; }
}
.ce-intext .ce-gallery { margin-bottom: 1rem; }

/* ===== Hinweiskasten ===== */
.rk-hinweis { max-width: var(--sb-zeile); margin-block: 2rem; padding: 1.25rem 1.5rem; border-left: 6px solid var(--sb-dunkel); border-radius: 0 4px 4px 0; background: var(--sb-hellblau); }
.rk-hinweis--info { border-left-color: var(--sb-blau); }
.rk-hinweis--wichtig { border-left-color: var(--sb-pink); background: var(--sb-rose); }
.rk-hinweis__titel { margin: 0 0 .5rem; font-size: 1.4375rem; }
.rk-hinweis__text > :first-child { margin-top: 0; }
.rk-hinweis__text > :last-child { margin-bottom: 0; }

/* ===== Bereichsnavigation „Mehr zu“ ===== */
.sb-bereich { max-width: 720px; margin-top: 5rem; padding-top: 20px; border-top: 3px solid var(--sb-dunkel); }
.sb-bereich__titel { margin: 0 0 .75rem; font-size: 1.4375rem; }
.sb-bereich ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sb-bereich a { font-weight: 500; }
.sb-bereich [aria-current] { color: var(--sb-grau); }
.sb-bereich [aria-current]::after { content: " (diese Seite)"; }

/* ===== Formulare (Form Framework) ===== */
.sb-inhalt form {
    max-width: 720px;
    padding-top: 28px;
    border-top: 3px solid var(--sb-dunkel);
}
.sb-inhalt form .form-element { margin-bottom: 20px; }
.sb-inhalt form fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.sb-inhalt form legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 1.0625rem; }
.sb-inhalt form .form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 1.0625rem; }
.sb-inhalt form .required { margin-left: .15rem; }
.sb-inhalt form .form-control,
.sb-inhalt form .form-select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--sb-feld);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--sb-dunkel);
    font: inherit;
    font-size: 1.0625rem;
}
.sb-inhalt form textarea.form-control { min-height: 7rem; resize: vertical; }
.sb-inhalt form .form-check-wrapping-label,
.sb-inhalt form .form-check label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.0625rem; }
.sb-inhalt form .form-check-input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--sb-blau); }
.sb-inhalt form .form-text, .sb-inhalt form .help-text { display: block; margin-top: 6px; font-size: .9375rem; color: var(--sb-grau); }
.sb-inhalt form .actions { margin-top: 28px; }
.sb-inhalt form .btn-primary,
.sb-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 14px 28px;
    border: 0;
    border-radius: 4px;
    background: var(--sb-blau);
    color: #FFFFFF;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.sb-inhalt form .btn-primary:hover,
.sb-button:hover { background: var(--sb-blau-dunkel); color: #FFFFFF; }

.sb-inhalt form .has-error .form-control,
.sb-inhalt form .form-control[aria-invalid="true"],
.sb-inhalt form .is-invalid { border-color: var(--sb-fehler); border-width: 2px; }
.sb-inhalt form .invalid-feedback,
.sb-inhalt form .help-block,
.sb-inhalt form .error { display: block; margin-top: 6px; color: var(--sb-fehler); font-weight: 600; }
.sb-inhalt form .form-check-input[aria-invalid="true"] { outline: 2px solid var(--sb-fehler); outline-offset: 2px; }
.sb-inhalt form .frame { margin: 0 0 .75rem; }
.sb-inhalt form .frame p { margin: 0; font-size: 1rem; }

/* Fehlerzusammenfassung nach dem Absenden */
.rk-fehlerliste { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 3px solid var(--sb-fehler); border-radius: 4px; background: #FFFFFF; }
.rk-fehlerliste__titel { margin: 0 0 .5rem; font-size: 1.25rem; color: var(--sb-fehler); }
.rk-fehlerliste ul { margin: 0; padding-left: 1.25rem; }
.rk-fehlerliste a { font-weight: 600; }

/* ===== Blaues Band (Ratgeber) ===== */
.sb-band { background: var(--sb-blau); color: #FFFFFF; }
.sb-band :is(h2, h3, a, a:hover) { color: #FFFFFF; }

/* ===== Footer ===== */
.sb-fuss { background: var(--sb-blau-dunkel); color: #FFFFFF; }
.sb-fuss__innen {
    max-width: var(--sb-breite);
    margin: 0 auto;
    padding: 28px var(--sb-rand) 40px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 32px;
    font-size: 1rem;
}
.sb-fuss__marke { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sb-fuss__marke .sb-marke { font-size: 1.1875rem; }
.sb-fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sb-fuss a, .sb-fuss a:hover { color: #FFFFFF; }

/* ===== Bewegung und Kontrastmodus ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .sb-fahne { clip-path: none; border: 1px solid CanvasText; padding: 4px 8px; }
    .sb-marke__absatz { fill: CanvasText; }
    .sb-marke__punkt { color: CanvasText; }
    .sb-skip:focus { outline: 2px solid CanvasText; }
}

/* =====================================================================
   Altbestand aus Rheumakids – Bausteine, die noch überarbeitet werden
   (Hero, Säulen-Karten, Schritte, Häufige Fragen, Ansprechpersonen,
   News). Die alten Farbnamen zeigen vorübergehend auf die neue Palette.
   ===================================================================== */
:root {
    --rk-navy: var(--sb-dunkel);
    --rk-text: var(--sb-dunkel);
    --rk-weiss: #FFFFFF;
    --rk-blau: var(--sb-blau);
    --rk-mint: var(--sb-hellblau);
    --rk-gelb: var(--sb-rose);
    --rk-koralle: var(--sb-pink);
}

/* ===== Inhaltselement: Hero ===== */
.rk-hero {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-block: 2rem;
}
@media (min-width: 48rem) {
    .rk-hero { grid-template-columns: 1.2fr 1fr; }
}

.rk-pill {
    display: inline-block;
    margin: 0 0 1rem;
    padding: .25rem 1rem;
    border: 2px solid var(--rk-koralle);
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
}
.rk-pill a { color: var(--rk-text); }

.rk-hero__titel {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.rk-marker {
    position: relative;
    z-index: 0;
    white-space: nowrap;
}
.rk-marker::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -.15em;
    right: -.15em;
    bottom: .05em;
    height: .55em;
    background: var(--rk-gelb);
    border-radius: .15em;
    transform: rotate(-2deg);
}

.rk-hero__einleitung { font-size: 1.15rem; max-width: 38rem; }

.rk-button {
    display: inline-block;
    margin-top: 1rem;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    background: var(--rk-gelb);
    color: var(--rk-text);
    font-weight: 700;
    text-decoration: none;
}
.rk-button:hover { background: var(--sb-blau-dunkel); }

.rk-hero__bild img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

/* ===== Inhaltselement: Säulen-Karten ===== */
.rk-karten { padding-block: 2rem; }
.rk-karten__titel { margin: 0 0 1.5rem; }

.rk-karten__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.rk-karte--mint { --karte: var(--rk-mint); }
.rk-karte--gelb { --karte: var(--rk-gelb); }
.rk-karte--blau { --karte: var(--rk-blau); }

.rk-karte {
    position: relative;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background:
        linear-gradient(var(--karte, var(--rk-mint)) 0 8px, transparent 8px),
        color-mix(in srgb, var(--karte, var(--rk-mint)) 25%, white);
}
.rk-karte__titel { margin: 0 0 .5rem; font-size: 1.35rem; }
.rk-karte p { margin: 0; }

/* Ganze Karte klickbar: Der Link spannt eine unsichtbare Fläche über die Karte */
.rk-karte__link { color: var(--rk-text); text-decoration: none; }
.rk-karte__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.rk-karte:has(.rk-karte__link):hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
.rk-karte:has(.rk-karte__link):hover .rk-karte__link { text-decoration: underline; }

/* Fokusrahmen um die ganze Karte statt nur um die Überschrift */
.rk-karte__link:focus-visible { outline: none; }
.rk-karte:has(.rk-karte__link:focus-visible) {
    outline: 3px solid var(--rk-text);
    outline-offset: 3px;
}

/* Navy-Karte: hellere Mischung, weil Navy sehr dunkel ist */
.rk-karte--navy {
    --karte: var(--rk-navy);
    background:
        linear-gradient(var(--rk-navy) 0 8px, transparent 8px),
        color-mix(in srgb, var(--rk-navy) 10%, white);
}

/* ===== Abschnittsübersicht (Inhaltsverzeichnis) ===== */
.frame-type-menu_section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.frame-type-menu_section li { margin: .3rem 0; }

/* ===== Schritte (nummerierter Ablauf) ===== */
.rk-schritte { padding-block: 2rem; }
.rk-schritte__titel { margin: 0 0 1.5rem; }

.rk-schritte__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.rk-schritt {
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 2px solid color-mix(in srgb, var(--rk-mint) 60%, white);
    background: var(--rk-weiss);
}

.rk-schritt__nr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: var(--rk-mint);
    font-family: inherit;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1;
}

.rk-schritt__titel { margin: 0 0 .5rem; font-size: 1.35rem; }
.rk-schritt p { margin: 0; }

/* ===== Häufige Fragen (details/summary) ===== */
.rk-faq { padding-block: 2rem; max-width: 55rem; }
.rk-faq__titel { margin: 0 0 1.5rem; }
.rk-faq__liste { display: flex; flex-direction: column; gap: .75rem; }

.rk-faq__eintrag {
    border: 2px solid color-mix(in srgb, var(--rk-navy) 12%, white);
    border-radius: 1rem;
}

.rk-faq__frage {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: .75rem 1.25rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: inherit;
}
.rk-faq__frage::-webkit-details-marker { display: none; }
.rk-faq__frage:hover span { text-decoration: underline; text-underline-offset: 4px; }

.rk-faq__frage svg { flex: 0 0 auto; transition: transform .2s; }
.rk-faq__eintrag[open] .rk-faq__frage svg { transform: rotate(180deg); }

.rk-faq__antwort { padding: 0 1.25rem 1.25rem; }
.rk-faq__antwort > :first-child { margin-top: 0; }
.rk-faq__antwort > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
    .rk-faq__frage svg { transition: none; }
}

/* ===== Ansprechpersonen ===== */
.rk-personen { padding-block: 2rem; }
.rk-personen__titel { margin: 0 0 .75rem; }
.rk-personen__intro { margin: 0 0 1.5rem; max-width: 45rem; }

.rk-personen__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.rk-person {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 1.5rem;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--rk-blau) 15%, white);
}

.rk-person__foto {
    flex: 0 0 auto;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
}

.rk-person__inhalt { flex: 1 1 12rem; min-width: 0; }
.rk-person__name { margin: 0 0 .25rem; font-size: 1.35rem; }
.rk-person__rolle { margin: 0 0 .5rem; font-weight: 700; font-size: 1rem; }
.rk-person__text { margin: 0 0 .5rem; font-size: 1rem; }
.rk-person__mail { font-weight: 800; overflow-wrap: anywhere; }

/* Säulen-Karten: neutrale Variante für Inhalte innerhalb eines Abschnitts */
.rk-karte--neutral { --karte: color-mix(in srgb, var(--rk-navy) 12%, white); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rk-navy) 10%, white); }

.rk-personen__liste { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* Altbestand an die neuen Regeln angepasst: Buttons blau, kein Textmarker */
.rk-button { background: var(--sb-blau); color: #FFFFFF; border-radius: 4px; font-weight: 600; }
.rk-button:hover { background: var(--sb-blau-dunkel); color: #FFFFFF; }
.rk-marker::before { content: none; }
.rk-pill { border-radius: 4px; }

/* ===== Baustein: Hero (Seitenanfang mit H1) ===== */
.sb-hero { position: relative; margin-top: 64px; }
.sb-fahne--h1 { top: 18px; }
.sb-hero__titel { max-width: 19ch; }
.sb-hero__lead { margin-top: 28px; font-size: 1.3125rem; line-height: 1.55; }
.sb-hero__lead p { max-width: var(--sb-zeile); }
.sb-hero__person { margin-top: 28px; max-width: var(--sb-zeile); display: flex; align-items: flex-start; gap: 16px; }
.sb-hero__person p { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.sb-hero__foto { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sb-hero__aktion { margin-top: 28px; }
@media (max-width: 760px) {
    .sb-hero { margin-top: 36px; }
    .sb-hero__lead { font-size: 1.1875rem; }
}

/* ===== Baustein: Anfrageformular (Feinschliff nach Entwurf) ===== */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.sb-inhalt form .form-element { margin: 0 0 20px; }
.sb-inhalt form .required { color: var(--sb-dunkel); }

/* Auswahl „Was brauchen Sie?“: untereinander, große Klickflächen */
.sb-inhalt form .form-element-radio { margin-bottom: 24px; }
.sb-inhalt form .form-element-radio legend { margin-bottom: 8px; }
.sb-inhalt form [role="radiogroup"] { display: flex; flex-direction: column; align-items: flex-start; }
.sb-inhalt form .form-check { margin: 0; }
.sb-inhalt form .form-check-wrapping-label { cursor: pointer; }
.sb-inhalt form .form-element-check .form-check-wrapping-label { gap: 10px; }

/* Dateifeld */
.sb-inhalt form input[type="file"].form-control { padding: 10px 12px; cursor: pointer; }
.sb-inhalt form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 8px 14px;
    border: 1.5px solid var(--sb-blau);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--sb-blau);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.sb-inhalt form input[type="file"]::file-selector-button:hover { background: var(--sb-hellblau); }

/* Fokus auf Feldern: Rahmen plus Ring */
.sb-inhalt form .form-control:focus-visible { border-color: var(--sb-blau); }

/* Aufklapper „Weitere Angaben“ */
.sb-aufklapper { margin: 4px 0 24px; font-size: 1.0625rem; }
.sb-aufklapper__schalter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--sb-blau);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.sb-aufklapper__schalter::-webkit-details-marker { display: none; }
.sb-aufklapper__schalter::before {
    content: "";
    width: .5em;
    height: .5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s;
}
.sb-aufklapper[open] > .sb-aufklapper__schalter::before { transform: rotate(45deg); }
.sb-aufklapper__schalter:hover { text-decoration: underline; text-underline-offset: .15em; }
.sb-inhalt form .sb-aufklapper__inhalt { margin: 12px 0 0; padding: 0; border: 0; }
/* Name und Organisation nebeneinander, wenn Platz ist */
@media (min-width: 40em) {
    .sb-aufklapper__inhalt { display: flex; flex-wrap: wrap; column-gap: 20px; }
    .sb-aufklapper__inhalt > .form-element { flex: 1 1 100%; }
    .sb-aufklapper__inhalt > .form-element-text { flex: 1 1 200px; }
    .sb-aufklapper__inhalt > .form-element-date { flex: 0 1 16em; }
}

/* Datenschutz-Hinweis über dem Button */
.sb-formular__hinweis { font-size: 1rem; color: var(--sb-grau); }
.sb-inhalt form .form-element-statictext { margin: 8px 0 0; }
.sb-inhalt form .actions { margin-top: 16px; }

@media (forced-colors: active) {
    .sb-aufklapper__schalter::before { border-color: LinkText; }
}

/* ===== Baustein: Fähnchen-Hinweis mit Schalter ===== */
/* Content Blocks haben keinen .frame-Rahmen, deshalb eigener Abstand nach oben */
.sb-fahnen-hinweis {
    margin-top: 16px;
    max-width: var(--sb-zeile);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    font-size: 1rem;
    color: var(--sb-grau);
}
.sb-fahnen-hinweis__text { flex: 1 1 300px; }
.sb-fahnen-hinweis__schalter {
    min-height: 44px;
    padding: 6px 12px;
    border: 1.5px solid var(--sb-blau);
    border-radius: 4px;
    background: transparent;
    color: var(--sb-blau);
    font: inherit;
    font-size: .9375rem;
    cursor: pointer;
}
.sb-fahnen-hinweis__schalter:hover { background: var(--sb-hellblau); }
.sb-fahnen-hinweis__schalter[aria-pressed="true"] { background: var(--sb-hellblau); font-weight: 600; }
.sb-fahnen-hinweis__schalter[aria-pressed="true"]::before { content: "✓ " / ""; }
@media (forced-colors: active) {
    .sb-fahnen-hinweis__schalter[aria-pressed="true"] { border-width: 3px; }
}

/* ===== Definitionsliste (Aufzählung, Typ „Definitionsliste“) =====
   Leistungsliste „Was Sie von mir bekommen“: Begriff links groß, Erklärung rechts. */
.sb-inhalt dl.ce-bullets {
    max-width: 720px;
    margin: 0;
    padding-top: 20px;
    border-top: 3px solid var(--sb-dunkel);
    display: grid;
    grid-template-columns: minmax(0, 12em) minmax(0, 1fr);
    gap: 20px 28px;
}
.sb-inhalt dl.ce-bullets dt { font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.sb-inhalt dl.ce-bullets dd { margin: 0; }
.frame-type-bullets:has(> dl) > .sb-fahne { top: 24px; }
@media (max-width: 760px) {
    .sb-inhalt dl.ce-bullets { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
    .sb-inhalt dl.ce-bullets dd { margin-bottom: 14px; }
}

/* ===== Wanderndes Dokument (rechte Spalte der Startseite) =====
   data-schritt 0–5 setzt dokument.js beim Scrollen. Ebenen nach Entwurf:
   Schleier und Tags 1–4, Reihenfolge 2–4, Alternativtext 3–4, Haken 4, Siegel 5. */
.sb-spalte__klebend { position: sticky; top: 28px; }
.sb-doku { width: 260px; display: flex; flex-direction: column; gap: 10px; color: var(--sb-dunkel); }
/* feste Höhe für den Stationstext, damit das Bild beim Wechsel nicht springt */
.sb-doku__kopf { min-height: 5.75rem; }
.sb-doku__station { display: none; margin: 0; flex-direction: column; gap: 1px; }
.sb-doku__station strong { font-size: 1.0625rem; line-height: 1.25; }
.sb-doku__station span { font-size: .875rem; line-height: 1.35; color: var(--sb-grau); }
.sb-doku__station .sb-doku__nr { font-size: .8125rem; }
.sb-doku__bild { display: block; width: 220px; height: auto; font-family: "Fira Sans", sans-serif; }
.sb-doku__ebene { opacity: 0; transition: opacity .45s ease; }
.sb-doku__schleier { fill-opacity: .72; }

.sb-doku__zaehler { margin: 0; font-size: .8125rem; color: var(--sb-grau); }
.sb-doku__zaehler span { display: none; }
.sb-doku__liste ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.sb-doku__liste li { display: flex; align-items: center; gap: 9px; font-size: .875rem; line-height: 1.3; color: var(--sb-grau); }
.sb-doku__kasten {
    flex: none;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1.5px solid #6B7A88;
    border-radius: 4px;
    background: #FFFFFF center / 12px no-repeat;
    transition: background-color .45s ease, border-color .45s ease;
}

/* Stationstext und Zähler */
.sb-doku[data-schritt="0"] [data-fuer="0"], .sb-doku[data-schritt="1"] [data-fuer="1"],
.sb-doku[data-schritt="2"] [data-fuer="2"], .sb-doku[data-schritt="3"] [data-fuer="3"],
.sb-doku[data-schritt="4"] [data-fuer="4"], .sb-doku[data-schritt="5"] [data-fuer="5"] { display: flex; }
.sb-doku__zaehler [data-fuer] { display: none; }
.sb-doku[data-schritt="0"] .sb-doku__zaehler [data-fuer="0"], .sb-doku[data-schritt="1"] .sb-doku__zaehler [data-fuer="1"],
.sb-doku[data-schritt="2"] .sb-doku__zaehler [data-fuer="2"], .sb-doku[data-schritt="3"] .sb-doku__zaehler [data-fuer="3"],
.sb-doku[data-schritt="4"] .sb-doku__zaehler [data-fuer="4"], .sb-doku[data-schritt="5"] .sb-doku__zaehler [data-fuer="5"] { display: inline; }

/* Ebenen im Bild */
.sb-doku:is([data-schritt="1"], [data-schritt="2"], [data-schritt="3"], [data-schritt="4"]) :is(.sb-doku__schleier, .sb-doku__tags) { opacity: 1; }
.sb-doku:is([data-schritt="2"], [data-schritt="3"], [data-schritt="4"]) .sb-doku__reihenfolge { opacity: 1; }
.sb-doku:is([data-schritt="3"], [data-schritt="4"]) .sb-doku__alt { opacity: 1; }
.sb-doku[data-schritt="4"] .sb-doku__haken { opacity: 1; }
.sb-doku[data-schritt="5"] .sb-doku__fertig { opacity: 1; }

/* Checkliste: Punkt n ist ab Schritt n erledigt */
.sb-doku[data-schritt="1"] li:nth-child(-n+1),
.sb-doku[data-schritt="2"] li:nth-child(-n+2),
.sb-doku[data-schritt="3"] li:nth-child(-n+3),
.sb-doku[data-schritt="4"] li:nth-child(-n+4),
.sb-doku[data-schritt="5"] li { color: var(--sb-dunkel); }
.sb-doku[data-schritt="1"] li:nth-child(-n+1) .sb-doku__kasten,
.sb-doku[data-schritt="2"] li:nth-child(-n+2) .sb-doku__kasten,
.sb-doku[data-schritt="3"] li:nth-child(-n+3) .sb-doku__kasten,
.sb-doku[data-schritt="4"] li:nth-child(-n+4) .sb-doku__kasten,
.sb-doku[data-schritt="5"] li .sb-doku__kasten {
    border-color: var(--sb-blau);
    background-color: var(--sb-blau);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Feste Abbildung für das Handy (Baustein „Dokument als Bild“) */
.sb-doku-handy { display: none; }
.sb-doku--bild { width: auto; }
@media (max-width: 999px) {
    .sb-doku-handy { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 0; }
    .sb-doku-handy figcaption { max-width: 22em; font-size: .9375rem; color: var(--sb-grau); }
}

@media (forced-colors: active) {
    .sb-doku__bild { forced-color-adjust: none; }
}

/* ===== Tabelle „Gegenüberstellung Sie / Ich“ =====
   Element „Tabelle“, Tabellenklasse „Gegenüberstellung Sie / Ich“, erste Zeile als Kopf.
   Linie unter „Sie“ blau (Kunde), unter „Ich“ pink (was ich hinzufüge). */
.sb-inhalt .ce-table-gegenueberstellung { max-width: 760px; }
.sb-inhalt .ce-table-gegenueberstellung thead th {
    padding: 12px 18px 12px 0;
    border-bottom: 4px solid var(--sb-dunkel);
    font-weight: 700;
}
.sb-inhalt .ce-table-gegenueberstellung thead th:first-child { width: 38%; border-bottom-color: var(--sb-blau); }
.sb-inhalt .ce-table-gegenueberstellung thead th:last-child { border-bottom-color: var(--sb-pink); }
.sb-inhalt .ce-table-gegenueberstellung td { padding: 16px 18px 16px 0; }
.sb-inhalt .ce-table-gegenueberstellung td:last-child { padding-right: 0; }
@media (forced-colors: active) {
    .sb-inhalt .ce-table-gegenueberstellung thead th { border-bottom-color: CanvasText; }
}

/* ===== Baustein: Kontaktbox (Moin, ich bin …) =====
   Bewusster Bruch zum technischen Rest: Hellrosé, Person mit Foto, kein Fähnchen. */
.sb-kontakt {
    margin-top: 140px;
    padding: 40px;
    border-radius: 6px;
    background: var(--sb-rose);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px 36px;
}
.sb-kontakt__foto { flex: none; width: 168px; height: 210px; border-radius: 4px; object-fit: cover; }
.sb-kontakt__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sb-kontakt__text h2 { margin: 0; }
.sb-kontakt__text p { margin: 0; max-width: 30em; }
.sb-kontakt__mail { margin-top: 6px !important; font-size: 1.25rem; }
.sb-kontakt__mail a { font-weight: 600; }
.sb-kontakt__ort { font-size: 1rem; }
@media (max-width: 760px) {
    .sb-kontakt { margin-top: 80px; padding: 24px; }
}
@media (forced-colors: active) {
    .sb-kontakt { border: 1px solid CanvasText; }
}

/* ===== Blaues Band (Spalte „Blaues Band“, z. B. Ratgeber) ===== */
.sb-band__innen {
    max-width: var(--sb-breite);
    margin: 0 auto;
    padding: 72px var(--sb-rand) 96px calc(var(--sb-rand) + var(--sb-fahne) + var(--sb-fahne-abstand));
    box-sizing: border-box;
}
.sb-band .frame { position: relative; }
.sb-band .frame + .frame { margin-top: 28px; }
.sb-band :where(p) { max-width: var(--sb-zeile); margin: 0 0 1em; }
.sb-band :where(p):last-child { margin-bottom: 0; }
.sb-band .frame > header > h2 { margin: 0 0 8px; }
@media (max-width: 760px) {
    .sb-band__innen { padding: 56px var(--sb-rand) 72px; }
    .sb-band .sb-fahne { position: static; display: inline-block; margin: 0 0 8px; }
}

/* Ratgeber-Liste im Band: Titel als Link, Datum und Kategorie in Hellrosé */
.sb-ratgeber__liste { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.sb-ratgeber__punkt { padding: 14px 0; border-bottom: 1px solid #5470B3; }
.sb-ratgeber__punkt:last-child { border-bottom: 0; }
.sb-ratgeber__link { display: block; font-weight: 500; }
.sb-ratgeber__meta { display: block; font-size: 1rem; color: var(--sb-rose); }
.sb-ratgeber__alle { margin: 20px 0 0; }
.sb-ratgeber__alle a { font-weight: 600; }

/* ===== Baustein: Prüfbalken (87 zu 47) =====
   Hellblau = was Software prüft, Pink = was ich von Hand prüfe (einzige pinke Fläche der Seite),
   dunkles Ende = ohne Prüfverfahren. Balken aria-hidden, Bildunterschrift trägt die Zahlen. */
.sb-balken-element { position: relative; margin-top: 28px; }
.sb-balken-element > .sb-fahne { top: 18px; }
.sb-balken { margin: 0; max-width: 720px; }
.sb-balken__leiste { display: flex; min-height: 64px; border-radius: 4px; overflow: hidden; }
.sb-balken__teil {
    flex-basis: 0;
    flex-shrink: 1;
    min-width: 0;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sb-balken__teil--software { background: var(--sb-hellblau); color: var(--sb-blau); }
.sb-balken__teil--hand { background: var(--sb-pink); color: var(--sb-dunkel); }
.sb-balken__teil--ohne { background: var(--sb-dunkel); min-width: 6px; padding: 0; }
.sb-balken__zahl { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.sb-balken__text { font-size: .875rem; font-weight: 500; line-height: 1.25; }
.sb-balken__unterschrift { margin-top: 10px; font-size: 1rem; color: var(--sb-grau); }
.sb-balken__unterschrift p { margin: 0; }
@media (max-width: 760px) {
    .sb-balken__teil { padding: 8px 10px; }
}
@media (forced-colors: active) {
    .sb-balken__teil { border: 2px solid CanvasText; }
}

/* ===== Sprungmarken (Hauptmenü als One-Pager) ===== */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
.sb-inhalt [id] { scroll-margin-top: 16px; }
.sb-band [id] { scroll-margin-top: 72px; }
@media (max-width: 760px) {
    .sb-band [id] { scroll-margin-top: 56px; }
}

/* ===== Klebender Kopf =====
   Nur bei mindestens 560 px Fensterhöhe: Bei starkem Zoom oder Handy quer
   würde der Kopf sonst zu viel vom Inhalt verdecken (WCAG 1.4.10).
   scroll-padding hält Sprungziele und fokussierte Elemente unter dem Kopf
   frei (WCAG 2.4.11). Die Höhe misst navigation.js (--sb-kopf-hoehe). */
@media (min-height: 560px) {
    .sb-kopfleiste { position: sticky; top: 0; z-index: 50; }
    html { scroll-padding-top: calc(var(--sb-kopf-hoehe, 90px) + 12px); }
    .sb-spalte__klebend { top: calc(var(--sb-kopf-hoehe, 90px) + 28px); }
}
.sb-kopfleiste--klebt { border-bottom-color: var(--sb-linie); }
@media (forced-colors: active) {
    .sb-kopfleiste { background: Canvas; border-bottom-color: CanvasText; }
}

/* ===== Ratgeber: Übersicht der Beiträge =====
   Wie der Rest der Seite: keine Karten, dunkle Linien als Trenner,
   Titel als blauer Link, Datum und Kategorie in Grau. */
.sb-beitraege__liste { list-style: none; margin: 0; padding: 0; max-width: var(--sb-zeile); border-bottom: 1px solid var(--sb-dunkel); }
.sb-beitrag { margin: 0; padding: 28px 0 32px; border-top: 1px solid var(--sb-dunkel); }
.sb-inhalt .sb-beitrag__titel { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 600; hyphens: manual; }
.sb-beitrag__titel a { text-underline-offset: .15em; text-decoration-thickness: 1px; }
.sb-beitrag__titel a:hover { text-decoration-thickness: 3px; }
.sb-beitrag__meta { margin: 8px 0 0; font-size: 1rem; color: var(--sb-grau); }
.sb-beitrag__anriss { margin-top: 14px; }
.sb-beitrag__anriss p { margin: 0; }
.sb-beitraege__keine { color: var(--sb-grau); }

/* ===== Ratgeber: einzelner Beitrag ===== */
.sb-artikel__kopf { max-width: var(--sb-zeile); margin-bottom: 3rem; }
.sb-inhalt .sb-artikel__titel { margin: 1rem 0 0; }
.sb-artikel__meta { margin: 14px 0 0; font-size: 1rem; color: var(--sb-grau); }
.sb-artikel__rumpf { display: grid; gap: 2rem; }
.sb-artikel__text { max-width: var(--sb-zeile); min-width: 0; }
.sb-artikel__text > :first-child { margin-top: 0; }
.sb-artikel__text :is(h2, h3) { margin-top: 2.5rem; }
.sb-artikel__medien { display: grid; gap: 1.5rem; align-content: start; }
.sb-artikel__medium { margin: 0; }
.sb-artikel__medium :is(img, video) { display: block; width: 100%; height: auto; border-radius: 4px; }
.sb-artikel__medium iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.sb-artikel__medium figcaption { margin-top: .5rem; font-size: 1rem; color: var(--sb-grau); }
@media (min-width: 1000px) {
    .sb-artikel__rumpf--mit-medien { grid-template-columns: minmax(0, var(--sb-zeile)) minmax(14rem, 18rem); column-gap: 3rem; }
    .sb-artikel__rumpf--mit-medien .sb-artikel__medien { grid-column: 2; grid-row: 1; }
}
.sb-artikel__verwandt { max-width: var(--sb-zeile); margin-top: 4rem; padding-top: 28px; border-top: 1px solid var(--sb-dunkel); }
.sb-inhalt .sb-artikel__verwandt h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
.sb-artikel__zurueck { margin-top: 4rem; font-weight: 600; }
@media (max-width: 760px) {
    .sb-inhalt .sb-beitrag__titel { font-size: 1.3125rem; }
}

/* Lange Adressen und Mailadressen umbrechen statt die Seite zu verbreitern (WCAG 1.4.10) */
.sb-inhalt a { overflow-wrap: anywhere; }
/* Tabellen: lange Wörter trennen, damit sie bei 320 px nicht über den Rand ragen */
.sb-inhalt :is(td, th) { hyphens: auto; overflow-wrap: break-word; }
/* Sehr schmale Fenster und erhöhte Textabstände (1.4.10/1.4.12): Wortmarke wächst mit
   der Breite, überlange Wörter brechen notfalls um statt die Seite zu verbreitern */
.sb-logo { font-size: clamp(1.25rem, 6vw, 1.5625rem); }
body { overflow-wrap: break-word; }
/* Erste Spalte (Zeilenbeschriftung) nicht silbentrennen: sonst schrumpft sie auf
   Silbenbreite. Sie wird so breit wie ihr längstes Wort, der Rest geht an Spalte 2. */
.sb-inhalt :is(td, th):first-child { hyphens: manual; }
/* In Zellen nur lange Wörter trennen (ab 10 Zeichen, mind. 4 je Teil), sonst wird es unruhig */
.sb-inhalt :is(td, th) { hyphenate-limit-chars: 10 4 4; }
