/*!
 * CAPRO FM AG – Website Stylesheet
 * Facility Management mit Verantwortung
 */

/* ==================== FONT ==================== */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/montserrat-variable-latin.woff2") format("woff2");
}

/* ==================== TOKENS ==================== */
:root {
	--color-bg: #242c39;
	--color-bg-alt: #1a202b;
	--color-surface: #2e3847;
	--color-border: rgba(60, 71, 89, 0.5);
	--color-primary: #b19257;
	--color-primary-light: #d3b878;
	--color-white: #ffffff;
	--color-text: #d6dae1;
	--color-text-muted: #aab1bf;

	--gradient-gold: linear-gradient(90deg, #9c7835 0%, #ecc15b 55%, #a27e36 100%);
	--gradient-hero: radial-gradient(120% 120% at 12% -10%, rgba(177, 146, 87, 0.24) 0%, rgba(177, 146, 87, 0) 45%),
		linear-gradient(160deg, #2b3140 0%, #232a37 45%, #1a2029 100%);

	--font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--fs-small: 0.9rem;
	--fs-medium: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
	--fs-large: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
	--fs-xl: clamp(1.6rem, 1.4rem + 1vw, 2rem);
	--fs-xxl: clamp(2.1rem, 1.7rem + 2vw, 2.9rem);
	--fs-huge: clamp(2.6rem, 2rem + 3vw, 4rem);

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.25rem;
	--space-xl: 3.375rem;
	--space-2xl: 5rem;
	--space-3xl: 7.5rem;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 18px;
	--radius-pill: 999px;

	--content-width: 1180px;
	--wide-width: 1400px;

	--header-height: 84px;
}

/* ==================== RESET ==================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: var(--fs-medium);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-white);
}

h1,
h2,
h3,
h4 {
	color: var(--color-white);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.025em;
	margin: 0 0 0.6em;
}

h1 {
	font-size: var(--fs-huge);
}

h2 {
	font-size: var(--fs-xxl);
}

h3 {
	font-size: var(--fs-xl);
}

h4 {
	font-size: 1.05rem;
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
}

/* ==================== LAYOUT ==================== */
.container {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: var(--space-md);
}

.container-wide {
	width: 100%;
	max-width: var(--wide-width);
	margin-inline: auto;
	padding-inline: var(--space-md);
}

.container-narrow {
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
	padding-inline: var(--space-md);
}

section {
	padding-block: var(--space-2xl);
}

section.section-tight {
	padding-block: var(--space-xl);
}

.bg-alt {
	background: var(--color-bg-alt);
}

.bg-surface {
	background: var(--color-surface);
}

.bg-gradient {
	background: var(--gradient-hero);
}

/* ==================== TYPOGRAPHY HELPERS ==================== */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--color-primary);
	text-transform: uppercase;
	margin-bottom: var(--space-sm);
}

.eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--gradient-gold);
	flex-shrink: 0;
}

.eyebrow.on-dark {
	color: var(--color-primary-light);
}

.text-center {
	text-align: center;
}

.text-center .eyebrow {
	justify-content: center;
}

.section-head {
	max-width: 680px;
	margin: 0 auto var(--space-xl);
}

.section-head p {
	color: var(--color-text-muted);
}

.text-muted {
	color: var(--color-text-muted);
}

.gold-text {
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ==================== BUTTONS ==================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 1rem 1.9rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.98rem;
	letter-spacing: 0.01em;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-bg);
	box-shadow: 0 10px 24px -12px rgba(177, 146, 87, 0.5);
}

.btn-primary::after {
	content: "\2192";
	transition: transform 0.3s ease;
}

.btn-primary:hover {
	background: var(--color-primary-light);
	color: var(--color-bg);
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -12px rgba(177, 146, 87, 0.6);
}

.btn-primary:hover::after {
	transform: translateX(4px);
}

.btn-outline {
	background: transparent;
	color: var(--color-white);
	border-color: var(--color-white);
}

