/* RECAP – Header (Theme Builder „RECAP Header“, Generator tools/gen-header.php).
   SOLL: export/components/Header.dc.html · README §2/§3/§5/§8 · site.css (hv-*, Container Queries 1180/720).
   Nur Header-Klassen (.recap-hdr*) – nichts Sitewides außer der Sticky-Location. */

/* ---------- Sticky (README §8: top 0, z-index 50, kein Schrumpfen/Scroll-Effekt) ---------- */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar .elementor-location-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) {
	body.admin-bar .elementor-location-header { top: 0; } /* Adminleiste ist hier position:absolute */
}

.recap-hdr { position: relative; } /* Bezug für das Mobilmenü (top:100%) */

/* ---------- Logo: shrink-wrap, Höhe clamp(30px,2.6vw,37px), Breite auto ---------- */
.recap-hdr .recap-hdr-logo { line-height: 0; }
.recap-hdr .recap-hdr-logo a { display: flex; }
.recap-hdr .recap-hdr-logo img {
	display: block;
	height: clamp(30px, 2.6vw, 37px);
	width: auto;
	max-width: none;
}

/* ---------- Hauptnavigation (Pro-Menü n-menu) ---------- */
.recap-hdr .elementor-widget-n-menu.recap-hdr-nav {
	--n-menu-dropdown-icon-gap: 6px; /* Design: Text → Chevron 6px */
}
/* Punkte vertikal mittig wie <nav style="align-items:center"> (Leistungen-Button 39.3, Links 45.6 hoch) */
.recap-hdr .recap-hdr-nav .e-n-menu-heading { align-items: center; }
.recap-hdr .recap-hdr-nav .e-n-menu-item { position: relative; }
.recap-hdr .recap-hdr-nav .e-n-menu-item > .e-n-menu-title { white-space: nowrap; }
/* „Leistungen“ ist im Design ein <button> (line-height normal) */
.recap-hdr .recap-hdr-nav .e-n-menu-item:first-child .e-n-menu-title-text { line-height: normal; }
.recap-hdr .elementor-widget-n-menu.recap-hdr-nav .e-n-menu-title .e-n-menu-dropdown-icon {
	height: 16px;
	color: #417586;
	transition: transform .2s ease; /* README §8 #18: Chevron 200 ms */
}
.recap-hdr .elementor-widget-n-menu.recap-hdr-nav .e-n-menu-title .e-n-menu-dropdown-icon[aria-expanded="true"] {
	transform: rotate(180deg);
}
.recap-hdr .recap-hdr-nav .e-n-menu-dropdown-icon svg {
	fill: none !important; /* Kontur-Icon (stroke=currentColor), Pro-Menü setzt fill */
	stroke: #417586;
	stroke-width: 2.2;
}
/* Hover-Fläche auch auf dem per Scroll-Spy markierten Anker (.e-current) – Design kennt keinen Aktiv-Zustand */
.recap-hdr .recap-hdr-nav .e-n-menu-title.e-current:hover { background-color: #F4F4F4; }

/* Dropdown-Panel: am Leistungen-Button, 12px nach links, 10px Abstand (padding-top = Hover-Brücke) */
.recap-hdr .recap-hdr-nav .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-content,
.recap-hdr .recap-hdr-nav .e-n-menu.content-above .e-n-menu-content {
	top: 100% !important;
	bottom: auto !important;
	left: -12px !important;
	right: auto !important;
	width: auto !important;
}
.recap-hdr .recap-hdr-nav .e-n-menu-content > .e-con {
	left: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}
.recap-hdr .recap-hdr-dd > .recap-hdr-dd-item { color: #282626; text-decoration: none; }
.recap-hdr .recap-hdr-dd .elementor-heading-title { white-space: nowrap; }

/* ---------- Rechts (Desktop): Telefon + CTA ---------- */
.recap-hdr .recap-hdr-tel .elementor-icon-list-item > a { white-space: nowrap; }
.recap-hdr .recap-hdr-tel .elementor-icon-list-icon { width: auto !important; } /* Abstand 8px = text_indent (padding-inline-end) */
.recap-hdr .recap-hdr-tel .elementor-icon-list-icon svg { margin: 0 !important; fill: none !important; color: #417586; }
.recap-hdr .recap-hdr-tel .elementor-icon-list-text { padding-inline-start: 0 !important; }

/* Buttons: kein Zeilen-Strut am Widget, kein Umbruch */
.recap-hdr .elementor-widget-button { line-height: 0; }
.recap-hdr .elementor-widget-button .elementor-button { white-space: nowrap; }

/* ---------- Kompakt: Telefon-Icon (Rahmen #D5E0E3) + Burger (#282626) ---------- */
.recap-hdr .recap-hdr-telbtn .elementor-icon-wrapper,
.recap-hdr .recap-hdr-burger .elementor-icon-wrapper { display: flex; line-height: 0; }
.recap-hdr .recap-hdr-telbtn .elementor-icon {
	/* 44×44 fest wie im Design (1.5px-Rahmen würde sonst auf 1px gerundet → 43px) */
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border-color: #D5E0E3 !important;
	border-style: solid;
}
.recap-hdr .recap-hdr-telbtn svg,
.recap-hdr .recap-hdr-burger svg { fill: none !important; }
.recap-hdr .recap-hdr-telbtn svg { color: #417586; }
.recap-hdr .recap-hdr-burger svg { color: #FFFFFF; }

/* ---------- Mobilmenü-Panel (README §8: absolut unter dem Header, volle Breite, scrollbar) ---------- */
.recap-hdr > .recap-hdr-menu {
	position: absolute !important;
	top: 100%;
	left: 0;
	right: 0;
	width: auto !important;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	display: none !important;
}
.recap-hdr .recap-hdr-m-kicker .elementor-heading-title { margin: 0; }

.recap-hdr .recap-hdr-m-list .elementor-icon-list-items,
.recap-hdr .recap-hdr-m-anchors .elementor-icon-list-items { margin: 0; padding: 0; }
.recap-hdr .recap-hdr-m-list .elementor-icon-list-item,
.recap-hdr .recap-hdr-m-anchors .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.recap-hdr .recap-hdr-m-list .elementor-icon-list-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	border-bottom: 1px solid #EFEFEF;
	box-sizing: border-box;
}
.recap-hdr .recap-hdr-m-list .elementor-icon-list-item > a::after {
	content: "→";
	color: #417586;
	font-family: Inter, system-ui, sans-serif;
	font-weight: 500;
}
.recap-hdr .recap-hdr-m-anchors .elementor-icon-list-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
}
.recap-hdr .recap-hdr-m-anchors .elementor-icon-list-item > a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 48px;
}
.recap-hdr .recap-hdr-m-buttons .elementor-widget-button { width: 100%; }
.recap-hdr .recap-hdr-m-buttons .elementor-button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
}
.recap-hdr .recap-hdr-m-tel .elementor-button-icon svg {
	width: 20px;
	height: 20px;
	fill: none !important;
	color: currentColor;
}

/* ---------- Umschaltpunkte (Design: Container Queries auf .site → hier @media) ---------- */
@media (min-width: 1180px) {
	.recap-hdr .recap-hdr-compact { display: none !important; }
}
@media (max-width: 1179.98px) {
	.recap-hdr .recap-hdr-desktop { display: none !important; }
	.recap-hdr.is-menu-open > .recap-hdr-menu { display: flex !important; }
}
@media (max-width: 719.98px) {
	.recap-hdr .recap-hdr-tcta { display: none !important; }
}

/* Elementor-Editor: Mobilmenü sichtbar und bearbeitbar unter der Leiste */
.elementor-editor-active .recap-hdr > .recap-hdr-menu {
	display: flex !important;
	position: relative !important;
	max-height: none;
}
