/* Hero — geteilt, Bild randabfallend */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	min-height: min(82vh, 760px);
	gap: clamp(1.5rem, 4vw, 3rem);
}
.hero__text {
	padding-inline-start: clamp(1.5rem, 6vw, 5rem);
	padding-inline-end: 1.5rem;
	max-width: 56ch;
}
.hero__subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.hero__media { height: 100%; min-height: 420px; }
.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 var(--radius-signature) var(--radius-signature) 0;
}

/* Slider — vollflächig, eigener Rhythmus */
.slider-section { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 5vw, 4rem); }
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform 520ms var(--ease-out); }
.slide {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	min-height: 440px;
	background: var(--surface);
}
.slide__media { overflow: hidden; }
.slide__image { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.slide__caption {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	padding: clamp(2rem, 4vw, 3.5rem);
}
.slide__caption p { color: var(--text-muted); }
.slider__dots { display: flex; justify-content: center; gap: 0.6rem; padding-top: 1.5rem; }
.slider__dot {
	width: 10px; height: 10px; border-radius: 50%;
	border: 1px solid var(--border);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.slider__dot.is-active { background: var(--accent-dark); transform: scale(1.2); border-color: var(--accent-dark); }

/* Leistungen — asymmetrisches 12-Spalten-Raster */
.services-section { padding-block: clamp(4rem, 7vw, 7rem); background: var(--bg); }
.services-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	max-width: var(--container-w);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.services-main { grid-column: 1 / 9; }
.services-aside { grid-column: 9 / 13; }
.section-title { max-width: 20ch; }
.section-lede { color: var(--text-muted); max-width: 52ch; }

.service-list { margin-top: 2.5rem; }
.service-row {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 1.5rem;
	align-items: start;
	padding-block: 1.85rem;
	border-top: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row__media { width: 96px; height: 96px; border-radius: var(--radius); overflow: hidden; }
.service-row__image { width: 100%; height: 100%; object-fit: cover; }
.service-row__body h3 { margin-bottom: 0.35em; }
.service-row__body p { color: var(--text-muted); margin-bottom: 0.6em; }

.services-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.fact-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: 0 24px 48px -36px oklch(22% 0.05 230 / 35%);
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}
.fact-card__heading { margin-bottom: 0.25rem; }
.fact-row { display: flex; align-items: flex-start; gap: 0.65rem; }
.fact-row .icon { color: var(--accent-dark); margin-top: 0.1em; }
.fact-row a:hover { color: var(--primary); }

/* Über-uns-Bruch — vollflächig, versetzt */
.about-break {
	position: relative;
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: stretch;
	min-height: 520px;
}
.about-break__media { overflow: hidden; }
.about-break__image { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.about-break__panel {
	background: var(--primary);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: clamp(2.5rem, 6vw, 5rem);
	margin-left: clamp(-60px, -5vw, -20px);
	z-index: 1;
}
.about-break__panel .eyebrow { color: oklch(85% 0.05 150); }
.about-break__panel h2 { color: #fff; max-width: 14ch; }
.about-break__panel p { color: oklch(94% 0.01 230); }

/* Kontakt — ruhig, luftig */
.contact-section { padding-block: clamp(5rem, 9vw, 9rem); }
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	max-width: var(--container-w);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info .btn { align-self: flex-start; margin-top: 0.75rem; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Unterseiten: Sub-Hero + Content */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); background: var(--surface); }
.page-hero__inner { max-width: var(--container-w); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.page-hero__title { max-width: 22ch; }
.page-hero__lede { color: var(--text-muted); font-size: 1.1rem; max-width: 55ch; }

.page-content { padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 9vw, 8rem); }
.content-area {
	max-width: 70ch;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.content-area h2 { margin-top: 1.7em; }
.content-area h3 { margin-top: 1.3em; }
.content-area ul, .content-area ol { color: var(--text); }
.content-area li { margin-bottom: 0.5em; }
.content-area .wp-block-columns { max-width: none; gap: clamp(1.5rem, 4vw, 3rem); }
.content-area .wp-block-group.has-background {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.content-area .wp-block-separator { border-color: var(--border); margin-block: 2.5em; }
.content-area figure { margin: 1.75em 0; }
.content-area figure img { border-radius: var(--radius); }
.content-area figcaption { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5em; }

.service-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	max-width: none;
	margin-block: 2rem;
}
.service-card {
	border-top: 2px solid var(--accent);
	padding-top: 1.1rem;
}
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

.wpcf7-form { max-width: 60ch; margin-top: 1.5rem; }
.wpcf7-form label { display: block; font-weight: 600; margin-bottom: 1.1em; color: var(--primary); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	display: block;
	width: 100%;
	margin-top: 0.5em;
	padding: 0.75em 0.9em;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form input:focus-visible,
.wpcf7-form textarea:focus-visible {
	outline: none;
	border-color: var(--accent-dark);
	box-shadow: 0 0 0 3px oklch(62% 0.07 155 / 25%);
}
.wpcf7-form .wpcf7-acceptance label { font-weight: 400; font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 0.5em; align-items: flex-start; }
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] { margin-top: 0.3em; flex: 0 0 auto; width: 18px; height: 18px; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: 0.85em 1.8em;
	margin-top: 0.5em;
	border: none;
	border-radius: var(--radius);
	background: var(--primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	min-height: 44px;
	cursor: pointer;
	transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.wpcf7-form input[type="submit"]:hover { background: var(--primary-dark); transform: translateY(-2px); }
.wpcf7-form input[type="submit"]:active { transform: scale(0.98); }
.wpcf7-not-valid-tip { color: oklch(52% 0.18 25); font-size: 0.85rem; margin-top: 0.35em; }
.wpcf7-response-output {
	margin-top: 1.5rem;
	padding: 0.9em 1.1em;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; min-height: auto; }
	.hero__text { padding-inline: clamp(1.25rem, 5vw, 2rem); padding-top: clamp(2.5rem, 8vw, 3.5rem); order: 1; }
	.hero__media { order: 2; min-height: 320px; }
	.hero__image { border-radius: var(--radius); }

	.slide { grid-template-columns: 1fr; min-height: auto; }
	.slide__media, .slide__image { min-height: 260px; }

	.services-grid { grid-template-columns: 1fr; }
	.services-main, .services-aside { grid-column: 1 / -1; }
	.services-aside { position: static; margin-top: 2.5rem; }
	.service-row { grid-template-columns: 72px 1fr; }
	.service-row__media { width: 72px; height: 72px; }

	.about-break { grid-template-columns: 1fr; min-height: auto; }
	.about-break__media, .about-break__image { min-height: 280px; }
	.about-break__panel { margin-left: 0; }

	.contact-grid { grid-template-columns: 1fr; }
	.contact-map { order: -1; }
}

@media (max-width: 600px) {
	.hero__text { max-width: none; }
	.hero__actions .btn { width: 100%; justify-content: center; }
}