.btn-outline:hover {
	background: var(--color-white);
	color: var(--color-bg);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.btn-row.center {
	justify-content: center;
}

/* ==================== HEADER ==================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--color-bg);
	padding-block: 1.1rem;
	transition: padding-block 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	padding-block: 0.55rem;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
}

.logo img {
	height: 108px;
	width: auto;
	transition: height 0.3s ease;
}

.site-header.is-scrolled .logo img {
	height: 66px;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.main-nav a {
	position: relative;
	color: var(--color-white);
	font-size: 0.95rem;
	font-weight: 500;
	padding-block: 0.4rem;
}

.main-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--color-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
	color: var(--color-primary-light);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.header-phone {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-white);
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
}

.header-phone svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--color-white);
	cursor: pointer;
	padding: 0.5rem;
	z-index: 210;
}

.nav-toggle svg {
	width: 26px;
	height: 26px;
}

.nav-toggle {
	position: relative;
	z-index: 220;
}

.nav-toggle .icon-close {
	display: none;
}

.nav-toggle.is-open .icon-open {
	display: none;
}

.nav-toggle.is-open .icon-close {
	display: block;
}

/* ==================== HERO ==================== */
.hero {
	padding-block: var(--space-2xl) var(--space-2xl);
}

.hero-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xl);
}

.hero-content {
	flex: 1 1 480px;
	max-width: 620px;
}

.hero-content h1 {
	margin-top: 0.4rem;
}

.hero-content .lead {
	font-size: var(--fs-large);
	line-height: 1.65;
	margin-top: var(--space-md);
}

.hero-visual {
	flex: 1 1 380px;
	max-width: 520px;
	min-height: 380px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background: var(--gradient-hero);
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: var(--space-md);
}

.hero-visual .placeholder-note {
	position: absolute;
	inset: var(--space-md);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.85rem;
	color: var(--color-text-muted);
	padding: var(--space-md);
}

.hero-visual--home {
	background: linear-gradient(180deg, rgba(26, 32, 43, 0) 35%, rgba(26, 32, 43, 0.92) 100%), url("../images/hero-home.jpg") center/cover no-repeat, var(--gradient-hero);
}

/* Photo hero header used on Dienstleistungen / Über uns / Kontakt */
.page-hero {
	position: relative;
	background: linear-gradient(180deg, rgba(26, 32, 43, 0.55) 0%, rgba(26, 32, 43, 0.93) 100%), url("../images/hero-subpage.jpg") center/cover no-repeat, var(--gradient-hero);
	padding-block: var(--space-3xl) var(--space-2xl);
}

.badge-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-primary);
	border-radius: var(--radius-md);
	padding: 1.1rem 1.3rem;
	backdrop-filter: blur(6px);
}

.badge-card svg {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}

.badge-card span {
	color: var(--color-white);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
}

/* Full-bleed photo hero (homepage) */
.hero-full {
	position: relative;
	min-height: 680px;
	display: flex;
	align-items: center;
	background: linear-gradient(100deg, rgba(26, 32, 43, 0.95) 0%, rgba(26, 32, 43, 0.82) 28%, rgba(26, 32, 43, 0.4) 58%, rgba(26, 32, 43, 0.12) 82%),
		linear-gradient(0deg, rgba(20, 25, 34, 0.75) 0%, rgba(20, 25, 34, 0) 32%),
		url("../images/hero-home.jpg") center/cover no-repeat, var(--gradient-hero);
	padding-block: var(--space-2xl);
}

.hero-full-copy {
	max-width: 620px;
}

.hero-full-copy h1 {
	margin-top: 0.4rem;
}

.hero-full-copy .lead {
	font-size: var(--fs-large);
	line-height: 1.65;
	margin-top: var(--space-md);
}

.badge-card--floating {
	position: absolute;
	right: var(--space-md);
	bottom: var(--space-xl);
	max-width: 300px;
	z-index: 2;
}

.scroll-indicator {
	position: absolute;
	left: 50%;
	bottom: var(--space-md);
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--color-white);
	opacity: 0.85;
	animation: capro-bounce 2.2s ease-in-out infinite;
}

.scroll-indicator svg {
	width: 22px;
	height: 22px;
}

.scroll-indicator:hover {
	opacity: 1;
	color: var(--color-primary-light);
}

@keyframes capro-bounce {
	0%, 100% {
		transform: translate(-50%, 0);
	}
	50% {
		transform: translate(-50%, 8px);
	}
}

/* ==================== FEATURES BAR ==================== */
.features-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2rem;
}

.feature-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.feature-item h4 {
	margin-bottom: 0.1rem;
}

.feature-item p {
	font-size: 0.85rem;
	margin-bottom: 0;
}

/* ==================== ICON BADGE ==================== */
.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0.85rem;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(177, 146, 87, 0.18), rgba(177, 146, 87, 0.04));
	border: 1px solid rgba(177, 146, 87, 0.35);
	transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
	flex-shrink: 0;
}

