/* Neufang Online 2.0: Leser-Frontend.
   Setzt basis.css (Token) und ui.css (Knopf, Feld, Marke, Chip, Karte, Segment, Reiter, Menü) voraus und
   ergänzt nur Layout und die Bausteine, die es allein im Frontend gibt:
   Kopfleiste, Fußzeile, Seitenkopf, Bühne der Startseite, Heft-Kachel, Karten für Artikel und Videos,
   Listenzeilen, Seitenzahlen, Ausgabenübersicht, Heftseite, Leselayout des Artikels (Rahmen; die
   Bausteine selbst gestaltet shared/artikel.css), Suche, Schlagwörter, Formulare, Fehlerseiten.
   Breiten: Telefon bis 600 px, Tablet bis 1023 px, Desktop ab 1024 px; Leselayout mit Randspalte ab 1100 px. */

:root { --nf-kopf-hoehe: 64px; }
html { scroll-padding-top: calc(var(--nf-kopf-hoehe) + 20px); }
body.nf-seite { display: flex; flex-direction: column; min-height: 100vh; }
body.nf-seite > main { flex: 1 0 auto; padding-bottom: 72px; }
body.nf-seite > main:focus { outline: none; }
/* :where hält die Spezifität bei null, damit Knöpfe, Chips und Menüpunkte aus ui.css ihre Farbe behalten. */
:where(.nf-seite a) { color: var(--nf-orange-text); text-underline-offset: 3px; }
.nf-seite h1, .nf-seite h2, .nf-seite h3 { color: var(--nf-tinte); }
.nf-seite img { max-width: 100%; }
.nf-wrap { width: 100%; max-width: calc(var(--nf-seite-breite) + 48px); margin: 0 auto; padding: 0 24px; }
.nf-icon { flex: none; display: inline-block; vertical-align: middle; }
.nf-leise { color: var(--nf-text-leise); }
.nf-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--nf-anthrazit); color: #fff !important; border-radius: var(--nf-radius); text-decoration: none; }
.nf-skip:focus { top: 12px; }

/* ---------- Kopfleiste ---------- */
.nf-kopf { position: sticky; top: 0; z-index: 50; background: var(--nf-flaeche-weiss); border-bottom: 1px solid var(--nf-linie); }
.nf-kopf__zeile { position: relative; display: flex; align-items: center; gap: 8px; height: var(--nf-kopf-hoehe); }
.nf-logo { flex: none; display: flex; align-items: center; height: 44px; margin-right: 20px; border-radius: var(--nf-radius-s); }
.nf-logo img { display: block; width: auto; height: 36px; }
.nf-kopf__knopf { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--nf-text) !important; background: none; border: 0; border-radius: 10px; cursor: pointer; transition: background var(--nf-tempo); }
.nf-kopf__knopf:hover { background: var(--nf-flaeche-3); }
.nf-kopf__menueknopf, .nf-kopf__sucheknopf { display: none; }
.nf-kopf__zu, .menue-offen .nf-kopf__auf { display: none; }
.menue-offen .nf-kopf__zu { display: inline-grid; }

.nf-nav__liste { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nf-nav__link { position: relative; display: flex; align-items: center; gap: 4px; height: var(--nf-kopf-hoehe); padding: 0 12px; font: 550 15px/1 var(--nf-schrift); letter-spacing: -0.005em; color: var(--nf-text) !important; text-decoration: none; white-space: nowrap; }
.nf-nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background var(--nf-tempo); }
.nf-nav__link:hover { color: var(--nf-tinte) !important; }
.nf-nav__link:focus-visible { outline-offset: -6px; border-radius: 12px; }
.nf-nav__link:hover::after { background: var(--nf-linie-stark); }
.nf-nav__link[aria-current] { color: var(--nf-tinte) !important; font-weight: 650; }
.nf-nav__link[aria-current]::after { background: var(--nf-orange); }
.nf-nav__pfeil { color: var(--nf-text-leise); transition: transform var(--nf-tempo); }
.nf-nav__gruppe { position: relative; }
.nf-nav__unter { display: none; top: calc(100% - 8px); left: 0; }
.nf-nav__gruppe:hover .nf-nav__unter, .nf-nav__gruppe:focus-within .nf-nav__unter { display: block; }
.nf-nav__gruppe.ist-zu .nf-nav__unter { display: none; }
.nf-nav__gruppe:hover .nf-nav__pfeil, .nf-nav__gruppe:focus-within .nf-nav__pfeil { transform: rotate(180deg); }
.nf-seite .nf-menue-punkt { color: var(--nf-text); min-height: 40px; }
.nf-seite .nf-menue form { margin: 0; }

