/* KB Media · Luminous Dark · Header und Mega-Menü (Desktop ab 1024 px) */

.lx-header {
	position: fixed; inset: 0 0 auto 0; z-index: var(--lx-z-header);
	color: var(--lx-text);
}
/* Zustand 1: über dem Hero leicht abgedunkelt */
.lx-header::before {
	content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(7, 9, 13, 0.55) 0%, rgba(7, 9, 13, 0) 100%);
	transition: opacity var(--lx-d3) var(--lx-ease);
}
/* Zustand 2: dunkles Glas beim Scrollen. Opacity statt Filter animieren. */
.lx-header::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: var(--lx-glass);
	-webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
	border-bottom: 1px solid var(--lx-line);
	opacity: 0;
	transition: opacity var(--lx-d3) var(--lx-ease);
}
.lx-header.is-scrolled::before { opacity: 0; }
.lx-header.is-scrolled::after, .lx-header.is-open::after { opacity: 1; }
.lx-header.is-open::after { background: var(--lx-glass-strong); }

.lx-header__bar {
	position: relative; z-index: 2;
	display: flex; align-items: center; gap: var(--lx-s4);
	height: var(--lx-header-h);
	transition: height var(--lx-d2) var(--lx-ease);
}
.lx-header.is-scrolled .lx-header__bar { height: var(--lx-header-h-scrolled); }
.lx-header__logo { display: inline-flex; align-items: center; flex: none; padding: 6px 0; border-radius: 6px; }
.lx-header__logo img { height: 26px; width: auto; transition: height var(--lx-d2) var(--lx-ease); }
.lx-header.is-scrolled .lx-header__logo img { height: 23px; }
.lx-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lx-nav { margin-left: auto; }
.lx-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lx-nav__link {
	position: relative; display: inline-flex; align-items: center; gap: 6px;
	height: 40px; padding: 0 14px; border-radius: var(--lx-r-pill);
	font-size: 0.9375rem; font-weight: 500; color: var(--lx-text-2);
	transition: color var(--lx-d2) var(--lx-ease), background-color var(--lx-d2) var(--lx-ease);
}
.lx-nav__link:hover, .lx-nav__link[aria-expanded="true"] { color: var(--lx-text); background: rgba(241, 245, 249, 0.06); }
.lx-nav__link[aria-current] { color: var(--lx-text); }
.lx-nav__link[aria-current]::after {
	content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
	border-radius: 50%; background: var(--lx-accent);
}
.lx-nav__link svg { width: 12px; height: 12px; transition: transform var(--lx-d2) var(--lx-ease); }
.lx-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Mega-Menü */
.lx-mega {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
	padding: 8px 0 var(--lx-s5);
	background: var(--lx-glass-strong);
	-webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
	border-bottom: 1px solid var(--lx-line);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
	opacity: 0; transform: translateY(-6px); visibility: hidden;
	transition: opacity var(--lx-d2) var(--lx-ease), transform var(--lx-d2) var(--lx-ease), visibility 0s linear var(--lx-d2);
}
.lx-header.is-open .lx-mega { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.lx-mega__grid { display: grid; grid-template-columns: 1fr 1fr 0.86fr; gap: 20px; padding-top: var(--lx-s3); }
.lx-mega__feature {
	position: relative; display: grid; grid-template-rows: auto 1fr; gap: 16px;
	padding: 10px; border-radius: var(--lx-r-l);
	background: rgba(241, 245, 249, 0.03); border: 1px solid var(--lx-line);
	transition: background-color var(--lx-d2) var(--lx-ease), border-color var(--lx-d2) var(--lx-ease);
}
.lx-mega__feature:hover { background: rgba(241, 245, 249, 0.06); border-color: var(--lx-line-strong); }
.lx-mega__feature .lx-media { aspect-ratio: 16 / 9; border-radius: 20px; }
.lx-mega__feature img { transition: transform 900ms var(--lx-ease); }
.lx-mega__feature:hover img { transform: scale(1.04); }
.lx-mega__feature-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 10px 8px; }
.lx-mega__feature .lx-h4 { font-size: 2.25rem; }
.lx-mega__feature p { margin: 4px 0 0; font-size: var(--lx-fs-small); line-height: 1.5; color: var(--lx-text-2); }
.lx-mega__arrow {
	flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--lx-line-strong); color: var(--lx-text);
	transition: background-color var(--lx-d2) var(--lx-ease), color var(--lx-d2) var(--lx-ease), border-color var(--lx-d2) var(--lx-ease);
}
.lx-mega__arrow svg { width: 16px; height: 16px; }
.lx-mega__feature:hover .lx-mega__arrow { background: var(--lx-accent); border-color: var(--lx-accent); color: var(--lx-accent-ink); }
.lx-mega__feature--warm:hover .lx-mega__arrow { background: var(--lx-warm); border-color: var(--lx-warm); color: var(--lx-warm-ink); }