.icon-badge img,
.icon-badge svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.icon-badge.sm {
	width: 2.6rem;
	height: 2.6rem;
	padding: 0.6rem;
}

/* ==================== GRIDS ==================== */
.grid {
	display: grid;
	gap: var(--space-md);
}

.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* ==================== CARDS ==================== */
.card {
	position: relative;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s ease;
}

.card:hover {
	transform: translateY(-6px);
	border-color: var(--color-primary);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

.card:hover::before {
	transform: scaleX(1);
}

.card:hover .icon-badge {
	background: linear-gradient(135deg, rgba(177, 146, 87, 0.32), rgba(177, 146, 87, 0.08));
	border-color: var(--color-primary);
	transform: scale(1.06);
}

.card h3 {
	font-size: 1.2rem;
	margin-bottom: 0.2rem;
}

.card p {
	font-size: 0.92rem;
	margin-bottom: 0;
}

/* Team member card */
.team-card {
	align-items: center;
	text-align: center;
}

.team-card h3 {
	margin-bottom: 0.1rem;
}

.avatar-circle {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.6rem;
	background: linear-gradient(135deg, rgba(177, 146, 87, 0.18), rgba(177, 146, 87, 0.04));
	border: 1px solid rgba(177, 146, 87, 0.35);
	margin-bottom: 0.25rem;
}

.avatar-circle img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.avatar-photo {
	width: 170px;
	height: 170px;
	border-radius: 50%;
	overflow: hidden;
	background: #ffffff;
	border: 3px solid var(--color-primary);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
	margin-bottom: 0.5rem;
}

.avatar-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* Logo / reference tile */
.tile {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 1.75rem 1.25rem;
	text-align: center;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

/* Partner / trust logo cards */
.partner-card {
	align-items: center;
	text-align: center;
	text-decoration: none;
	justify-content: flex-start;
}

.partner-card:hover {
	text-decoration: none;
}

.partner-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 84px;
	width: 100%;
}

.partner-logo img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.partner-logo--chip {
	background: #ffffff;
	border-radius: var(--radius-sm);
	padding: 0.6rem 1rem;
}

.partner-name {
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--color-white);
	margin: 0.25rem 0 0;
}

.partner-location {
	font-size: 0.82rem;
	margin: 0;
}

.partner-card--text {
	justify-content: center;
	min-height: 148px;
}

/* Quote */
.quote-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 2rem 1.75rem;
}

.quote-card blockquote {
	position: relative;
	margin: 0 0 1rem;
	padding-left: 2.3rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--color-white);
}

.quote-card blockquote::before {
	content: "\201C";
	position: absolute;
	left: 0;
	top: -0.5rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1;
}

.quote-card cite {
	font-style: normal;
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--color-primary-light);
}

.quote-large blockquote {
	font-size: 1.3rem;
	padding-left: 0;
	text-align: center;
}

.quote-large blockquote::before {
	display: none;
}

/* ==================== STATS ==================== */
.stats-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: var(--space-sm);
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 0.15rem;
}

.stat-label {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

/* ==================== STEPS ==================== */
.steps-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: var(--space-lg);
}

.step-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 0.2rem;
}

.step h4 {
	font-size: 1.05rem;
}

.step p {
	font-size: 0.9rem;
	margin-bottom: 0;
}

/* ==================== CONTACT CARDS ==================== */
.contact-card {
	text-align: left;
}

.contact-card a {
	color: var(--color-text-muted);
}

.contact-card a:hover {
	color: var(--color-primary-light);
}

/* ==================== MAP ==================== */
.map-frame {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.map-frame iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
}

/* ==================== SEPARATOR ==================== */
.divider {
	width: 80px;
	height: 3px;
	background: var(--gradient-gold);
	border: none;
	margin: var(--space-md) auto;
}

.divider-wide {
	border: none;
	border-top: 1px solid rgba(177, 146, 87, 0.25);
	margin-block: var(--space-lg);
}

/* ==================== TWO-COL SPLIT (about / cover) ==================== */
.split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xl);
}

.split-media {
	flex: 1 1 400px;
	max-width: 520px;
	min-height: 380px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background: var(--gradient-hero);
	position: relative;
}

