/* ==========================================================================
   Header, Hauptnavigation, Burger, Mobile-Drawer
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: oklch(99% 0.004 85 / 0.92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px);
}

.site-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: var(--space-s);
	padding: 1.3rem clamp(1.25rem, 4vw, 2.5rem);
	transform-origin: top center;
	transition: transform var(--duration) var(--ease-out), padding var(--duration) var(--ease-out);
}

.site-header.is-compact .site-header__inner {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	transform: scaleY(0.96);
}

.site-header.is-compact {
	box-shadow: 0 8px 24px -18px oklch(22% 0.035 258 / 0.4);
}

.site-brand {
	display: flex;
	align-items: center;
	margin-right: auto;
}

.site-brand img {
	max-height: 48px;
	width: auto;
}

.site-brand__name {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.nav-menu--desktop {
	display: flex;
}

.nav-menu__list {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.nav-menu__list a {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--ink-soft);
	padding: 0.4rem 0;
	border-bottom: 1px solid transparent;
	transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.nav-menu__list a:hover,
.nav-menu__list .current-menu-item a {
	color: var(--brass-deep);
	border-color: var(--brass-deep);
}

.header-cta {
	white-space: nowrap;
}

/* ---------- Burger ---------- */

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
}

.burger-line {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

body.drawer-open .burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.drawer-open .burger-line:nth-child(2) {
	opacity: 0;
}

body.drawer-open .burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Drawer (direktes Kind von <body>) ---------- */

.drawer-overlay {
	position: fixed;
	inset: 0;
	background: oklch(22% 0.035 258 / 0.45);
	z-index: 190;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--duration) var(--ease-out), visibility var(--duration);
}

body.drawer-open .drawer-overlay {
	opacity: 1;
	visibility: visible;
}

.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(360px, 86vw);
	background: var(--paper-raised);
	z-index: 200;
	display: flex;
	flex-direction: column;
	padding: var(--space-2xs) var(--space-xs) var(--space-s);
	transform: translateX(100%);
	transition: transform var(--duration) var(--ease-out);
	overflow-y: auto;
}

body.drawer-open .mobile-drawer {
	transform: translateX(0);
}

.mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: var(--space-2xs);
	border-bottom: 1px solid var(--line);
	margin-bottom: var(--space-xs);
}

.mobile-drawer__label {
	font-family: var(--font-display);
	font-size: 1.1rem;
}

.drawer-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
}

.mobile-drawer__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.mobile-drawer__list a {
	display: block;
	padding: 0.85rem 0.25rem;
	font-size: var(--text-md);
	font-family: var(--font-display);
	border-bottom: 1px solid var(--line);
	min-height: 44px;
}

.mobile-drawer__contact {
	margin-top: auto;
	padding-top: var(--space-s);
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
}

.mobile-drawer__contact .btn {
	justify-content: center;
}

.mobile-drawer__phone {
	text-align: center;
	font-weight: 600;
	color: var(--slate);
}