.lx-mega__list { list-style: none; margin: 0; padding: 8px 0 0 12px; display: grid; grid-auto-rows: 1fr; gap: 8px; }
.lx-mega__list li { display: flex; }
.lx-mega__list li > a { flex: 1 1 auto; }
.lx-mega__list-title { font-size: var(--lx-fs-label); font-weight: 600; color: var(--lx-text-3); margin: 6px 0 8px 12px; }
/* Zeile „Außerdem“: Icon · Text · Pfeil, ganze Zeile klickbar */
.lx-mega__list a {
	display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; column-gap: 14px;
	padding: 12px 14px 12px 12px; border-radius: 16px;
	background: rgba(241, 245, 249, 0.025); border: 1px solid rgba(241, 245, 249, 0.05);
	transition: background-color 220ms var(--lx-ease), border-color 220ms var(--lx-ease);
}
.lx-mega__list .lx-mega__ico {
	display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 12px;
	color: var(--lx-text); background: rgba(241, 245, 249, 0.04); border: 1px solid var(--lx-line);
	transition: color 220ms var(--lx-ease), border-color 220ms var(--lx-ease), background-color 220ms var(--lx-ease);
}
.lx-mega__ico svg { width: 22px; height: 22px; display: block; }
.lx-mega__list .lx-mega__txt { display: block; min-width: 0; margin: 0; font-size: inherit; }
.lx-mega__list strong { display: block; color: var(--lx-text); font-weight: 600; font-size: 1rem; line-height: 1.3; transition: color 220ms var(--lx-ease); }
.lx-mega__txt > span { display: block; font-size: 0.875rem; color: var(--lx-text-3); line-height: 1.45; margin-top: 2px; }
.lx-mega__list .lx-mega__go {
	display: block; width: 16px; height: 16px; margin: 0; color: var(--lx-text-3); opacity: 0.55;
	transition: transform 220ms var(--lx-ease), color 220ms var(--lx-ease), opacity 220ms var(--lx-ease);
}
.lx-mega__go svg { width: 16px; height: 16px; display: block; }
.lx-mega__list a:hover, .lx-mega__list a:focus-visible { background: rgba(241, 245, 249, 0.065); border-color: rgba(241, 245, 249, 0.12); }
.lx-mega__list a:hover .lx-mega__ico, .lx-mega__list a:focus-visible .lx-mega__ico { color: var(--lx-accent); border-color: rgba(0, 221, 245, 0.32); background: rgba(0, 221, 245, 0.06); }
.lx-mega__list a:hover strong, .lx-mega__list a:focus-visible strong { color: #fff; }
.lx-mega__list a:hover .lx-mega__go, .lx-mega__list a:focus-visible .lx-mega__go { color: var(--lx-accent); opacity: 1; transform: translateX(4px); }
.lx-mega__list a:focus-visible { outline-offset: 2px; border-radius: 16px; }
/* Schmale Desktop-Breiten: Zeilen kompakter, damit die Spalte die Bildkarten nicht in die Höhe zieht */
@media (max-width: 1360px) {
	.lx-mega__list { gap: 6px; }
	.lx-mega__list a { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 10px 12px 10px 10px; }
	.lx-mega__list .lx-mega__ico { width: 34px; height: 34px; border-radius: 10px; }
	.lx-mega__ico svg { width: 20px; height: 20px; }
	.lx-mega__list .lx-mega__go { display: none; }
	.lx-mega__txt > span { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) { .lx-mega__list .lx-mega__go { transition: none; } .lx-mega__list a:hover .lx-mega__go, .lx-mega__list a:focus-visible .lx-mega__go { transform: none; } }
.lx-mega__foot { margin: auto 0 0 12px; padding: 16px 12px 0; border-top: 1px solid var(--lx-line); }

/* Burger nur mobil */
.lx-burger {
	display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(241, 245, 249, 0.06); border: 1px solid var(--lx-glass-border);
}
.lx-burger span:not(.lx-sr) {
	position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--lx-text);
	transition: transform var(--lx-d2) var(--lx-ease);
}
.lx-burger span:nth-child(1) { top: 17px; }
.lx-burger span:nth-child(2) { top: 25px; }

@media (max-width: 1023.98px) {
	.lx-nav, .lx-mega { display: none; }
	.lx-burger { display: inline-block; }
	.lx-header__logo img { height: 22px; }
	.lx-header.is-scrolled .lx-header__logo img { height: 20px; }
	:root { --lx-header-h: 68px; --lx-header-h-scrolled: 60px; }
}
@media (max-width: 420px) {
	.lx-header__actions .lx-btn { padding: 0 14px; }
}

/* Landingpage-Variante: Logo und Anfrage-Button, keine Navigation */
.lx-header__note { font-size: 0.875rem; color: var(--lx-text-2); }
@media (max-width: 767.98px) { .lx-header__note { display: none; } }