.split-media--photo {
	overflow: hidden;
	min-height: 0;
	aspect-ratio: 4 / 3;
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

.split-media--photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.split-media .placeholder-note {
	position: absolute;
	inset: var(--space-md);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.split-content {
	flex: 1 1 420px;
	max-width: 560px;
}

@media (max-width: 768px) {
	.split {
		flex-direction: column;
		align-items: stretch;
	}

	.split-media,
	.split-content {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
		min-width: 0;
	}
}

html,
body {
	overflow-x: clip;
}

/* ==================== CTA BAND ==================== */
.cta-band {
	text-align: center;
}

.cta-band h2 {
	margin-bottom: 0.75rem;
}

.cta-band .lead {
	font-size: var(--fs-large);
	max-width: 680px;
	margin: 0 auto var(--space-lg);
}

/* ==================== FOOTER ==================== */
.site-footer {
	background: var(--color-bg-alt);
	padding-top: var(--space-xl);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.3fr;
	gap: 2.5rem;
}

.footer-col .logo img {
	height: 46px;
	margin-bottom: var(--space-sm);
}

.footer-col h5 {
	color: var(--color-white);
	font-weight: 600;
	font-size: 0.95rem;
	margin: 0 0 0.9rem;
}

.footer-col p {
	font-size: 0.9rem;
}

.footer-nav li {
	margin-bottom: 0.6rem;
}

.footer-nav a {
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.footer-nav a:hover {
	color: var(--color-primary-light);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	padding-block: 1.75rem;
	font-size: 0.82rem;
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* ==================== 404 ==================== */
.error-page {
	text-align: center;
	padding-block: var(--space-3xl);
}

.error-code {
	font-size: var(--fs-huge);
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 0.25rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1023px) {
	.features-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: var(--space-lg);
	}

	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.steps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		row-gap: var(--space-lg);
	}
}

/* Header/nav collapse: broken out to its own (wider) breakpoint since the
   enlarged logo needs the compact hamburger header sooner than the rest of
   the mobile-only layout rules below. */
@media (max-width: 1180px) {
	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		position: fixed;
		inset: 0;
		top: 0;
		background: var(--color-bg-alt);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 2rem;
		transform: translateY(-100%);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
		z-index: 205;
	}

	.main-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.main-nav a {
		font-size: 1.3rem;
	}

	.header-phone span {
		display: none;
	}

	.header-actions {
		gap: 0.75rem;
	}

	.header-actions .btn {
		padding: 0.65rem 1rem;
		font-size: 0.85rem;
		white-space: nowrap;
	}
}

@media (max-width: 782px) {
	:root {
		--space-2xl: 3.5rem;
		--space-3xl: 4.5rem;
	}

	.logo img {
		height: 58px;
	}

	.site-header.is-scrolled .logo img {
		height: 46px;
	}

	.header-actions .btn {
		padding: 0.5rem 0.7rem;
		font-size: 0.75rem;
		gap: 0.35em;
	}

	.page-hero {
		padding-block: 2.75rem 2.25rem;
	}

	.page-hero .lead {
		font-size: 0.95rem;
	}

	.hero-grid,
	.split {
		flex-direction: column;
	}

	.hero-full {
		min-height: 0;
		flex-direction: column;
		align-items: flex-start;
		padding-block: 5.5rem 2rem;
	}

	.badge-card--floating {
		position: static;
		max-width: none;
		margin-top: 2rem;
	}

	.scroll-indicator {
		display: none;
	}

	.features-grid,
	.grid-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.steps-grid {
		grid-template-columns: 1fr;
	}

	.stats-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: clamp(2.2rem, 8vw, 2.8rem);
	}
}

@media (max-width: 480px) {
	.features-grid {
		grid-template-columns: 1fr;
	}
}

/* ==================== OFFERTE-FORMULAR ==================== */

.form-shell {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-lg) var(--space-lg);
}

.form-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: var(--space-lg);
}

.form-progress[hidden] {
	display: none;
}

.form-progress .progress-step {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.form-progress .dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-weight: 600;
	font-size: 0.9rem;
	flex-shrink: 0;
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.form-progress .label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text-muted);
	white-space: nowrap;
}

.form-progress .progress-step.is-active .dot {
	border-color: var(--color-primary);
	color: var(--color-bg);
	background: var(--color-primary);
}

.form-progress .progress-step.is-active .label {
	color: var(--color-white);
}

.form-progress .progress-step.is-done .dot {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.form-progress .progress-step.is-done .label {
	color: var(--color-primary-light);
}

.progress-line {
	width: 2.5rem;
	height: 1px;
	background: var(--color-border);
	flex-shrink: 0;
}

.form-step-title {
	margin-bottom: 1.5rem;
}

.form-step-title h2 {
	font-size: var(--fs-xl);
	margin-bottom: 0.35rem;
}

.form-step-title p {
	margin-bottom: 0;
}

.form-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 var(--space-lg);
}

