/* ---------- Tokens ---------- */
:root {
	--primary: oklch(0.42 0.06 235);
	--primary-dark: oklch(0.32 0.055 235);
	--bg: oklch(0.99 0.002 235);
	--surface: oklch(0.96 0.012 235);
	--surface-strong: oklch(0.91 0.015 235);
	--accent: oklch(0.62 0.07 155);
	--accent-dark: oklch(0.46 0.07 155);
	--ink: oklch(0.24 0.03 235);
	--ink-soft: oklch(0.45 0.025 235);
	--line: oklch(0.87 0.012 235);
	--on-primary: oklch(0.98 0.004 235);

	--radius: 4px;
	--radius-feature: 28px;
	--space-unit: 0.5rem;

	--font-display: 'Fraunces', serif;
	--font-body: 'Source Sans 3', sans-serif;

	--shadow-1: 0 1px 3px oklch(0 0 0 / 0.08);
	--shadow-2: 0 12px 32px oklch(0.2 0.03 235 / 0.14);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
	overflow-x: hidden;
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: clamp(1.0625rem, 0.98rem + 0.25vw, 1.1875rem);
	line-height: 1.6;
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--primary-dark);
	line-height: 1.12;
	margin: 0 0 0.6em;
	text-wrap: pretty;
	font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 1.9rem + 2.6vw, 4.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.6rem + 1.4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem); }
p { margin: 0 0 1.1em; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ul li { margin-bottom: 0.5em; }

:focus-visible {
	outline: 3px solid var(--accent-dark);
	outline-offset: 3px;
}

.container { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: 900px; }

.bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-dark);
	margin: 0 0 0.9em;
}

.section-pad-sm { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section-pad-md { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section-pad-lg { padding-block: clamp(5rem, 9vw, 10rem); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.7em;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 1rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
	min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-2); }
.btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); background: var(--surface); }
.btn-ghost-light { background: oklch(1 0 0 / 0.14); color: var(--on-primary); border-color: oklch(1 0 0 / 0.4); }
.btn-ghost-light:hover { background: oklch(1 0 0 / 0.22); }

.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; }
svg { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: oklch(0.99 0.002 235 / 0.92);
	border-bottom: 1px solid var(--line);
	transition: padding 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) {
	.site-header { backdrop-filter: blur(10px); }
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.1rem;
	transition: padding 220ms var(--ease-out);
}
.site-header.is-scrolled .header-inner { padding-block: 0.65rem; }

.brand { display: flex; align-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-line-1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--primary-dark);
}
.brand-line-2 {
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	color: var(--ink-soft);
}

.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); flex-wrap: wrap; }
.nav-menu a {
	font-weight: 500;
	font-size: 0.98rem;
	color: var(--ink);
	padding: 0.4em 0.1em;
	position: relative;
}
.nav-menu a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: -2px;
	height: 2px;
	background: var(--accent-dark);
	transition: right 220ms var(--ease-out);
}
.nav-menu a:hover::after,
.nav-menu li.current-menu-item a::after { right: 0; }
.nav-menu .sub-menu {
	display: none;
	position: absolute;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-2);
	padding: 0.5rem;
	min-width: 220px;
	margin-top: 0.75rem;
}
.nav-menu li.menu-item-has-children { position: relative; }
.nav-menu li.menu-item-has-children:hover .sub-menu,
.nav-menu li.menu-item-has-children:focus-within .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 0.6em 0.8em; border-radius: var(--radius); }
.nav-menu .sub-menu a:hover { background: var(--surface); }
.nav-menu .sub-menu a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: none; align-items: center; gap: 0.5em; font-weight: 600; color: var(--primary-dark); }
.header-cta { white-space: nowrap; }

@media (min-width: 1100px) {
	.header-phone { display: inline-flex; }
}

/* Burger */
.burger {
	display: none;
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
}
.burger-box { position: relative; display: inline-block; width: 24px; height: 18px; }
.burger-inner,
.burger-inner::before,
.burger-inner::after {
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: var(--primary-dark);
	transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), top 220ms var(--ease-out);
}
.burger-inner { top: 8px; }
.burger-inner::before { content: ''; top: -8px; }
.burger-inner::after { content: ''; top: 8px; }
.burger[aria-expanded="true"] .burger-inner { background: transparent; }
.burger[aria-expanded="true"] .burger-inner::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-inner::after { top: 0; transform: rotate(-45deg); }

/* ---------- Mobile drawer (sibling of body, not of header) ---------- */
.drawer-overlay {
	position: fixed;
	inset: 0;
	background: oklch(0.15 0.02 235 / 0.4);
	z-index: 190;
	opacity: 0;
	pointer-events: none;
	transition: opacity 240ms var(--ease-out);
}
.drawer-overlay.is-visible { opacity: 1; pointer-events: auto; }

