/*
 * Loopacker – Kopfbereich (Schritt B1, Stand 17.11.2026)
 * Maße und Werte aus Demo v27. Farben nur über tokens.css (keine Hex-Werte).
 * Breakpoints: Desktop-Aufbau ab 1024 px, darunter kompakter Kopf (Handy-Muster folgt in B8).
 */

.lp-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 14px; background: var(--lp-white); color: var(--lp-navy-700); font-weight: 600; }
.lp-skip:focus { left: 12px; top: 12px; outline: 3px solid var(--lp-green-300); }

.lp-hd { position: relative; z-index: 50; font-family: var(--lp-font-body); }
.lp-hd a { text-decoration: none; }
.lp-hd .lp-i{ flex: 0 0 auto; display: block; }

.lp-hd .lp-util__in, .lp-hd .lp-head__in, .lp-hd .lp-nav__in, .lp-hd .lp-stk__in{
	max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 4.4vw, 64px); box-sizing: border-box;
}

/* ---------- Servicezeile (navy-900, 36 px) ---------- */
.lp-hd .lp-util{ background: var(--lp-navy-900); color: var(--lp-white); font-size: 13px; }
.lp-hd .lp-util__in{ height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-hd .lp-util__l, .lp-hd .lp-util__r{ display: flex; align-items: center; gap: 10px; white-space: nowrap; }

.lp-hd .lp-sb{ position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 8px; color: var(--lp-white); font-weight: 500; outline: none; border-radius: 6px; }
.lp-hd .lp-sb .lp-i{ color: var(--lp-green-300); }
.lp-hd .lp-sb--strong{ font-weight: 600; }
.lp-hd .lp-sb--muted{ color: var(--lp-on-dark); }
.lp-hd .lp-sb[tabindex="0"]{ cursor: default; }
.lp-hd .lp-sb[tabindex="0"]:focus-visible{ box-shadow: inset 0 -2px 0 var(--lp-green-300); }
.lp-hd .lp-sb--tel a{ color: var(--lp-white); }
.lp-hd .lp-sb--tel b{ font-weight: 600; }

.lp-hd .lp-sb__pop{
	position: absolute; top: 100%; left: -10px; z-index: 90; width: 310px; box-sizing: border-box;
	padding: 14px 16px; border: 1px solid var(--lp-line); border-radius: 10px;
	background: var(--lp-white); color: var(--lp-ink); box-shadow: 0 18px 44px rgba(7, 38, 70, .38), 0 2px 6px rgba(7, 38, 70, .18);
	font: 400 14px/1.5 var(--lp-font-body); white-space: normal;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility 0s linear .3s; /* Schließen nach 300 ms */
}
.lp-hd .lp-sb__pop::before{ content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; background: var(--lp-white); border-left: 1px solid var(--lp-line); border-top: 1px solid var(--lp-line); transform: rotate(45deg); }
.lp-hd .lp-sb__pop--right{ left: auto; right: -10px; }
.lp-hd .lp-sb__pop--right::before{ left: auto; right: 22px; }
.lp-hd .lp-sb__pop b{ display: block; margin-bottom: 3px; font: 700 14.5px var(--lp-font-head); color: var(--lp-navy-700); }

/* Öffnen: Hover mit 150 ms Verzögerung (nur Geräte mit Maus), Fokus und Tippen sofort */
html:not(.is-touch) .lp-sb:hover .lp-sb__pop,
.lp-hd .lp-sb:focus-within .lp-sb__pop,
.lp-hd .lp-sb.is-show .lp-sb__pop{ opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html:not(.is-touch) .lp-sb[tabindex="0"]:hover, .lp-hd .lp-sb.is-show, .lp-hd .lp-sbl:hover{ background: rgba(255, 255, 255, .12); }
html:not(.is-touch) .lp-sb:hover .lp-sb__pop { transition-delay: .15s; }

.lp-hd .lp-sbl{ display: inline-flex; align-items: center; height: 36px; padding: 0 8px; border-radius: 6px; color: var(--lp-on-dark); }
.lp-hd .lp-sbl:hover, .lp-hd .lp-sbl:focus-visible{ color: var(--lp-white); }

.lp-hd .lp-lang{ display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-left: 4px; color: var(--lp-on-dark-muted); }
.lp-hd .lp-lang b{ color: var(--lp-white); font-weight: 600; }
.lp-hd .lp-lang i, .lp-hd .lp-lang em{ font-style: normal; }
.lp-hd .lp-lang em{ cursor: help; }

/* ---------- Hauptzeile (weiß, 84 px) ---------- */
.lp-hd .lp-head{ background: var(--lp-white); border-bottom: 1px solid var(--lp-line); }
.lp-hd .lp-head__in{ height: 84px; display: flex; align-items: center; gap: 40px; }

.lp-hd .lp-logo{ display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.lp-hd .lp-logo__sym{ height: 46px; width: auto; }
.lp-hd .lp-logo__lt{ display: flex; flex-direction: column; gap: 5px; }
.lp-hd .lp-logo__wm{ height: 24px; width: auto; align-self: flex-start; }
.lp-hd .lp-logo__sub{ font: 600 11.5px var(--lp-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--lp-slate-600); }

.lp-hd .lp-head__search{ flex: 1; min-width: 0; }
.lp-hd .lp-search{
	position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; box-sizing: border-box;
	border: 1.5px solid var(--lp-field); border-radius: 8px; background: var(--lp-white); color: var(--lp-slate-500);
	transition: border-color .2s, box-shadow .2s;
}
.lp-hd .lp-search:focus-within{ border-color: var(--lp-navy-700); box-shadow: 0 0 0 3px rgba(12, 55, 104, .12); }
.lp-hd .lp-search__in{ flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--lp-ink); font: 400 15px var(--lp-font-body); }
.lp-hd .lp-search__in::placeholder{ color: var(--lp-slate-500); }
.lp-hd .lp-search__in::-webkit-search-cancel-button{ cursor: pointer; }
.lp-hd .lp-search__key{ font: 600 11px var(--lp-font-body); color: var(--lp-slate-500); border: 1px solid var(--lp-line); border-radius: 5px; padding: 2px 7px; }
.lp-hd .lp-search:focus-within .lp-search__key{ display: none; }

.lp-hd .lp-head__r{ display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.lp-hd .lp-hbtn{ position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--lp-ink); font: 500 14px var(--lp-font-body); cursor: pointer; }
.lp-hd .lp-hbtn .lp-i{ color: var(--lp-green-600); }
.lp-hd .lp-hbtn:hover, .lp-hd .lp-hbtn:focus-visible{ background: var(--lp-soft); color: var(--lp-ink); outline: none; }
.lp-hd .lp-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green-600); }