.form-fieldset legend {
	padding: 0;
	font-weight: 600;
	color: var(--color-white);
	font-size: 1rem;
	margin-bottom: 0.9rem;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.form-group[hidden] {
	display: none;
}

.form-group.full {
	grid-column: 1 / -1;
}

.form-group label.field-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-white);
}

.field-label .req {
	color: var(--color-primary-light);
	margin-left: 0.2rem;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.75rem 0.9rem;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.95rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
	resize: vertical;
	min-height: 6rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: var(--color-text-muted);
	opacity: 0.7;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(177, 146, 87, 0.2);
}

.form-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab1bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 18px;
	padding-right: 2.4rem;
}

.form-error {
	font-size: 0.8rem;
	color: #e08a8a;
	margin: 0;
	display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
	border-color: #e08a8a;
}

.form-group.has-error .form-error,
.form-fieldset.has-error .form-error,
.privacy-row.has-error + .form-error {
	display: block;
}

.form-fieldset.has-error .choice-pill {
	border-color: rgba(224, 138, 138, 0.6);
}

.privacy-row.has-error {
	border-color: #e08a8a;
}

.choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.choice-pill {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.8rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg-alt);
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--color-text-muted);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.choice-pill input {
	width: 16px;
	height: 16px;
	accent-color: var(--color-primary);
	flex-shrink: 0;
}

.choice-pill input:checked ~ span {
	color: var(--color-white);
}

.choice-pill:has(input:checked) {
	border-color: var(--color-primary);
	background: rgba(177, 146, 87, 0.1);
}

.choice-pill:hover {
	border-color: rgba(177, 146, 87, 0.5);
}

.privacy-row {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg-alt);
}

.privacy-row input {
	margin-top: 0.2rem;
	width: 16px;
	height: 16px;
	accent-color: var(--color-primary);
	flex-shrink: 0;
}

.privacy-row label {
	font-size: 0.88rem;
	color: var(--color-text-muted);
	line-height: 1.5;
}

.privacy-row a {
	color: var(--color-primary-light);
}

.form-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
}

.form-nav .btn {
	cursor: pointer;
	border: 2px solid transparent;
	font-family: inherit;
}

.form-nav .btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.form-nav .spacer {
	flex: 1;
}

.form-status {
	display: none;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.form-status.is-visible {
	display: flex;
}

.form-status.is-error {
	color: #e08a8a;
}

.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(177, 146, 87, 0.3);
	border-top-color: var(--color-primary);
	border-radius: 50%;
	animation: capro-spin 0.7s linear infinite;
}

@keyframes capro-spin {
	to {
		transform: rotate(360deg);
	}
}

.form-success {
	text-align: center;
	padding: var(--space-lg) var(--space-md);
}

.form-success .icon-badge {
	width: 4.5rem;
	height: 4.5rem;
	padding: 1.1rem;
	margin: 0 auto 1.25rem;
}

.form-success h2 {
	margin-bottom: 0.6rem;
}

@media (max-width: 640px) {
	.form-shell {
		padding: var(--space-md) 1.1rem;
	}

	.form-grid,
	.choice-grid {
		grid-template-columns: 1fr;
	}

	.form-progress .label {
		display: none;
	}

	.progress-line {
		width: 1.4rem;
	}

	.form-nav {
		flex-wrap: wrap;
	}

	.form-nav .btn {
		flex: 1;
		justify-content: center;
	}
}

/* ==================== COOKIE-BANNER ==================== */
.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 300;
	display: flex;
	justify-content: center;
	background: var(--color-bg-alt);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.45);
	padding: 1.25rem var(--space-md);
}

.cookie-banner[hidden] {
	display: none;
}

.cookie-banner__inner {
	width: 100%;
	max-width: var(--wide-width);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cookie-banner__inner p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--color-text-muted);
	max-width: 640px;
}

.cookie-banner__actions {
	display: flex;
	gap: 0.75rem;
	flex-shrink: 0;
}

.cookie-banner__actions .btn {
	padding: 0.7rem 1.3rem;
	font-size: 0.88rem;
}

@media (max-width: 640px) {
	.cookie-banner__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.cookie-banner__actions {
		justify-content: center;
	}
}