.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(84vw, 380px);
	background: var(--bg);
	z-index: 200;
	transform: translateX(100%);
	transition: transform 280ms var(--ease-out);
	overflow-y: auto;
	box-shadow: var(--shadow-2);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-inner { padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; min-height: 100%; }
.drawer-close { align-self: flex-end; background: none; border: none; padding: 10px; cursor: pointer; color: var(--primary-dark); }
.drawer-menu { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer-menu a { display: block; padding: 0.85em 0.2em; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer-menu .sub-menu { padding-left: 1rem; }
.drawer-menu .sub-menu a { font-size: 0.98rem; border-bottom: none; color: var(--ink-soft); }
.drawer-footer { margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: 0; }
.hero-content { max-width: 880px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-content h1 { margin-bottom: 0.5em; }
.hero-content p.lede {
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
	color: var(--ink-soft);
	max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* ---------- Slider (wide image beneath the hero text) ---------- */
.slider {
	position: relative;
	background: var(--surface);
}
.slider-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	position: relative;
}
.slide img { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; }
.slide-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: clamp(1.25rem, 4vw, 3rem);
	background: linear-gradient(0deg, oklch(0.15 0.03 235 / 0.72), transparent 70%);
	color: var(--on-primary);
}
.slide-caption h2 { color: var(--on-primary); font-size: clamp(1.4rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 0.2em; }
.slide-caption p { max-width: 50ch; opacity: 0.92; margin: 0; }

.slider-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
}
.slider-arrows { display: flex; gap: 0.5rem; }
.slider-arrow {
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--bg);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	color: var(--primary-dark);
	transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.slider-arrow:hover { background: var(--surface-strong); }
.slider-arrow:active { transform: scale(0.94); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: none; padding: 0; cursor: pointer; transition: background-color 200ms, width 200ms; }
.slider-dot.is-active { background: var(--accent-dark); width: 22px; border-radius: 5px; }

/* ---------- Leistungen: breite Einzelreihen statt Karten-Raster ---------- */
.leistungen-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); flex-wrap: wrap; }
.leistungen-head-text { max-width: 52ch; }
.counter { border-top: 2px solid var(--accent); padding-top: 0.75rem; flex: 0 0 auto; }
.counter .counter-value { font-family: var(--font-display); font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.6rem); color: var(--primary-dark); font-weight: 600; }
.counter .counter-label { color: var(--ink-soft); font-size: 0.92rem; max-width: 22ch; }
.service-rows { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
.service-row {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	align-items: center;
}
.service-row .service-media { grid-column: span 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.service-row .service-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.service-row .service-copy { grid-column: span 7; }
.service-row:nth-child(even) .service-media { order: 2; }
.service-row .service-copy .service-index {
	font-family: var(--font-display);
	font-size: 0.95rem;
	color: var(--accent-dark);
	font-weight: 600;
	letter-spacing: 0.08em;
}
.service-row h3 { margin-top: 0.35em; }
.service-row p { color: var(--ink-soft); max-width: 52ch; }
.service-row .service-link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.75em; font-weight: 600; color: var(--primary-dark); }
.service-row .service-link .icon { transition: transform 200ms var(--ease-out); }
.service-row .service-link:hover .icon { transform: translateX(4px); }

/* ---------- Full-bleed Bruch-Sektion (bewusst ueberbreit) ---------- */
.band {
	color: var(--on-primary);
	background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 100%);
	position: relative;
}
.band-inner {
	max-width: 1000px;
	margin-inline: auto;
	padding-inline: clamp(1.5rem, 5vw, 3rem);
	text-align: center;
}
.band h2 { color: var(--on-primary); max-width: 24ch; margin-inline: auto; }
.band p { color: oklch(0.96 0.01 235 / 0.88); max-width: 58ch; margin-inline: auto; font-size: 1.15rem; }
.band-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }

