/* =========================================================
   Grid & Container
   ========================================================= */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.grid-12 {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
}

.col-main { grid-column: span 8; }
.col-facts { grid-column: span 4; }
.col-wide { grid-column: span 7; }
.col-narrow { grid-column: span 5; }

/* =========================================================
   Sektions-Rhythmus — weit-eng-weit
   ========================================================= */
.section { padding-block: var(--space-roomy); }
.section--dense { padding-block: var(--space-dense); }
.section--band { background: var(--primary); color: var(--bg); }
.section--band h2, .section--band h3 { color: var(--bg); }
.section--band p { color: oklch(97% 0.01 80 / 0.82); }
.section--alt { background: var(--bg-alt); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	transition: padding var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.25rem;
	transition: padding var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled .site-header__bar {
	padding-block: 0.65rem;
	box-shadow: 0 8px 24px oklch(26% 0.04 192 / 0.08);
}

.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--primary);
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 600;
	flex: 0 0 auto;
	max-width: 70%;
}

.brand img { max-height: 48px; width: auto; }
.brand small {
	display: block;
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 400;
	color: var(--text-soft);
}

.nav-primary {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2vw, 2.25rem);
}

.nav-menu__list {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 1.8vw, 1.9rem);
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
}

.nav-menu__list a {
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
	font-size: var(--step--1);
	white-space: nowrap;
	position: relative;
	padding-block: 0.3em;
}

.nav-menu__list a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--accent);
	transition: right var(--dur-base) var(--ease-out);
}

.nav-menu__list a:hover::after,
.nav-menu__list a:focus-visible::after { right: 0; }

.header-cta {
	display: inline-flex;
}

.burger-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}

.burger-box {
	display: inline-block;
	position: relative;
	width: 24px;
	height: 18px;
}

.burger-box span {
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	background: var(--primary);
	border-radius: 2px;
	transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out), top var(--dur-base) var(--ease-out);
}
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 8px; }
.burger-box span:nth-child(3) { top: 16px; }

.burger-toggle[aria-expanded="true"] .burger-box span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.burger-toggle[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
.burger-toggle[aria-expanded="true"] .burger-box span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* =========================================================
   Mobile Drawer — direktes Kind von <body>, nicht vom Header.
   ========================================================= */
.mobile-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(84vw, 360px);
	height: 100vh;
	background: var(--surface);
	box-shadow: -16px 0 40px oklch(26% 0.04 192 / 0.18);
	transform: translateX(100%);
	transition: transform var(--dur-base) var(--ease-out);
	z-index: 200;
	overflow-y: auto;
	padding: 1.5rem;
}

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

.mobile-drawer__head {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

.mobile-drawer__close {
	background: none;
	border: none;
	width: 44px;
	height: 44px;
	cursor: pointer;
	color: var(--primary);
}

.mobile-drawer .nav-menu__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	width: 100%;
}

.mobile-drawer .nav-menu__list a {
	display: block;
	width: 100%;
	padding: 0.9rem 0.2rem;
	font-size: var(--step-0);
	border-bottom: 1px solid var(--line);
}

.drawer-backdrop {
	position: fixed;
	inset: 0;
	background: oklch(26% 0.04 192 / 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--dur-base) var(--ease-out);
	z-index: 190;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--primary);
	color: oklch(97% 0.01 80 / 0.85);
	padding-block: var(--space-dense);
}

.site-footer h2, .site-footer h3 { color: var(--bg); }
.site-footer a { color: var(--bg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
}

.footer-contact-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}
.footer-contact-row .icon { flex-shrink: 0; color: var(--accent); }

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-menu li { margin-bottom: 0.55em; }

.footer-bottom {
	margin-top: var(--space-dense);
	padding-top: 1.5rem;
	border-top: 1px solid oklch(97% 0.01 80 / 0.15);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	font-size: var(--step--1);
}
