/* ==========================================================
   layout.css - Header, Footer, Navigation, Mobile-Drawer
   ========================================================== */

/* ---------- Header ---------- */
.site-header{
	position: sticky; top: 0; z-index: 950;
	background: var(--primary);
	color: #fff;
	transition: box-shadow .25s ease-out, padding .25s ease-out;
}
.site-header.is-compact{ box-shadow: var(--shadow-md); }

.site-header__inner{
	width: var(--container);
	margin-inline: auto;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	transition: height .25s ease-out;
}
.site-header.is-compact .site-header__inner{ height: calc(var(--header-h) - 16px); }

.site-brand{
	display: flex;
	align-items: center;
	gap: .65rem;
	text-decoration: none;
	color: #fff;
	flex: 0 0 auto;
	max-width: 60%;
}
.site-brand__mark{ display: flex; flex: 0 0 auto; }
.site-brand__mark img{
	display: block;
	height: 48px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	background: #fff;
	padding: 4px 10px;
	border-radius: var(--radius);
}
.site-brand__name{
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.primary-nav .nav-list{
	display: flex;
	align-items: center;
	gap: 1.9rem;
}
.nav-list > li{ position: relative; white-space: nowrap; flex: 0 0 auto; }
.nav-list > li > a{
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
	padding: .5rem 0;
	position: relative;
	display: inline-block;
}
.nav-list > li > a::after{
	content: "";
	position: absolute; left: 0; right: 100%; bottom: 0;
	height: 2px; background: var(--accent);
	transition: right .2s ease-out;
}
.nav-list > li:hover > a::after,
.nav-list > li:focus-within > a::after{ right: 0; }

.nav-list .sub-menu{
	list-style: none; margin: 0; padding: .5rem;
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; color: var(--ink);
	border-radius: var(--radius); box-shadow: var(--shadow-md);
	opacity: 0; pointer-events: none; transform: translateY(8px);
	transition: opacity .2s ease-out, transform .2s ease-out;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-list .sub-menu li a{ display: block; padding: .6rem .75rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); font-size: .9rem; }
.nav-list .sub-menu li a:hover{ background: var(--bg); }

.header-cta{ display: flex; align-items: center; gap: 1.1rem; flex: 0 0 auto; }
.header-cta__phone{
	display: flex; align-items: center; gap: .5rem;
	color: #fff; text-decoration: none; font-weight: 500; font-size: .92rem;
	white-space: nowrap;
}

.burger{
	display: none;
	background: none; border: none; padding: .5rem; margin: 0;
	cursor: pointer; color: #fff; flex: 0 0 auto;
}
.burger__box{ position: relative; display: inline-block; width: 26px; height: 18px; }
.burger__bar{
	position: absolute; left: 0; right: 0; height: 2px;
	background: currentColor; border-radius: 1px;
	transition: transform .25s ease-out, opacity .2s ease-out, top .25s ease-out;
}
.burger__bar--top{ top: 0; }
.burger__bar--mid{ top: 8px; }
.burger__bar--bottom{ top: 16px; }
.burger.is-open .burger__bar--top{ top: 8px; transform: rotate(45deg); }
.burger.is-open .burger__bar--mid{ opacity: 0; }
.burger.is-open .burger__bar--bottom{ top: 8px; transform: rotate(-45deg); }

@media (max-width: 960px){
	.primary-nav{ display: none; }
	.header-cta{ display: none !important; }
	.burger{ display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Mobile Drawer (Geschwister von <header>, NICHT verschachtelt) ---------- */
.mobile-overlay{
	position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
	background: rgba(10,10,12,.5);
	z-index: 850;
	opacity: 0; pointer-events: none;
	transition: opacity .25s ease-out;
}
.mobile-overlay.is-open{ opacity: 1; pointer-events: auto; }

.mobile-drawer{
	position: fixed; top: var(--header-h); right: 0; bottom: 0;
	width: min(86vw, 380px);
	background: var(--primary);
	color: #fff;
	z-index: 900;
	transform: translateX(100%);
	transition: transform .3s ease-out;
	overflow-y: auto;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.mobile-drawer.is-open{ transform: translateX(0); }

@media (min-width: 961px){
	.mobile-drawer, .mobile-overlay{ display: none; }
}

.mobile-nav{ padding: 1.75rem 1.5rem 2.5rem; display: flex; flex-direction: column; }
.mobile-nav-list{ display: flex; flex-direction: column; }
.mobile-nav-list li a{
	display: flex; align-items: center;
	min-height: 44px;
	padding: .8rem 0;
	color: #fff; text-decoration: none;
	font-size: 1.05rem; font-weight: 500;
	border-bottom: 1px solid rgba(255,255,255,.14);
}
.mobile-nav-list .sub-menu{ list-style: none; margin: 0 0 .25rem; padding-left: 1rem; }
.mobile-nav-list .sub-menu li a{ font-size: .92rem; font-weight: 400; opacity: .85; border-bottom: none; min-height: 38px; padding: .5rem 0; }

.mobile-drawer__cta{ margin-top: 1.5rem; width: 100%; justify-content: center; }
.mobile-drawer__phone{
	display: flex; align-items: center; gap: .6rem; justify-content: center;
	margin-top: 1rem; color: #fff; text-decoration: none; font-weight: 500;
	min-height: 44px;
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--primary); color: #fff; }
.site-footer__inner{
	width: var(--container); margin-inline: auto;
	display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem;
	padding-block: var(--space-section-sm) var(--space-md);
}
.footer-col{ grid-column: span 3; }
.footer-col--brand{ grid-column: span 4; }
.footer-col:nth-of-type(3){ grid-column: span 2; }

.footer-col--brand .site-brand{ margin-bottom: .9rem; }
.footer-col--brand .site-brand__mark img{ height: 40px; }
.footer-claim{ color: rgba(255,255,255,.7); max-width: 32ch; }

.footer-col__title{ font-family: var(--font-display); font-size: .95rem; color: #fff; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer-nav-list li{ margin-bottom: .5rem; }
.footer-nav-list li a{ color: rgba(255,255,255,.78); text-decoration: none; }
.footer-nav-list li a:hover{ color: #fff; }

.footer-line{ display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; color: rgba(255,255,255,.88); max-width: none; }
.footer-line a{ color: #fff; text-decoration: none; }

.site-footer__bottom{ border-top: 1px solid rgba(255,255,255,.15); }
.site-footer__bottom p{ width: var(--container); margin-inline: auto; padding-block: 1.25rem; font-size: .82rem; color: rgba(255,255,255,.6); max-width: none; }

@media (max-width: 900px){
	.site-footer__inner{ grid-template-columns: 1fr; gap: 2rem; }
	.footer-col, .footer-col--brand, .footer-col:nth-of-type(3){ grid-column: span 1; }
}
