/* =================================================================
   nav.css · Entwurf _v1 (zur Entscheidung, nicht eingebaut)
   Kopf (Präfix hn-) und Fuß (Präfix hf-) der Varianten A und B.
   Farben, Schrift und Logo wie die heutige Website (body.css):
   Navy #000e28 / #00275c, Blau #006FCF, Hellblau #6bb6ff,
   Fuß-Verlauf #041d4c → #004ba8, Roboto und Roboto Serif.
   Logische Eigenschaften (RTL-tauglich).
   ================================================================= */

/* ---------------------------------------------------------------
   1. KOPF: Leiste
   --------------------------------------------------------------- */
.hn, .hn *, .hn *::before, .hn *::after { box-sizing: border-box; }
.hn { --hn-hoehe: 64px; --hn-blau: #006FCF; --hn-hell: #6bb6ff; --hn-ink: #0c131f; --hn-grau: #5b6472;
      position: absolute; top: 0; inset-inline: 0; z-index: 998; font-family: 'Roboto', Arial, sans-serif; font-weight: 400; color: var(--header-color, #ffffff); }
.hn.hn-mode-fixed, .hn.hn-mode-trigger { position: fixed; top: var(--hy-oben, 0px); }
.hn.hn-mode-sticky { position: sticky; }
.hn.hn-mode-trigger { transform: translate3d(0, -100%, 0); opacity: 0; transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .45s ease; }
.hn.hn-mode-trigger.is-visible, .hn.hn-mode-trigger.hn-ist-offen { transform: none; opacity: 1; }
.hn svg { display: block; flex-shrink: 0; }
.hn a { text-decoration: none; color: inherit; }
.hn ul { list-style: none; margin: 0; padding: 0; }
.hn button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.hn-leiste { position: relative; z-index: 2; background: var(--header-bg, linear-gradient(100deg, #000e28 0%, #0b1a38 42%, #00275c 100%)); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 2px 10px rgba(0,8,30,.18); }
.hn-leiste::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(107,182,255,.45) 30%, rgba(169,0,118,.35) 70%, transparent); pointer-events: none; }
.hn-in { max-width: var(--f-breite, 1920px); margin: 0 auto; padding-inline: var(--f-seitenrand, 24px); height: var(--hn-hoehe); display: flex; align-items: center; gap: 16px; }

/* Logo (dieselbe Grafik wie heute) */
.hn-logo { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 6px; }
.hn-logo img { display: block; width: 112px; height: auto; }
.hn-logo:focus-visible, .hn-top:focus-visible, .hn-knopf:focus-visible, .hn-burger:focus-visible { outline: 2px solid var(--hn-hell); outline-offset: 3px; }

/* Hauptpunkte */
.hn-nav { display: flex; align-items: center; height: 100%; }
.hn-nav > ul { display: flex; align-items: center; gap: 8px; height: 100%; }
.hn-item { position: static; height: 100%; display: flex; align-items: center; }
.hn-top { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14.5px; font-weight: 400; letter-spacing: .01em; color: rgba(255,255,255,.88); transition: color .2s, background .2s; white-space: nowrap; }
.hn-top svg { width: 15px; height: 15px; opacity: .8; transition: transform .25s ease; }
.hn-top:hover, .hn-item.is-offen > .hn-top { color: #fff; background: rgba(255,255,255,.08); }
.hn-item.is-offen > .hn-top .hn-chev { transform: rotate(180deg); }
.hn-top.is-aktiv::after { content: ''; position: absolute; inset-inline: 12px; bottom: -12px; height: 2px; border-radius: 2px; background: var(--header-active, #e9bf0d); }
.hn-top.is-aktiv { color: #fff; }

/* Aktionen rechts */
.hn-aktionen { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hn-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 18px; border-radius: 50px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.hn-knopf svg { width: 16px; height: 16px; }
.hn-knopf-blau { background: var(--hn-blau); color: #fff !important; box-shadow: 0 6px 18px -8px rgba(0,111,207,.9); }
.hn-knopf-blau:hover { background: #0082f5; }
.hn-knopf-rand { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.hn-knopf-rand:hover { border-color: var(--hn-hell); color: var(--hn-hell); }
.hn-knopf-text { padding: 0 10px; color: rgba(255,255,255,.88); }
.hn-knopf-text:hover { color: #fff; }
.hn .sprachwahl { position: relative; list-style: none; }
.hn .sprachwahl-knopf svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5px; }

/* Burger (nur schmal) */
.hn-burger { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; color: #fff; }
.hn-burger:hover { background: rgba(255,255,255,.08); }
.hn-burger svg { width: 24px; height: 24px; }
.hn-burger .hn-zu { display: none; }
.hn-burger[aria-expanded="true"] .hn-auf { display: none; }
.hn-burger[aria-expanded="true"] .hn-zu { display: block; }

/* Variante A: Navigation links, Logo in der Mitte (wie heute), Aktionen rechts */
.hn-a .hn-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.hn-a .hn-nav { justify-self: start; margin-inline-start: -12px; }
.hn-a .hn-logo { justify-self: center; }
.hn-a .hn-aktionen { justify-self: end; }

/* Variante B: Logo links, Navigation daneben, Aktionen rechts */
.hn-b .hn-nav { margin-inline-start: 28px; }
.hn-b .hn-aktionen { margin-inline-start: auto; }

/* ---------------------------------------------------------------
   2. KOPF: Aufklapp-Flächen (Mega-Menü und kleine Menüs)
   --------------------------------------------------------------- */
.hn-panel { position: absolute; top: calc(100% - 1px); inset-inline: clamp(10px, 1.6vw, 24px); z-index: 1; background: #fff; color: var(--hn-ink); border-radius: 0 0 18px 18px;
            box-shadow: 0 30px 60px -12px rgba(0,14,40,.28), 0 8px 20px rgba(0,14,40,.08); border: 1px solid #e6eaf0; border-top: 0;
            opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease, visibility .22s; max-height: calc(100vh - var(--hn-hoehe) - 16px); overflow-y: auto; overscroll-behavior: contain; }
.hn-panel-klein { inset-inline: auto; width: max-content; max-width: min(640px, calc(100vw - 32px)); border-radius: 0 0 16px 16px; }
.hn-item.is-offen > .hn-panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1000px) {
    .hn-item.hat-panel:hover > .hn-panel { opacity: 1; visibility: visible; transform: none; }
    .hn-item.hat-panel:hover > .hn-top { color: #fff; background: rgba(255,255,255,.08); }
    .hn-item.hat-panel:hover > .hn-top svg { transform: rotate(180deg); }
    /* Brücke, damit der Mauszeiger auf dem Weg ins Menü nicht abreißt */
    .hn-item.hat-panel > .hn-top::before { content: ''; position: absolute; inset-inline: -8px; top: 100%; height: 16px; }
}
.hn-panel-in { padding: 26px 30px 22px; }

/* Spalten einer Gruppe */
.hn-spalten { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 22px; }
.hn-spalte { min-width: 0; }
.hn-gkopf { display: block; padding: 0 10px 12px; margin-bottom: 8px; border-bottom: 2px solid color-mix(in srgb, var(--hn-c) 22%, #fff); }
.hn-gtitel { display: flex; align-items: center; gap: 8px; font-family: 'Roboto Serif', Georgia, serif; font-variation-settings: 'wdth' 75; font-weight: 600; font-size: 15.5px; line-height: 1.2; color: var(--hn-ink); }
.hn-gtitel::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hn-c); flex-shrink: 0; }
.hn-gtext { display: block; font-size: 12.5px; font-weight: 300; color: var(--hn-grau); margin-top: 4px; line-height: 1.4; min-height: 2.8em; }
.hn-liste { display: flex; flex-direction: column; gap: 1px; }

/* Ein Link: Icon im getönten Feld, Titel, Kurztext */
.hn-link { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: start; padding: 6px 10px; border-radius: 10px; color: var(--hn-ink); transition: background .18s ease; }
.hn-link .hn-ico { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--hn-c) 10%, #fff); color: var(--hn-c); transition: background .18s, color .18s; }
.hn-link .hn-ico svg { width: 17px; height: 17px; }
.hn-txt { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.hn-t { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--hn-ink); transition: color .18s; }
.hn-d { font-size: 12.5px; font-weight: 300; line-height: 1.38; color: var(--hn-grau); margin-top: 1px; }
.hn-link:hover { background: color-mix(in srgb, var(--hn-c) 6%, #fff); }
.hn-link:hover .hn-t { color: var(--hn-c); }
.hn-link:hover .hn-ico { background: var(--hn-c); color: #fff; }
.hn-link:focus-visible { outline: 2px solid var(--hn-c); outline-offset: 1px; }
.hn-link.is-aktiv { background: color-mix(in srgb, var(--hn-c) 9%, #fff); }
.hn-link.is-aktiv .hn-t { color: var(--hn-c); font-weight: 600; }
.hn-link.is-bald { cursor: default; opacity: .65; }
.hn-bald { font-style: normal; font-size: 10.5px; font-weight: 600; color: #b3760f; background: rgba(233,191,13,.14); border-radius: 20px; padding: 1px 7px; margin-inline-start: 4px; }
/* Kompakte Links (nur Titel) */
.hn-link.hn-kompakt { grid-template-columns: 28px minmax(0, 1fr); align-items: center; padding: 5px 10px; }
.hn-link.hn-kompakt .hn-ico { width: 28px; height: 28px; border-radius: 8px; }
.hn-link.hn-kompakt .hn-ico svg { width: 15px; height: 15px; }
.hn-link.hn-kompakt .hn-txt { padding-top: 0; }

/* Leiste unten im Mega-Menü */
.hn-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding: 14px 10px 0; border-top: 1px solid #edf0f4; }
.hn-fuss-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hn-fuss-titel { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a919c; margin-inline-end: 6px; }
.hn-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 50px; font-size: 13px; color: #374151 !important; transition: background .18s, color .18s; }
.hn-chip svg { width: 15px; height: 15px; color: var(--hn-blau); }
.hn-chip:hover { background: #eef5fc; color: var(--hn-blau) !important; }
.hn-fuss-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hn-fuss-satz { font-size: 12.5px; font-weight: 300; color: var(--hn-grau); max-width: 46ch; }
.hn-mehr { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--hn-blau) !important; white-space: nowrap; }
.hn-mehr svg { width: 15px; height: 15px; transition: transform .2s; }
.hn-mehr:hover { color: #00539c !important; }
.hn-mehr:hover svg { transform: translateX(3px); }
[dir="rtl"] .hn-mehr svg, [dir="rtl"] .hf-mehr svg { transform: scaleX(-1); }
.hn-panel .hn-knopf { height: 36px; font-size: 13.5px; }

/* Variante B: Produkte (vier Gruppen kompakt und Einstiegskarte) */
.hn-b .hn-spalten { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(250px, .95fr); gap: 8px 20px; }
.hn-karte { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: 14px; color: #fff !important;
            background: radial-gradient(120% 90% at 100% 0%, rgba(107,182,255,.35), transparent 60%), linear-gradient(150deg, #00275c 0%, #0b1a38 55%, #000e28 100%); }
.hn-karte::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.hn-karte > * { position: relative; z-index: 1; }
.hn-karte-etikett { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hn-hell); }
.hn-karte-titel { color: #fff !important; font-family: 'Roboto Serif', Georgia, serif; font-variation-settings: 'wdth' 75; font-weight: 600; font-size: 20px; line-height: 1.15; }
.hn-karte-text { font-size: 13px; font-weight: 300; line-height: 1.5; color: rgba(255,255,255,.75); }
.hn-karte-ablauf { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.hn-karte-ablauf span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 9px; border-radius: 50px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.hn-karte-ablauf i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.hn-karte .hn-mehr { color: #fff !important; margin-top: auto; }
.hn-karte .hn-mehr:hover { color: var(--hn-hell) !important; }

/* Variante B: kleine Menüs Plattform und Ressourcen */
.hn-klein-gitter { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 2px 14px; }
.hn-klein-titel { display: block; padding: 0 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a919c; }
.hn-klein-spalte + .hn-klein-spalte { border-inline-start: 1px solid #edf0f4; padding-inline-start: 14px; }

/* Breitenstufen Desktop */
@media (max-width: 1360px) {
    .hn-a .hn-spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
    .hn-a .hn-gtext { display: none; }
    .hn-b .hn-spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
    .hn-b .hn-karte { grid-column: span 2; }
}
@media (max-width: 1180px) {
    .hn-top { padding: 0 9px; font-size: 14px; }
    .hn-knopf-rand { padding: 0 14px; }
}

/* ---------------------------------------------------------------
   3. KOPF: Handy und Tablet (Burger)
   --------------------------------------------------------------- */
.hn-mobil { display: none; }
.hn-nur-schmal { display: none; }
@media (max-width: 999px) {
    .hn { --hn-hoehe: 60px; }
    .hn-nav, .hn-aktionen .hn-nur-breit { display: none; }
    .hn-burger { display: inline-flex; }
    .hn-aktionen .hn-nur-schmal { display: inline; }
    .hn-a .hn-in, .hn-b .hn-in { display: flex; gap: 8px; }
    .hn-a .hn-logo { order: 0; }
    .hn-aktionen { margin-inline-start: auto; gap: 6px; }
    .hn-aktionen .hn-knopf { height: 36px; padding: 0 14px; font-size: 13.5px; }
    .hn-logo img { width: 104px; }

    .hn-mobil { display: block; position: fixed; inset-inline: 0; top: calc(var(--hy-oben, 0px) + var(--hn-hoehe)); bottom: 0; z-index: 1; background: #fff; color: var(--hn-ink);
                overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
    .hn.hn-ist-offen .hn-mobil { visibility: visible; opacity: 1; transform: none; }
    .hn-mode-absolute .hn-mobil { top: var(--hn-hoehe); }
}
html.hn-sperre, html.hn-sperre body { overflow: hidden; }
.hn-mobil-in { padding: 10px var(--f-seitenrand, 16px) calc(28px + var(--hy-unten, 0px)); max-width: 720px; margin: 0 auto; }
.hn-m-titel { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a919c; padding: 16px 4px 6px; }
.hn-acc { border-bottom: 1px solid #edf0f4; }
.hn-acc-kopf { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 4px; text-align: start; font-size: 16px; font-weight: 500; color: var(--hn-ink); }
.hn-acc-kopf .hn-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--hn-c, #006FCF); flex-shrink: 0; }
.hn-acc-kopf .hn-acc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hn-acc-kopf small { font-size: 12.5px; font-weight: 300; color: var(--hn-grau); margin-top: 1px; }
.hn-acc-kopf svg { width: 18px; height: 18px; color: #8a919c; transition: transform .22s ease; }
.hn-acc-kopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.hn-acc-inhalt { padding: 0 0 12px; }
.hn-acc-inhalt[hidden] { display: none; }
.hn-acc-inhalt .hn-link { padding: 8px 4px; }
.hn-acc-inhalt .hn-unter { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hn-c); padding: 12px 4px 4px; }
.hn-m-zeile { display: flex; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid #edf0f4; font-size: 16px; font-weight: 500; color: var(--hn-ink); }
.hn-m-zeile svg { width: 19px; height: 19px; color: var(--hn-blau); }
.hn-m-zeile .hn-pfeil { margin-inline-start: auto; width: 16px; height: 16px; color: #b0b6bf; }
[dir="rtl"] .hn-m-zeile .hn-pfeil { transform: scaleX(-1); }
.hn-m-gitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.hn-m-gitter .hn-link.hn-kompakt { padding: 6px 4px; gap: 9px; }
.hn-m-gitter .hn-t { font-size: 13.5px; }
.hn-m-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.hn-m-knoepfe .hn-knopf { height: 46px; font-size: 15px; }
.hn-m-knoepfe .hn-knopf-rand { border-color: #cfd8e3; color: var(--hn-ink); }
.hn-m-knoepfe .hn-knopf-rand:hover { border-color: var(--hn-blau); color: var(--hn-blau); }
.hn-m-kontakt { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f5f7fa; font-size: 13.5px; color: var(--hn-grau); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hn-m-kontakt a { display: inline-flex; align-items: center; gap: 7px; color: var(--hn-ink) !important; font-weight: 500; }
.hn-m-kontakt svg { width: 15px; height: 15px; color: var(--hn-blau); }
@media (max-width: 380px) {
    .hn-aktionen .hn-knopf-blau { padding: 0 12px; }
    .hn-logo img { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
    .hn-panel, .hn-mobil, .hn-top svg, .hn-acc-kopf svg, .hn.hn-mode-trigger { transition: none; }
}

/* ---------------------------------------------------------------
   4. FUSS (beide Varianten)
   --------------------------------------------------------------- */
.hf, .hf *, .hf *::before, .hf *::after { box-sizing: border-box; }
.hf { position: relative; overflow: hidden; background: linear-gradient(135deg, #041d4c 0%, #004ba8 100%); color: rgba(255,255,255,.7); font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 15px; line-height: 1.55; }
.hf::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.hf a { color: inherit; text-decoration: none; }
.hf ul { list-style: none; margin: 0; padding: 0; }
.hf svg { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hf-in { position: relative; z-index: 1; max-width: var(--f-breite, 1920px); margin: 0 auto; padding-inline: var(--f-seitenrand, 24px); }
.hf a:focus-visible, .hf button:focus-visible { outline: 2px solid #6bb6ff; outline-offset: 3px; border-radius: 4px; }

.hf-logo img { display: block; width: 150px; height: auto; }
.hf-satz { font-size: 15px; color: rgba(255,255,255,.66); max-width: 52ch; margin: 14px 0 0; line-height: 1.6; }
.hf-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 50px; font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.hf-knopf svg { width: 16px; height: 16px; }
.hf-knopf-blau { background: #006FCF; color: #fff !important; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.hf-knopf-blau:hover { background: #0082f5; }
.hf-knopf-weiss { background: #fff; color: #00275c !important; }
.hf-knopf-weiss:hover { background: #eaf3fd; }
.hf-knopf-rand { border: 1.5px solid rgba(255,255,255,.3); color: #fff !important; }
.hf-knopf-rand:hover { border-color: #6bb6ff; color: #6bb6ff !important; }

.hf-ktitel { display: flex; align-items: center; gap: 8px; font-family: 'Roboto Serif', serif; font-variation-settings: 'wdth' 75; font-weight: 600; font-size: 15.5px; color: #fff; margin: 0 0 12px; line-height: 1.25; }
.hf-ktitel i { width: 7px; height: 7px; border-radius: 50%; background: var(--hf-c, #6bb6ff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hf-c, #6bb6ff) 30%, transparent); flex-shrink: 0; }
.hf-links li + li { margin-top: 2px; }
.hf-links a { display: inline-block; padding: 4px 0; font-size: 14px; color: rgba(255,255,255,.7); transition: color .18s; }
.hf-links a:hover, .hf-links a[aria-current] { color: #fff; }
.hf-links a[aria-current] { font-weight: 500; }
.hf-links a:hover { text-decoration: underline; text-decoration-color: rgba(107,182,255,.7); text-underline-offset: 4px; }

.hf-kontakt-zeile { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #fff; padding: 3px 0; }
.hf-kontakt-zeile svg { width: 17px; height: 17px; color: #6bb6ff; }
.hf-kontakt-zeile:hover { color: #6bb6ff; }
.hf-zeiten { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 6px; }
.hf-mehr { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #6bb6ff !important; }
.hf-mehr svg { width: 15px; height: 15px; transition: transform .2s; }
.hf-mehr:hover { color: #fff !important; }
.hf-mehr:hover svg { transform: translateX(3px); }

.hf-vertrauen { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-marke { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 50px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 400; color: rgba(255,255,255,.88); }
.hf-marke svg { width: 15px; height: 15px; color: #6bb6ff; }
a.hf-marke:hover { border-color: #6bb6ff; color: #fff; }
.hf-zahlarten { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hf-zahlarten img { height: 28px; width: auto; border-radius: 4px; display: block; }
.hf-klein-titel { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 10px; }

.hf-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.hf-recht, .hf-social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.hf-recht li:not(:last-child)::after, .hf-social li:not(:last-child)::after { content: '·'; margin: 0 10px; color: rgba(255,255,255,.25); }
.hf-recht a, .hf-recht button, .hf-social a { color: rgba(255,255,255,.6); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color .18s; }
.hf-recht a:hover, .hf-recht button:hover, .hf-social a:hover { color: #fff; }
.hf-copy { color: rgba(255,255,255,.45); }
.hf .sf-sprachen { display: flex; align-items: center; gap: 8px; }
.hf .sf-sprachen svg { width: 15px; height: 15px; }
.hf .sf-sprachen ul { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* ----- Fuß A: Übersicht aller Seiten -------------------------------- */
.hf-a { padding-top: clamp(48px, 6vw, 72px); }
.hf-a .hf-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hf-a .hf-kopf-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.hf-a .hf-gitter { display: grid; grid-template-columns: 1fr 1fr 1.3fr .95fr 1.2fr .95fr; gap: 32px 24px; padding: 40px 0 44px; }
.hf-a .hf-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; padding: 30px 0 34px; border-top: 1px solid rgba(255,255,255,.1); }
.hf-a .hf-info .hf-mehr { margin-top: 10px; }
@media (max-width: 1180px) {
    .hf-a .hf-gitter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hf-a .hf-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hf-a .hf-info > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hf-a .hf-kopf { align-items: flex-start; flex-direction: column; padding-bottom: 28px; }
    .hf-a .hf-kopf-knoepfe { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .hf-a .hf-kopf-knoepfe .hf-knopf { padding: 0 12px; }
    .hf-a .hf-gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; padding: 32px 0; }
    .hf-a .hf-info { grid-template-columns: 1fr; gap: 26px; }
    .hf-unten { flex-direction: column; align-items: flex-start; }
}

/* ----- Fuß B: Kontakt zuerst, Gruppen aufklappbar ------------------ */
.hf-b { padding-top: clamp(40px, 5vw, 64px); }
.hf-b .hf-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px); border-radius: 20px;
                background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.16); }
.hf-b .hf-cta-titel { font-family: 'Roboto Serif', serif; font-variation-settings: 'wdth' 75; font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: #fff; line-height: 1.15; margin: 0 0 8px; }
.hf-b .hf-cta-text { font-size: 15px; color: rgba(255,255,255,.72); margin: 0; max-width: 58ch; }
.hf-b .hf-cta-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.hf-b .hf-haupt { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 40px 64px; padding: 52px 0 44px; }
.hf-b .hf-marke-spalte .hf-satz { font-size: 14px; margin-top: 12px; }
.hf-b .hf-kontakt { margin-top: 28px; }
.hf-b .hf-kontakt-titel { font-family: 'Roboto Serif', serif; font-variation-settings: 'wdth' 75; font-weight: 600; font-size: 17px; color: #fff; margin: 0 0 10px; }
.hf-b .hf-kontakt-links { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.hf-b .hf-spalten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.hf-b .hf-block + .hf-block { margin-top: 28px; }
.hf-b .hf-gkopf { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; gap: 8px; cursor: default; }
.hf-b .hf-gkopf .hf-ktitel { margin: 0 0 12px; flex: 1; }
.hf-b .hf-gkopf svg { display: none; width: 18px; height: 18px; color: rgba(255,255,255,.6); transition: transform .2s; }
.hf-b .hf-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); }
.hf-b .hf-leiste .hf-zahl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hf-b .hf-leiste .hf-klein-titel { margin: 0; }
.hf-b .hf-wasserzeichen { position: absolute; inset-inline-end: -3%; bottom: -10%; width: 30vw; max-width: 420px; opacity: .05; pointer-events: none; z-index: 0; color: #fff; }
.hf-b .hf-wasserzeichen svg { width: 100%; height: auto; stroke: none; fill: currentColor; }
@media (max-width: 1180px) {
    .hf-b .hf-haupt { grid-template-columns: 1fr; gap: 36px; }
    .hf-b .hf-marke-spalte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
    .hf-b .hf-kontakt { margin-top: 0; }
}
@media (max-width: 760px) {
    .hf-b .hf-cta-knoepfe { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .hf-b .hf-cta-knoepfe .hf-knopf { padding: 0 12px; }
    .hf-b .hf-marke-spalte { display: block; }
    .hf-b .hf-kontakt { margin-top: 26px; }
    .hf-b .hf-haupt { padding: 36px 0 24px; gap: 28px; }
    /* Gruppen als Aufklapper */
    .hf-b .hf-spalten { grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,.12); }
    .hf-b .hf-block, .hf-b .hf-block + .hf-block { margin-top: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .hf-b .hf-gkopf { cursor: pointer; padding: 15px 0; }
    .hf-b .hf-gkopf .hf-ktitel { margin: 0; font-size: 16px; }
    .hf-b .hf-gkopf svg { display: block; }
    .hf-b .hf-gkopf[aria-expanded="true"] svg { transform: rotate(180deg); }
    .hf-b .hf-block .hf-links { display: none; padding: 0 0 14px 15px; }
    .hf-b .hf-block.is-offen .hf-links { display: block; }
    .hf-b .hf-leiste { flex-direction: column; align-items: flex-start; }
    .hf-unten { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
    .hf-a .hf-kopf-knoepfe, .hf-b .hf-cta-knoepfe { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   5. KOPF A, Stand 2: freigegebene Module, schmale Spalten
      „Beliebte Funktionen“ und „Für Ihren Alltag“, Plattform unten.
      Spaltenzahl der Gruppen aus --hn-n (1 bis 8, nav.php).
   --------------------------------------------------------------- */
.hn-koerper { --g: 1fr; --x: 1fr; display: grid; grid-template-columns: minmax(0, var(--g)) minmax(0, var(--x)); gap: 30px; align-items: stretch; }
/* Anteil Gruppen : schmale Spalten je nach Zahl der Gruppen */
.hn-n1 { --g: 1fr;   --x: 1.75fr; }
.hn-n2 { --g: 2fr;   --x: 1.7fr; }
.hn-n3 { --g: 3fr;   --x: 1.7fr; }
.hn-n4 { --g: 4fr;   --x: 1.7fr; }
.hn-n5 { --g: 5fr;   --x: 1.7fr; }
.hn-koerper.ohne-extras { grid-template-columns: minmax(0, 1fr); }
.hn-a .hn-spalten { grid-template-columns: repeat(var(--hn-n, 5), minmax(0, 1fr)); gap: 8px 22px; align-content: start; }
.hn-n1 .hn-gtext, .hn-n2 .hn-gtext { min-height: 0; }
/* Sehr breit: Inhalt nicht endlos in die Breite ziehen */
.hn-a .hn-panel-in { max-width: 1760px; margin-inline: auto; }
.hn-n4 .hn-extras, .hn-n5 .hn-extras { align-self: start; }

.hn-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto; padding: 18px 6px 0; border-radius: 16px; background: linear-gradient(180deg, #f5f7fb 0%, #fafbfd 100%); border: 1px solid #edf0f4; }
.hn-extras.hn-x1 { grid-template-columns: minmax(0, 1fr); }
.hn-x-mehr { grid-column: 1 / -1; align-self: end; margin: 14px 12px 0; padding: 13px 6px 15px; border-top: 1px solid #e3e8ef; }
.hn-extra { min-width: 0; padding: 0 12px; }
.hn-extra + .hn-extra { border-inline-start: 1px solid #e3e8ef; }
.hn-extra ul, .hn-x-liste { display: flex; flex-direction: column; gap: 1px; }
.hn-x-titel { display: flex; align-items: center; gap: 7px; padding: 2px 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5b6472; }
.hn-x-titel svg { width: 14px; height: 14px; color: var(--hn-blau); }
.hn-x { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 6px; border-radius: 9px; font-size: 13.5px; font-weight: 400; line-height: 1.3; color: var(--hn-ink); transition: background .18s, color .18s; }
.hn-x-t { flex: 1; min-width: 0; }
.hn-x-ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: color-mix(in srgb, var(--hn-c) 11%, #fff); color: var(--hn-c); transition: background .18s, color .18s; }
.hn-x-ico svg { width: 14px; height: 14px; }
.hn-x-punkt { width: 7px; height: 7px; margin-inline: 4px 3px; border-radius: 50%; flex-shrink: 0; background: var(--hn-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hn-c) 16%, transparent); }
.hn-x-pfeil { width: 14px; height: 14px; color: var(--hn-c); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
[dir="rtl"] .hn-x-pfeil { transform: scaleX(-1) translateX(-4px); }
.hn-x:hover { background: #fff; color: var(--hn-c); box-shadow: 0 1px 3px rgba(0,14,40,.06); }
.hn-x:hover .hn-x-ico { background: var(--hn-c); color: #fff; }
.hn-x:hover .hn-x-pfeil { opacity: 1; transform: none; }
[dir="rtl"] .hn-x:hover .hn-x-pfeil { transform: scaleX(-1); }
.hn-x:focus-visible { outline: 2px solid var(--hn-c); outline-offset: 1px; }

/* Leiste unten: Plattform und Hilfe & Wissen als Chip-Gruppen */
.hn-fuss-gruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; }
.hn-a .hn-fuss-links { gap: 8px 30px; }
.hn-chip[aria-current] { background: #eef5fc; color: var(--hn-blau) !important; }

/* Handy-Menü: schmale Spalten als Aufklapper */
.hn-acc-inhalt .hn-x { padding: 10px 4px; font-size: 15px; }
.hn-acc-inhalt .hn-x-pfeil { opacity: 1; transform: none; color: #b0b6bf; }
[dir="rtl"] .hn-acc-inhalt .hn-x-pfeil { transform: scaleX(-1); }

/* Sechs und mehr Gruppen (fast alle Seiten an, Plattform → Website → Seiten): vier Spalten, schmale Spalten darunter, nur Titel */
.hn-n6, .hn-n7, .hn-n8 { --g: 3fr; --x: 1.1fr; }
/* Gruppen fließen wie ein Mauerwerk in drei Spalten (kurze Gruppen füllen die Lücken), damit das Menü niedrig bleibt */
.hn-a .hn-n6 .hn-spalten, .hn-a .hn-n7 .hn-spalten, .hn-a .hn-n8 .hn-spalten { display: block; column-count: 3; column-gap: 22px; }
.hn-n6 .hn-spalte, .hn-n7 .hn-spalte, .hn-n8 .hn-spalte { break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 16px; }
.hn-n6 .hn-gkopf, .hn-n7 .hn-gkopf, .hn-n8 .hn-gkopf { margin-bottom: 4px; }
.hn-n6 .hn-spalten .hn-d, .hn-n7 .hn-spalten .hn-d, .hn-n8 .hn-spalten .hn-d,
.hn-n6 .hn-gtext, .hn-n7 .hn-gtext, .hn-n8 .hn-gtext { display: none; }
.hn-n6 .hn-spalten .hn-link, .hn-n7 .hn-spalten .hn-link, .hn-n8 .hn-spalten .hn-link { align-items: center; padding: 3px 10px; }
.hn-n6 .hn-link .hn-ico, .hn-n7 .hn-link .hn-ico, .hn-n8 .hn-link .hn-ico { width: 28px; height: 28px; }
.hn-n6 .hn-link, .hn-n7 .hn-link, .hn-n8 .hn-link { grid-template-columns: 28px minmax(0, 1fr); }
.hn-n6 .hn-spalten .hn-txt, .hn-n7 .hn-spalten .hn-txt, .hn-n8 .hn-spalten .hn-txt { padding-top: 0; }
.hn-n6 .hn-gkopf, .hn-n7 .hn-gkopf, .hn-n8 .hn-gkopf { padding-bottom: 10px; }

/* Breitenstufen */
@media (max-width: 1599px) {
    /* Endausbau mit vielen Gruppen: schmale Spalten wandern unter die Gruppen */
    .hn-n4.hn-koerper, .hn-n5.hn-koerper, .hn-n6.hn-koerper, .hn-n7.hn-koerper, .hn-n8.hn-koerper { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .hn-n4 .hn-extra ul, .hn-n5 .hn-extra ul, .hn-n6 .hn-extra ul, .hn-n7 .hn-extra ul, .hn-n8 .hn-extra ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 10px; }
    /* Viele Gruppen: nur Titel, damit das Menü in die Höhe des Bildschirms passt */
    .hn-n4 .hn-spalten .hn-d, .hn-n5 .hn-spalten .hn-d, .hn-n4 .hn-gtext, .hn-n5 .hn-gtext { display: none; }
    .hn-n4 .hn-spalten .hn-link, .hn-n5 .hn-spalten .hn-link { align-items: center; padding: 5px 10px; }
    .hn-n4 .hn-spalten .hn-txt, .hn-n5 .hn-spalten .hn-txt { padding-top: 0; }
    .hn-n4 .hn-gkopf, .hn-n5 .hn-gkopf { padding-bottom: 10px; }
}
@media (max-width: 1360px) {
    .hn-a .hn-n4 .hn-spalten, .hn-a .hn-n5 .hn-spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hn-n3.hn-koerper { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .hn-n3 .hn-extra ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 10px; }
    .hn-a .hn-n1 .hn-gtext, .hn-a .hn-n2 .hn-gtext { display: block; }
    .hn-n2 { --g: 2fr; --x: 1.9fr; }
}
@media (max-width: 1180px) {
    .hn-panel-in { padding: 22px 22px 18px; }
    .hn-koerper { gap: 20px; }
    .hn-a .hn-n1 .hn-gtext, .hn-a .hn-n2 .hn-gtext { display: none; }
}

/* ---------------------------------------------------------------
   6. FUSS B, Stand 2: ohne Karte oben, Spaltenzahl aus --hf-n
   --------------------------------------------------------------- */
.hf-b { padding-top: clamp(48px, 5vw, 72px); }
.hf-b .hf-haupt { padding-top: 0; }
.hf-b .hf-spalten { grid-template-columns: repeat(var(--hf-n, 4), minmax(0, 1fr)); }
@media (max-width: 760px) {
    .hf-b .hf-haupt { padding-top: 0; }
    .hf-b .hf-spalten { grid-template-columns: 1fr; }
    .hf-b .hf-leiste { border-top: 0; padding-top: 4px; }
}

/* ---------------------------------------------------------------
   Kopfleiste wie die erste Website (Inhaber 27.11.): gleiche Höhe (47 px),
   Farbverlauf, Schrift, 20-px-Symbole mit Trennstrichen, Logo 100 px,
   Login schlicht mit Symbol. Mega-Menü und Handy-Menü bleiben wie in v2.
   --------------------------------------------------------------- */
.hn { --hn-hoehe: 46px; font-family: 'Roboto Serif', Arial, serif; }
.hn-leiste { background: var(--header-bg, linear-gradient(to bottom, #00275c, rgba(0, 39, 92, 0.6) 40%, rgba(0, 14, 40, 0) 80%), linear-gradient(135deg, #000e28, #2b3780, #a90076, #004e92, #000e28));
             background-size: 100% 100%, 800% 800%; border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); }
.hn-leiste::after { display: none; }
.hn-logo img { width: 100px; }
.hn-nav > ul { gap: 0; }
.hn-nav > ul > .hn-item { margin: 0 3px; }
.hn-nav > ul > .hn-item:not(:last-child) { border-inline-end: 1px solid color-mix(in srgb, currentColor 20%, transparent); padding-inline-end: 9px; margin-inline-end: 9px; height: 26px; }
.hn .hn-top { height: 26px; padding: 0 4px; border-radius: 4px; gap: 0; font-size: 13px; font-weight: 400; letter-spacing: 0; color: inherit; background: none !important; }
.hn-top .hn-sym { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5px; fill: none; opacity: 1; transition: stroke .2s ease; }
.hn-top .hn-txt { margin-inline-start: 6px; }
.hn-top .hn-chev { width: 14px; height: 14px; margin-inline-start: 4px; opacity: .85; }
.hn-top:hover, .hn-item.is-offen > .hn-top, .hn-item.hat-panel:hover > .hn-top { color: var(--header-hover, #009ced); }
.hn-top.is-aktiv { color: var(--header-active, #e9bf0d); font-weight: 700; }
.hn-top.is-aktiv::after { display: none; }
.hn-a .hn-nav { margin-inline-start: -4px; }
.hn-aktionen .hn-konto { height: 26px; padding: 0 4px; gap: 6px; font-size: 13px; font-weight: 400; color: inherit; border-radius: 4px; }
.hn-aktionen .hn-konto svg { width: 20px; height: 20px; stroke-width: 1.5px; }
.hn-aktionen .hn-konto:hover { color: var(--header-hover, #009ced); }
.hn-aktionen .hn-konto[aria-current="page"] { color: var(--header-active, #e9bf0d); font-weight: 700; }
@media (max-width: 1180px) { .hn .hn-top { padding: 0 4px; font-size: 13px; } }
@media (max-width: 999px) {
    .hn { --hn-hoehe: 46px; }
    .hn-logo img { width: 100px; }
    .hn-burger { width: 36px; height: 36px; }
    .hn-burger svg { width: 22px; height: 22px; }
    .hn-aktionen .hn-konto { height: 26px; padding: 0 4px; font-size: 13px; }
}
@media (max-width: 620px) { .hn-aktionen .hn-konto span { display: none; } }
/* Schmal wie die erste Website: Symbole links (Lösungen öffnet das Handy-Menü), Logo rechts, dann Login; ab 620 px nur Symbole */
@media (max-width: 999px) {
    .hn-nav { display: flex; order: 0; }
    .hn-panel { display: none !important; }
    .hn-burger { display: none !important; }
    .hn-a .hn-in { display: flex; gap: 0; }
    .hn-a .hn-nav { margin-inline-start: -4px; }
    .hn-a .hn-logo { order: 1; margin-inline-start: auto; margin-inline-end: 15px; }
    .hn-aktionen { order: 2; margin-inline-start: 0; }
    .hn.hn-ist-offen .hn-item.hat-panel > .hn-top { color: var(--header-hover, #009ced); }
    .hn.hn-ist-offen .hn-item.hat-panel > .hn-top .hn-chev { transform: rotate(180deg); }
}
@media (max-width: 620px) {
    .hn-in { padding-inline: 10px; }
    .hn-nav > ul > .hn-item { margin: 0 2px; }
    .hn .hn-top .hn-txt { display: none; }
}
.hn-panel, .hn-mobil { font-family: 'Roboto', Arial, sans-serif; }   /* Menüs innen bleiben in der Schrift von v2 */
@media (max-width: 999px) { .hn-a .hn-nav { margin-inline-end: 10px; } }
@media (max-width: 400px) { .hn-item-hilfe { display: none !important; } }
/* Sprache rechts vor Login mit Trennstrich wie die Hauptpunkte (Inhaber 27.11.) */
.hn-aktionen { gap: 0; }
.hn-aktionen .sprachwahl { display: flex; align-items: center; height: 26px; margin: 0 3px; padding-inline-end: 9px; margin-inline-end: 9px; border-inline-end: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.hn-aktionen .sprachwahl-knopf { display: flex; align-items: center; padding: 0 4px; color: inherit; }
.hn-aktionen .sprachwahl-knopf:hover { color: var(--header-hover, #009ced); }