/* ---------- Ueber uns teaser / Zahlen ---------- */
.about-split {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}
.about-split .about-media { grid-column: span 5; }
.about-split .about-media img { border-radius: var(--radius-feature); box-shadow: var(--shadow-2); aspect-ratio: 4/5; object-fit: cover; }
.about-split .about-copy { grid-column: span 7; }
.about-split .about-copy p { color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.contact-grid .contact-info { grid-column: span 5; }
.contact-grid .contact-map { grid-column: span 7; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); min-height: 320px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.contact-list li { display: flex; align-items: center; gap: 0.75em; }
.contact-list .icon { color: var(--accent-dark); flex-shrink: 0; }
.contact-list a:hover { color: var(--accent-dark); }
.contact-form-wrap { margin-top: 2rem; }

.map-embed { width: 100%; height: 320px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: oklch(0.94 0.01 235); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
.footer-brand { grid-column: span 4; }
.footer-col { grid-column: span 3; }
.footer-brand p { color: oklch(0.86 0.015 235); margin-top: 0.75rem; }
.site-footer .brand-line-1,
.site-footer .brand-line-2 { color: var(--on-primary); }
.footer-col h3 { color: var(--on-primary); font-size: 1rem; margin-bottom: 1rem; }
.footer-menu-list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-menu-list a { color: oklch(0.88 0.015 235); }
.footer-menu-list a:hover { color: var(--on-primary); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.6em; color: oklch(0.88 0.015 235); }
.footer-contact .icon { color: var(--accent); flex-shrink: 0; }
.footer-consent { margin-top: 1rem; }
.footer-consent a { text-decoration: underline; color: oklch(0.88 0.015 235); }
.footer-bottom { border-top: 1px solid oklch(1 0 0 / 0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; color: oklch(0.78 0.015 235); }

/* ---------- Page header band (Unterseiten) ---------- */
.page-header { background: var(--surface); padding-block: clamp(3rem, 6vw, 5rem); }
.page-header .eyebrow { margin-bottom: 0.6em; }
.page-media { margin: 0; }
.page-media img { width: 100%; max-height: 480px; object-fit: cover; }

/* ---------- Leistungen-Uebersicht: andere Struktur als die Homepage-Reihen ---------- */
.leistungen-list { display: flex; flex-direction: column; }
.leistung-line {
	display: grid;
	grid-template-columns: 2fr 6fr 2fr;
	gap: 1.5rem;
	align-items: center;
	padding-block: clamp(1.5rem, 3vw, 2.25rem);
	border-bottom: 1px solid var(--line);
	transition: background-color 200ms var(--ease-out);
}
.leistung-line:first-child { border-top: 1px solid var(--line); }
.leistung-line:hover { background: var(--surface); }
.leistung-line .leistung-num { font-family: var(--font-display); color: var(--accent-dark); font-size: 1.4rem; }
.leistung-line h3 { margin: 0; }
.leistung-line p { color: var(--ink-soft); margin: 0.4em 0 0; }
.leistung-line .service-link { justify-self: end; white-space: nowrap; }

/* ---------- Leistung-Detail ---------- */
.detail-cta-row { display: flex; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; margin-top: 2rem; }
.detail-cta-row .other-link {
	flex: 1 1 220px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.detail-cta-row .other-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.detail-cta-row .other-link .eyebrow { margin-bottom: 0.3em; }

/* ---------- Reveal: NUR transform, nie opacity als Startzustand ---------- */
.reveal-up { transform: translateY(28px); }
.reveal-up.is-visible { transform: translateY(0); transition: transform 560ms var(--ease-out); }
.reveal-stagger > * { transform: translateY(28px); }
.reveal-stagger.is-visible > * { transform: translateY(0); transition: transform 560ms var(--ease-out); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
	.reveal-up, .reveal-stagger > *, .reveal-up.is-visible, .reveal-stagger.is-visible > * {
		transform: none !important;
		transition: none !important;
	}
	.btn:hover, .btn:active { transform: none; }
	html { scroll-behavior: auto; }
}

/* ======================================================================
   Tablet
   ====================================================================== */
@media (max-width: 900px) {
	.primary-nav, .header-cta, .header-phone { display: none; }
	.burger { display: inline-flex; align-items: center; justify-content: center; }

	.service-row,
	.about-split,
	.contact-grid { grid-template-columns: 1fr; }
	.service-row .service-media,
	.service-row .service-copy,
	.about-split .about-media,
	.about-split .about-copy,
	.contact-grid .contact-info,
	.contact-grid .contact-map { grid-column: 1 / -1; }
	.service-row:nth-child(even) .service-media { order: 0; }

	.footer-brand, .footer-col { grid-column: span 6; }

	.leistung-line { grid-template-columns: 1fr; gap: 0.4rem; }
	.leistung-line .leistung-num { order: -1; }
	.leistung-line .service-link { justify-self: start; margin-top: 0.5rem; }

	/* Desktop-Hover-/Focus-Within-Transforms im Mobile-Query zuruecksetzen */
	.nav-menu li.menu-item-has-children:hover .sub-menu,
	.nav-menu li.menu-item-has-children:focus-within .sub-menu { display: none; }
}

/* ======================================================================
   Mobile
   ====================================================================== */
@media (max-width: 600px) {
	.brand-line-2 { font-size: 0.68rem; }
	.counters { grid-template-columns: 1fr 1fr; }
	.footer-brand, .footer-col { grid-column: 1 / -1; }
	.hero-actions .btn,
	.band-actions .btn { width: 100%; justify-content: center; }
	.detail-cta-row { flex-direction: column; }
}
