/* Gemeinsame Struktur der drei Konzepte (Navigation, Drawer, Footer-Gerüst, Switcher).
   Die Optik (Farben, Typografie, Formen) setzt jedes Konzept über eigene Variablen. */

:root {
	--orange: #F29420;
	--black: #0E0E0E;
	--white: #fff;
	--bg: #fff;
	--fg: #111;
	--muted: #5b5b5b;
	--line: #e6e6e6;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: var(--font);
	--hdr: 76px;
	--pad: clamp(18px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #000; color: #fff; padding: 10px 16px; z-index: 300; }
.skip-link:focus { top: 12px; }
.ico { flex: none; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

/* ---- Header / Navigation ---- */
.cx-header { position: sticky; top: 0; z-index: 100; background: var(--bg); }
.cx-bar { display: flex; align-items: center; gap: 14px; height: var(--hdr); padding-inline: var(--pad); max-width: 1480px; margin-inline: auto; }
.cx-brand img { width: 150px; height: auto; }
.cx-cta { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cx-cta--mobile { margin-left: auto; }
.cx-burger { display: inline-grid; place-items: center; width: 46px; height: 46px; background: transparent; border: 0; color: inherit; cursor: pointer; }

.cx-nav { position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); background: var(--bg); color: var(--fg); transform: translateX(105%); visibility: hidden; transition: transform .25s ease; padding: 92px 22px 28px; overflow-y: auto; z-index: 150; }
.cx-nav.is-open { transform: none; visibility: visible; }
.cx-nav__logo { position: absolute; top: 14px; left: 22px; display: block; }
.cx-nav__logo img { width: 130px; height: auto; display: block; }
.cx-nav__list { display: flex; flex-direction: column; }
.cx-nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); position: relative; }
.cx-nav__link { flex: 1; padding: 16px 2px; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.nav__toggle { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; }
.nav__toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.cx-mega, .cx-drop { display: none; width: 100%; padding-bottom: 14px; }
.has-sub.is-open > .cx-mega, .has-sub.is-open > .cx-drop { display: block; }
.cx-cta--nav { margin-top: 22px; width: 100%; padding: 16px; }
.cx-burger[aria-expanded="true"] { position: fixed; right: 18px; top: 16px; z-index: 160; }
body.nav-open { overflow: hidden; }
body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 99; }

.cx-mega__grid { display: grid; gap: 2px; }
.cx-mega__grid a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 6px; text-decoration: none; }
.cx-mega__grid strong, .cx-mega__t { display: block; font-size: 1rem; font-weight: 700; }
.cx-mega__grid small { display: block; font-size: .84rem; line-height: 1.4; color: var(--muted); font-weight: 400; }
.cx-mega__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--orange); color: #000; }
.cx-mega__all { display: inline-block; font-weight: 700; margin: 6px 6px 0; }
.cx-drop a { display: block; padding: 11px 6px; text-decoration: none; font-weight: 600; }

@media (min-width: 1360px) { .cx-nav__logo { display: none; } }
@media (min-width: 1060px) {
	.cx-burger, .cx-cta--mobile { display: none; }
	.cx-nav { position: static; inset: auto; width: auto; transform: none; visibility: visible; padding: 0; overflow: visible; display: flex; align-items: center; gap: 22px; margin-left: auto; z-index: auto; background: none; }
	.cx-nav__list { flex-direction: row; align-items: center; gap: 0; }
	.cx-nav__item { border: 0; flex-wrap: nowrap; }
	.cx-nav__link { padding: 10px 12px; font-size: .96rem; }
	.nav__toggle { width: 24px; height: 40px; margin-left: -10px; }
	.cx-cta--nav { margin: 0; width: auto; padding: 13px 22px; }
	.cx-mega, .cx-drop { position: absolute; top: 100%; display: block; width: auto; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; background: var(--bg); color: var(--fg); margin-top: 12px; padding: 14px; z-index: 5; }
	.cx-mega::before, .cx-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.cx-mega { left: 50%; translate: -45% 0; width: min(780px, 92vw); }
	.cx-mega__grid { grid-template-columns: 1fr 1fr; }
	.cx-drop { left: 0; min-width: 220px; }
	.has-sub:hover > .cx-mega, .has-sub:focus-within > .cx-mega, .has-sub.is-open > .cx-mega,
	.has-sub:hover > .cx-drop, .has-sub:focus-within > .cx-drop, .has-sub.is-open > .cx-drop { opacity: 1; visibility: visible; transform: none; }
	body.nav-open { overflow: auto; }
	body.nav-open::after { display: none; }
}

/* ---- Footer-Gerüst ---- */
.cx-footer__grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding: clamp(44px, 6vw, 80px) var(--pad) 36px; max-width: 1480px; margin-inline: auto; }
@media (min-width: 640px) { .cx-footer__grid { grid-template-columns: repeat(3, 1fr); } .cx-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .cx-footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } .cx-footer__brand { grid-column: auto; } }
.cx .cx-footer h2, .cx .cx-footer__h { font-size: .78rem; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.cx-footer li { margin-bottom: 8px; }
.cx-footer a { text-decoration: none; }
.cx-footer a:hover { text-decoration: underline; }
.cx-footer__brand p { max-width: 38ch; margin-top: 14px; }
.cx-footer__logo img { width: 150px; }
.cx-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px var(--pad) 30px; font-size: .88rem; max-width: 1480px; margin-inline: auto; border-top: 1px solid var(--line); }

/* ---- Prototyp-Umschalter ---- */
.cx-switch { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 400; display: flex; gap: 2px; padding: 4px; background: rgba(14, 14, 14, .94); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: calc(100vw - 20px); }
.cx-switch a { display: flex; align-items: center; gap: 7px; color: #cfcfcf; text-decoration: none; padding: 8px 14px; border-radius: 999px; font: 600 .82rem/1 var(--font); white-space: nowrap; }
.cx-switch b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #333; color: #fff; font-size: .72rem; }
.cx-switch a[aria-current] { background: var(--orange); color: #000; }
.cx-switch a[aria-current] b { background: #000; color: var(--orange); }
@media (max-width: 560px) { .cx-switch span { display: none; } .cx-switch a { padding: 8px 18px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
