/* unique4all Kundenportal: schlicht, gut lesbar, ohne Build-Schritt.
   Corporate Design unique4all (Farbwerte vom Kunden): Orange #ED6B06, Hellgrau #BFBFBF.
   Kontraste nach WCAG 2.x (AA: Text >= 4,5:1, Bedienelemente/Linien >= 3:1):
   - #ED6B06 auf Weiß 3,13:1, auf #f4f4f4 2,85:1 -> NICHT für Text. Nur Flächen, Linien, Akzente, Fokusrahmen (Weiß 3,13:1).
   - --akzent #B54F00 (dunkles Orange) für Links und Knopfgrund: auf Weiß 5,14:1, auf #f4f4f4 4,68:1, weiße Schrift darauf 5,14:1.
   - --akzent-dunkel #8A3D00 (Hover): weiße Schrift 7,64:1.
   - #BFBFBF auf Weiß 1,84:1 -> nur Trennlinien/Rahmen, nie Text.
   - --text #23272b auf #f4f4f4 13,67:1; --leise #5c6166 auf Weiß 6,26:1, auf #f4f4f4 5,69:1. */
:root {
  --u4a-orange: #ED6B06; --u4a-hellgrau: #BFBFBF;
  --text: #23272b; --leise: #5c6166; --linie: var(--u4a-hellgrau); --flaeche: #f4f4f4; --karte: #fff;
  --akzent: #B54F00; --akzent-dunkel: #8A3D00; --neu: #0b7a4b; --neu-bg: #e5f5ee;
  --gefahr: #b42318;
  /* Arbeitsbreite am Desktop: nutzt breite Bildschirme, bleibt auf sehr großen Monitoren lesbar */
  --seitenbreite: 1680px; --rand: clamp(16px, 3vw, 48px); --gefahr-bg: #fdecea; --warn-bg: #fff6e0; --info-bg: #eaf1f8; --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--flaeche); }
a { color: var(--akzent); }
h1 { font-size: 1.6rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 .8rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.demo-band { background: #7a4b00; color: #fff; text-align: center; font-size: .85rem; padding: .3rem 1rem; }
.kopf { background: var(--karte); border-bottom: 3px solid var(--u4a-orange); }
.kopf-innen { max-width: var(--seitenbreite); margin: 0 auto; padding: .7rem var(--rand); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; }
.marke { display: inline-flex; align-items: center; gap: .8rem; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.marke img { display: block; height: 52px; width: auto; }
.marke span { font-weight: 400; color: var(--leise); padding-left: .8rem; border-left: 1px solid var(--linie); }
.menue { display: flex; flex-wrap: wrap; gap: .3rem 1rem; flex: 1; }
.menue a { text-decoration: none; color: var(--text); padding: .2rem 0; border-bottom: 2px solid transparent; }
.menue a:hover { border-color: var(--u4a-orange); }
.wer { display: flex; gap: .8rem; align-items: center; font-size: .9rem; color: var(--leise); }
.wer form { margin: 0; }
.inhalt { max-width: var(--seitenbreite); margin: 0 auto; padding: 1.5rem var(--rand) 3rem; }
.fuss { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 1.2rem; text-align: center; color: var(--leise); font-size: .8rem; padding: 2rem 16px; }
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; }
.fuss-links a { color: var(--leise); display: inline-block; padding: .4rem 0; }
.fuss-links a:hover { color: var(--akzent); }
.einleitung { color: var(--leise); max-width: 70ch; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.karte.schmal { max-width: 520px; margin-left: auto; margin-right: auto; border-top: 4px solid var(--u4a-orange); }
.karte.aktion { border-color: var(--u4a-orange); box-shadow: 0 0 0 1px var(--u4a-orange) inset; }
.klein { font-size: .85rem; color: var(--leise); }
.datum { font-weight: 400; color: var(--leise); font-size: .95rem; }
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle.karte { padding: 0; }
.tabelle th, .tabelle td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--leise); background: var(--flaeche); }
.tabelle tr:last-child td { border-bottom: 0; }
.formular label, label { display: block; margin-bottom: .8rem; font-weight: 500; font-size: .95rem; }
input, select, textarea { font: inherit; width: 100%; padding: .5rem .6rem; border: 1px solid #949494; border-radius: 6px; background: #fff; margin-top: .25rem; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; margin: 0 .4rem 0 0; vertical-align: middle; }
label.haken { display: inline-flex; align-items: center; font-weight: 400; margin-right: 1rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--u4a-orange); outline-offset: 1px; }
.knopf { display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 6px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf.zweit { background: #fff; color: var(--akzent); border: 1px solid var(--akzent); }
.klein-knopf { padding: .35rem .7rem; font-size: .9rem; }
.link { background: none; border: 0; padding: 0; color: var(--akzent); text-decoration: underline; cursor: pointer; font: inherit; }
.gefahr { color: var(--gefahr); }
/* Standardknopf für Enter: gerendert (sonst ignoriert Safari ihn), aber unsichtbar */
.standardknopf { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.aktionsleiste { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1rem 0; }
.aktionsleiste form { margin: 0; }
.hinweis { background: var(--info-bg); border-radius: 6px; padding: .7rem 1rem; margin: 0 0 1rem; }
.hinweis.fehler { background: var(--gefahr-bg); color: #7a1610; }
.hinweis.erfolg { background: var(--neu-bg); color: #064e30; }
.hinweis.demo { background: var(--warn-bg); }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.zwei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1rem; }
.groessen { border: 1px solid var(--linie); border-radius: 6px; padding: .6rem .8rem; margin: 0 0 .8rem; }
.groessen legend { font-weight: 500; padding: 0 .3rem; }
.groesse-zeile { display: grid; grid-template-columns: minmax(80px, 140px) minmax(80px, 120px); gap: .5rem; margin-bottom: .3rem; }
.groesse-zeile input { margin: 0; }
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; background: var(--flaeche); border: 1px solid var(--linie); vertical-align: middle; }
.s-einkauf, .s-vorschau, .s-aenderung { background: var(--warn-bg); border-color: #f0d38a; }
.s-eingegangen { background: var(--info-bg); border-color: #b9cfe6; }
.s-freigegeben, .s-produktion, .s-geliefert { background: var(--neu-bg); border-color: #9fd6bd; }
.s-abgelehnt, .s-storniert { background: var(--gefahr-bg); border-color: #f1b0aa; }
.vorschau { border-top: 1px solid var(--linie); padding-top: .8rem; margin-top: .8rem; }
.vorschau:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.vorschau-kopf { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.vorschau .bild { max-width: 100%; max-height: min(70vh, 800px); border: 1px solid var(--linie); border-radius: 6px; display: block; margin-top: .5rem; }
.vorschau .pdf { width: 100%; height: min(75vh, 900px); border: 1px solid var(--linie); border-radius: 6px; margin-top: .5rem; }
.verlauf { padding-left: 1.2rem; font-size: .9rem; color: var(--leise); }
.filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter a { text-decoration: none; padding: .3rem .7rem; border: 1px solid var(--linie); border-radius: 99px; background: #fff; font-size: .85rem; color: var(--text); }
.filter a.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.benutzer-zeile { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.benutzer-zeile input[name=name] { width: 200px; margin: 0; }
.benutzer-zeile .email { display: flex; flex-direction: column; min-width: 220px; }
.benutzer-zeile label.haken { margin: 0; }
.liste { list-style: none; padding: 0; }
.liste li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--linie); }
.liste form, form.inline { margin: 0; display: flex; gap: .5rem; align-items: center; }
form.inline input { margin: 0; }
pre.mail { white-space: pre-wrap; word-break: break-word; background: var(--flaeche); padding: .8rem; border-radius: 6px; font-size: .88rem; }
.mail-eintrag summary { cursor: pointer; }
.fehlerliste { color: #7a1610; font-size: .9rem; }
code.spalten { display: block; word-break: break-all; background: var(--flaeche); padding: .5rem; border-radius: 6px; font-size: .85rem; }
details summary { cursor: pointer; font-weight: 500; }
/* Nur für Screenreader (Beschriftung von Feldern in Tabellenzeilen) */
.unsichtbar { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.hinweis-band { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.hinweis.warnung { background: var(--warn-bg); border-left: 4px solid var(--u4a-orange); }
.kopf-warnung { max-width: var(--seitenbreite); margin: 0 auto; padding: .5rem var(--rand) 0; }
.kopf-warnung .hinweis { margin: 0; }

/* Artikelkacheln: ganze Kachel ist der Link */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.kachel { display: block; height: 100%; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; }
.kachel:hover { border-color: var(--u4a-orange); box-shadow: 0 0 0 1px var(--u4a-orange) inset; }
.kachel-text { display: block; padding: .6rem .8rem .8rem; }
.kachel-text strong { display: block; }
.bildflaeche { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--flaeche); }
.platzhalter { display: flex; align-items: center; justify-content: center; text-align: center; padding: .5rem; color: var(--leise); border-bottom: 1px solid var(--u4a-hellgrau); font-size: .95rem; word-break: break-word; }
.mini { width: 72px; height: 72px; flex: none; border: 1px solid var(--linie); border-radius: 6px; font-size: .7rem; }

/* Artikelseite: Galerie ohne JavaScript (Vorschaubilder sind Links) */
.artikel-kopf { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.galerie .bildflaeche { border: 1px solid var(--linie); border-radius: var(--radius); }
.galerie-leiste { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .6rem 0 0; }
.galerie-leiste a { display: block; border: 2px solid transparent; border-radius: 6px; }
.galerie-leiste a[aria-current="true"] { border-color: var(--u4a-orange); }
.galerie-leiste img { display: block; width: 64px; height: 64px; object-fit: contain; background: var(--flaeche); border-radius: 4px; }
/* Admin-Artikel: feste Bildplätze (belegt oder frei), Raster bricht auf Handybreite um */
.bildplaetze { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.bildplatz { display: flex; flex-direction: column; gap: .4rem; }
.bildplatz .bildflaeche { border: 1px solid var(--linie); border-radius: var(--radius); }
.bildplatz-text { font-size: .95rem; }
.bildplatz-text .klein { display: block; }
.bildplatz-knoepfe { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.bildplatz-leer { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border: 2px dashed var(--u4a-hellgrau); border-radius: var(--radius); background: var(--flaeche); color: var(--leise); text-align: center; }
.gruppe-kopf { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.gruppe-kopf h2, .gruppe-kopf h3, .gruppe-kopf h4 { margin: 0; }
.gruppe-kopf h4 { font-size: 1rem; }
.gruppe + .gruppe { margin-top: 1.5rem; }
/* Rubriken (v0.5.0): Überschrift je Rubrik auf der Startseite, im Entwurf und in der Bestellansicht */
.rubrik-titel { padding-bottom: .3rem; border-bottom: 2px solid var(--u4a-orange); }
.rubrik + .rubrik { margin-top: 1.5rem; }
.rubrik > .rubrik-titel { margin-bottom: .8rem; }
h3.rubrik-titel { margin-top: 0; }
.bestelltabelle input.gesperrt { background: var(--flaeche); border-color: var(--linie); }
/* Felder nur für bestimmte Rubriken (artikel_rubrik.js): hidden muss gegen label { display } gewinnen */
[data-rubriken][hidden] { display: none !important; }
/* Stornieren, Artikel/Kunde löschen */
.karte.gefahr-zone { border-left: 4px solid var(--gefahr); }
.knopf.gefahr-knopf { background: var(--gefahr); }
.knopf.gefahr-knopf:hover { background: #8f1c13; }
.knopf.zweit.gefahr-zweit { color: var(--gefahr); border-color: var(--gefahr); background: #fff; }
.knopf[disabled], .knopf[disabled]:hover { background: #6b7075; cursor: not-allowed; }
.fehlerliste { padding-left: 1.2rem; }

/* Bestelltabellen mit Eingaben: auf schmalen Bildschirmen scrollt nur die Tabelle */
.bestelltabelle td { vertical-align: middle; }
.bestelltabelle select, .bestelltabelle input { margin: 0; min-width: 6rem; }
.bestelltabelle .breit { min-width: 11rem; }
.bestelltabelle .schmal-feld { min-width: 5rem; }
.bestelltabelle .auto { color: var(--leise); font-size: .85rem; white-space: nowrap; }
/* Nachbestellen (Artikelseite): alle zehn Spalten passen bei 1360 px ohne Querscrollen, darunter scrollt die Tabelle */
.nachbestelltabelle th, .nachbestelltabelle td { padding: .45rem .35rem; }
.nachbestelltabelle th { font-size: .72rem; letter-spacing: 0; hyphens: auto; }
.nachbestelltabelle select, .nachbestelltabelle input { min-width: 3.5rem; padding: .45rem .4rem; }
.nachbestelltabelle .breit { min-width: 7rem; }
.nachbestelltabelle .auto { font-size: .78rem; white-space: normal; }
.nachbestelltabelle td.veredelung select { min-width: 10.5rem; }
.abweichung { background: var(--warn-bg); border-left: 3px solid var(--u4a-orange); padding: .1rem .3rem; font-weight: 600; }
.nachweis { border-left: 4px solid var(--u4a-orange); }
.nachweis dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
.nachweis dt { font-weight: 600; }
.nachweis dd { margin: 0; }
.pflicht-haken label.haken { display: flex; align-items: flex-start; margin: 0 0 .7rem; font-weight: 500; }
.pflicht-haken input[type=checkbox] { flex: none; margin-top: .25rem; }
.feld-schmal { max-width: 16rem; }
@media (max-width: 640px) {
  .artikel-kopf { grid-template-columns: 1fr; }
  .nachweis dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.35rem; }
  .marke { gap: .6rem; font-size: 1rem; }
  .marke img { height: 38px; }
  .marke span { padding-left: .6rem; }
  .karte { padding: 1rem; }
  .menue { flex-basis: 100%; order: 3; }
  .wer { width: 100%; justify-content: space-between; order: 2; }
}

/* Freigabe-PDFs auf der Artikelseite des Kunden */
.freigaben-titel { font-size: 1rem; margin: 1rem 0 .3rem; }
.freigaben { margin: 0; padding-left: 1.2rem; }
.freigaben li { margin: .2rem 0; }

/* Angaben als Liste Begriff/Wert (Einstellungen: Mailversand, letzte Testmail) */
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 .8rem; }
.angaben dt { font-weight: 600; }
.angaben dd { margin: 0; word-break: break-word; }
@media (max-width: 640px) { .angaben { grid-template-columns: 1fr; } .angaben dd { margin-bottom: .4rem; } }
/* Versandstatus einer Mail (Mail.status) */
.m-wartet { background: var(--warn-bg); border-color: #f0d38a; }
.m-gesendet { background: var(--neu-bg); border-color: #9fd6bd; }
.m-fehlgeschlagen { background: var(--gefahr-bg); border-color: #f1b0aa; color: #7a1610; }

/* =====================================================================
   Online-Hilfe (F1), Verhalten in hilfe.js / hilfe_seite.js, Inhalt aus docs/HANDBUCH.md.
   Vorbild: ISO Manager app/static/css/hilfe.css, Farben aus dem Corporate Design oben.
   (1) Knopf „?“ und angedocktes Feld im Portal  (2) die Hilfeseite /hilfe selbst
   ===================================================================== */
:root { --hilfe-kopf: 3.25rem; /* feste Höhe der Kopfleiste der Hilfeseite, Grundlage für die Sprungziele */ }

/* ---- (1) im Portal ---- */
.hilfe-knopf {
  flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 2px solid var(--u4a-orange); background: #fff; color: var(--akzent);
  font: 700 1.25rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer;
}
.hilfe-knopf:hover { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.hilfe-knopf:focus-visible { outline-offset: 2px; }
@media (max-width: 640px) {
  /* Erste Zeile neben dem Logo, Tippfläche 44 px */
  .hilfe-knopf { order: 1; width: 44px; height: 44px; }
}
.hilfe-feld {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; flex-direction: column;
  background: var(--karte); border-left: 1px solid var(--linie);
  box-shadow: -4px 0 14px rgba(0, 0, 0, .1);
}
.hilfe-feld[hidden] { display: none; }
.hilfe-feld iframe { flex: 1; width: 100%; border: 0; display: block; }
.hilfe-feld-leiste {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .5rem .35rem 1rem; background: var(--akzent); color: #fff; font-size: .9rem;
}
.hilfe-feld-leiste span { flex: 1; font-weight: 600; }
.hilfe-feld-leiste small { font-weight: 400; opacity: .85; }
.hilfe-feld-leiste button {
  min-height: 32px; min-width: 32px; padding: .2rem .7rem; cursor: pointer;
  font: inherit; font-size: .85rem; color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px;
}
.hilfe-feld-leiste button:hover { background: rgba(255, 255, 255, .18); }
.hilfe-feld-leiste button:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.hilfe-feld-griff { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 1; touch-action: none; }
.hilfe-feld-griff:hover, .hilfe-feld.zieht .hilfe-feld-griff { background: rgba(237, 107, 6, .35); }
/* Während des Ziehens schluckt das iframe sonst die Mausereignisse */
.hilfe-feld.zieht iframe { pointer-events: none; }
.hilfe-feld.zieht, body:has(.hilfe-feld.zieht) { user-select: none; }
/* Schmale Fenster (hilfe.js: unter 760 px): Hilfe legt sich über die ganze Seite */
.hilfe-feld.schmal { left: 0; width: 100% !important; border-left: 0; }
.hilfe-feld.schmal .hilfe-feld-griff { display: none; }
.hilfe-feld.schmal .hilfe-feld-leiste button { min-height: 44px; min-width: 44px; }
@media (max-width: 759.98px) {
  /* Seite darunter scrollt nicht mit, solange die Hilfe sie verdeckt */
  body.hilfe-offen { overflow: hidden; }
}
@media (pointer: coarse) {
  .hilfe-knopf { width: 44px; height: 44px; }
  .hilfe-feld-leiste button { min-height: 44px; min-width: 44px; }
}

/* ---- (2) Hilfeseite (hilfe.html, auch im iframe mit .eingebettet) ---- */
html:has(> body.hilfe-seite) { scroll-padding-top: calc(var(--hilfe-kopf) + .75rem); }
.hilfe-seite [hidden] { display: none !important; }
body.hilfe-seite { background: var(--karte); }
.hilfe-kopf {
  position: sticky; top: 0; z-index: 2; height: var(--hilfe-kopf);
  display: flex; align-items: center; gap: .6rem; padding: 0 1rem;
  background: var(--karte); border-bottom: 3px solid var(--u4a-orange);
}
.hilfe-marke { font-size: 1.05rem; }
/* Im angedockten Feld steht „Hilfe“ schon in der Leiste darüber */
.eingebettet .hilfe-marke { display: none; }
.hilfe-knoepfe { margin-left: auto; display: flex; gap: .4rem; }
.hilfe-knoepfe button {
  min-height: 36px; padding: .25rem .8rem; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--akzent); background: #fff; border: 1px solid var(--akzent); border-radius: 6px;
}
.hilfe-knoepfe button:hover { background: var(--akzent); color: #fff; }
@media (pointer: coarse) { .hilfe-knoepfe button { min-height: 44px; } }
.hilfe-verzeichnis { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: .8rem 1rem; font-size: .92rem; }
.hilfe-verzeichnis ul { list-style: none; margin: 0; padding: 0; columns: 2 14rem; column-gap: 1.5rem; }
.hilfe-verzeichnis li { break-inside: avoid; }
.hilfe-verzeichnis a { display: block; padding: .25rem 0; color: var(--akzent); text-decoration: none; }
.hilfe-verzeichnis a:hover { text-decoration: underline; }
.hilfe-verzeichnis li.ebene-2 a { font-weight: 600; color: var(--text); }
.hilfe-verzeichnis li.ebene-3 a { padding-left: 1rem; }
.hilfe-inhalt { max-width: 860px; margin: 0 auto; padding: 1rem 1.5rem 3rem; line-height: 1.6; }
.eingebettet .hilfe-inhalt { padding: .8rem 1rem 2rem; }
.hilfe-inhalt h1 { font-size: 1.5rem; margin: 1rem 0 .8rem; }
.hilfe-inhalt h2 { font-size: 1.25rem; margin: 2rem 0 .8rem; padding-bottom: .3rem; border-bottom: 2px solid var(--u4a-orange); }
.hilfe-inhalt h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.hilfe-inhalt h4 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.hilfe-inhalt p { margin: 0 0 .8rem; }
.hilfe-inhalt ul, .hilfe-inhalt ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.hilfe-inhalt li { margin-bottom: .25rem; }
.hilfe-inhalt a { color: var(--akzent); }
.hilfe-inhalt hr { border: 0; border-top: 1px solid var(--linie); margin: 2rem 0; }
.hilfe-inhalt code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--flaeche); padding: .1em .35em; border-radius: 4px; word-break: break-word; }
/* Sprungziel: unter der festen Kopfleiste und kurz hervorgehoben, damit man sieht, wo F1 gelandet ist */
.hilfe-inhalt :target { scroll-margin-top: calc(var(--hilfe-kopf) + .75rem); animation: hilfe-ziel 2.4s ease-out; }
@keyframes hilfe-ziel { from { background: var(--warn-bg); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .hilfe-inhalt :target { animation: none; } }
.hilfe-inhalt figure { margin: .5rem 0 1.2rem; }
.hilfe-inhalt img { display: block; max-width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 6px; }
.hilfe-inhalt figcaption { font-size: .85rem; color: var(--leise); margin-top: .3rem; }
.hilfe-tabelle { overflow-x: auto; margin: 0 0 1rem; }
.hilfe-tabelle table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.hilfe-tabelle th, .hilfe-tabelle td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--linie); }
.hilfe-tabelle th { background: var(--flaeche); font-weight: 600; }
/* Breite Fenster: Inhaltsverzeichnis links, bleibt beim Lesen stehen */
@media (min-width: 960px) {
  body.hilfe-seite:has(> .hilfe-verzeichnis) { display: grid; grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); align-items: start; }
  body.hilfe-seite:has(> .hilfe-verzeichnis) .hilfe-kopf { grid-column: 1 / -1; }
  body.hilfe-seite:has(> .hilfe-verzeichnis) .hilfe-verzeichnis {
    position: sticky; top: var(--hilfe-kopf); max-height: calc(100vh - var(--hilfe-kopf)); overflow-y: auto;
    border-bottom: 0; border-right: 1px solid var(--linie); min-height: calc(100vh - var(--hilfe-kopf));
  }
  body.hilfe-seite:has(> .hilfe-verzeichnis) .hilfe-verzeichnis ul { columns: auto; }
}

/* ---- Druck ---- */
@media print {
  .hilfe-feld, .hilfe-knopf { display: none !important; }
  body { margin-right: 0 !important; }
  body.hilfe-seite { display: block !important; background: #fff; }
  .hilfe-kopf, .hilfe-verzeichnis { display: none !important; }
  .hilfe-inhalt { max-width: none; padding: 0; font-size: 11pt; }
  .hilfe-inhalt h2, .hilfe-inhalt h3, .hilfe-inhalt h4 { break-after: avoid; }
  .hilfe-inhalt figure, .hilfe-tabelle tr { break-inside: avoid; }
  .hilfe-inhalt a { color: inherit; text-decoration: none; }
  .hilfe-inhalt :target { animation: none; }
}
