/**
 * Loopacker – Mega-Menü „Sortiment“ (Schritt B2, Stand 17.11.2026) – nach Demo v27.
 * Alle Regeln mit .lp-hd-Präfix, damit die globalen theme.json-Linkstile nicht gewinnen.
 */

.lp-hd .lp-mm{ position: absolute; left: 0; right: 0; top: 100%; z-index: 5; }
.lp-hd .lp-mm[hidden]{ display: none; }
.lp-hd .lp-mm__dim{ position: absolute; left: 0; right: 0; top: 0; height: 100vh; background: rgba(7, 38, 70, .45); animation: lpMmFade .2s ease both; }
.lp-hd .lp-mm__panel{ position: relative; background: var(--lp-white); box-shadow: 0 18px 40px rgba(7, 38, 70, .22); animation: lpMmIn .22s var(--lp-ease) both; }
.lp-hd .lp-trigger[aria-expanded="true"]{ background: var(--lp-navy-700); color: var(--lp-white); }

/* ---------- Welten ---------- */
.lp-hd .lp-mm__worlds{ display: flex; height: clamp(300px, calc(100vh - 330px), 450px); max-width: 1440px; margin-inline: auto; }
.lp-hd .lp-w{
	position: relative; overflow: hidden; isolation: isolate; min-width: 0; flex: 1 1 64px;
	background: var(--w); border-right: 1px solid rgba(255, 255, 255, .18);
	transition: flex-grow .5s ease, flex-basis .5s ease;
}
.lp-hd .lp-w:last-child{ border-right: 0; }
.lp-hd .lp-mm__worlds.has-active .lp-w{ flex: 0 0 64px; }
.lp-hd .lp-mm__worlds.has-active .lp-w.is-active{ flex: 1 1 64px; }

.lp-hd .lp-w__img{
	position: absolute; inset: 0; z-index: -1; background-size: cover; background-repeat: no-repeat; background-position: 72% 60%;
	filter: grayscale(1) contrast(1.25) brightness(1.08); mix-blend-mode: multiply; opacity: .85;
	transition: transform 3s ease, background-position .5s ease;
}
.lp-hd .lp-w.is-active .lp-w__img{ transform: scale(1.04); background-position: 100% 62%; }
.lp-hd .lp-w__shade{ position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(var(--wr), .55) 0%, rgba(var(--wr), 0) 55%); }
.lp-hd .lp-w__shade--x{ opacity: 0; transition: opacity .5s; background: linear-gradient(90deg, rgba(var(--wr), .9) 0%, rgba(var(--wr), .35) 30%, rgba(var(--wr), 0) 55%); }
.lp-hd .lp-w.is-active .lp-w__shade--x{ opacity: 1; }

/* Auslöser-Fläche (kompakt bzw. Streifen) */
.lp-hd .lp-w__open{
	all: unset; box-sizing: border-box; display: flex; width: 100%; height: 100%; cursor: pointer; color: var(--lp-white);
}
.lp-hd .lp-w__open:focus-visible{ outline: 3px solid var(--lp-white); outline-offset: -6px; }
.lp-hd .lp-w.is-active .lp-w__open{ display: none; }
.lp-hd .lp-w__compact{ display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 32px 28px; box-sizing: border-box; animation: lpMmFade .4s ease both; }
.lp-hd .lp-w__strip{ display: none; width: 100%; align-items: center; justify-content: center; transition: background .2s; }
.lp-hd .lp-mm__worlds.has-active .lp-w:not(.is-active) .lp-w__compact{ display: none; }
.lp-hd .lp-mm__worlds.has-active .lp-w:not(.is-active) .lp-w__strip{ display: flex; }
.lp-hd .lp-w__strip:hover{ background: rgba(255, 255, 255, .08); }
.lp-hd .lp-w__strip span{ writing-mode: vertical-rl; transform: rotate(180deg); font: 700 14px var(--lp-font-head); white-space: nowrap; }