.lp-hd .lp-cart{
	position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 8px;
	background: var(--lp-green-600); color: var(--lp-white); font: 600 14px var(--lp-font-body); white-space: nowrap;
}
.lp-hd .lp-cart:hover, .lp-hd .lp-cart:focus-visible{ background: var(--lp-green-700); color: var(--lp-white); }
.lp-hd .lp-cart:focus-visible{ outline: 3px solid var(--lp-green-300); outline-offset: 2px; }
.lp-hd .lp-cart__inner{ display: contents; }
.lp-hd .lp-cart__badge{
	position: absolute; top: -8px; right: -8px; display: none; align-items: center; justify-content: center;
	min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border: 2px solid var(--lp-green-600); border-radius: 11px;
	background: var(--lp-white); color: var(--lp-green-600); font: 700 12px var(--lp-font-body);
}
.lp-hd .lp-cart__badge.is-on{ display: flex; }

.lp-hd .lp-menu-btn{ display: none; }

/* ---------- Navigation (weiß, 52 px) ---------- */
.lp-hd .lp-nav{ position: relative; z-index: 6; background: var(--lp-white); border-bottom: 1px solid var(--lp-line); }
.lp-hd .lp-nav__in{ height: 52px; display: flex; align-items: center; gap: 28px; }
.lp-hd .lp-trigger{
	display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px;
	background: var(--lp-soft); color: var(--lp-navy-700); font: 600 14px var(--lp-font-body); transition: background .2s, color .2s;
}
.lp-hd .lp-trigger:hover, .lp-hd .lp-trigger:focus-visible{ background: var(--lp-navy-700); color: var(--lp-white); }
.lp-hd .lp-nav__l{ color: var(--lp-ink); font: 600 14px var(--lp-font-body); padding: 15px 0; }
.lp-hd .lp-nav__l:hover{ color: var(--lp-navy-700); }
.lp-hd .lp-nav__l.is-cur{ color: var(--lp-navy-700); box-shadow: inset 0 -3px 0 var(--lp-green-600); }
.lp-hd .lp-nav__sep{ width: 1px; height: 22px; background: var(--lp-line); }
.lp-hd .lp-nav__mf{ display: inline-flex; align-items: center; gap: 6px; padding: 8px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--lp-green-600); font: 600 14px var(--lp-font-body); cursor: pointer; }
.lp-hd .lp-nav__mf:hover, .lp-hd .lp-nav__mf:focus-visible{ background: var(--lp-green-50); outline: none; }
.lp-hd .lp-nav__r{ margin-left: auto; }
.lp-hd .lp-anf{ min-height: 38px; font-size: 13.5px; }