.nf-kopfsuche { position: relative; flex: 1 1 200px; max-width: 340px; margin: 0 0 0 auto; }
.nf-kopfsuche .nf-eingabe { height: 40px; padding-right: 40px; font-size: 15px; background-color: var(--nf-flaeche); border-color: transparent; border-radius: 10px; }
.nf-kopfsuche .nf-eingabe:hover { border-color: var(--nf-linie-stark); }
.nf-kopfsuche .nf-eingabe:focus { background-color: var(--nf-flaeche-weiss); border-color: var(--nf-orange); }
.nf-kopfsuche__taste { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.nf-kopfsuche .nf-eingabe:focus + .nf-kopfsuche__taste, .nf-kopfsuche .nf-eingabe:not(:placeholder-shown) + .nf-kopfsuche__taste { display: none; }
.nf-kopf__rechts { flex: none; display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nf-konto { position: relative; }
.nf-konto__knopf { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 5px; font: 550 14px/1 var(--nf-schrift); color: var(--nf-text); background: none; border: 0; border-radius: 22px; cursor: pointer; transition: background var(--nf-tempo); }
.nf-konto__knopf:hover, .nf-konto__knopf[aria-expanded="true"] { background: var(--nf-flaeche-3); }
.nf-konto__kreis { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; font: 600 12.5px/1 var(--nf-schrift); letter-spacing: .02em; color: #fff; background: var(--nf-anthrazit); border-radius: 50%; }
.nf-konto__name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-konto__menue { right: 0; top: calc(100% + 6px); min-width: 232px; }
.nf-konto__wer { margin: 0; padding: 8px 10px 6px; font-size: 12.5px; line-height: 1.4; color: var(--nf-text-leise); }
.nf-konto__wer strong { display: block; font-size: 14px; font-weight: 600; color: var(--nf-tinte); overflow-wrap: anywhere; }
.nf-kopf__anmelden { height: 40px; color: var(--nf-text) !important; }
.nf-schleier { position: fixed; inset: var(--nf-kopf-hoehe) 0 0 0; z-index: 40; background: rgba(20, 22, 26, .35); }
.nf-fortschritt { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--nf-orange); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

@media (max-width: 1199px) { .nf-konto__name { display: none; } }
@media (max-width: 1023px) {
  .nf-kopf__menueknopf { display: inline-grid; margin-left: -10px; }
  .nf-logo { margin-right: 8px; }
  .nf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 45; max-height: calc(100vh - var(--nf-kopf-hoehe)); max-height: calc(100dvh - var(--nf-kopf-hoehe)); overflow-y: auto; padding: 8px 24px 20px; background: var(--nf-flaeche-weiss); border-bottom: 1px solid var(--nf-linie); box-shadow: var(--nf-schatten); }
  .menue-offen .nf-nav { display: block; }
  .nf-nav__liste { flex-direction: column; gap: 0; }
  .nf-nav__liste > li + li { border-top: 1px solid var(--nf-linie); }
  .nf-nav__link { height: 52px; padding: 0 4px; font-size: 16px; }
  .nf-nav__link::after { left: -24px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; border-radius: 0 2px 2px 0; }
  .nf-nav__link:hover::after { background: transparent; }
  .nf-nav__link[aria-current]::after { background: var(--nf-orange); }
  .nf-nav__pfeil { display: none; }
  .nf-nav__unter, .nf-nav__gruppe.ist-zu .nf-nav__unter { display: block; position: static; min-width: 0; margin: -4px 0 8px; padding: 0 0 0 16px; border: 0; border-radius: 0; box-shadow: none; }
  .nf-nav__unter .nf-menue-punkt { min-height: 44px; font-size: 15px; color: var(--nf-text-leise); }
  .nf-nav__unter .nf-menue-trenner { display: none; }
}
@media (max-width: 600px) {
  :root { --nf-kopf-hoehe: 56px; }
  .nf-wrap { padding: 0 16px; }
  .nf-logo img { height: 32px; }
  .nf-nav { padding: 4px 16px 16px; }
  .nf-nav__link::after { left: -16px; }
  .nf-kopf__rechts { margin-left: auto; }
  .nf-kopf__sucheknopf { display: inline-grid; }
  .nf-kopfsuche { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 44; max-width: none; margin: 0; padding: 8px 16px 12px; background: var(--nf-flaeche-weiss); border-bottom: 1px solid var(--nf-linie); box-shadow: var(--nf-schatten); }
  .suche-offen .nf-kopfsuche { display: block; }
  .nf-kopfsuche .nf-eingabe { height: 44px; font-size: 16px; }
  .nf-kopfsuche__taste { display: none; }
  .nf-kopf__anmelden { height: 44px; padding: 0 14px; }
  .nf-seite .nf-menue-punkt { min-height: 44px; }
}

/* ---------- Fußzeile ---------- */
.nf-fuss { flex: none; background: var(--nf-anthrazit); color: var(--nf-anthrazit-text); font-size: 14px; }
.nf-fuss__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 24px; padding-bottom: 24px; }
.nf-fuss p { margin: 0; }
.nf-fuss__marke { font-weight: 600; color: #fff; }
.nf-fuss__links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.nf-fuss__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--nf-anthrazit-text); text-decoration: none; border-radius: var(--nf-radius-s); }
.nf-fuss__links a:hover { color: #fff; background: var(--nf-anthrazit-2); }
.nf-fuss__hinweis { font-size: 13px; color: #9A9DA5; }
@media (max-width: 600px) { .nf-fuss__links { margin: 0 -10px; width: 100%; } }

/* ---------- Nach oben ---------- */
.nf-nachoben { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--nf-text); background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie-stark); border-radius: 50%; box-shadow: var(--nf-schatten); cursor: pointer; transition: opacity var(--nf-tempo), background var(--nf-tempo); }
.nf-nachoben[hidden] { display: none; }
.nf-nachoben:hover { background: var(--nf-flaeche-2); color: var(--nf-tinte); }

/* ---------- Seitenkopf, Abschnitte ---------- */
.nf-seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding: 40px 0 28px; }
.nf-seitenkopf__text { min-width: 0; }
.nf-seitenkopf h1 { margin: 0; font: 650 clamp(27px, 3.4vw, 36px)/1.12 var(--nf-schrift); letter-spacing: -0.022em; overflow-wrap: break-word; hyphens: auto; }
.nf-seitenkopf h1 em { font-style: normal; color: var(--nf-orange-text); }
.nf-seitenkopf__unter { margin: 8px 0 0; font-size: 16px; color: var(--nf-text-leise); }
.nf-seitenkopf__unter strong { color: var(--nf-tinte); font-weight: 600; }
.nf-seitenkopf__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nf-ueberzeile { margin: 0 0 8px; font: 550 13px/1.3 var(--nf-schrift); color: var(--nf-text-leise); }
.nf-ueberzeile a { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; color: var(--nf-text-leise); text-decoration: none; }
.nf-ueberzeile a:hover { color: var(--nf-orange-text); }
.nf-abschnitt { margin-top: 56px; }
.nf-abschnitt__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.nf-abschnitt__kopf h2, .nf-h2 { margin: 0; font: 650 22px/1.25 var(--nf-schrift); letter-spacing: -0.015em; }
.nf-anzahl { margin-left: 4px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-mehr { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; font: 550 14px/1.2 var(--nf-schrift); text-decoration: none; white-space: nowrap; }
.nf-mehr:hover { text-decoration: underline; }
.nf-zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.nf-zweispaltig > .nf-abschnitt { min-width: 0; }
@media (min-width: 901px) {
  .nf-zweispaltig .nf-abschnitt__kopf { flex-wrap: nowrap; }
  .nf-zweispaltig .nf-abschnitt__kopf h2 { font-size: 20px; }
}
.nf-seite .nf-leer { background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-gross); }
.nf-seite .nf-leer p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .nf-zweispaltig { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .nf-seitenkopf { padding: 28px 0 20px; }
  .nf-abschnitt { margin-top: 40px; }
  .nf-abschnitt__kopf { align-items: center; }
  .nf-abschnitt__kopf h2, .nf-h2 { font-size: 20px; }
  .nf-mehr { min-height: 44px; }
  .nf-brotkrumen a { display: inline-flex; align-items: center; min-height: 44px; }
  .nf-ueberzeile a { min-height: 44px; }
  body.nf-seite > main { padding-bottom: 48px; }
}

