/* =====================================================================
   Header Variante B „Präsent“: Infoleiste, nummerierte Navigation,
   Aufklapp-Menüs. Variante A (hdr-a) blendet diese Elemente aus.
   ===================================================================== */

/* ---------- Variante A: Zusatz-Elemente aus ---------- */
.hdr-a .topbar, .hdr-a .mega, .hdr-a .site-nav sup, .hdr-a .cta-b { display: none !important; }
.hdr-b .cta-a { display: none; }

/* ---------- Infoleiste ---------- */
.topbar { height: 38px; overflow: hidden; font-size: 13px; border-bottom: 1px solid var(--line); background: var(--dark); color: #c9ced3; transition: height .35s var(--ease), background .35s, border-color .35s, color .35s; }
.topbar .container { height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar .tb-r { display: flex; gap: 22px; }
.topbar a:hover { color: #fff; }
.topbar span:first-child { letter-spacing: .02em; }
.site-header.is-scrolled .topbar, .home .site-header.is-solid .topbar { height: 0; border-bottom-color: transparent; }
.home .site-header:not(.is-solid):not(.mega-open) .topbar { background: transparent; color: rgba(255,255,255,.82); border-bottom-color: rgba(255,255,255,.16); }
.home .site-header:not(.is-solid) .topbar a:hover { color: #fff; }
@media (max-width: 760px) { .topbar { display: none; } }

/* blauer Streifen sitzt bei B über der Infoleiste – ok */
.hdr-b .xhero-in { padding-top: calc(var(--header-h) + 38px); }

/* ---------- Navigation mit Nummern ---------- */
.hdr-b .site-nav a sup { font-size: 11px; font-weight: 600; color: var(--blue); margin-right: 6px; vertical-align: 6px; letter-spacing: .04em; transition: color .2s; }
.hdr-b.home .site-header:not(.is-solid):not(.mega-open) .site-nav a sup { color: #7cc0ef; }
.hdr-b .site-nav a[data-mega]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s; opacity: .7; }
.hdr-b .site-nav a[aria-expanded="true"]::after { transform: translateY(0) rotate(-135deg); }
.hdr-b .site-nav a.nav-cta { padding: 12px 22px; }
.hdr-b .site-nav a.nav-cta .cta-b span { display: inline-block; transition: transform .25s; }
.hdr-b .site-nav a.nav-cta:hover .cta-b span { transform: translateX(4px); }

/* ---------- Header wird weiß, wenn ein Menü offen ist ---------- */
.home .site-header.mega-open { background: #fff; color: var(--ink); border-bottom-color: var(--line); }
.home .site-header.mega-open .wordmark b { color: var(--blue); }
.home .site-header.mega-open .wordmark small { color: var(--muted); }
.home .site-header.mega-open .site-nav a { text-shadow: none; }
.home .site-header.mega-open .site-nav a:hover { color: var(--blue); border-bottom-color: transparent; }

/* ---------- Aufklapp-Menüs ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.site-header .mega-in { height: auto; display: grid; align-items: start; justify-content: stretch; }
.mega-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 3vw, 56px); padding-block: clamp(28px, 3vw, 44px); }
.mega-col { border-right: 1px solid var(--line); padding-right: clamp(20px, 2.4vw, 40px); display: flex; flex-direction: column; }
.mega-col .label { margin-bottom: 14px; }
.mega-col ul { list-style: none; margin: 0 0 24px; padding: 0; }
.mega-col li a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; transition: color .2s, padding .25s; }
.mega-col li a:hover { color: var(--blue); padding-left: 6px; }
.mega-col li sup { font-size: 12px; color: var(--muted); font-weight: 400; }
.mega-col .small-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.mega-col .btn { margin-top: auto; align-self: flex-start; font-size: 15px; padding: 10px 16px; }
.mega-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.mega-cards a { display: block; }
.mega-cards .mi { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); margin-bottom: 10px; }
.mega-cards img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega-cards a:hover img { transform: scale(1.05); }
.mega-cards b { display: block; font-size: 16px; transition: color .2s; }
.mega-cards a:hover b { color: var(--blue); }
.mega-cards span { font-size: 13.5px; color: var(--muted); }
.mega-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.mega-svc a { display: block; padding: 18px 20px 20px; background: var(--bg-2); border-top: 3px solid transparent; transition: border-color .2s, background .2s; }
.mega-svc a:hover { border-top-color: var(--blue); background: var(--blue-tint); }
.mega-svc .no { font-size: 32px; font-weight: 300; color: var(--blue); line-height: 1; }
.mega-svc b { display: block; font-size: 19px; margin: 10px 0 6px; }
.mega-svc p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1000px) { .mega { display: none; } }

/* ---------- Demo-Umschalter: zweite Zeile ---------- */
.v-switch { flex-direction: column; align-items: stretch; }
.v-switch .row { display: flex; align-items: center; gap: 4px; }
.v-switch .row span { min-width: 132px; }
@media (max-width: 560px) { .v-switch .row { justify-content: space-between; } .v-switch .row span { display: none; } }
.mega-col .small-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mega-col .small-list li { border: 0; padding: 5px 10px; background: var(--blue-tint); color: var(--blue-dark); font-size: 13px; font-weight: 600; }
.mega-svc a { padding: 0 0 18px; }
.mega-svc .mi { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 14px; }
.mega-svc .mi img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega-svc a:hover .mi img { transform: scale(1.05); }
.mega-svc .no, .mega-svc b, .mega-svc p { padding-inline: 18px; display: block; }
.mega-svc .no { font-size: 26px; }

/* ---------- Varianten-Umschalter: einklappbar zu einem Icon ---------- */
.v-switch { transition: box-shadow .2s; }
.vs-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.vs-toggle:hover { color: var(--blue); }
.vs-toggle svg { flex: none; color: var(--blue); }
.vs-toggle .vs-x { margin-left: auto; font-size: 14px; color: var(--muted); }
.v-switch.is-collapsed { padding: 0; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--blue); border-color: var(--blue); }
.v-switch.is-collapsed .vs-toggle { width: 46px; height: 46px; justify-content: center; padding: 0; }
.v-switch.is-collapsed .vs-toggle svg { color: #fff; }
.v-switch.is-collapsed .vs-title, .v-switch.is-collapsed .vs-x, .v-switch.is-collapsed .row { display: none; }
.v-switch.is-collapsed:hover { box-shadow: 0 10px 30px rgba(30,131,202,.45); }
@media (max-width: 560px) { .v-switch.is-collapsed { left: 12px; right: auto; bottom: 12px; } }
@media (max-width: 560px) { .v-switch:not(.is-collapsed) .vs-toggle span { display: inline; } .v-switch:not(.is-collapsed) .vs-toggle .vs-x { margin-left: auto; } }
