/* =========================================================
   Norbert Gauder Patientenfahrdienst — Alpine Precision
   Helle Executive-Klarheit: Schweizer Raster, Stahlblau als
   reine Interaktionsfarbe, neutrale Flächen, präzise Typo.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---------- Design Tokens ---------- */
:root {
	--bg: #F4F6F7;
	--surface: #FFFFFF;
	--surface-sunken: #EBEEF0;
	--primary: oklch(52% 0.07 235);      /* Stahlblau — nur Interaktion */
	--primary-dark: oklch(42% 0.07 235);
	--text: oklch(28% 0.03 240);         /* Graphit */
	--text-muted: #5B6770;
	--line: #D7DDE1;
	--radius: 4px;
	--font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--container: 1240px;
	--gap: 1.5rem;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur: 220ms;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text);
	text-wrap: pretty;
	line-height: 1.12;
}
p { text-wrap: pretty; }

h1 { font-size: clamp(2.3rem, 3.4vw + 1.2rem, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary-dark);
}
.eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--primary);
}

.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: var(--gap);
}

section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.section-head {
	max-width: 640px;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head p { color: var(--text-muted); margin-top: 0.75rem; font-size: 1.05rem; }

/* ---------- Icons (Guardrail) ---------- */
.icon {
	width: 1.4em;
	height: 1.4em;
	flex: 0 0 auto;
	vertical-align: middle;
	color: currentColor;
	stroke-width: 1.75;
}
svg { max-width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 1.6rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
	min-height: 44px;
}
.btn-primary {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 1px 2px oklch(28% 0.03 240 / 0.08);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost:active { transform: scale(0.98); }

/* ---------- Skip Link ---------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--text);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 999;
	border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: oklch(100% 0 0 / 0.9);
	backdrop-filter: none;
	border-bottom: 1px solid var(--line);
	transition: padding var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.35rem;
	gap: 2rem;
	transition: padding var(--dur) var(--ease-out);
}
.site-header.is-condensed .header-inner { padding-block: 0.7rem; }
.site-header.is-condensed { box-shadow: 0 4px 20px oklch(28% 0.03 240 / 0.06); }

.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-branding img { max-height: 46px; width: auto; transition: max-height var(--dur) var(--ease-out); }
.site-header.is-condensed .site-branding img { max-height: 32px; }
.site-branding .brand-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	line-height: 1.15;
}
.site-branding .brand-name small {
	display: block;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.primary-nav { display: flex; align-items: center; gap: 2.25rem; }
.primary-nav ul { display: flex; gap: 2.1rem; }
.primary-nav a {
	font-weight: 500;
	font-size: 0.95rem;
	padding-block: 0.4rem;
	position: relative;
}
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--primary);
	transition: right var(--dur) var(--ease-out);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav .current-menu-item a::after { right: 0; }
.primary-nav .cta-link { margin-left: 0.25rem; }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}
.nav-toggle .icon { width: 1.6em; height: 1.6em; }

/* ---------- Hero ---------- */
.hero {
	padding-block: clamp(2.5rem, 6vw, 5rem);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--gap);
	align-items: center;
}
.hero-copy { grid-column: 1 / span 6; }
.hero-media { grid-column: 7 / span 6; }
.hero-copy p.lead {
	font-size: 1.15rem;
	color: var(--text-muted);
	margin-top: 1.25rem;
	max-width: 46ch;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-phone { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.hero-media figure {
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	position: relative;
	box-shadow: 0 30px 60px -20px oklch(28% 0.03 240 / 0.25);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
	position: absolute;
	left: 1.25rem;
	bottom: 1.25rem;
	background: oklch(100% 0 0 / 0.92);
	padding: 0.6rem 1rem;
	border-radius: var(--radius);
	font-size: 0.82rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.hero-media figcaption .icon { color: var(--primary); }

/* ---------- Stats / Counters ---------- */
.stats {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.stats .grid-12 { align-items: start; }
.stat { grid-column: span 4; text-align: left; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .stat-value {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.2rem, 3vw, 3.2rem);
	color: var(--primary-dark);
	display: block;
	line-height: 1;
}
.stat .stat-label { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.5rem; display: block; }

/* ---------- Services: Timeline-Grid (statt Karten mit Farbbalken) ---------- */
.services { }
.timeline {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 0;
	position: relative;
}
.timeline::before {
	content: "";
	grid-column: 1 / -1;
	height: 1px;
	background: var(--line);
	position: absolute;
	top: 2.1rem;
	left: 0;
	right: 0;
}
.timeline-step {
	grid-column: span 3;
	padding-top: 0;
	position: relative;
	padding-right: 1.5rem;
}
.timeline-step .step-index {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--primary);
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	position: relative;
	z-index: 1;
	margin-bottom: 1.5rem;
}
.timeline-step h3 { margin-bottom: 0.6rem; }
.timeline-step p { color: var(--text-muted); font-size: 0.95rem; }
.timeline-step .step-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1rem;
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--primary-dark);
}
.timeline-step .step-link .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.timeline-step .step-link:hover .icon { transform: translateX(3px); }

/* ---------- Slider ---------- */
.slider-section { background: var(--surface); }
.slider {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
}
.slider-track {
	display: flex;
	scroll-snap-type: x mandatory;
	overflow-x: auto;
	scrollbar-width: none;
	border-radius: var(--radius);
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	min-height: 420px;
	background: var(--text);
	color: #fff;
}
.slide-media { grid-column: 1 / span 7; position: relative; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.slide-copy {
	grid-column: 8 / span 5;
	padding: clamp(2rem, 4vw, 3.25rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.slide-copy .eyebrow { color: oklch(80% 0.05 235); }
.slide-copy .eyebrow::before { background: oklch(80% 0.05 235); }
.slide-copy h3 { color: #fff; font-size: clamp(1.4rem, 1.6vw, 1.9rem); margin-block: 0.75rem 1rem; }
.slide-copy p { color: oklch(88% 0.01 240); }
.slider-nav {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 1.25rem;
}
.slider-nav button {
	width: 32px;
	height: 4px;
	border-radius: 2px;
	border: none;
	background: var(--line);
	transition: background var(--dur) var(--ease-out), width var(--dur) var(--ease-out);
	padding: 0;
}
.slider-nav button.is-active { background: var(--primary); width: 48px; }

/* ---------- About Teaser ---------- */
.about-teaser .grid-12 { align-items: center; }
.about-teaser-copy { grid-column: 1 / span 5; }
.about-teaser-media { grid-column: 6 / span 7; }
.about-teaser-media figure {
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
.about-teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser-copy p { color: var(--text-muted); margin-top: 1.1rem; }
.about-teaser-copy .btn { margin-top: 1.75rem; }

/* ---------- Contact ---------- */
.contact-section { background: var(--surface-sunken); }
.contact-grid { grid-template-columns: repeat(12, 1fr); display: grid; gap: var(--gap); }
.contact-info { grid-column: 1 / span 5; }
.contact-form-wrap {
	grid-column: 6 / span 7;
	background: var(--surface);
	border-radius: var(--radius);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	border: 1px solid var(--line);
}
.contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.4rem;
	font-size: 1rem;
}
.contact-item .icon { color: var(--primary); flex-shrink: 0; }
.contact-item a { font-weight: 600; }
.contact-item a:hover { color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--text);
	color: oklch(90% 0.01 240);
	padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-grid { grid-template-columns: repeat(12, 1fr); display: grid; gap: var(--gap); }
.footer-brand { grid-column: 1 / span 4; }
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-brand p { color: oklch(75% 0.01 240); margin-top: 0.9rem; max-width: 32ch; }
.footer-nav { grid-column: 6 / span 3; }
.footer-contact { grid-column: 9 / span 4; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: oklch(70% 0.01 240); margin-bottom: 1.1rem; }
.footer-nav ul li, .footer-contact .contact-item { margin-bottom: 0.75rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact .contact-item { color: oklch(88% 0.01 240); font-size: 0.92rem; }
.footer-contact .icon { color: oklch(75% 0.05 235); }
.footer-bottom {
	margin-top: 3rem;
	padding-top: 1.75rem;
	border-top: 1px solid oklch(40% 0.02 240);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.85rem;
	color: oklch(65% 0.01 240);
}
.footer-bottom ul { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Standard-Seiteninhalt (Unterseiten) ---------- */
.page-hero {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { max-width: 20ch; }
.page-hero p.lead { color: var(--text-muted); font-size: 1.1rem; margin-top: 1rem; max-width: 56ch; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--primary-dark); }

.entry-content { grid-column: 1 / span 8; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content ul li, .entry-content ol li { margin-top: 0.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-sidebar { grid-column: 10 / span 3; }
.entry-sidebar .sidebar-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	position: sticky;
	top: 6.5rem;
}
.entry-sidebar .sidebar-card h3 { font-size: 1.1rem; }
.entry-sidebar .sidebar-card .contact-item { font-size: 0.9rem; }
.entry-sidebar .sidebar-card .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* ---------- Core Gutenberg-Blöcke (Unterseiten-Content) ---------- */
.entry-content .wp-block-columns { gap: var(--gap); margin-top: 1.75rem; }
.entry-content .wp-block-column {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6rem;
}
.entry-content .wp-block-column h3 { margin-top: 0; }
.entry-content .wp-block-column p { color: var(--text-muted); font-size: 0.95rem; }
.wp-block-button__link {
	background: var(--primary);
	color: #fff;
	border-radius: var(--radius);
	padding: 0.85rem 1.5rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
	min-height: 44px;
}
.wp-block-button__link:hover { background: var(--primary-dark); }
.wp-block-button__link:active { transform: scale(0.98); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--line);
	color: var(--text);
}
.wp-block-separator { border: none; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.wp-block-quote { border-left: 3px solid var(--primary); padding-left: 1.25rem; font-style: italic; color: var(--text-muted); }
.entry-content figure.wp-block-image { border-radius: var(--radius); overflow: hidden; margin-top: 1.75rem; }
.entry-content figure.wp-block-image img { border-radius: var(--radius); }

.service-list-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.service-list-item {
	grid-column: span 6;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.75rem;
	transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.service-list-item:hover { box-shadow: 0 20px 40px -24px oklch(28% 0.03 240 / 0.2); transform: translateY(-2px); }
.service-list-item .step-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 600; color: var(--primary-dark); }

/* ---------- Scroll Reveal (transform-only, kein opacity:0-Start) ---------- */
.reveal {
	transform: translateY(28px);
	transition: transform 620ms var(--ease-out);
}
.reveal.is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal { transform: none; transition: none; }
}

/* ---------- Burger / Mobile Drawer ---------- */
.nav-drawer {
	position: fixed;
	inset: 0;
	background: var(--surface);
	z-index: 200;
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	transform: translateX(100%);
	transition: transform 280ms var(--ease-out);
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-top { display: flex; justify-content: flex-end; }
.nav-drawer-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; }
.nav-drawer ul { display: contents; }
.nav-drawer-menu {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-top: 2rem;
	overflow-y: auto;
}
.nav-drawer-menu a {
	display: block;
	padding: 1rem 0.25rem;
	font-size: 1.35rem;
	font-family: var(--font-display);
	font-weight: 600;
	border-bottom: 1px solid var(--line);
}
.nav-drawer-cta { margin-top: 2rem; }
body.nav-open { overflow: hidden; }

/* ==================== Breakpoints ==================== */
@media (max-width: 1200px) {
	.stat { grid-column: span 4; }
}

/* Squeeze-Zone 900–1250px: Desktop-Nav bleibt sichtbar, muss aber enger sitzen,
   damit "Über uns" + CTA nicht umbrechen (siehe Erfahrungswert Zwischenbreiten). */
@media (min-width: 901px) and (max-width: 1250px) {
	.primary-nav { gap: 1.25rem; }
	.primary-nav ul { gap: 1.1rem; }
	.primary-nav a { font-size: 0.88rem; white-space: nowrap; }
	.primary-nav .cta-link { padding: 0.75rem 1.1rem; font-size: 0.88rem; white-space: nowrap; }
	.site-branding .brand-name small { display: none; }
}

@media (max-width: 900px) {
	.primary-nav > ul, .primary-nav .cta-link { display: none; }
	.nav-toggle { display: inline-flex; }

	.hero-copy, .hero-media { grid-column: 1 / -1; }
	.hero-media { margin-top: 2.5rem; order: -1; }
	.hero-media figure { aspect-ratio: 16 / 10; }

	.stats .grid-12 { grid-template-columns: repeat(3, 1fr); }
	.stat { grid-column: span 1; padding-left: 1rem; }

	.timeline-step { grid-column: span 6; margin-bottom: 2.5rem; }
	.timeline::before { display: none; }

	.slide { grid-template-columns: 1fr; min-height: auto; }
	.slide-media { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
	.slide-media img { min-height: 0; }
	.slide-copy { grid-column: 1 / -1; }

	.about-teaser-copy, .about-teaser-media { grid-column: 1 / -1; }
	.about-teaser-media { order: -1; margin-bottom: 2rem; }

	.contact-info, .contact-form-wrap { grid-column: 1 / -1; }
	.contact-form-wrap { margin-top: 2rem; }

	.footer-brand, .footer-nav, .footer-contact { grid-column: 1 / -1; }
	.footer-nav, .footer-contact { margin-top: 2rem; }

	.entry-content, .entry-sidebar { grid-column: 1 / -1; }
	.entry-sidebar { margin-top: 2rem; }
	.entry-sidebar .sidebar-card { position: static; }
	.service-list-item { grid-column: span 12; }
	.entry-content .wp-block-columns { flex-wrap: wrap; }
	.entry-content .wp-block-column { flex-basis: 100% !important; }
}

@media (max-width: 600px) {
	section { padding-block: 2.75rem; }
	.stats .grid-12 { grid-template-columns: 1fr; gap: 1.25rem; }
	.stat { border-left: none; padding-left: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
	.stat:first-child { border-top: none; padding-top: 0; }
	.timeline-step { grid-column: span 12; }
	.hero-actions { flex-direction: column; align-items: flex-start; }
	.site-branding .brand-name { font-size: 1rem; }
}