/* ---------- Mitlaufender Kopf (64 px) ---------- */
.lp-hd .lp-stk{
	position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--lp-line); box-shadow: 0 6px 18px rgba(7, 38, 70, .10);
	transform: translateY(-110%); opacity: 0; visibility: hidden;
	transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
}
.lp-hd .lp-stk.is-on{ transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.admin-bar .lp-stk { top: 32px; }
.lp-hd .lp-stk__in{ height: 64px; display: flex; align-items: center; gap: 20px; }
.lp-hd .lp-stk__logo{ display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lp-hd .lp-stk__sym{ height: 34px; width: auto; }
.lp-hd .lp-stk__wm{ height: 18px; width: auto; }
.lp-hd .lp-stk__sort{ display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--lp-soft); color: var(--lp-navy-700); font: 600 14px var(--lp-font-body); }
.lp-hd .lp-stk__sort:hover{ background: var(--lp-navy-700); color: var(--lp-white); }
.lp-hd .lp-stk__search{ flex: 1; min-width: 0; }
.lp-hd .lp-stk__search .lp-search{ height: 42px; }
.lp-hd .lp-stk__ic{ display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--lp-green-600); font: 600 14px var(--lp-font-body); cursor: pointer; }
.lp-hd .lp-stk__ic:hover{ background: var(--lp-green-50); }
.lp-hd .lp-cart--stk{ height: 42px; }

html { scroll-padding-top: 80px; }

/* ---------- Tablet quer / kleiner Laptop (1024–1279) ---------- */
/* 1280–1439 px: Platz für die Telefonnummer schaffen (MwSt.-Hinweis steht auch in Fuß, Kaufbox und Warenkorb) */
@media (max-width: 1439.98px) {
	.lp-hd .lp-sb--mwst{ display: none; }
	.lp-hd .lp-util__l, .lp-hd .lp-util__r{ gap: 6px; }
}

@media (max-width: 1279.98px) {
	.lp-hd .lp-head__in{ gap: 24px; }
	.lp-hd .lp-head__r{ gap: 14px; }
	.lp-hd .lp-nav__in{ gap: 20px; }
	.lp-hd .lp-sb--mwst, .lp-hd .lp-sb--tel, .lp-hd .lp-lang{ display: none; } /* Tablet quer: 3 Fakten + Links (Protokoll Anh. E) */
}

/* ---------- Unter 1024 px: kompakter Kopf (vollständiges Handy-Muster folgt in Schritt B8) ---------- */
@media (max-width: 1023.98px) {
	.lp-hd .lp-util__r, .lp-hd .lp-util__l .lp-sb:not(:first-child){ display: none; }
	.lp-hd .lp-util__in{ justify-content: center; }
	.lp-hd .lp-sb__pop{ left: 50%; margin-left: -155px; }
	.lp-hd .lp-sb__pop::before{ left: 50%; margin-left: -6px; }

	.lp-hd .lp-head__in{ height: auto; flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
	.lp-hd .lp-menu-btn{
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
		border: 0; border-radius: 8px; background: transparent; color: var(--lp-navy-700); cursor: pointer;
	}
	.lp-hd .lp-menu-btn:hover, .lp-hd .lp-menu-btn:focus-visible{ background: var(--lp-soft); }
	.lp-hd .lp-logo{ flex: 1; gap: 8px; }
	.lp-hd .lp-logo__sym{ height: 34px; }
	.lp-hd .lp-logo__wm{ height: 18px; }
	.lp-hd .lp-logo__sub{ display: none; }
	.lp-hd .lp-head__r{ gap: 4px; }
	.lp-hd .lp-hbtn{ min-width: 44px; min-height: 44px; justify-content: center; }
	.lp-hd .lp-hbtn__lbl{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.lp-hd .lp-cart{ height: 44px; padding: 0 12px; }
	.lp-hd .lp-cart__txt{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.lp-hd .lp-head__search{ order: 10; flex: 0 0 100%; }
	.lp-hd .lp-search__in{ font-size: 16px; } /* kein Zoom auf iOS */
	.lp-hd .lp-search__key{ display: none; }

	.lp-hd .lp-nav{ display: none; }
	.lp-hd.is-open .lp-nav { display: block; }
	.lp-hd .lp-nav__in{ height: auto; flex-direction: column; align-items: stretch; gap: 0; padding-block: 8px 14px; }
	.lp-hd .lp-trigger{ height: 48px; margin-bottom: 4px; }
	.lp-hd .lp-nav__l{ padding: 13px 4px; border-bottom: 1px solid var(--lp-line); }
	.lp-hd .lp-nav__l.is-cur{ box-shadow: inset 3px 0 0 var(--lp-green-600); padding-left: 12px; }
	.lp-hd .lp-nav__sep{ display: none; }
	.lp-hd .lp-nav__r{ margin: 12px 0 0; }
	.lp-hd .lp-anf{ width: 100%; min-height: 48px; }

	.lp-hd .lp-stk{ display: none; }
}

@media (max-width: 782px) {
	.admin-bar .lp-stk { top: 46px; }
}

/* ---------- Touch: keine Hover-Auslöser ---------- */
html.is-touch .lp-sb[tabindex="0"] { cursor: pointer; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	.lp-hd .lp-sb__pop, .lp-hd .lp-stk, .lp-hd .lp-trigger, .lp-hd .lp-search{ transition: none; }
}