.lp-hd .lp-w__kick{ font: 600 12px var(--lp-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lp-on-dark); }
.lp-hd .lp-w__name{ font: 800 26px/1.15 var(--lp-font-head); color: var(--lp-white); }
.lp-hd .lp-w__intro{ font: 400 14px/1.45 var(--lp-font-body); color: rgba(255, 255, 255, .92); }
.lp-hd .lp-w__clist{ display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.lp-hd .lp-w__clist span{ display: flex; align-items: center; gap: 10px; font: 500 14px var(--lp-font-body); }
.lp-hd .lp-w__clist span::before{ content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lp-white); flex: 0 0 5px; }
.lp-hd .lp-w__foot{ margin-top: auto; display: flex; align-items: center; justify-content: space-between; font: 600 13px var(--lp-font-body); color: rgba(255, 255, 255, .9); }
.lp-hd .lp-w__arrow{ width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--lp-white); display: flex; align-items: center; justify-content: center; transform: rotate(-90deg); transition: background .2s, color .2s; }
.lp-hd .lp-w__open:hover .lp-w__arrow{ background: var(--lp-white); color: var(--w); }

/* Aufgeklappte Welt */
.lp-hd .lp-w__exp{ display: none; height: 100%; box-sizing: border-box; padding: 24px 40px 24px 64px; gap: 40px; overflow-y: auto; }
.lp-hd .lp-w.is-active .lp-w__exp{ display: flex; }
.lp-hd .lp-w__left{ flex: 0 0 320px; min-width: 0; overflow-wrap: break-word; display: flex; flex-direction: column; gap: 12px; color: var(--lp-white); animation: lpMmFade .4s ease both; }
.lp-hd .lp-w__left .lp-w__name{ font-size: 28px; }
.lp-hd .lp-w__wl:hover, .lp-hd .lp-w__wl:focus-visible{ text-decoration: underline; text-underline-offset: 4px; outline: none; }
.lp-hd .lp-w__left .lp-w__intro{ font-size: 15px; line-height: 1.5; }
.lp-hd .lp-w__dl{ font: 600 13px var(--lp-font-body); margin-top: 8px; }
.lp-hd .lp-w__chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.lp-hd .lp-w__chip{ font: 500 13px var(--lp-font-body); color: var(--lp-white); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 8px 14px; }
.lp-hd .lp-w__chip--txt{ background: none; border-style: dashed; cursor: default; }
.lp-hd a.lp-w__chip:hover, .lp-hd a.lp-w__chip:focus-visible{ background: var(--lp-white); color: var(--w); outline: none; }
.lp-hd .lp-w__soon{ font: 400 13px/1.45 var(--lp-font-body); color: rgba(255, 255, 255, .92); border: 1px dashed rgba(255, 255, 255, .6); border-radius: 8px; padding: 10px 12px; }
.lp-hd .lp-w__acts{ margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-hd .lp-w__all, .lp-hd .lp-w__back{
	display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 8px; box-sizing: border-box;
	font: 600 13px var(--lp-font-body); cursor: pointer; transition: background .2s, color .2s;
}
.lp-hd .lp-w__all{ background: var(--lp-white); color: var(--w); border: 1px solid var(--lp-white); }
.lp-hd .lp-w__all:hover, .lp-hd .lp-w__all:focus-visible{ background: var(--lp-soft); outline: 2px solid var(--lp-white); outline-offset: 2px; }
.lp-hd .lp-w__back{ background: none; color: var(--lp-white); border: 1px solid rgba(255, 255, 255, .6); }
.lp-hd .lp-w__back:hover, .lp-hd .lp-w__back:focus-visible{ background: var(--lp-white); color: var(--lp-navy-700); outline: none; }

/* Kategoriekarten */
.lp-hd .lp-w__grid{ flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; align-content: start; }
.lp-hd .lp-card{
	display: flex; flex-direction: column; background: rgba(255, 255, 255, .96); border-radius: 10px; padding: 10px; box-sizing: border-box;
	box-shadow: 0 4px 14px rgba(7, 38, 70, .18); transition: transform .25s, box-shadow .25s; text-align: left;
	border: 0; font: inherit; cursor: pointer;
}
.lp-hd .lp-w.is-active .lp-card{ animation: lpMmCard .45s ease both; animation-delay: var(--d, 0s); }
.lp-hd .lp-card:hover, .lp-hd .lp-card:focus-visible{ transform: translateY(-3px); box-shadow: 0 0 0 2px var(--lp-white), 0 10px 24px rgba(7, 38, 70, .3); outline: none; }
.lp-hd .lp-card:hover .lp-card__n, .lp-hd .lp-card:focus-visible .lp-card__n{ color: var(--lp-navy-700); text-decoration: underline; }
.lp-hd .lp-card__img{ display: block; height: 80px; border-radius: 6px; background: #EDEDEB center 55% / cover no-repeat; border: 1px solid var(--lp-line); }
.lp-hd .lp-card__ic{ display: flex; align-items: center; justify-content: center; height: 80px; border-radius: 6px; background: var(--lp-green-50); color: var(--lp-green-600); }
.lp-hd .lp-card__n{ font: 600 14px/1.3 var(--lp-font-body); color: var(--lp-ink); margin-top: 10px; }
.lp-hd .lp-card__c{ font: 400 12.5px/1.4 var(--lp-font-body); color: var(--lp-slate-500); margin-top: 3px; }

/* ---------- Einstieg nach Einsatzzweck ---------- */
.lp-hd .lp-mm__bot{ background: var(--lp-soft); border-top: 1px solid var(--lp-line); }
.lp-hd .lp-ezx{ max-width: 1440px; margin-inline: auto; box-sizing: border-box; padding: 20px 64px 22px; display: flex; flex-direction: column; gap: 13px; }
.lp-hd .lp-ezx__h{ display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lp-hd .lp-ezx__h b{ font: 800 17px var(--lp-font-head); color: var(--lp-navy-700); }
.lp-hd .lp-ezx__h span{ font: 700 11px var(--lp-font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--lp-green-700); }
.lp-hd .lp-ezx__all{ margin-left: auto; font: 600 13.5px var(--lp-font-body); color: var(--lp-navy-700); }
.lp-hd .lp-ezx__all:hover, .lp-hd .lp-ezx__all:focus-visible{ text-decoration: underline; }
.lp-hd .lp-ezx__g{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lp-hd .lp-ezc{
	display: flex; align-items: center; gap: 11px; height: 52px; padding: 0 12px; box-sizing: border-box;
	background: var(--lp-white); border: 1.5px solid var(--lp-line); border-radius: 10px;
	font: 600 13px/1.15 var(--lp-font-body); color: var(--lp-navy-700); box-shadow: 0 2px 6px rgba(7, 38, 70, .06);
	transition: border-color .2s, background .2s, transform .2s;
}
.lp-hd .lp-ezc i{ width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--lp-green-50); color: var(--lp-green-600); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.lp-hd .lp-ezc:hover, .lp-hd .lp-ezc:focus-visible{ border-color: var(--lp-green-600); background: var(--lp-green-50); transform: translateY(-2px); outline: none; }
.lp-hd .lp-ezc:hover i, .lp-hd .lp-ezc:focus-visible i{ background: var(--lp-green-600); color: var(--lp-white); }

@keyframes lpMmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpMmIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes lpMmCard { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Kleinere Desktops / Tablet quer ---------- */
@media (max-width: 1279.98px) {
	.lp-hd .lp-w__compact{ padding: 26px 20px; }
	.lp-hd .lp-w__name{ font-size: 22px; }
	.lp-hd .lp-w__exp{ padding: 22px 24px 22px 32px; gap: 24px; }
	.lp-hd .lp-w__left{ flex-basis: 250px; }
	.lp-hd .lp-w__left .lp-w__name{ font-size: 22px; }
	.lp-hd .lp-w__grid{ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.lp-hd .lp-ezx{ padding-inline: 32px; }
	.lp-hd .lp-ezc{ font-size: 12.5px; gap: 9px; padding: 0 10px; }
	.lp-hd .lp-card__img, .lp-hd .lp-card__ic{ height: 64px; }
	.lp-hd .lp-card__c{ display: none; }
}

/* Unter 1024 px kein Panel (mobiles Menü: Schritt B8) */
@media (max-width: 1023.98px) {
	.lp-hd .lp-mm{ display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.lp-hd .lp-w, .lp-hd .lp-w__img, .lp-hd .lp-w__shade--x, .lp-hd .lp-card, .lp-hd .lp-ezc{ transition: none; }
	.lp-hd .lp-mm__dim, .lp-hd .lp-mm__panel, .lp-hd .lp-w__compact, .lp-hd .lp-w__left, .lp-hd .lp-w.is-active .lp-card{ animation: none; }
	.lp-hd .lp-w.is-active .lp-w__img{ transform: none; }
}