/* ---------- Heft-Kachel (Erkennungszeichen) ---------- */
.nf-ausgaben { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.nf-ausgabe { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 1 / 1.1; padding: 12px 6px 14px; text-align: center; text-decoration: none; color: #fff !important; background: var(--nf-orange); border-radius: 14px; transition: background var(--nf-tempo), transform var(--nf-tempo), box-shadow var(--nf-tempo); }
.nf-ausgabe:hover { background: var(--nf-orange-hover); transform: translateY(-2px); box-shadow: var(--nf-schatten); }
.nf-ausgabe:active { background: var(--nf-orange-aktiv); transform: none; }
.nf-ausgabe:focus-visible { outline-color: var(--nf-tinte); }
.nf-ausgabe__jahr { font: 600 12px/1 var(--nf-schrift); letter-spacing: .06em; opacity: .9; }
.nf-ausgabe__nummer { display: grid; place-items: center; width: 68px; height: 68px; margin: 12px 0; font: 700 30px/1 var(--nf-schrift); letter-spacing: -0.02em; color: var(--nf-orange); background: #fff; border-radius: 50%; }
.nf-ausgabe__nummer--lang { font-size: 22px; }
.nf-ausgabe__name { max-width: 100%; font: 650 16px/1.2 var(--nf-schrift); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-ausgabe__monat { margin-top: 3px; font: 500 13px/1.2 var(--nf-schrift); opacity: .92; }
.nf-ausgabe--kompakt { aspect-ratio: auto; padding: 10px 2px 8px; border-radius: 10px; }
.nf-ausgabe--kompakt .nf-ausgabe__nummer { width: 40px; height: 40px; margin: 0 0 6px; font-size: 17px; letter-spacing: 0; }
.nf-ausgabe--kompakt .nf-ausgabe__nummer--lang { font-size: 13px; }
.nf-ausgabe--kompakt .nf-ausgabe__monat { margin: 0; font: 600 11.5px/1.2 var(--nf-schrift); opacity: 1; }
@media (max-width: 1100px) {
  .nf-ausgaben { gap: 12px; }
  .nf-ausgaben .nf-ausgabe__name { font-size: 14.5px; }
}
@media (max-width: 900px) {
  .nf-ausgaben { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .nf-ausgaben .nf-ausgabe { aspect-ratio: 1 / .8; }
  .nf-ausgaben .nf-ausgabe__name { font-size: 16px; }
}
@media (max-width: 600px) {
  .nf-ausgaben { gap: 10px; }
  .nf-ausgaben .nf-ausgabe { aspect-ratio: 1 / 1.18; border-radius: 12px; }
  .nf-ausgaben .nf-ausgabe__nummer { width: 52px; height: 52px; margin: 8px 0; font-size: 23px; }
  .nf-ausgaben .nf-ausgabe__nummer--lang { font-size: 17px; }
  .nf-ausgaben .nf-ausgabe__name { font-size: 12.5px; letter-spacing: -0.02em; }
  .nf-ausgaben .nf-ausgabe__monat { font-size: 12px; }
}

/* ---------- Bühne der Startseite ---------- */
.nf-buehne { display: grid; grid-template-columns: 224px minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "bild kopf themen" "bild text themen"; column-gap: 40px; margin-top: 32px; padding: 36px 40px; background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-xl); }
.nf-buehne--ohne-bild { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "kopf themen" "text themen"; }
.nf-buehne__bild { grid-area: bild; align-self: center; }
.nf-buehne__bild img { display: block; width: 100%; height: auto; }
.nf-buehne__kopf { grid-area: kopf; align-self: end; padding-top: 4px; }
.nf-buehne__kopf h1 { margin: 12px 0 0; font: 650 clamp(28px, 3.2vw, 38px)/1.1 var(--nf-schrift); letter-spacing: -0.025em; }
.nf-buehne__heft { display: block; margin-top: 6px; font: 500 20px/1.3 var(--nf-schrift); letter-spacing: -0.01em; color: var(--nf-text-leise); }
.nf-buehne__text { grid-area: text; padding-bottom: 4px; }
.nf-buehne__text p { margin: 14px 0 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--nf-text-leise); }
.nf-buehne__zahlen { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.nf-buehne__aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nf-buehne__themen { grid-area: themen; min-width: 0; padding-left: 40px; border-left: 1px solid var(--nf-linie); }
.nf-buehne__themen h2 { margin: 0 0 6px; font: 600 13px/1.3 var(--nf-schrift); letter-spacing: .05em; text-transform: uppercase; color: var(--nf-text-leise); }
.nf-themen { margin: 0; padding: 0; list-style: none; }
.nf-themen li + li { border-top: 1px solid var(--nf-linie); }
.nf-themen a { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 0; color: var(--nf-tinte); text-decoration: none; }
.nf-themen__bild { flex: none; display: grid; place-items: center; width: 68px; height: 48px; overflow: hidden; color: var(--nf-text-zart); background: var(--nf-flaeche); border-radius: var(--nf-radius-s); }
.nf-themen__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nf-themen__titel { flex: 1; min-width: 0; font: 600 15.5px/1.35 var(--nf-schrift); letter-spacing: -0.005em; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-themen a .nf-icon { color: var(--nf-text-zart); }
.nf-themen a:hover .nf-themen__titel, .nf-themen a:hover .nf-icon { color: var(--nf-orange-text); }
.nf-buehne__themen .nf-mehr { margin-top: 10px; }
@media (max-width: 1100px) {
  .nf-buehne { grid-template-columns: 170px minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 28px; padding: 28px; }
  .nf-buehne__themen { padding-left: 28px; }
}
@media (max-width: 900px) {
  .nf-buehne { grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "bild kopf" "bild text" "themen themen"; }
  .nf-buehne--ohne-bild { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "text" "themen"; }
  .nf-buehne__themen { margin-top: 28px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--nf-linie); }
}
@media (max-width: 600px) {
  .nf-buehne { grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "kopf bild" "text text" "themen themen"; column-gap: 12px; margin-top: 16px; padding: 20px; }
  .nf-buehne__bild { align-self: start; margin: -4px -8px 0 0; }
  .nf-buehne__kopf { align-self: center; }
  .nf-buehne__heft { font-size: 17px; }
  .nf-buehne__aktionen .nf-knopf { flex: 1 1 auto; }
  .nf-buehne__themen { margin-top: 22px; padding-top: 20px; }
}

/* ---------- Karten: Artikel und Videos ---------- */
.nf-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.nf-raster > li { display: flex; min-width: 0; }
.nf-artikelkarte { display: flex; flex-direction: column; width: 100%; overflow: hidden; color: var(--nf-text) !important; }
.nf-videokarte { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px 18px; color: var(--nf-text) !important; }
.nf-videokarte__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 2px; }
.nf-raster--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.nf-artikelkarte__bild { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--nf-text-zart); background: var(--nf-flaeche-3); border-bottom: 1px solid var(--nf-linie); overflow: hidden; }
.nf-artikelkarte__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nf-videokarte__play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding-left: 2px; color: var(--nf-tinte); background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: 50%; transition: color var(--nf-tempo), border-color var(--nf-tempo); }
.nf-videokarte:hover .nf-videokarte__play { color: var(--nf-orange); border-color: var(--nf-orange-linie); }
.nf-artikelkarte__text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.nf-artikelkarte__meta { font: 500 12.5px/1.3 var(--nf-schrift); color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-artikelkarte__titel { font: 600 15.5px/1.35 var(--nf-schrift); letter-spacing: -0.005em; color: var(--nf-tinte); hyphens: auto; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nf-karte--klick:hover .nf-artikelkarte__titel { color: var(--nf-orange-text); }
@media (max-width: 1100px) { .nf-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nf-raster--vier, .nf-raster--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nf-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .nf-raster--videos { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .nf-artikelkarte__text { padding: 10px 12px 12px; }
  .nf-artikelkarte__titel { font-size: 14.5px; }
  .nf-videokarte { padding: 14px; }
}

/* ---------- Listenzeilen ---------- */
.nf-liste { margin: 0; padding: 0; list-style: none; background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-gross); overflow: hidden; }
.nf-liste > li + li { border-top: 1px solid var(--nf-linie); }
.nf-zeile { display: flex; align-items: center; gap: 6px 16px; min-height: 52px; padding: 11px 12px 11px 18px; color: var(--nf-text) !important; text-decoration: none; transition: background var(--nf-tempo); }
.nf-zeile:hover { background: var(--nf-flaeche-2); }
.nf-zeile:focus-visible { outline-offset: -2px; }
.nf-zeile__titel { flex: 1 1 0; min-width: 0; font: 550 15px/1.4 var(--nf-schrift); color: var(--nf-tinte); hyphens: auto; overflow-wrap: break-word; }
.nf-zeile:hover .nf-zeile__titel { color: var(--nf-orange-text); }
.nf-zeile__meta { flex: none; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--nf-text-leise); white-space: nowrap; }
.nf-zeile__heft { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.nf-zeile__datum { min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.nf-zeile__pfeil { color: var(--nf-text-zart); }
.nf-zeile:hover .nf-zeile__pfeil { color: var(--nf-orange-text); }
.nf-zeile__nr { flex: none; min-width: 22px; font: 550 14px/1.4 var(--nf-schrift); color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .nf-zeile { flex-wrap: wrap; padding: 12px 14px; }
  .nf-zeile__titel { flex-basis: 100%; }
  .nf-zeile__meta { flex-basis: 100%; flex-wrap: wrap; white-space: normal; }
  .nf-zeile__pfeil { display: none; }
  .nf-zeile__heft, .nf-zeile__datum { min-width: 0; text-align: left; }
}

/* ---------- Seitenzahlen ---------- */
.nf-seitennav { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }
.nf-seiten { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nf-seiten a, .nf-seiten span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; font: 550 14px/1 var(--nf-schrift); font-variant-numeric: tabular-nums; color: var(--nf-text) !important; text-decoration: none; border: 1px solid transparent; border-radius: var(--nf-radius); transition: background var(--nf-tempo), border-color var(--nf-tempo); }
.nf-seiten a { background: var(--nf-flaeche-weiss); border-color: var(--nf-linie); }
.nf-seiten a:hover { background: var(--nf-flaeche-2); border-color: var(--nf-linie-stark); color: var(--nf-tinte) !important; }
.nf-seiten .aktuell { color: var(--nf-orange-text) !important; background: var(--nf-orange-hell); border-color: var(--nf-orange-linie); font-weight: 650; }
.nf-seiten .aus { color: var(--nf-text-zart) !important; }
.nf-seiten .luecke { min-width: 20px; padding: 0; }
.nf-seiten__info { margin: 0; font-size: 13px; color: var(--nf-text-leise); }
@media (max-width: 600px) { .nf-seiten a, .nf-seiten span { min-width: 44px; height: 44px; } .nf-seiten .luecke { min-width: 12px; } }

/* ---------- Umschalter und Chip-Zeilen ---------- */
.nf-seite .nf-segment > a, .nf-seite .nf-segment > button { height: 38px; padding: 0 14px; font-size: 14px; color: var(--nf-text-leise); }
.nf-seite .nf-segment > [aria-current], .nf-seite .nf-segment > .ist-aktiv { color: var(--nf-tinte); }
.nf-seite a.nf-chip { color: var(--nf-text); }
.nf-seite a.nf-chip:hover, .nf-seite a.nf-chip[aria-current] { color: var(--nf-orange-text); }
.nf-chipzeile { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nf-chipzeile .nf-chip { min-height: 34px; padding: 4px 13px; font-size: 13.5px; }
.nf-chip small { font-size: 12px; font-weight: 500; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-filter { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 12px 20px; margin: 0; }
.nf-filter dt { font: 600 13px/34px var(--nf-schrift); color: var(--nf-text-leise); }
.nf-filter dd { margin: 0; min-width: 0; }
.nf-reiterleiste { margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.nf-reiterleiste::-webkit-scrollbar { display: none; }
.nf-seite .nf-reiter > a { padding: 12px 0 14px; font-size: 15px; color: var(--nf-text-leise); }
.nf-seite .nf-reiter > a[aria-current] { color: var(--nf-tinte); }
@media (max-width: 600px) {
  .nf-seite .nf-segment { display: flex; }
  .nf-seite .nf-segment > a { flex: 1 1 auto; justify-content: center; height: 44px; padding: 0 8px; }
  .nf-seite a.nf-chip, .nf-chipzeile .nf-chip { min-height: 44px; padding: 4px 15px; font-size: 14px; }
  .nf-filter { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nf-filter dt { line-height: 1.3; margin-top: 10px; }
  .nf-chipzeile--rollen { flex-wrap: nowrap; margin: 0 -16px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; }
  .nf-chipzeile--rollen::-webkit-scrollbar { display: none; }
  .nf-chipzeile--rollen > * { flex: none; }
}

/* ---------- Ausgabenübersicht ---------- */
.nf-ausgabenfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.nf-jahre { padding: 4px 28px; }
.nf-jahr { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 24px; padding: 22px 0; }
.nf-jahr + .nf-jahr { border-top: 1px solid var(--nf-linie); }
.nf-jahr > h2 { margin: 0; align-self: start; font: 650 26px/40px var(--nf-schrift); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nf-jahr > h2 small { display: block; margin-top: -4px; font: 500 12.5px/1.3 var(--nf-schrift); letter-spacing: 0; color: var(--nf-text-leise); }
.nf-jahr__inhalt { display: grid; gap: 14px; min-width: 0; }
.nf-jahr__magazin { margin: 0 0 6px; font: 600 12px/1.3 var(--nf-schrift); letter-spacing: .05em; text-transform: uppercase; color: var(--nf-text-leise); }
.nf-jahr__reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1240px) { .nf-jahr__reihe { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .nf-jahre { padding: 0 16px; }
  .nf-jahr { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .nf-jahr > h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
  .nf-jahr > h2 small { margin: 0; }
  .nf-jahr__reihe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Heftseite ---------- */
.nf-heftkopf { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 16px 32px; margin-top: 32px; padding: 26px 32px; background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-xl); }
.nf-heftkopf--ohne-bild { grid-template-columns: minmax(0, 1fr) auto; }
.nf-heftkopf__bild img { display: block; width: 100%; height: auto; }
.nf-heftkopf h1 { margin: 0; font: 650 clamp(27px, 3.4vw, 36px)/1.12 var(--nf-schrift); letter-spacing: -0.022em; }
.nf-heftkopf__unter { margin: 8px 0 0; color: var(--nf-text-leise); }
.nf-heftkopf__aktionen { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.nf-heftkopf__nachbarn { display: flex; gap: 8px; }
.nf-heftkopf__nachbarn .nf-knopf { flex: 1 1 0; padding: 0 10px; }
.nf-sprungleiste { margin: 20px 0 0; }
.nf-heft { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 40px; }
.nf-heft__haupt > .nf-abschnitt:first-child { margin-top: 36px; }
.nf-heft__seite { display: grid; gap: 28px; margin-top: 36px; }
.nf-heft__seite .nf-abschnitt { margin-top: 0; }
.nf-videoseite .nf-heft__seite { margin-top: 0; }
.nf-ergebnisse { margin-top: 24px; }
.nf-heft .nf-abschnitt { scroll-margin-top: calc(var(--nf-kopf-hoehe) + 20px); }
.nf-thema { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 4px 22px; padding: 20px; background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-gross); }
.nf-thema + .nf-thema { margin-top: 14px; }
.nf-thema__bild { grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; aspect-ratio: 16 / 11; overflow: hidden; color: var(--nf-text-zart); background: var(--nf-flaeche-3); border-radius: var(--nf-radius); }
.nf-thema__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nf-thema h3 { margin: 0; font: 650 19px/1.3 var(--nf-schrift); letter-spacing: -0.012em; hyphens: auto; }
.nf-thema h3 a { color: var(--nf-tinte); text-decoration: none; }
.nf-thema h3 a:hover { color: var(--nf-orange-text); }
.nf-thema__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: 13.5px; color: var(--nf-text-leise); }
.nf-gliederung { grid-column: 2; margin-top: 8px; }
.nf-gliederung summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font: 550 13.5px/1.3 var(--nf-schrift); color: var(--nf-text-leise); cursor: pointer; list-style: none; border-radius: var(--nf-radius-s); }
.nf-gliederung summary::-webkit-details-marker { display: none; }
.nf-gliederung summary:hover { color: var(--nf-tinte); }
.nf-gliederung summary .nf-icon { transition: transform var(--nf-tempo); }
.nf-gliederung[open] summary .nf-icon { transform: rotate(180deg); }
.nf-gliederung ol { margin: 6px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px solid var(--nf-linie); columns: 2 260px; column-gap: 28px; }
.nf-gliederung li { break-inside: avoid; }
.nf-gliederung li a { display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; line-height: 1.4; color: var(--nf-text); text-decoration: none; }
.nf-gliederung li a:hover { color: var(--nf-orange-text); }
.nf-gliederung .nr { flex: none; min-width: 18px; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-seitenkarte h2 { margin: 0 0 12px; font: 600 13px/1.3 var(--nf-schrift); letter-spacing: .05em; text-transform: uppercase; color: var(--nf-text-leise); }
.nf-videozeilen { margin: 0; padding: 0; list-style: none; }
.nf-videozeilen li + li { border-top: 1px solid var(--nf-linie); }
.nf-videozeilen a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 0; color: var(--nf-tinte); text-decoration: none; font: 550 14px/1.35 var(--nf-schrift); }
.nf-videozeilen a:hover { color: var(--nf-orange-text); }
.nf-videozeilen .nf-videokarte__play { width: 36px; height: 36px; flex: none; }
.nf-videozeilen a:hover .nf-videokarte__play { color: var(--nf-orange); border-color: var(--nf-orange-linie); }
.nf-mehr-chips summary { display: inline-flex; align-items: center; min-height: 34px; margin-top: 8px; font: 550 13.5px/1.3 var(--nf-schrift); color: var(--nf-orange-text); cursor: pointer; list-style: none; }
.nf-mehr-chips summary::-webkit-details-marker { display: none; }
.nf-mehr-chips[open] summary { display: none; }
.nf-mehr-chips .nf-chipzeile { margin-top: 8px; }
@media (max-width: 1000px) {
  .nf-heft { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nf-heft__seite { margin-top: 40px; }
}
@media (max-width: 760px) {
  .nf-heftkopf { grid-template-columns: 96px minmax(0, 1fr); padding: 20px; gap: 16px 20px; }
  .nf-heftkopf--ohne-bild { grid-template-columns: minmax(0, 1fr); }
  .nf-heftkopf__aktionen { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .nf-heftkopf__aktionen > .nf-knopf { flex: 1 1 200px; }
  .nf-heftkopf__nachbarn { flex: 1 1 200px; }
}
@media (max-width: 600px) {
  .nf-heftkopf { margin-top: 16px; grid-template-columns: 76px minmax(0, 1fr); }
  .nf-sprungleiste { margin: 14px -16px 0; }
  .nf-thema { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .nf-thema__bild { grid-row: auto; aspect-ratio: 16 / 7; margin-bottom: 10px; }
  .nf-gliederung { grid-column: 1; }
  .nf-gliederung summary, .nf-mehr-chips summary { min-height: 44px; }
  .nf-heftkopf__nachbarn .nf-knopf { height: 44px; }
  .nf-thema h3 a { display: block; padding: 7px 0; }
  .nf-heft .nf-liste .nf-zeile__meta { display: none; }       /* die Art steht schon in der Abschnittsüberschrift */
  .nf-gliederung li a { padding: 12px 0; }
}

/* ---------- Artikelseite: Rahmen des Leselayouts ---------- */
.nf-artikelkopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px 40px; padding: 36px 0 28px; }
.nf-artikelkopf .nf-artikel-titel { max-width: 860px; margin: 10px 0 0; padding: 0; font-size: clamp(26px, 3.1vw, 35px); line-height: 1.16; }
.nf-brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 550 13.5px/1.3 var(--nf-schrift); color: var(--nf-text-leise); }
.nf-brotkrumen a { text-decoration: none; }
.nf-brotkrumen a:hover { text-decoration: underline; }
.nf-artikelkopf__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 14px 0 0; font-size: 14px; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-artikelkopf__meta .nf-knopf { margin: -5px 0; color: var(--nf-text); }
.nf-artikelkopf__bild { margin: 0; }
.nf-artikelkopf__bild img { display: block; width: 264px; height: 150px; object-fit: cover; border-radius: var(--nf-radius-gross); border: 1px solid var(--nf-linie); }
.nf-lesen { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: start; gap: 32px; }
.nf-lesekarte { min-width: 0; padding: 22px 28px 10px; background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-xl); }
/* In der Karte trägt die Karte den Innenabstand: Bausteine ohne seitlichen Abstand, helle Flächen stehen 14 px über. */
.nf-lesekarte article.nf-artikel.nf-modus-web { --nf-marg-breite: 172px; --nf-spalte: 204px; --nf-a-px: 0px; --nf-a-rand: 14px; max-width: none; padding-bottom: 12px; }
.nf-leiste { position: sticky; top: calc(var(--nf-kopf-hoehe) + 24px); display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - var(--nf-kopf-hoehe) - 48px); overflow-y: auto; scrollbar-width: thin; padding: 2px 2px 8px; }
.nf-werkzeug { display: flex; gap: 8px; }
.nf-werkzeug .nf-knopf--primaer { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; color: #fff; }
.nf-schrift { flex: none; display: inline-flex; border: 1px solid var(--nf-linie-stark); border-radius: var(--nf-radius); background: var(--nf-flaeche-weiss); overflow: hidden; }
.nf-schrift button { display: inline-grid; place-items: center; width: 35px; height: 38px; padding: 0; font: 600 13px/1 var(--nf-schrift); color: var(--nf-text); background: none; border: 0; cursor: pointer; }
.nf-schrift button + button { border-left: 1px solid var(--nf-linie); font-size: 17px; }
.nf-schrift button:hover:not(:disabled) { background: var(--nf-flaeche-3); color: var(--nf-tinte); }
.nf-schrift button:disabled { color: var(--nf-text-zart); cursor: default; }
.nf-schrift button:focus-visible { outline-offset: -2px; }
.nf-leiste__titel { margin: 0 0 8px; font: 600 12px/1.3 var(--nf-schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--nf-text-leise); }
.nf-leiste__gruppe { padding-top: 16px; border-top: 1px solid var(--nf-linie); font-size: 14px; }
.nf-leiste__gruppe + .nf-leiste__gruppe { margin-top: -2px; }
.nf-angaben { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.nf-angaben dt { color: var(--nf-text-leise); }
.nf-angaben dd { margin: 0; color: var(--nf-tinte); font-weight: 500; }
.nf-angaben a { text-decoration: none; }
.nf-angaben a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .nf-leiste .nf-chipzeile { gap: 6px; }
  .nf-leiste .nf-chipzeile .nf-chip { min-height: 30px; padding: 3px 11px; font-size: 13px; }
}
.nf-leiste__link { display: flex; align-items: center; gap: 10px; min-height: 40px; font: 550 14px/1.35 var(--nf-schrift); color: var(--nf-tinte) !important; text-decoration: none; }
.nf-leiste__link:hover { color: var(--nf-orange-text) !important; }
.nf-leiste__link .nf-videokarte__play { width: 34px; height: 34px; flex: none; }
.nf-leiste__link > .nf-icon { color: var(--nf-text-leise); }

.nf-inhalt__schalter { display: none; }
.nf-inhalt__liste { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--nf-linie-stark); }
.nf-inhalt__liste a { display: flex; gap: 8px; margin-left: -1px; padding: 6px 4px 6px 13px; font-size: 14px; line-height: 1.38; color: var(--nf-text-leise); text-decoration: none; border-left: 2px solid transparent; hyphens: auto; transition: color var(--nf-tempo), border-color var(--nf-tempo); }
.nf-inhalt__liste a:hover { color: var(--nf-tinte); }
.nf-inhalt__liste a.ist-aktiv { color: var(--nf-tinte); font-weight: 600; border-left-color: var(--nf-orange); }
.nf-inhalt__liste .nr { flex: none; min-width: 14px; font-variant-numeric: tabular-nums; }

.nf-artikelfuss { margin-top: 40px; }
.nf-nachbarn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.nf-nachbarn a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--nf-text) !important; }
.nf-nachbarn a.weiter { grid-column: 2; text-align: right; align-items: flex-end; }
.nf-nachbarn small { display: inline-flex; align-items: center; gap: 4px; font: 550 12.5px/1.3 var(--nf-schrift); color: var(--nf-text-leise); }
.nf-nachbarn span { font: 600 15px/1.35 var(--nf-schrift); color: var(--nf-tinte); hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-nachbarn a:hover span { color: var(--nf-orange-text); }

@media (max-width: 1279px) {
  .nf-lesen { grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; }
  .nf-lesekarte article.nf-artikel.nf-modus-web { --nf-marg-breite: 150px; --nf-spalte: 176px; }
  .nf-artikelkopf__bild img { width: 236px; height: 134px; }
  .nf-werkzeug__lang { display: none; }
}
@media (max-width: 1099px) {
  .nf-lesekarte { padding: 22px 32px 10px; }
  .nf-lesekarte article.nf-artikel.nf-modus-web { --nf-spalte: 0px; }
}
@media (max-width: 899px) {
  .nf-artikelkopf { grid-template-columns: minmax(0, 1fr); padding: 28px 0 20px; }
  .nf-artikelkopf__bild img { width: 100%; height: clamp(120px, 26vw, 190px); }
  .nf-lesen { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nf-leiste { display: contents; }
  .nf-werkzeug { order: 0; margin-bottom: 12px; }
  .nf-werkzeug__lang { display: inline; }
  .nf-schrift button { width: 46px; height: 44px; }
  .nf-werkzeug .nf-knopf--primaer { height: 46px; }
  .nf-leiste__link { min-height: 48px; }
  .nf-inhalt { order: 1; position: sticky; top: var(--nf-kopf-hoehe); z-index: 20; margin: 0 -24px 16px; background: var(--nf-flaeche-weiss); border-top: 1px solid var(--nf-linie); border-bottom: 1px solid var(--nf-linie); }
  .nf-inhalt > .nf-leiste__titel { display: none; }
  .nf-inhalt__schalter { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 24px; font: 600 14px/1.3 var(--nf-schrift); color: var(--nf-tinte); text-align: left; background: none; border: 0; cursor: pointer; }
  .nf-inhalt__schalter:focus-visible { outline-offset: -2px; }
  .nf-inhalt__schalter > .nf-icon:first-child { color: var(--nf-text-leise); }
  .nf-inhalt__stand { flex: 1 1 0; min-width: 0; font-weight: 500; color: var(--nf-text-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nf-inhalt__pfeil { margin-left: auto; color: var(--nf-text-leise); transition: transform var(--nf-tempo); }
  .nf-inhalt__schalter[aria-expanded="true"] .nf-inhalt__pfeil { transform: rotate(180deg); }
  .nf-inhalt__liste { max-height: min(60vh, 420px); overflow-y: auto; padding: 4px 24px 12px; border-left: 0; border-top: 1px solid var(--nf-linie); }
  .nf-inhalt.ist-zu .nf-inhalt__liste { display: none; }
  .nf-inhalt__liste a { margin: 0; padding: 12px 0 12px 12px; font-size: 15px; }
  .nf-lesekarte { order: 2; }
  .nf-lesekarte [id^="abschnitt_"], .nf-lesekarte [data-number], .nf-lesekarte #footnotes li { scroll-margin-top: 46px; }      /* Platz für die haftende Inhaltsleiste */
  .nf-leiste__gruppe { order: 3; margin-top: 24px; padding-top: 20px; font-size: 15px; }
  .nf-leiste__gruppe + .nf-leiste__gruppe { margin-top: 24px; }
}
@media (max-width: 600px) {
  .nf-inhalt { margin: 0 -16px 12px; }
  .nf-inhalt__schalter { padding: 0 16px; }
  .nf-inhalt__liste { padding: 4px 16px 12px; }
  .nf-lesekarte { margin: 0 -16px; padding: 12px 16px 6px; border-left: 0; border-right: 0; border-radius: 0; }
  .nf-nachbarn { grid-template-columns: minmax(0, 1fr); }
  .nf-nachbarn a.weiter { grid-column: 1; }
}

/* ---------- Suche ---------- */
.nf-suchformular { margin: 0; }
.nf-suchzeile { display: flex; gap: 10px; }
.nf-suchzeile .nf-eingabe { flex: 1 1 auto; height: 52px; padding-left: 48px; font-size: 18px; border-radius: var(--nf-radius-gross); background-position: 18px center; background-size: 20px; }
.nf-suchzeile .nf-knopf { flex: none; height: 52px; padding: 0 26px; font-size: 16px; border-radius: var(--nf-radius-gross); color: #fff; }
.nf-suchfilter { margin-top: 20px; padding: 18px 20px; }
.nf-suchfilter__fuss { margin: 14px 0 0; font-size: 13.5px; }
.nf-treffer { margin: 0; padding: 0; list-style: none; background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-gross); overflow: hidden; }
.nf-treffer > li + li { border-top: 1px solid var(--nf-linie); }
.nf-treffer a { display: block; padding: 18px 22px; color: var(--nf-text) !important; text-decoration: none; transition: background var(--nf-tempo); }
.nf-treffer a:hover { background: var(--nf-flaeche-2); }
.nf-treffer a:focus-visible { outline-offset: -2px; }
.nf-treffer__titel { display: block; font: 600 17px/1.35 var(--nf-schrift); letter-spacing: -0.008em; color: var(--nf-tinte); hyphens: auto; }
.nf-treffer a:hover .nf-treffer__titel { color: var(--nf-orange-text); }
.nf-treffer__auszug { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--nf-text); overflow-wrap: break-word; }
.nf-treffer strong { font-weight: 600; color: var(--nf-tinte); background: var(--nf-orange-hell); border-radius: 3px; padding: 0 2px; }
.nf-treffer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-suchtipps { max-width: 560px; margin: 0 auto; padding: 44px 24px; text-align: center; }
.nf-suchtipps h2 { margin: 0 0 6px; font: 650 18px/1.3 var(--nf-schrift); }
.nf-suchtipps p { margin: 0 0 16px; color: var(--nf-text-leise); font-size: 15px; }
.nf-suchtipps ul { display: inline-block; margin: 0; padding: 0 0 0 18px; text-align: left; font-size: 14.5px; color: var(--nf-text); }
.nf-suchtipps li + li { margin-top: 6px; }
.nf-suchtipps code { white-space: nowrap; padding: 1px 6px; font: 500 13.5px/1.4 var(--nf-schrift); color: var(--nf-tinte); background: var(--nf-flaeche-3); border-radius: 5px; }
@media (max-width: 600px) {
  .nf-suchzeile .nf-eingabe { height: 48px; font-size: 16px; padding-left: 42px; background-position: 14px center; }
  .nf-suchzeile .nf-knopf { height: 48px; padding: 0 16px; }
  .nf-suchfilter { padding: 6px 16px 14px; }
  .nf-treffer a { padding: 16px; }
}

/* ---------- Schlagwörter ---------- */
.nf-tagwerkzeug { position: sticky; top: var(--nf-kopf-hoehe); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 -24px 8px; padding: 12px 24px; background: var(--nf-flaeche); border-bottom: 1px solid var(--nf-linie); }
.nf-tagwerkzeug__feld { flex: 0 1 250px; min-width: 200px; position: relative; }
.nf-tagwerkzeug__feld .nf-eingabe { height: 40px; font-size: 15px; }
.nf-tagwerkzeug__stand { flex: none; margin: 0 0 0 auto; font-size: 13.5px; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-buchstaben { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nf-buchstaben a { display: inline-grid; place-items: center; min-width: 27px; height: 34px; padding: 0 2px; font: 600 14px/1 var(--nf-schrift); color: var(--nf-text) !important; text-decoration: none; border-radius: var(--nf-radius-s); }
.nf-buchstaben a:hover { color: var(--nf-orange-text) !important; background: var(--nf-orange-hell); }
.nf-buchstaben a.ist-leer { color: var(--nf-text-zart) !important; pointer-events: none; }
.nf-buchstabe { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; padding: 22px 0; scroll-margin-top: calc(var(--nf-kopf-hoehe) + 76px); }
.nf-buchstabe { border-bottom: 1px solid var(--nf-linie); }
.nf-buchstabe:last-of-type { border-bottom: 0; }
.nf-buchstabe[hidden] { display: none; }
.nf-buchstabe h2 { margin: 0; font: 650 30px/1.2 var(--nf-schrift); letter-spacing: -0.02em; color: var(--nf-tinte); }
.nf-buchstabe ul { margin: 0; padding: 0; list-style: none; columns: 4 220px; column-gap: 28px; }
.nf-buchstabe li { break-inside: avoid; }
.nf-buchstabe li[hidden] { display: none; }
.nf-buchstabe li a { display: block; padding: 5px 0; font-size: 14.5px; line-height: 1.4; color: var(--nf-text); text-decoration: none; overflow-wrap: anywhere; }
.nf-buchstabe li a:hover { color: var(--nf-orange-text); }
.nf-buchstabe li small { margin-left: 3px; white-space: nowrap; font-size: 12.5px; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .nf-tagwerkzeug__stand { order: 2; margin-left: 0; }
  .nf-buchstaben { order: 3; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .nf-buchstaben { flex-wrap: nowrap; flex-basis: 100%; margin: 0 -24px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
  .nf-buchstaben::-webkit-scrollbar { display: none; }
  .nf-buchstaben a { min-width: 40px; height: 44px; }
  .nf-buchstabe { scroll-margin-top: calc(var(--nf-kopf-hoehe) + 130px); }
}
@media (max-width: 600px) {
  .nf-tagwerkzeug { margin: 0 -16px 8px; padding: 10px 16px 6px; }
  .nf-tagwerkzeug__feld { flex-basis: 100%; }
  .nf-tagwerkzeug__feld .nf-eingabe { height: 44px; font-size: 16px; }
  .nf-buchstaben { margin: 0 -16px; padding: 0 16px; }
  .nf-buchstabe { grid-template-columns: minmax(0, 1fr); padding: 16px 0; }
  .nf-buchstabe h2 { font-size: 24px; margin-bottom: 4px; }
  .nf-buchstabe ul { columns: 1; }
  .nf-buchstabe li a { padding: 12px 0; font-size: 15px; }
  .nf-buchstabe li + li { border-top: 1px solid var(--nf-linie); }
  .nf-tagwerkzeug__stand { flex-basis: 100%; font-size: 12.5px; }
}

/* ---------- Newsletter ---------- */
.nf-nlraster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.nf-nl { overflow: hidden; }
.nf-nl .nf-karte-kopf { justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.nf-nl .nf-karte-kopf h2 { font-size: 16px; }
.nf-nl .nf-karte-kopf h2 a { color: var(--nf-tinte); text-decoration: none; }
.nf-nl .nf-karte-kopf h2 a:hover { color: var(--nf-orange-text); }
.nf-nl .nf-karte-kopf span { font-size: 13px; color: var(--nf-text-leise); font-variant-numeric: tabular-nums; }
.nf-nl .nf-liste { border: 0; border-radius: 0; }
.nf-nl .nf-zeile { min-height: 46px; padding: 9px 12px 9px 20px; }
.nf-nl .nf-zeile__titel { font-weight: 500; font-size: 14.5px; }
.nf-nl__leer { margin: 0; padding: 16px 20px; font-size: 14px; color: var(--nf-text-leise); }
@media (max-width: 900px) { .nf-nlraster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Video ---------- */
.nf-videoseite { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 40px; }
.nf-videoflaeche { display: grid; place-items: center; gap: 14px; align-content: center; padding: 48px 24px; text-align: center; color: var(--nf-text-leise); background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: var(--nf-radius-xl); }
.nf-videoflaeche .nf-videokarte__play { width: 64px; height: 64px; }
.nf-videoflaeche p { margin: 0; max-width: 44ch; font-size: 14px; }
.nf-videoflaeche .nf-knopf { color: #fff; }
.nf-text { margin-top: 24px; max-width: 70ch; font-size: 16px; line-height: 1.65; }
.nf-text p { margin: 0 0 12px; }
@media (max-width: 1000px) { .nf-videoseite { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- Formulare, Konto, Anmeldung ---------- */
.nf-schmal { max-width: 760px; }
.nf-formkarte { padding: 26px 28px; }
.nf-formkarte + .nf-formkarte { margin-top: 20px; }
.nf-formkarte h2 { margin: 0 0 16px; font: 650 18px/1.3 var(--nf-schrift); letter-spacing: -0.01em; }
.nf-feld { margin: 0 0 16px; }
.nf-seite .nf-feld .nf-eingabe { height: 44px; font-size: 16px; }
.nf-formkarte .nf-knopf--primaer, .nf-fehlerseite .nf-knopf--primaer { color: #fff; }
.nf-daten { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 0 24px; margin: 0 0 16px; font-size: 15px; }
.nf-daten dt, .nf-daten dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--nf-linie); }
.nf-daten dt:first-of-type, .nf-daten dd:first-of-type { border-top: 0; padding-top: 0; }
.nf-daten dt { color: var(--nf-text-leise); }
.nf-daten dd { color: var(--nf-tinte); font-weight: 500; overflow-wrap: anywhere; }
.nf-formhinweis { margin: 0; font-size: 13.5px; color: var(--nf-text-leise); }
.nf-anmeldung { display: grid; place-items: start center; padding: 56px 0 24px; }
.nf-anmeldung__karte { width: 100%; max-width: 420px; padding: 32px; }
.nf-anmeldung__karte h1 { margin: 0 0 6px; font: 650 26px/1.2 var(--nf-schrift); letter-spacing: -0.02em; }
.nf-anmeldung__karte > p { margin: 0 0 22px; font-size: 15px; color: var(--nf-text-leise); }
.nf-anmeldung__karte .nf-knopf--primaer { width: 100%; margin-top: 4px; color: #fff; }
.nf-anmeldung__fuss { margin: 20px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--nf-linie); font-size: 13.5px !important; }
@media (max-width: 600px) {
  .nf-formkarte { padding: 20px 18px; }
  .nf-daten { grid-template-columns: minmax(0, 1fr); }
  .nf-daten dd { border-top: 0; padding: 0 0 10px; }
  .nf-daten dt { padding: 10px 0 2px; }
  .nf-daten dt:first-of-type { padding-top: 0; }
  .nf-anmeldung { padding: 24px 0 8px; }
  .nf-anmeldung__karte { padding: 24px 20px; }
}

/* ---------- Fehlerseiten, kein Zugriff ---------- */
.nf-fehlerseite { max-width: 560px; margin: 0 auto; padding: 72px 0 40px; text-align: center; }
.nf-fehlerseite .nf-fehlerseite__status { margin: 0; font: 650 84px/1 var(--nf-schrift); letter-spacing: -0.04em; color: var(--nf-linie-stark); font-variant-numeric: tabular-nums; }
.nf-fehlerseite__symbol { display: inline-grid; place-items: center; width: 64px; height: 64px; color: var(--nf-text-leise); background: var(--nf-flaeche-weiss); border: 1px solid var(--nf-linie); border-radius: 50%; }
.nf-fehlerseite h1 { margin: 18px 0 10px; font: 650 28px/1.2 var(--nf-schrift); letter-spacing: -0.02em; }
.nf-fehlerseite p { margin: 0 auto 10px; max-width: 46ch; color: var(--nf-text-leise); }
.nf-fehlerseite p strong { color: var(--nf-tinte); font-weight: 600; }
.nf-fehlerseite__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.nf-fehlerseite .nf-anmeldung__karte { margin: 28px auto 0; text-align: left; }
.nf-fehlerseite .nf-anmeldung__karte h2 { margin: 0 0 16px; font: 650 18px/1.3 var(--nf-schrift); }
@media (max-width: 600px) { .nf-fehlerseite { padding: 40px 0 16px; } .nf-fehlerseite .nf-fehlerseite__status { font-size: 64px; } }
/* Einmaliger Hinweis nach einer abgelösten Sitzung, steht über dem Seiteninhalt */
.nf-sitzungshinweis { margin: 20px 0 0; }

@media print {
  .nf-kopf, .nf-fuss, .nf-leiste, .nf-nachoben, .nf-skip, .nf-artikelfuss, .nf-artikelkopf__bild { display: none !important; }
  body.nf-seite { background: #fff; }
  .nf-lesen { display: block; }
  .nf-lesekarte { border: 0; padding: 0; }
}

/* Ab Tablet-Breite keine automatische Silbentrennung in Titeln und im Inhaltsverzeichnis:
   dort ist genug Platz, getrennte Titel („Einzelunter-nehmen“) lesen sich schlecht. */
@media (min-width: 768px) {
  .nf-seitenkopf h1, .nf-artikel-titel, .nf-thema h3, .nf-treffer__titel, .nf-inhalt__liste a {
    hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word;
  }
  .nf-seitenkopf h1, .nf-artikel-titel { text-wrap: balance; }
}

/* Leseseite einer BFH-Entscheidung (templates/frontend/bfh.html) */
.nf-bfh-gericht { color: var(--nf-orange-text); }
.nf-lesekarte article.nf-artikel.nf-modus-web.nf-bfh { --nf-spalte: 0px; }   /* keine Marginalien: Kasten so breit wie der Text */
.nf-bfh h2 { margin: 30px 0 10px; font-size: 21px; scroll-margin-top: 80px; }
.nf-bfh p { max-width: 74ch; }
.nf-bfh__abschnitt--leitsätze p, .nf-bfh__abschnitt--leitsatz p { font-weight: 550; color: var(--nf-tinte); }
.nf-bfh__rn { position: relative; padding-left: 46px; scroll-margin-top: 90px; }
.nf-bfh__nr { position: absolute; left: 0; top: .15em; min-width: 30px; padding: 1px 6px; border-radius: 6px; text-align: center;
  font: 600 12.5px/1.5 var(--nf-schrift); color: var(--nf-text-leise); background: var(--nf-flaeche-3); text-decoration: none; }
.nf-bfh__nr:hover { color: var(--nf-orange-text); background: var(--nf-orange-zart); }
.nf-bfh__zt { margin: 22px 0 6px; font-weight: 650; color: var(--nf-tinte); }
.nf-bfh__andere { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nf-bfh__andere li { padding: 4px 0; }
.nf-bfh__quelle { font-size: 13px; margin-top: 18px; }
@media (max-width: 640px) { .nf-bfh__rn { padding-left: 40px; } }
article.nf-artikel a.nf-urteilstext { margin-left: 14px; white-space: nowrap; }   /* Link im Urteilskasten eines Beitrags */

