/*
 * ImmoKunz — Komponenten-CSS.
 * theme.json liefert Farben, Typografie, Abstände und Layout. Hier steht nur,
 * was Blöcke nicht abbilden: Hero, Objektkarten, Filter, Galerie, Formulare,
 * Karte, Breadcrumbs. Mobile first, ohne Framework.
 */

:root {
	--ik-petrol: #1B2A2E;
	--ik-petrol-dark: #162428;
	--ik-terracotta: #C6763A;
	--ik-terracotta-light: #D8935A;
	--ik-sand: #F2EFEA;
	--ik-paper: #FBFAF8;
	--ik-grey: #54615F;
	--ik-grey-light: #7C8785;
	--ik-line: #E2DCD5;
	--ik-focus: #C6763A;
}

/* ---------- Typografie ---------- */

/* Der Typo-Maßstab steht hier bewusst als CSS und nicht nur in theme.json:
   so gilt er unabhängig davon, ob Global Styles im Site-Editor überschrieben
   wurden. Reihenfolge beachten — Preset-Klassen unten gewinnen. */
.wp-site-blocks { font-size: 1.0625rem; line-height: 1.7; }

.wp-site-blocks h1,
.wp-site-blocks .wp-block-post-title { font-size: clamp( 2.5rem, 4.4vw, 4.875rem ); font-weight: 200; line-height: 1.02; letter-spacing: -0.01em; }
.wp-site-blocks h2 { font-size: clamp( 1.875rem, 3vw, 3.25rem ); font-weight: 200; line-height: 1.08; letter-spacing: -0.01em; }
.wp-site-blocks h3 { font-size: clamp( 1.375rem, 1.7vw, 1.625rem ); font-weight: 400; line-height: 1.2; }
.wp-site-blocks h4 { font-size: 1.25rem; font-weight: 400; line-height: 1.3; }
.wp-site-blocks h1 strong,
.wp-site-blocks h2 strong,
.wp-site-blocks h3 strong { font-weight: 500; }

/* Schriftgrößen-Presets (Doppelung zu theme.json, absichtlich robust). */
.wp-site-blocks .has-meta-font-size { font-size: 0.75rem; }
.wp-site-blocks .has-small-font-size { font-size: 0.9375rem; }
.wp-site-blocks .has-base-font-size { font-size: 1.0625rem; }
.wp-site-blocks .has-lead-font-size { font-size: clamp( 1.0625rem, 1.3vw, 1.1875rem ); line-height: 1.6; }
.wp-site-blocks .has-h-3-font-size,
.wp-site-blocks .has-h3-font-size { font-size: clamp( 1.375rem, 1.7vw, 1.625rem ); }
.wp-site-blocks .has-h-2-font-size,
.wp-site-blocks .has-h2-font-size { font-size: clamp( 1.875rem, 3vw, 3.25rem ); }

.wp-block-post-title a { color: inherit; }

/* ---------- Grundlagen und Zugänglichkeit ---------- */

*:focus-visible {
	outline: 3px solid var(--ik-focus);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ik-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 999;
	width: auto;
	height: auto;
	clip-path: none;
	padding: 14px 22px;
	background: var(--ik-petrol);
	color: var(--ik-paper);
	font-weight: 500;
}

.ik-noscroll { overflow: hidden; }

/* Touch-Ziele nie unter 44 px (RESP-003, WCAG 2.2 Target Size). */
.ik-button,
.wp-block-button__link,
.ik-filter button,
.ik-form button {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 0;
	padding: 1rem 2rem;
	background: var(--ik-terracotta);
	color: var(--ik-paper);
	font: inherit;
	font-weight: 500;
	letter-spacing: 0.06em;
	cursor: pointer;
	text-decoration: none;
}

.ik-button:hover,
.wp-block-button__link:hover,
.ik-filter button:hover,
.ik-form button:hover { background: var(--ik-paper); color: var(--ik-petrol); }

/* Auf hellem Grund braucht der weiße Hover eine Kante. */
.wp-block-button__link:hover { box-shadow: inset 0 0 0 1px var(--ik-petrol); }

@media ( prefers-reduced-motion: reduce ) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Kopfbereich ---------- */

/* Der Kopfbereich liegt fixiert über dem Hero — wie im Entwurf. Das äußere
   template-part-Element muss die Fixierung tragen, nicht das innere div. */
.wp-site-blocks > header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
}

/* Unterseiten haben keinen Hero: Platz für den fixierten Kopfbereich. */
body:not( .home ) .wp-site-blocks { padding-top: 86px; }

.ik-header {
	background: rgba( 27, 42, 46, 0.72 );
	border-bottom: 1px solid rgba( 251, 250, 248, 0.12 );
	transition: background 0.3s ease;
}

@supports ( backdrop-filter: blur( 2px ) ) {
	.ik-header { backdrop-filter: blur( 14px ); }
}

.ik-header.is-scrolled { background: rgba( 22, 36, 40, 0.96 ); }

.ik-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.25rem clamp( 1.25rem, 4vw, 3rem );
}

.ik-header a { color: var(--ik-paper); text-decoration: none; }

.ik-brand { display: flex; align-items: center; gap: 1rem; }

.ik-logo-mark {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.02em;
	background: var(--ik-paper);
	color: var(--ik-petrol);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1;
}

.ik-logo-mark em { color: var(--ik-terracotta); font-style: normal; }
.ik-brand:hover .ik-logo-mark { background: var(--ik-terracotta); color: var(--ik-paper); }
.ik-brand:hover .ik-logo-mark em { color: var(--ik-paper); }

.ik-brand__text { display: flex; flex-direction: column; gap: 4px; }
.ik-brand__name { display: flex; align-items: flex-start; gap: 0; font-size: 1.375rem; line-height: 0.9; color: var(--ik-paper); }
.ik-brand__light { font-weight: 300; }
.ik-brand__bold { font-weight: 500; }
.ik-brand__dot { width: 5px; height: 5px; flex: 0 0 auto; margin: 5px 0 0 5px; background: var(--ik-terracotta); }
.ik-brand__tagline { font-size: 0.5rem; letter-spacing: 0.36em; text-transform: uppercase; color: #9AA5A3; }

.ik-nav { display: flex; align-items: center; gap: clamp( 1.25rem, 2.4vw, 2.125rem ); }
.ik-nav > a { font-size: 0.875rem; letter-spacing: 0.06em; }
.ik-nav > a:hover { color: var(--ik-terracotta-light); }

.ik-nav__cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.8rem 1.5rem;
	background: var(--ik-terracotta);
	font-weight: 500;
}

.ik-nav__cta:hover { background: var(--ik-paper); color: var(--ik-petrol) !important; }

.ik-nav-toggle { display: none; }

.ik-brand--footer .ik-brand__name { font-size: 1.5rem; }
.ik-brand--footer { color: inherit; text-decoration: none; }

@media ( max-width: 1023px ) {
	.ik-nav-toggle {
		display: grid;
		gap: 5px;
		width: 44px;
		height: 44px;
		place-content: center;
		background: none;
		border: 1px solid rgba( 251, 250, 248, 0.3 );
		cursor: pointer;
	}
	.ik-nav-toggle span { display: block; width: 20px; height: 1px; background: var(--ik-paper); }
	.ik-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
		padding: 1.5rem clamp( 1.25rem, 4vw, 3rem ) 2rem;
		background: var(--ik-petrol);
		border-bottom: 1px solid rgba( 251, 250, 248, 0.14 );
	}
	.ik-header { position: sticky; }
	.ik-header__inner { position: relative; }
	.ik-nav.is-open { display: flex; }
}

/* ---------- Hero ---------- */

.is-style-hero-video {
	position: relative;
	overflow: hidden;
	min-height: min( 100svh, 860px );
	display: flex;
	align-items: flex-end;
	background: var(--ik-petrol);
	color: var(--ik-paper);
}

.is-style-hero-video > :not( .ik-hero-media ) { position: relative; z-index: 2; }
.is-style-hero-video > .ik-hero-note,
.is-style-hero-video p.ik-hero-note { position: absolute; }

.ik-hero-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: #142327; }
.ik-hero-video,
.ik-hero-poster { width: 100%; height: 100%; object-fit: cover; display: block; }

.ik-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient( 105deg, rgba( 27, 42, 46, 0.9 ) 0%, rgba( 27, 42, 46, 0.7 ) 45%, rgba( 27, 42, 46, 0.34 ) 100% );
}

/* Markenfläche ohne Netzwerk-Request: vier Ebenen wie im Entwurf. */
.ik-hero-fallback { position: absolute; inset: 0; }
.ik-hero-fallback > span { position: absolute; display: block; }

.ik-hero-fallback__drift {
	inset: -6%;
	background: radial-gradient( 120% 90% at 18% 12%, #2C4247 0%, #1B2A2E 42%, #101C20 100% );
	animation: ik-drift 26s ease-in-out infinite;
}

.ik-hero-fallback__sweep {
	inset: -10%;
	background: linear-gradient( 78deg, rgba( 198, 118, 58, 0 ) 30%, rgba( 198, 118, 58, 0.32 ) 50%, rgba( 198, 118, 58, 0 ) 70% );
	animation: ik-sweep 18s ease-in-out infinite;
}

.ik-hero-fallback__glow {
	left: 0;
	right: 0;
	bottom: 0;
	height: 46%;
	background: linear-gradient( 0deg, rgba( 216, 147, 90, 0.22 ) 0%, rgba( 216, 147, 90, 0 ) 100% );
	animation: ik-glow 14s ease-in-out infinite;
}

.ik-hero-fallback__grid {
	inset: 0;
	opacity: 0.5;
	background-image:
		linear-gradient( 90deg, rgba( 251, 250, 248, 0.07 ) 1px, transparent 1px ),
		linear-gradient( 0deg, rgba( 251, 250, 248, 0.05 ) 1px, transparent 1px );
	background-size: 120px 120px;
}

@keyframes ik-drift {
	0%, 100% { transform: scale( 1.08 ) translate3d( -1.5%, -1%, 0 ); }
	50% { transform: scale( 1.16 ) translate3d( 1.5%, 1%, 0 ); }
}

@keyframes ik-sweep {
	0%, 100% { transform: translate3d( -12%, 0, 0 ); opacity: 0.35; }
	50% { transform: translate3d( 12%, 0, 0 ); opacity: 0.6; }
}

@keyframes ik-glow {
	0%, 100% { opacity: 0.25; }
	50% { opacity: 0.55; }
}

.ik-hero-note {
	position: absolute;
	z-index: 3;
	top: 6.5rem;
	right: clamp( 1.25rem, 4vw, 3rem );
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 9px 16px;
	border: 1px solid rgba( 251, 250, 248, 0.3 );
	background: rgba( 20, 35, 39, 0.55 );
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba( 251, 250, 248, 0.75 );
}

.ik-hero-note span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ik-terracotta);
	animation: ik-glow 2.4s ease-in-out infinite;
}

/* Eyebrow mit vorangestellter Linie (Hero) */
.ik-eyebrow-rule {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--ik-terracotta-light);
}

.ik-eyebrow-rule span { width: 44px; height: 1px; flex: 0 0 auto; background: var(--ik-terracotta); }

/* ---------- Kennzahlen ---------- */

.ik-stats {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	border-top: 1px solid rgba( 251, 250, 248, 0.18 );
}

.ik-stat { display: flex; flex-direction: column; gap: 8px; padding: 1.875rem 2.125rem 2.125rem; }
.ik-stat__value { margin: 0; font-size: clamp( 2rem, 4vw, 2.375rem ); font-weight: 300; line-height: 1; color: var(--ik-paper); font-variant-numeric: tabular-nums; }
.ik-stat__value em { color: var(--ik-terracotta); font-style: normal; }
.ik-stat__label { margin: 0; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9AA5A3; }

@media ( max-width: 781px ) {
	.ik-stat:nth-child( even ) { border-left: 1px solid rgba( 251, 250, 248, 0.18 ); }
	.ik-stat:nth-child( n + 3 ) { border-top: 1px solid rgba( 251, 250, 248, 0.18 ); }
}

@media ( min-width: 782px ) {
	.ik-stats { grid-template-columns: repeat( 4, 1fr ); }
	.ik-stat { padding: 1.875rem 2.125rem 2.125rem; border-left: 1px solid rgba( 251, 250, 248, 0.18 ); }
	.ik-stat:first-child { padding-left: 0; border-left: 0; }
	.ik-stat:last-child { padding-right: 0; }
}

/* ---------- Eyebrow und Sektionen ---------- */

.is-style-eyebrow {
	font-size: 0.6875rem !important;
	font-weight: 400 !important;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	line-height: 1.5 !important;
	color: var(--ik-terracotta);
	margin-bottom: 0.75rem;
}

.is-style-section-dark { background: var(--ik-petrol); color: var(--ik-paper); }
.is-style-section-sand { background: var(--ik-sand); }

.is-style-dashes { list-style: none; padding-left: 0; }
.is-style-dashes li { position: relative; padding-left: 1.5rem; }
.is-style-dashes li::before { content: "—"; position: absolute; left: 0; color: var(--ik-terracotta); }

/* ---------- Buttons: Varianten ---------- */

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	color: var(--ik-paper);
	box-shadow: inset 0 0 0 1px rgba( 251, 250, 248, 0.45 );
}

.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
	background: rgba( 251, 250, 248, 0.12 );
	box-shadow: inset 0 0 0 1px var(--ik-paper);
	color: var(--ik-paper);
}

.wp-block-button.is-style-outline-dark .wp-block-button__link {
	background: transparent;
	color: var(--ik-petrol);
	box-shadow: inset 0 0 0 1px var(--ik-petrol);
}

.wp-block-button.is-style-outline-dark .wp-block-button__link:hover {
	background: var(--ik-petrol);
	color: var(--ik-paper);
}

/* ---------- Breadcrumbs ---------- */

.ik-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	color: var(--ik-grey-light);
}

.ik-breadcrumbs li + li::before { content: "/"; margin-right: 0.75rem; color: var(--ik-line); }
.ik-breadcrumbs a { color: var(--ik-grey); }

/* ---------- Objektkarten ---------- */

.ik-grid-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media ( min-width: 640px ) { .ik-grid-cards { grid-template-columns: repeat( 2, 1fr ); } }
@media ( min-width: 1024px ) { .ik-grid-cards { grid-template-columns: repeat( 3, 1fr ); } }

.ik-card {
	display: flex;
	flex-direction: column;
	background: var(--ik-paper);
	border: 1px solid var(--ik-line);
	height: 100%;
}

.ik-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ik-sand); }
.ik-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ik-card__tag,
.ik-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 13px;
	background: var(--ik-terracotta);
	color: var(--ik-paper);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ik-badge { left: auto; right: 14px; background: var(--ik-petrol); }
.ik-badge--verkauft,
.ik-badge--vermietet { background: #6B4A2E; }

.ik-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem 1.5rem 1.75rem;
	flex: 1;
}

.ik-card__location {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ik-grey-light);
}

.ik-card__title { margin: 0; font-size: 1.3125rem; font-weight: 400; line-height: 1.25; }
.ik-card__title a { color: var(--ik-petrol); }
.ik-card__price { margin: auto 0 0; padding-top: 0.5rem; }

.ik-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0.875rem 0 0;
	border-top: 1px solid var(--ik-line);
	list-style: none;
	font-size: 0.9375rem;
	color: var(--ik-grey);
}

.ik-facts-full {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
	gap: 1rem 2rem;
	margin: 0;
}

.ik-facts-full .ik-fact { border-top: 1px solid var(--ik-line); padding-top: 0.75rem; }
.ik-facts-full dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ik-grey-light); }
.ik-facts-full dd { margin: 0.25rem 0 0; font-size: 1.0625rem; }

.ik-price { font-size: 1.625rem; font-weight: 400; color: var(--ik-petrol); }
.ik-price-note { font-size: 0.875rem; font-weight: 300; color: var(--ik-grey-light); }
.ik-price-block { margin: 0; }

.ik-empty { color: var(--ik-grey); }

/* ---------- Filter ---------- */

.ik-filter {
	display: grid;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--ik-paper);
	border: 1px solid var(--ik-line);
}

.ik-filter__body { display: grid; gap: 1rem; }

@media ( min-width: 900px ) {
	.ik-filter__body { grid-template-columns: repeat( 4, 1fr ); align-items: end; }
	.ik-filter-field--wide { grid-column: span 2; }
	.ik-filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.5rem; }
}

.ik-filter-field { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }

.ik-filter-field label {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ik-grey-light);
}

.ik-filter-field input,
.ik-filter-field select {
	min-height: 46px;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--ik-line);
	border-radius: 0;
	background: var(--ik-paper);
	font: inherit;
	color: var(--ik-petrol);
}

.ik-filter__toggle {
	width: 100%;
	background: var(--ik-petrol);
	color: var(--ik-paper);
}

.ik-filter-reset { font-size: 0.9375rem; }
.ik-result-count { margin: 1.25rem 0 0; color: var(--ik-grey); }

/* ---------- Exposé ---------- */

.ik-gallery { display: flex; flex-direction: column; gap: 6px; }
.ik-gallery__stage { position: relative; aspect-ratio: 3 / 2; background: var(--ik-sand); overflow: hidden; }
.ik-gallery__main { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ik-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-gallery__nav {
	position: absolute; top: 50%; transform: translateY( -50% );
	display: grid; place-items: center; width: 48px; height: 48px;
	border: 0; border-radius: 50%; background: rgba( 251, 250, 248, 0.88 ); color: var(--ik-petrol);
	cursor: pointer; transition: background-color 0.2s ease;
}
.ik-gallery__nav:hover { background: var(--ik-paper); }
.ik-gallery__nav--prev { left: 14px; }
.ik-gallery__nav--next { right: 14px; }
.ik-gallery__count {
	position: absolute; right: 14px; bottom: 14px; margin: 0; padding: 0.3rem 0.7rem;
	background: rgba( 16, 28, 32, 0.72 ); color: var(--ik-paper); font-size: 0.8125rem; letter-spacing: 0.06em;
}
.ik-gallery__thumbs { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 2px; }
.ik-gallery__thumb {
	flex: 0 0 auto; width: 112px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--ik-sand);
	cursor: pointer; scroll-snap-align: start; opacity: 0.6; outline: 2px solid transparent; outline-offset: -2px;
	transition: opacity 0.2s ease, outline-color 0.2s ease;
}
.ik-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-gallery__thumb:hover { opacity: 0.9; }
.ik-gallery__thumb.is-active { opacity: 1; outline-color: var(--ik-terracotta); }
@media ( max-width: 640px ) {
	.ik-gallery__nav { width: 40px; height: 40px; }
	.ik-gallery__thumb { width: 84px; }
}

.ik-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	background: rgba( 16, 28, 32, 0.94 );
}

.ik-lightbox__inner { position: relative; max-width: min( 1200px, 92vw ); }
.ik-lightbox__img { max-width: 100%; max-height: 78vh; display: block; }
.ik-lightbox__count { margin: 0.75rem 0 0; color: var(--ik-paper); font-size: 0.875rem; }

.ik-lightbox__btn {
	position: absolute;
	min-width: 48px;
	min-height: 48px;
	border: 1px solid rgba( 251, 250, 248, 0.4 );
	background: rgba( 22, 36, 40, 0.85 );
	color: var(--ik-paper);
	font-size: 1.25rem;
	cursor: pointer;
}

.ik-lightbox__prev { left: -8px; top: 50%; transform: translateY( -50% ); }
.ik-lightbox__next { right: -8px; top: 50%; transform: translateY( -50% ); }
.ik-lightbox__close { right: -8px; top: -60px; }

.ik-energy { background: var(--ik-sand); padding: 1.5rem; }

.ik-sticky-cta {
	position: sticky;
	bottom: 0;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0.875rem clamp( 1.25rem, 4vw, 3rem );
	background: var(--ik-petrol);
	border-top: 1px solid rgba( 251, 250, 248, 0.16 );
}

.ik-sticky-cta a { flex: 1 1 160px; }

@media ( min-width: 900px ) { .ik-sticky-cta { display: none; } }

/* ---------- Formulare ---------- */

.ik-form {
	display: grid;
	gap: 1.25rem;
	padding: clamp( 1.5rem, 4vw, 2.5rem );
	background: var(--ik-paper);
	border: 1px solid var(--ik-line);
}

.ik-form__title { margin: 0; font-size: 1.375rem; font-weight: 400; }
.ik-form__grid { display: grid; gap: 1rem; }

@media ( min-width: 700px ) {
	.ik-form__grid { grid-template-columns: 1fr 1fr; }
	.ik-form__field--wide { grid-column: 1 / -1; }
}

.ik-form__field { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }

.ik-form__field label {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ik-grey-light);
}

.ik-form input[type="text"],
.ik-form input[type="email"],
.ik-form input[type="tel"],
.ik-form input[type="number"],
.ik-form select,
.ik-form textarea {
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	border: 1px solid var(--ik-line);
	border-radius: 0;
	background: var(--ik-paper);
	font: inherit;
	color: var(--ik-petrol);
}

.ik-form textarea { resize: vertical; }
.ik-form [aria-invalid="true"] { border-color: #A6301F; border-width: 2px; }

.ik-form__help { font-size: 0.8125rem; color: var(--ik-grey-light); }
.ik-form__error { font-size: 0.875rem; color: #A6301F; font-weight: 400; }

.ik-form__errors {
	padding: 1rem 1.25rem;
	border-left: 4px solid #A6301F;
	background: #FBEFEC;
	color: #7A2417;
}

.ik-form__errors ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.ik-form__errors a { color: #7A2417; text-decoration: underline; }

.ik-form__success {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--ik-terracotta);
	background: var(--ik-sand);
}

.ik-form__object { margin: 0; font-size: 0.9375rem; color: var(--ik-grey); }
.ik-form__consent { display: flex; margin: 0; font-size: 0.9375rem; }
.ik-form__consent label { display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.6; }
.ik-form__consent input { margin-top: 0.35rem; width: 20px; height: 20px; flex: 0 0 auto; }
.ik-form__actions { margin: 0; }
.ik-form__note { margin: 0; font-size: 0.9375rem; color: var(--ik-grey); }

.ik-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Karte mit Einwilligung ---------- */

.ik-map { position: relative; min-height: 300px; background: var(--ik-sand); border: 1px solid var(--ik-line); }

.ik-map__placeholder {
	display: grid;
	gap: 0.875rem;
	align-content: center;
	padding: clamp( 1.5rem, 4vw, 2.5rem );
	min-height: 300px;
}

.ik-map__title { margin: 0; font-size: 1.125rem; font-weight: 500; }
.ik-map__note,
.ik-map__fallback { margin: 0; font-size: 0.9375rem; color: var(--ik-grey); }
.ik-map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0; }
.ik-map__remember { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.ik-map__frame { width: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Tabellen ---------- */

.ik-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ik-table caption { text-align: left; padding-bottom: 0.75rem; color: var(--ik-grey-light); }
.ik-table th,
.ik-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--ik-line); vertical-align: top; }
.ik-table th { font-weight: 500; }

/* ---------- Sonstiges ---------- */

.ik-region-list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 0.5rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ik-region-list a { display: block; padding: 0.4rem 0; border-bottom: 1px solid var(--ik-line); }

/* ---------- Dunkle Flächen: Links, Listen, Fußbereich ---------- */

.has-petrol-background-color a:not( .wp-block-button__link ),
.is-style-section-dark a:not( .wp-block-button__link ),
.wp-site-blocks > footer a { color: var(--ik-paper); text-decoration: none; }

.has-petrol-background-color a:not( .wp-block-button__link ):hover,
.is-style-section-dark a:not( .wp-block-button__link ):hover,
.wp-site-blocks > footer a:hover { color: var(--ik-terracotta-light); text-decoration: none; }

.wp-site-blocks > footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-site-blocks > footer .ik-brand--footer { display: inline-flex; }
.wp-site-blocks > footer h2 { margin-bottom: 1rem; }

/* Objektkarten und Beitragsteaser: Titel bleiben petrol, nicht terrakotta. */
.ik-card__title a:hover { color: var(--ik-terracotta); }

/* ---------- Kein weißer Streifen vor dem Fußbereich ---------- */

.wp-site-blocks > footer { margin-top: 0; }
.wp-site-blocks > main { margin-bottom: 0; }
.wp-site-blocks > main > :last-child { margin-bottom: 0; }

/* ---------- Kontaktabschnitt ---------- */

.ik-contact {
	display: grid;
	gap: clamp( 2.5rem, 5vw, 5rem );
	align-items: start;
}

@media ( min-width: 1024px ) {
	.ik-contact { grid-template-columns: 1fr minmax( 420px, 46% ); }
}

.ik-contact__intro { display: flex; flex-direction: column; gap: 1.5rem; }

.ik-contact__title {
	margin: 0;
	font-size: clamp( 1.875rem, 3vw, 3.25rem );
	font-weight: 200;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--ik-paper);
	text-wrap: pretty;
}

.ik-contact__title strong { font-weight: 500; }

.ik-contact__lead {
	margin: 0;
	max-width: 34em;
	font-size: clamp( 1.0625rem, 1.3vw, 1.1875rem );
	font-weight: 300;
	line-height: 1.65;
	color: rgba( 251, 250, 248, 0.82 );
	text-wrap: pretty;
}

.ik-contact__meta {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 1.75rem 2.5rem;
	margin: 1rem 0 0;
	padding-top: 2rem;
	border-top: 1px solid rgba( 251, 250, 248, 0.2 );
}

.ik-contact__item { display: flex; flex-direction: column; gap: 0.5rem; }
.ik-contact__item--wide { grid-column: span 1; }

.ik-contact__meta dt {
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #9AA5A3;
}

.ik-contact__meta dd {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba( 251, 250, 248, 0.82 );
}

.ik-contact__strong { font-size: 1.25rem !important; line-height: 1.3 !important; }
.ik-contact__strong a { color: var(--ik-paper); }
.ik-contact__strong a:hover { color: var(--ik-terracotta-light); }

@media ( max-width: 560px ) {
	.ik-contact__meta { grid-template-columns: 1fr; }
}

.ik-contact__form .ik-form { border: 0; }
.ik-contact__map .ik-map { border: 0; background: rgba( 251, 250, 248, 0.06 ); }
.ik-contact__map .ik-map__title { color: var(--ik-paper); font-size: 1.125rem; }
.ik-contact__map .ik-map__note,
.ik-contact__map .ik-map__fallback { color: rgba( 251, 250, 248, 0.72 ); }
.ik-contact__map .ik-map__remember { color: rgba( 251, 250, 248, 0.72 ); }
.ik-contact__map .ik-map__fallback a { color: var(--ik-terracotta-light); }
.ik-contact__map .ik-map__frame { min-height: 380px; }

/* ---------- Über uns ---------- */

.ik-eyebrow {
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--ik-terracotta);
}

.ik-about__title {
	margin: 0;
	font-size: clamp( 2rem, 3.4vw, 3.5rem );
	font-weight: 200;
	line-height: 1.06;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

.ik-about__title strong { font-weight: 500; }

.ik-about__lead {
	margin: 0;
	max-width: 40em;
	font-size: clamp( 1.0625rem, 1.3vw, 1.1875rem );
	font-weight: 300;
	line-height: 1.65;
	color: var(--ik-grey);
	text-wrap: pretty;
}

.ik-about__lead--light { color: rgba( 251, 250, 248, 0.82 ); }

.ik-about-intro {
	display: grid;
	gap: clamp( 2.5rem, 5vw, 4.5rem );
	align-items: start;
}

@media ( min-width: 1024px ) {
	.ik-about-intro { grid-template-columns: 1.05fr 0.95fr; }
}

.ik-about-intro__text { display: flex; flex-direction: column; gap: 1.5rem; }
.ik-about-intro__text p:not( .ik-eyebrow ):not( .ik-about__lead ) { margin: 0; color: var(--ik-grey); text-wrap: pretty; }
.ik-about-intro__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #E6E1D9; }
.ik-about-intro__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ik-about-team { display: flex; flex-direction: column; gap: clamp( 2.5rem, 5vw, 4rem ); }
.ik-about-team__head { display: flex; flex-direction: column; gap: 1.25rem; max-width: 62rem; }
.ik-about-team__head .ik-about__title { color: var(--ik-paper); }

.ik-team { display: grid; gap: 1.5rem; }

/* Tablet: Karten quer (Bild links, Text rechts); Desktop: drei nebeneinander. */
@media ( min-width: 640px ) and ( max-width: 999px ) {
	.ik-team__card { flex-direction: row; }
	.ik-team__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 100%; }
	.ik-team__body { flex: 1 1 auto; }
}
@media ( min-width: 1000px ) {
	.ik-team { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
	.ik-team__body { padding: 1.75rem 1.75rem 2rem; }
}

.ik-team__card { display: flex; flex-direction: column; background: rgba( 251, 250, 248, 0.05 ); }
.ik-team__media { aspect-ratio: 4 / 3; overflow: hidden; background: rgba( 251, 250, 248, 0.06 ); }
.ik-team__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-team__body { display: flex; flex-direction: column; gap: 0.875rem; padding: 2rem 2.125rem 2.375rem; }

.ik-team__role {
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ik-terracotta-light);
}

.ik-team__name { margin: 0; font-size: 1.625rem; font-weight: 400; line-height: 1.2; color: var(--ik-paper); }
.ik-team__text { margin: 0; font-size: 0.9375rem; font-weight: 300; line-height: 1.75; color: rgba( 251, 250, 248, 0.78 ); text-wrap: pretty; }

.ik-team__quote {
	margin: 0.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba( 251, 250, 248, 0.18 );
	font-size: 1.0625rem;
	font-weight: 300;
	font-style: normal;
	line-height: 1.5;
	color: var(--ik-paper);
}

.ik-about-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2.5rem;
}

.ik-about-cta__text { display: flex; flex-direction: column; gap: 1.25rem; max-width: 46rem; }
.ik-about-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

.ik-button-quiet {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 1rem 1.75rem;
	box-shadow: inset 0 0 0 1px var(--ik-petrol);
	color: var(--ik-petrol);
	font-weight: 400;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.ik-button-quiet:hover { background: var(--ik-petrol); color: var(--ik-paper); }


/* =========================================================================
 * Referenz-Abgleich (Entwurf "ImmoKunz Website")
 * Nur Werte, die vom Entwurf abwichen. Maßstab bleibt das Token-Set oben.
 * Skala: Gutter 48px · Sektion 120px · Karten randlos · Eyebrow 0.4em
 * ========================================================================= */

:root {
	--ik-gutter: clamp( 1.25rem, 4vw, 3rem );
	--ik-max: 1824px;
	--ik-section-y: clamp( 4rem, 9vw, 7.5rem );
}

/* ---------- Hero: füllt den Viewport wie im Entwurf ---------- */

.is-style-hero-video { min-height: max( 760px, 100svh ); }

/* Lead im Hero war im Entwurf auf 620px begrenzt. */
.is-style-hero-video .has-lead-font-size { max-width: 620px; }

/* Hero-CTAs: 19/34 statt 16/32. */
.is-style-hero-video .wp-block-button__link { padding: 1.1875rem 2.125rem; }

/* ---------- Eyebrow: Sperrung 0.4em wie im Entwurf ---------- */

.is-style-eyebrow { letter-spacing: 0.4em; }
.ik-eyebrow,
.ik-eyebrow-rule { letter-spacing: 0.4em; }

/* ---------- Fließtext: Zeilenlänge wie im Entwurf begrenzt ---------- */

.wp-block-column > .has-lead-font-size,
.wp-block-column > p:not( .is-style-eyebrow ) { max-width: 34em; }

/* ---------- Karten: randlos, Bildhöhe fix ---------- */

/* Der Entwurf setzt keine Rahmen, sondern nur Flächenkontrast. */
.ik-card { border: 0; }

/* 4/3 wurde bei breiten Karten deutlich höher als die 250px im Entwurf. */
.ik-card__media { aspect-ratio: auto; height: clamp( 190px, 15vw, 250px ); }
.ik-card__media img { height: 100%; }

.ik-card__body { gap: 1rem; padding: 1.875rem 1.75rem 2.125rem; }
.ik-card__title { font-size: 1.375rem; }
.ik-facts { gap: 0.5rem 1.375rem; padding-top: 1rem; font-size: 0.875rem; }

/* Leistungskarten (Bild-Block in Spalten): 260px statt 16/10-Vollhöhe. */
.wp-block-column > .wp-block-image img {
	aspect-ratio: auto !important;
	width: 100%;
	height: clamp( 200px, 16vw, 260px );
	object-fit: cover;
}

/* ---------- Fußbereich ---------- */

.wp-site-blocks > footer > .wp-block-group { padding-top: 5rem; padding-bottom: 2.5rem; }
.wp-site-blocks > footer .is-style-eyebrow { letter-spacing: 0.24em; margin-bottom: 0.5rem; }
.wp-site-blocks > footer .has-small-font-size { font-size: 0.875rem; }
.wp-site-blocks > footer .ik-brand__tagline { letter-spacing: 0.4em; }
.wp-site-blocks > footer .ik-brand--footer .ik-brand__name { font-size: 1.5625rem; }

/* ---------- Responsiv ---------- */

@media ( max-width: 1023px ) {
	.ik-card__media { height: clamp( 200px, 34vw, 260px ); }
	.wp-block-column > .wp-block-image img { height: clamp( 200px, 34vw, 280px ); }
	.is-style-hero-video .wp-block-button__link { padding: 1rem 1.75rem; }
}

@media ( max-width: 640px ) {
	.is-style-hero-video { min-height: max( 620px, 100svh ); }
	.ik-card__body { padding: 1.625rem 1.5rem 1.875rem; }
	.wp-site-blocks > footer > .wp-block-group { padding-top: 3.5rem; }
}


/* =========================================================================
 * Landing- und Leistungsseiten
 * Gleiche Bausteine wie die Startseite: dunkler Hero mit Eyebrow, Kennzahlen-
 * band, randlose Kacheln, Petrol-Sektion. Kein eigener Maßstab.
 * ========================================================================= */

/* Der Hero läuft unter den fixierten Kopfbereich — wie auf der Startseite. */
body.page-template-page-landing .wp-site-blocks { padding-top: 0; }

.ik-lp-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: min( 78svh, 720px );
	padding: 11rem 0 0;
	background: var(--ik-petrol);
	color: var(--ik-paper);
}

.ik-lp-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--ik-max);
	margin: 0 auto;
	padding: 0 var(--ik-gutter);
	display: flex;
	flex-direction: column;
	gap: 1.875rem;
}

.ik-lp-hero__title {
	margin: 0;
	max-width: 20ch;
	font-size: clamp( 2.25rem, 4vw, 4.25rem );
	font-weight: 200;
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--ik-paper);
	text-wrap: pretty;
}

.ik-lp-hero__lead {
	margin: 0;
	max-width: 46rem;
	font-size: clamp( 1.0625rem, 1.3vw, 1.1875rem );
	font-weight: 300;
	line-height: 1.65;
	color: rgba( 251, 250, 248, 0.82 );
	text-wrap: pretty;
}

.ik-lp-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem 0 0; }

.ik-button--ghost {
	background: transparent;
	color: var(--ik-paper);
	box-shadow: inset 0 0 0 1px rgba( 251, 250, 248, 0.45 );
	font-weight: 400;
}

.ik-button--ghost:hover { background: rgba( 251, 250, 248, 0.12 ); color: var(--ik-paper); box-shadow: inset 0 0 0 1px var(--ik-paper); }

.ik-lp-hero .ik-stats { margin-top: 1.75rem; }
.ik-stats--three,
.ik-stats--four { grid-template-columns: repeat( 2, 1fr ); }

@media ( min-width: 782px ) {
	.ik-stats--three { grid-template-columns: repeat( 3, 1fr ); }
	.ik-stats--three .ik-stat:nth-child( 3n + 1 ) { padding-left: 0; border-left: 0; }
	.ik-stats--four { grid-template-columns: repeat( 4, 1fr ); }
	.ik-stats--four .ik-stat:nth-child( 4n + 1 ) { padding-left: 0; border-left: 0; }
}

/* ---------- Lagen-Kacheln ---------- */

/* Trennlinien über den Schatten der Kacheln statt über den Hintergrund des
   Rasters: sonst scheint beim Einblenden eine farbige Fläche durch. */
.ik-tiles { display: grid; grid-template-columns: 1fr; gap: 1px; background: transparent; overflow: hidden; }
.ik-tiles > .ik-tile { box-shadow: 0 0 0 1px var(--ik-line); }

@media ( min-width: 640px ) { .ik-tiles { grid-template-columns: repeat( 2, 1fr ); } }
@media ( min-width: 1024px ) { .ik-tiles { grid-template-columns: repeat( 3, 1fr ); } }

.ik-tile {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 2rem 2.125rem 2.375rem;
	background: var(--ik-paper);
}

.ik-tile__title { margin: 0; font-size: 1.375rem; font-weight: 400; line-height: 1.2; color: var(--ik-petrol); }
.ik-tile__text { margin: 0; font-size: 0.9375rem; font-weight: 300; line-height: 1.75; color: var(--ik-grey); text-wrap: pretty; }

/* ---------- Details/FAQ ---------- */

.wp-block-details {
	padding: 1.25rem 0;
	border-top: 1px solid var(--ik-line);
}

.wp-block-details:last-child { border-bottom: 1px solid var(--ik-line); }
.wp-block-details summary { font-size: 1.0625rem; font-weight: 400; cursor: pointer; }
.wp-block-details p { margin: 0.75rem 0 0; color: var(--ik-grey); max-width: 46rem; }

@media ( max-width: 781px ) {
	.ik-lp-hero { padding-top: 8.5rem; min-height: 0; }
	.ik-tile { padding: 1.75rem 1.5rem 2rem; }
}


/* =========================================================================
 * Bewegungsschicht
 * Eine Kurve, eine Dauer, ein Versatz — mehr braucht es nicht. Alles greift
 * erst, wenn motion.js die Klasse .ik-motion gesetzt hat: ohne JavaScript und
 * bei "Bewegung reduzieren" bleibt der Inhalt unverändert sichtbar.
 * ========================================================================= */

:root {
	--ik-ease: cubic-bezier( 0.16, 1, 0.3, 1 );
	--ik-dur: 0.85s;
	--ik-delay: 0ms;
}

/* ---------- Reveal ---------- */

.ik-motion [data-ik-reveal] {
	opacity: 0;
	transform: translate3d( 0, 28px, 0 );
	transition: opacity var(--ik-dur) var(--ik-ease) var(--ik-delay), transform var(--ik-dur) var(--ik-ease) var(--ik-delay);
	will-change: opacity, transform;
}

.ik-motion [data-ik-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Überschriften wortweise ---------- */

.ik-motion [data-ik-words] .ik-word {
	display: inline-block;
	opacity: 0;
	transform: translate3d( 0, 0.42em, 0 );
	transition: opacity 0.7s var(--ik-ease) var(--ik-delay), transform 0.7s var(--ik-ease) var(--ik-delay);
}

.ik-motion [data-ik-words].is-in .ik-word { opacity: 1; transform: none; }

/* ---------- Bilder: Maskenlauf ---------- */

.ik-motion [data-ik-media] { overflow: hidden; clip-path: inset( 0 0 100% 0 ); transition: clip-path 1.1s var(--ik-ease); }
.ik-motion [data-ik-media].is-in { clip-path: inset( 0 0 0 0 ); }
.ik-motion [data-ik-media] img { transform: scale( 1.12 ); transition: transform 1.4s var(--ik-ease); }
.ik-motion [data-ik-media].is-in img { transform: none; }

/* ---------- Fortschrittslinie ---------- */

.ik-progress {
	position: fixed;
	top: 86px;
	left: 0;
	right: 0;
	z-index: 59;
	height: 2px;
	pointer-events: none;
}

.ik-progress__fill {
	display: block;
	height: 100%;
	background: var(--ik-terracotta);
	transform: scaleX( 0 );
	transform-origin: 0 50%;
}

@media ( max-width: 1023px ) { .ik-progress { top: 84px; } }

/* ---------- Laufband ---------- */

.ik-marquee {
	overflow: hidden;
	padding: 1.75rem 0;
	background: var(--ik-petrol);
	border-top: 1px solid rgba( 251, 250, 248, 0.14 );
	border-bottom: 1px solid rgba( 251, 250, 248, 0.14 );
	mask-image: linear-gradient( 90deg, transparent, #000 8%, #000 92%, transparent );
	-webkit-mask-image: linear-gradient( 90deg, transparent, #000 8%, #000 92%, transparent );
}

.ik-marquee__track { display: flex; width: max-content; animation: ik-marquee 42s linear infinite; }
.ik-marquee:hover .ik-marquee__track { animation-play-state: paused; }

.ik-marquee__set { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }

.ik-marquee__set span {
	font-size: clamp( 1.5rem, 3vw, 2.5rem );
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.01em;
	color: rgba( 251, 250, 248, 0.9 );
	white-space: nowrap;
}

.ik-marquee__set i { width: 7px; height: 7px; flex: 0 0 auto; background: var(--ik-terracotta); }

@keyframes ik-marquee {
	from { transform: translate3d( 0, 0, 0 ); }
	to { transform: translate3d( -50%, 0, 0 ); }
}

/* ---------- Karten: Hover ---------- */

.ik-card,
.ik-tile { transition: transform 0.5s var(--ik-ease), background-color 0.4s ease; }
.ik-card__media img { transition: transform 0.7s var(--ik-ease); }
.ik-card:hover .ik-card__media img { transform: scale( 1.05 ); }
.ik-card:hover { transform: translateY( -4px ); }
.ik-tile:hover { background: var(--ik-sand); }

.ik-card__title a,
.ik-tile__title { transition: color 0.3s ease; }

/* Pfeil in Textlinks und Buttons wandert beim Hover mit. */
.ik-button::after,
.wp-block-button__link::after { transition: transform 0.35s var(--ik-ease); }
.ik-button:hover::after,
.wp-block-button__link:hover::after { transform: translateX( 4px ); }

/* ---------- Kopfbereich verdichtet sich beim Scrollen ---------- */

.ik-header__inner { transition: padding 0.35s var(--ik-ease); }
.ik-header.is-scrolled .ik-header__inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }

/* ---------- Hero-Ebenen ---------- */

.ik-hero-fallback__grid { will-change: transform; }

@media ( max-width: 781px ) {
	.ik-marquee { padding: 1.25rem 0; }
	.ik-marquee__set { gap: 1.75rem; padding-right: 1.75rem; }
	.ik-motion [data-ik-reveal] { transform: translate3d( 0, 20px, 0 ); }
}

/* Ohne JavaScript und bei reduzierter Bewegung: nichts versteckt, nichts läuft. */
.ik-no-motion .ik-marquee__track { animation: none; }


/* =========================================================================
 * Korrekturen aus dem Live-Abgleich
 * ========================================================================= */

/* Das Attribut hidden muss gegen die Button-Grundregel gewinnen — sonst bleibt
   der Filter-Umschalter sichtbar und wirkt kaputt. */
[hidden] { display: none !important; }

/* ---------- Filterpanel: kompakt und auf allen Breiten schließbar ---------- */

.ik-filter { gap: 0; padding: 0; }

.ik-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1.125rem;
}

.ik-filter.is-open .ik-filter__head { border-bottom: 1px solid var(--ik-line); }

.ik-filter__label {
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ik-grey-light);
}

/* Kein Terrakotta-Balken mehr, sondern ein ruhiger Umschalter. */
.ik-filter .ik-filter__toggle {
	width: auto;
	min-height: 40px;
	padding: 0.5rem 1rem;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--ik-petrol);
	color: var(--ik-petrol);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.ik-filter .ik-filter__toggle:hover { background: var(--ik-petrol); color: var(--ik-paper); }

.ik-filter .ik-filter__toggle::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate( 45deg ) translateY( -1px );
	transition: transform 0.3s var(--ik-ease);
}

.ik-filter .ik-filter__toggle[aria-expanded="true"]::after { transform: rotate( -135deg ) translateY( -1px ); }

.ik-filter__body { padding: 1.125rem; gap: 0.875rem; }

.ik-filter-field { gap: 0.3rem; }
.ik-filter-field label { font-size: 0.6875rem; letter-spacing: 0.14em; }

.ik-filter-field input,
.ik-filter-field select {
	min-height: 42px;
	padding: 0.5rem 0.7rem;
	font-size: 0.9375rem;
}

.ik-filter-actions { gap: 1rem; padding-top: 0.25rem; }
.ik-filter-actions .ik-button,
.ik-filter-actions button { min-height: 44px; padding: 0.75rem 1.5rem; }

@media ( min-width: 900px ) {
	.ik-filter__body { grid-template-columns: repeat( 4, 1fr ); column-gap: 1.25rem; }
}

/* ---------- Leistungskarten: CTAs auf gleicher Höhe ---------- */

/* Spalten mit eigener Fläche sind Karten. Der Textblock streckt sich, der
   Button sitzt unten — dadurch liegen alle CTAs einer Reihe auf einer Linie. */
.wp-block-columns > .wp-block-column.has-background { display: flex; flex-direction: column; }
.wp-block-columns > .wp-block-column.has-background > .wp-block-group { flex: 1 1 auto; display: flex; flex-direction: column; }
.wp-block-columns > .wp-block-column.has-background > .wp-block-group > .wp-block-buttons { margin-top: auto; padding-top: 1.25rem; }

/* ---------- Kennzahlen: Labels bleiben einzeilig ---------- */

@media ( min-width: 1024px ) {
	.ik-stats--three .ik-stat__label { white-space: nowrap; }
}


/* =========================================================================
 * Einwilligungsbanner
 * Untere Leiste in Markenfarben, keine Vollflächen-Sperre: wir setzen ohnehin
 * nichts, solange nicht entschieden ist. Ablehnen und Zustimmen sind bewusst
 * identisch gestaltet — kein farbliches Nudging.
 * ========================================================================= */

.ik-consent {
	position: fixed;
	z-index: 300;
	inset: auto 0 0 0;
	display: flex;
	justify-content: center;
	padding: clamp( 0.75rem, 2vw, 1.5rem );
	pointer-events: none;
}

.ik-consent.is-visible { pointer-events: auto; }
/* display:flex überschreibt sonst das hidden-Attribut — das Banner stünde
   nach der Entscheidung unsichtbar-klickbar bzw. sichtbar auf jeder Seite. */
.ik-consent[hidden] { display: none !important; }

.ik-consent__box {
	width: 100%;
	max-width: 62rem;
	max-height: min( 82svh, 44rem );
	overflow-y: auto;
	padding: clamp( 1.5rem, 3vw, 2.25rem ) clamp( 1.25rem, 3vw, 2.5rem );
	background: var(--ik-petrol);
	border: 1px solid rgba( 251, 250, 248, 0.16 );
	color: var(--ik-paper);
	box-shadow: 0 18px 60px rgba( 16, 28, 32, 0.45 );
}

.ik-consent__title {
	margin: 0 0 0.75rem;
	font-size: clamp( 1.25rem, 2vw, 1.625rem );
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	color: var(--ik-paper);
}

.ik-consent__subtitle { margin: 0 0 1.25rem; font-size: 1.125rem; font-weight: 400; color: var(--ik-paper); }

.ik-consent__intro {
	margin: 0 0 0.75rem;
	max-width: 58rem;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba( 251, 250, 248, 0.82 );
}

.ik-consent__legal { margin: 0 0 0.875rem; font-size: 0.8125rem; font-weight: 300; line-height: 1.6; color: rgba( 251, 250, 248, 0.6 ); }

.ik-consent__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0 0 1.5rem; font-size: 0.8125rem; }
.ik-consent__links a { color: var(--ik-terracotta-light); text-decoration: underline; }
.ik-consent__links a:hover { color: var(--ik-paper); }

.ik-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }

/* Beide Entscheidungsbuttons: gleiche Größe, gleiche Farbe, gleiche Ebene. */
.ik-consent__btn {
	flex: 1 1 12rem;
	min-height: 48px;
	padding: 0.875rem 1.5rem;
	border: 0;
	box-shadow: inset 0 0 0 1px rgba( 251, 250, 248, 0.5 );
	background: transparent;
	color: var(--ik-paper);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	cursor: pointer;
}

.ik-consent__btn:hover { background: var(--ik-paper); color: var(--ik-petrol); box-shadow: inset 0 0 0 1px var(--ik-paper); }

.ik-consent__link {
	min-height: 44px;
	padding: 0.5rem 0.25rem;
	border: 0;
	background: none;
	color: rgba( 251, 250, 248, 0.78 );
	font: inherit;
	font-size: 0.875rem;
	text-decoration: underline;
	cursor: pointer;
}

.ik-consent__link:hover { color: var(--ik-paper); }

/* ---------- Einstellungen ---------- */

.ik-consent__cat { padding: 1.125rem 0; border-top: 1px solid rgba( 251, 250, 248, 0.16 ); }
.ik-consent__cat:last-of-type { border-bottom: 1px solid rgba( 251, 250, 248, 0.16 ); margin-bottom: 1.5rem; }

.ik-consent__switch { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.ik-consent__switch input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--ik-terracotta); cursor: pointer; }
.ik-consent__switch input:disabled { cursor: default; }
.ik-consent__switch-label { font-size: 1.0625rem; font-weight: 400; }

.ik-consent__req { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9AA5A3; }

.ik-consent__cat-text { margin: 0.625rem 0 0 2.75rem; font-size: 0.875rem; font-weight: 300; line-height: 1.7; color: rgba( 251, 250, 248, 0.78 ); }

.ik-consent__facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0.875rem 0 0 2.75rem; }
.ik-consent__facts dt { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9AA5A3; }
.ik-consent__facts dd { margin: 0; font-size: 0.8125rem; font-weight: 300; line-height: 1.6; color: rgba( 251, 250, 248, 0.72 ); }

.ik-consent__hint { margin: 0.875rem 0 0 2.75rem; font-size: 0.8125rem; font-weight: 300; line-height: 1.6; color: var(--ik-terracotta-light); }

/* ---------- Widerruf ---------- */

.ik-consent-footer { margin: 0; padding: 0 var(--ik-gutter) 1.5rem; background: var(--ik-petrol); text-align: right; }

.ik-consent-revoke {
	min-height: 44px;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: rgba( 251, 250, 248, 0.55 );
	font: inherit;
	font-size: 0.8125rem;
	text-decoration: underline;
	cursor: pointer;
}

.ik-consent-revoke:hover { color: var(--ik-terracotta-light); }

/* Auf der Datenschutzseite steht der Schalter im Fließtext, nicht auf Petrol. */
.wp-site-blocks .ik-consent-revoke { color: var(--ik-terracotta); }
.wp-site-blocks .ik-consent-revoke:hover { color: var(--ik-petrol); }

@media ( max-width: 560px ) {
	.ik-consent__btn { flex: 1 1 100%; }
	.ik-consent__cat-text,
	.ik-consent__facts,
	.ik-consent__hint { margin-left: 0; }
	.ik-consent__facts { grid-template-columns: 1fr; }
}


/* =========================================================================
 * Filterpanel — abgestimmte Fassung
 * Ein Raster, eine Feldhöhe, eine Labelgröße. Startet geschlossen; geöffnet
 * liegen alle Felder oben ausgerichtet (align-items: start war die Ursache der
 * verschobenen Labels), die Aktionszeile sitzt unter einer Trennlinie.
 * ========================================================================= */

.ik-filter {
	display: block;
	padding: 0;
	background: var(--ik-paper);
	border: 1px solid var(--ik-line);
}

.ik-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem clamp( 1rem, 2vw, 1.5rem );
}

.ik-filter__label {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ik-grey-light);
}

.ik-filter .ik-filter__toggle {
	flex: 0 0 auto;
	width: auto;
	min-height: 42px;
	gap: 0.75rem;
	padding: 0.5rem 1.125rem;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--ik-line);
	color: var(--ik-petrol);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.ik-filter .ik-filter__toggle:hover { background: var(--ik-petrol); color: var(--ik-paper); box-shadow: inset 0 0 0 1px var(--ik-petrol); }

/* ---------- Raster ---------- */

.ik-filter__body {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	align-items: start;
	gap: 1.125rem 1.25rem;
	padding: 0 clamp( 1rem, 2vw, 1.5rem ) clamp( 1.25rem, 2vw, 1.5rem );
	border-top: 1px solid var(--ik-line);
	padding-top: clamp( 1.25rem, 2vw, 1.5rem );
}

@media ( min-width: 640px ) {
	.ik-filter__body { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
	.ik-filter-field--wide { grid-column: 1 / -1; }
}

@media ( min-width: 900px ) and ( max-width: 1119px ) {
	.ik-filter__body { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
	.ik-filter-field--wide { grid-column: 1 / -1; }
}

@media ( min-width: 1120px ) {
	.ik-filter__body { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); column-gap: 1.5rem; }
	.ik-filter-field--wide { grid-column: span 2; }
}

/* ---------- Felder ---------- */

.ik-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.4375rem;
	margin: 0;
	min-width: 0;
}

.ik-filter-field label {
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ik-grey-light);
}

.ik-filter-field input,
.ik-filter-field select {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	box-sizing: border-box;
	padding: 0.6875rem 0.875rem;
	border: 1px solid var(--ik-line);
	border-radius: 0;
	background: var(--ik-paper);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 300;
	color: var(--ik-petrol);
	transition: border-color 0.25s ease;
}

.ik-filter-field input::placeholder { color: #A9B0AE; font-weight: 300; }
.ik-filter-field input:hover,
.ik-filter-field select:hover { border-color: #C9C0B6; }
.ik-filter-field input:focus,
.ik-filter-field select:focus { border-color: var(--ik-terracotta); }

/* Eigener Pfeil statt Systemwidget — sonst bricht die Formsprache. */
.ik-filter-field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.5rem;
	background-image: url( "data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231B2A2E' stroke-width='1.2'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 0.9375rem center;
}

/* ---------- Aktionszeile ---------- */

.ik-filter-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin: 0.375rem 0 0;
	padding-top: 1.375rem;
	border-top: 1px solid var(--ik-line);
}

.ik-filter .ik-filter-actions button {
	min-height: 48px;
	padding: 0.875rem 1.75rem;
	background: var(--ik-terracotta);
	box-shadow: none;
	color: var(--ik-paper);
	font-size: 0.9375rem;
}

.ik-filter .ik-filter-actions button:hover { background: var(--ik-petrol); color: var(--ik-paper); }

.ik-filter-reset {
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--ik-grey);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ik-filter-reset:hover { color: var(--ik-petrol); }

.ik-result-count { margin: 1.5rem 0 0; font-size: 0.9375rem; color: var(--ik-grey); }

/* ---------- Randloses Grundraster (robust gegen Global-Styles) ----------
   Kopf-, Haupt- und Fußbereich laufen bis an den Rand; die seitlichen
   Abstände setzen die Sektionen selbst über das Root-Padding. Ohne diese
   Regeln addiert WordPress das Root-Padding zusätzlich auf die Wrapper und
   das gesamte Raster verschiebt sich. */

.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > main {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.wp-site-blocks > main > .alignfull,
.wp-site-blocks > main > .wp-block-group.alignfull,
.wp-site-blocks > main > .wp-block-group > .alignfull,
.wp-site-blocks > main .wp-block-post-content > .alignfull,
.wp-site-blocks > main .entry-content > .alignfull {
	box-sizing: border-box;
	padding-left: var(--wp--style--root--padding-left, clamp( 1.25rem, 4vw, 3rem ));
	padding-right: var(--wp--style--root--padding-right, clamp( 1.25rem, 4vw, 3rem ));
}

.wp-site-blocks > footer > .wp-block-group {
	max-width: none;
	padding-left: var(--wp--style--root--padding-left, clamp( 1.25rem, 4vw, 3rem ));
	padding-right: var(--wp--style--root--padding-right, clamp( 1.25rem, 4vw, 3rem ));
}

.wp-site-blocks > footer > .wp-block-group > .wp-block-columns,
.wp-site-blocks > footer > .wp-block-group > .wp-block-separator,
.wp-site-blocks > footer > .wp-block-group > .wp-block-group {
	max-width: 1824px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Hausverwaltung (Teaser Startseite) ---------- */

.ik-verwaltung {
	display: grid;
	gap: clamp( 2.5rem, 5vw, 5rem );
	align-items: start;
}

@media ( min-width: 1024px ) {
	.ik-verwaltung { grid-template-columns: minmax( 0, 0.9fr ) minmax( 0, 1.1fr ); }
}

.ik-verwaltung__intro { display: flex; flex-direction: column; gap: 1.5rem; }

.ik-verwaltung__title {
	margin: 0;
	font-size: clamp( 1.875rem, 3vw, 3rem );
	font-weight: 200;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--ik-petrol);
	text-wrap: pretty;
}

.ik-verwaltung__title strong { font-weight: 500; }

.ik-verwaltung__lead {
	margin: 0;
	max-width: 34em;
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.75;
	color: var(--ik-grey);
	text-wrap: pretty;
}

.ik-verwaltung__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--ik-line);
}

@media ( min-width: 640px ) {
	.ik-verwaltung__grid { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
}

.ik-verwaltung__item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 2.125rem 1.875rem 2.375rem;
	background: var(--ik-paper);
}

.ik-verwaltung__item h3 { margin: 0; font-size: 1.25rem; font-weight: 400; line-height: 1.25; color: var(--ik-petrol); }
.ik-verwaltung__item p { margin: 0; font-size: 0.9375rem; font-weight: 300; line-height: 1.7; color: var(--ik-grey); text-wrap: pretty; }

/* ---------- Ratgeber-Akkordeon ---------- */

.ik-accordion { display: flex; flex-direction: column; }

.ik-accordion__item {
	border-top: 1px solid var(--ik-line);
	background: transparent;
}

.ik-accordion__item:last-child { border-bottom: 1px solid var(--ik-line); }

.ik-accordion__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 0;
	font-size: clamp( 1.125rem, 1.6vw, 1.5rem );
	font-weight: 400;
	line-height: 1.3;
	color: var(--ik-petrol);
	cursor: pointer;
	list-style: none;
	min-height: 44px;
}

.ik-accordion__item > summary::-webkit-details-marker { display: none; }

.ik-accordion__sign {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	position: relative;
	color: var(--ik-terracotta);
}

.ik-accordion__sign::before,
.ik-accordion__sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1rem;
	height: 1px;
	background: currentColor;
	transform: translate( -50%, -50% );
	transition: transform 0.3s var(--ik-ease), opacity 0.3s var(--ik-ease);
}

.ik-accordion__sign::after { transform: translate( -50%, -50% ) rotate( 90deg ); }
.ik-accordion__item[open] .ik-accordion__sign::after { opacity: 0; transform: translate( -50%, -50% ) rotate( 0deg ); }

.ik-accordion__body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0 0 1.875rem;
	max-width: 52rem;
}

.ik-accordion__body p { margin: 0; font-size: 1.0625rem; font-weight: 300; line-height: 1.75; color: var(--ik-grey); text-wrap: pretty; }
.ik-accordion__item > summary:hover { color: var(--ik-terracotta); }

/* ---------- Regionenübersicht ---------- */

.ik-regionen {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: clamp( 1.5rem, 3vw, 3rem );
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ik-line);
}

@media ( min-width: 700px ) { .ik-regionen { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); } }
@media ( min-width: 1200px ) { .ik-regionen { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); } }

.ik-regionen > li { margin: 0; border-bottom: 1px solid var(--ik-line); }

.ik-regionen__item {
	display: grid;
	grid-template-columns: 2.5rem minmax( 0, 1fr ) auto;
	align-items: center;
	gap: 1rem;
	min-height: 64px;
	padding: 1.125rem 0.25rem;
	text-decoration: none;
	color: var(--ik-petrol);
	position: relative;
}

.ik-regionen__item::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 1px;
	width: 0;
	background: var(--ik-terracotta);
	transition: width 0.45s var(--ik-ease);
}

.ik-regionen__item:hover { text-decoration: none; }
.ik-regionen__item:hover::after,
.ik-regionen__item:focus-visible::after { width: 100%; }

.ik-regionen__num { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; color: var(--ik-terracotta); font-variant-numeric: tabular-nums; }
.ik-regionen__title { font-size: clamp( 1.0625rem, 1.3vw, 1.25rem ); font-weight: 300; line-height: 1.3; transition: transform 0.35s var(--ik-ease); }
.ik-regionen__item:hover .ik-regionen__title { transform: translateX( 4px ); }

.ik-regionen__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ik-line);
	color: var(--ik-petrol);
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ik-regionen__item:hover .ik-regionen__more { background: var(--ik-terracotta); border-color: var(--ik-terracotta); color: var(--ik-paper); }

/* ---------- Soziale Netzwerke ---------- */

.ik-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 2rem 0 0 !important;
	padding: 0;
	list-style: none;
}

.ik-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--ik-paper);
	border: 1px solid rgba( 251, 250, 248, 0.24 );
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ik-social a:hover {
	background: var(--ik-terracotta);
	border-color: var(--ik-terracotta);
	color: var(--ik-paper);
	text-decoration: none;
}

/* ---------- Startbild ---------- */

.ik-hero-poster--team { object-position: 50% 56%; }

@media ( max-width: 781px ) {
	.ik-hero-poster--team { object-position: 46% 50%; }
}

/* Lesbarkeit der Headline über dem Foto. */
.is-style-hero-video .ik-hero-scrim {
	background:
		linear-gradient( 90deg, rgba( 16, 28, 32, 0.78 ) 0%, rgba( 16, 28, 32, 0.52 ) 45%, rgba( 16, 28, 32, 0.18 ) 100% ),
		linear-gradient( 0deg, rgba( 16, 28, 32, 0.85 ) 0%, rgba( 16, 28, 32, 0 ) 40% );
}

@media ( max-width: 781px ) {
	.is-style-hero-video .ik-hero-scrim {
		background: linear-gradient( 0deg, rgba( 16, 28, 32, 0.9 ) 0%, rgba( 16, 28, 32, 0.6 ) 55%, rgba( 16, 28, 32, 0.35 ) 100% );
	}
}

/* ---------- Rechtsseiten: kompaktere Zwischenüberschriften ---------- */

.ik-legal .wp-block-post-content h2 {
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	font-size: clamp( 1.125rem, 1.4vw, 1.375rem );
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
}

.ik-legal .wp-block-post-content h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.35;
}

.ik-legal .wp-block-post-content > * { max-width: 52rem; margin-left: 0 !important; margin-right: auto !important; }
.ik-legal .wp-block-post-content p,
.ik-legal .wp-block-post-content li { overflow-wrap: anywhere; }

/* ---------- Mobil / geräteübergreifend ---------- */

html, body { overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* iOS zoomt bei Eingabefeldern unter 16px automatisch hinein. */
input, select, textarea { font-size: max( 16px, 1rem ); }

table { display: block; max-width: 100%; overflow-x: auto; }

@media ( max-width: 640px ) {
	:root { --ik-gutter: 1.25rem; }

	.wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons .wp-block-button__link { width: 100%; text-align: center; }

	.is-style-hero-video h1 { font-size: clamp( 2.125rem, 9vw, 2.75rem ); }
	.ik-stat { padding: 1.25rem 1rem 1.5rem; }
	.ik-stat__value { font-size: clamp( 1.75rem, 8vw, 2.25rem ); }
	.ik-stat__label { font-size: 0.6875rem; letter-spacing: 0.12em; }

	.ik-consent__box { max-height: 88svh; }
	.ik-social { justify-content: flex-start; }
	.ik-consent-footer { text-align: left; }
}

@media ( max-width: 380px ) {
	.ik-stats--four,
	.ik-stats--three { grid-template-columns: 1fr 1fr; }
	.ik-stat { padding: 1rem 0.75rem 1.25rem; }
}

/* Querformat auf Smartphones: Hero nicht höher als nötig. */
@media ( max-height: 500px ) and ( orientation: landscape ) {
	.is-style-hero-video { min-height: 0; }
}

/* ---------- Startbild Querformat ---------- */

.ik-hero-poster--team { object-position: 45% 15%; }
@media ( max-width: 781px ) { .ik-hero-poster--team { object-position: 38% 18%; } }

/* ---------- Filter: gleichmäßiges Raster ---------- */

.ik-filter-field { display: flex; flex-direction: column; justify-content: flex-start; gap: 0.5rem; margin: 0; }
.ik-filter-field label { margin: 0; line-height: 1.2; min-height: 0; }
.ik-filter-field br { display: none; }
.ik-filter__body,
.ik-filter { align-items: start; }
.ik-filter-actions { margin: 0; }

/* ---------- Bewertung: Formular als eigene Fläche ---------- */

.ik-form[data-lead-type="bewertung"] {
	padding: clamp( 1.75rem, 3.5vw, 3rem );
	background: var(--ik-sand);
	border: 0;
	border-top: 3px solid var(--ik-terracotta);
	box-shadow: 0 24px 60px rgba( 27, 42, 46, 0.12 );
}

.ik-form[data-lead-type="bewertung"] input,
.ik-form[data-lead-type="bewertung"] select,
.ik-form[data-lead-type="bewertung"] textarea { background-color: #fff; }

/* ---------- Social: schwebend ---------- */

.ik-social-float {
	position: fixed;
	right: clamp( 0.75rem, 1.6vw, 1.5rem );
	bottom: clamp( 0.75rem, 2vw, 1.5rem );
	z-index: 90;
	opacity: 0;
	visibility: hidden;
	transform: translateY( 12px );
	transition: opacity 0.35s ease, transform 0.35s var(--ik-ease), visibility 0s linear 0.35s;
}

.ik-social-float.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.ik-social-float__list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: rgba( 251, 250, 248, 0.14 );
	box-shadow: 0 10px 30px rgba( 16, 28, 32, 0.18 );
}

.ik-social-float__list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba( 27, 42, 46, 0.86 );
	color: rgba( 251, 250, 248, 0.82 );
	backdrop-filter: blur( 6px );
	-webkit-backdrop-filter: blur( 6px );
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ik-social-float__list a:hover,
.ik-social-float__list a:focus-visible { background: var(--ik-terracotta); color: var(--ik-paper); text-decoration: none; }
.ik-social-float__list svg { width: 15px; height: 15px; }

/* Mobil: über der Sticky-CTA-Leiste, etwas kleiner. */
@media ( max-width: 899px ) {
	.ik-social-float { bottom: 1rem; right: 0.625rem; }
	.ik-social-float__list a { width: 36px; height: 36px; }
	.single-immobilie .ik-social-float { bottom: 5.25rem; }
}

.ik-contact__wa { margin: 0.5rem 0 0; }
.ik-wa-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: inherit; font-weight: 500; }
.ik-wa-link svg { color: #0E7A3E; }

@media print { .ik-social-float { display: none; } }


/* ---------- Eigentümerportal ---------- */

.ik-portal { display: grid; grid-template-columns: minmax( 0, 1fr ); gap: 2.5rem; align-items: center; }
.ik-portal__text { display: flex; flex-direction: column; gap: 1.25rem; max-width: 46rem; }
.ik-portal__text > * { margin: 0; }
.ik-portal__actions { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 0.5rem; }
.ik-portal__media { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; }
.ik-portal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media ( min-width: 900px ) {
	.ik-portal { grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1.1fr ); gap: 5rem; }
	.ik-portal--text { grid-template-columns: minmax( 0, 1fr ); }
}

/* ---------- Leistungsseiten: Foto als Hero-Hintergrund ---------- */

.ik-lp-hero--photo { min-height: max( 760px, 100svh ); }
.ik-lp-hero--photo .ik-hero-scrim { z-index: 1; }
.ik-lp-hero--photo .ik-hero-scrim {
	background:
		linear-gradient( 90deg, rgba( 16, 28, 32, 0.78 ) 0%, rgba( 16, 28, 32, 0.5 ) 45%, rgba( 16, 28, 32, 0.15 ) 100% ),
		linear-gradient( 0deg, rgba( 16, 28, 32, 0.7 ) 0%, rgba( 16, 28, 32, 0 ) 45% );
}
@media ( max-width: 781px ) {
	.ik-lp-hero--photo { min-height: max( 620px, 100svh ); }
	.ik-lp-hero--photo .ik-hero-scrim { background: linear-gradient( 0deg, rgba( 16, 28, 32, 0.9 ) 0%, rgba( 16, 28, 32, 0.6 ) 55%, rgba( 16, 28, 32, 0.35 ) 100% ); }
}
@media ( max-height: 500px ) and ( orientation: landscape ) { .ik-lp-hero--photo { min-height: 0; } }

/* ---------- Seitlicher Mindestabstand (alle Seiten) ----------
   Fester Randabstand unabhängig vom Root-Padding der Global Styles
   (dort ggf. auf 0 gesetzt). Hintergründe bleiben randlos. */

.wp-site-blocks > main > .alignfull,
.wp-site-blocks > main > .wp-block-group > .alignfull,
.wp-site-blocks > main .wp-block-post-content > .alignfull,
.wp-site-blocks > main .entry-content > .alignfull,
.wp-site-blocks > footer > .wp-block-group {
	padding-left: var(--ik-gutter) !important;
	padding-right: var(--ik-gutter) !important;
	box-sizing: border-box;
}
/* WordPress zieht randlose Sektionen per negativem Rand um das Root-Padding
   nach außen; da Kopf/Haupt/Fuß selbst kein Polster haben, schob das die
   Inhalte bis an den Bildschirmrand. */
.wp-site-blocks > main.has-global-padding > .alignfull,
.wp-site-blocks > main > .alignfull,
.wp-site-blocks > main > .wp-block-group > .alignfull,
.wp-site-blocks > main .wp-block-post-content > .alignfull,
.wp-site-blocks > main .entry-content > .alignfull,
.wp-site-blocks > footer > .wp-block-group,
.wp-site-blocks > header > .alignfull {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: auto;
	max-width: none;
}
.wp-site-blocks > main > .wp-block-group.alignfull:has( > .alignfull ) { padding-left: 0 !important; padding-right: 0 !important; }

/* ---------- Seiteneinzug: Objekte, Regionen, Exposé, Standardseiten ----------
   Gruppen direkt im Hauptbereich (ohne „volle Breite") und die Breadcrumb-
   Leiste bekommen denselben Randabstand wie die übrigen Sektionen. */

.wp-site-blocks > .wp-block-group:not( header ):not( footer ):not( main ),
.wp-site-blocks > main > .wp-block-group:not( .alignfull ) {
	padding-left: var(--ik-gutter) !important;
	padding-right: var(--ik-gutter) !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	box-sizing: border-box;
}

/* ---------- Exposé: Provision, Textabschnitte ---------- */

.ik-provision { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; font-size: 0.9375rem; color: var(--ik-grey, #5E6B70); }
.ik-provision__line { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ik-provision__line strong { font-weight: 500; color: var(--ik-petrol); }
.ik-provision__note { font-size: 0.8125rem; line-height: 1.6; }
.ik-provision__note p { margin: 0; }
.ik-expose-section { display: flex; flex-direction: column; gap: 1rem; }
.ik-expose-section > h2 { margin: 0; }
.ik-expose-text { color: var(--ik-grey, #5E6B70); line-height: 1.75; }
.ik-expose-text p { margin: 0 0 1em; }
.ik-tags { margin: 0; color: var(--ik-grey, #5E6B70); }

/* ---------- Abgeschlossene Objekte: nur Vorschau ---------- */

.ik-card--closed { cursor: default; }
.ik-card--closed:hover { transform: none; }
.ik-card--closed .ik-card__media img { filter: grayscale( 0.35 ); }
.ik-card--closed:hover .ik-card__media img { transform: none; }

/* ---------- Formulare kompakt ----------
   WordPress fügt in Shortcode-Ausgaben teils leere Absätze und Zeilenumbrüche
   ein; die erzeugten sichtbar große Lücken zwischen den Feldern. */

.ik-form br,
.ik-form p:empty { display: none !important; }
.ik-form > *,
.ik-form__grid > *,
.ik-form__field > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.ik-form { gap: 1rem; }
.ik-form__grid { gap: 0.75rem 1rem; }
.ik-form__field { gap: 0.3rem; }
.ik-form__help { margin: 0; line-height: 1.4; }
.ik-form textarea { min-height: 110px; }
.ik-form__consent { font-size: 0.8125rem; }
.ik-form__consent label { gap: 0.6rem; line-height: 1.5; }
.ik-form__consent input { margin-top: 0.15rem; }

/* ---------- Startseite mobil/Tablet: Inhalt und Kennzahlen untereinander (2.17.3) ---------- */
@media ( max-width: 1023px ) {
	.is-style-hero-video { flex-direction: column; justify-content: flex-end; align-items: stretch; }
	.is-style-hero-video > :not( .ik-hero-media ) { width: 100%; min-width: 0; margin-left: 0 !important; margin-right: 0 !important; }
	.is-style-hero-video .ik-stats { margin-top: 0; }
	.is-style-hero-video .ik-stat { min-width: 0; }
}
@media ( max-width: 640px ) {
	.is-style-hero-video .ik-eyebrow-rule { align-items: flex-start; gap: 0.75rem; font-size: 0.625rem; letter-spacing: 0.22em; line-height: 1.7; text-align: left; }
	.is-style-hero-video .ik-eyebrow-rule span { width: 24px; margin-top: 0.55em; }
	.is-style-hero-video .ik-stat__label { letter-spacing: 0.1em; font-size: 0.6875rem; }
	.is-style-hero-video .ik-stat:nth-child( 3 ) { grid-column: 1 / -1; }
}

/* Provision auf Objektkarten (2.20.0) */
.ik-card__price { margin-bottom: 0; }
.ik-card__provision { margin: 0.25rem 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ik-muted, #5b6568); }
.ik-card__price + .ik-card__provision { margin-top: 0.3rem; }
.ik-price-block + .ik-card__provision { margin-top: 0.3rem; }

/* Einwilligung Formulare (2.22.1) */
.ik-form .ik-form__consent { display: grid !important; grid-template-columns: 20px minmax( 0, 1fr ); gap: 0.65rem; align-items: start; margin: 0; }
.ik-form .ik-form__consent input { width: 20px; height: 20px; margin: 0.1rem 0 0 !important; accent-color: var(--ik-terracotta); }
.ik-form .ik-form__consent-text { display: block !important; visibility: visible !important; opacity: 1 !important; font-size: 0.8125rem !important; line-height: 1.5; letter-spacing: 0 !important; text-transform: none !important; color: var(--ik-grey, #5b6568); cursor: pointer; }
.ik-form .ik-form__consent-text a { color: var(--ik-petrol); text-decoration: underline; }
.ik-form .ik-form__error { margin: 0; font-size: 0.8125rem; color: #A6301F; }

/* Erfolgsmeldung Formulare (2.22.2) — auch auf dunklen Flächen gut lesbar */
.ik-form .ik-form__success { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--ik-terracotta); background: #F1ECE4; color: var(--ik-petrol) !important; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.ik-form .ik-form__success:focus { outline: 2px solid var(--ik-terracotta); outline-offset: 2px; }

/* Startseite mobil: drei Kennzahlen nebeneinander (2.23.0) */
@media ( max-width: 781px ) {
	.is-style-hero-video .ik-stats { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
	.is-style-hero-video .ik-stat,
	.is-style-hero-video .ik-stat:nth-child( 3 ) { grid-column: auto; border-top: 0; border-left: 1px solid rgba( 251, 250, 248, 0.18 ); padding: 1.125rem 0.625rem 1.25rem; }
	.is-style-hero-video .ik-stat:first-child { border-left: 0; padding-left: 0; }
	.is-style-hero-video .ik-stat__value { font-size: clamp( 1.5rem, 7vw, 2rem ); }
	.is-style-hero-video .ik-stat__label { font-size: 0.5625rem; letter-spacing: 0.08em; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
}

/* Unterseiten mobil: drei Kennzahlen im Hero nebeneinander wie auf der Startseite (2.23.4) */
@media ( max-width: 781px ) {
	.ik-lp-hero .ik-stats { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
	.ik-lp-hero .ik-stat { min-width: 0; grid-column: auto; border-top: 0; border-left: 1px solid rgba( 251, 250, 248, 0.18 ); padding: 1.125rem 0.625rem 1.25rem; }
	.ik-lp-hero .ik-stat:first-child { border-left: 0; padding-left: 0; }
	.ik-lp-hero .ik-stat:last-child { padding-right: 0; }
	.ik-lp-hero .ik-stat__value { font-size: clamp( 1.125rem, 5.4vw, 1.625rem ); overflow-wrap: anywhere; hyphens: auto; }
	.ik-lp-hero .ik-stat__label { font-size: 0.5625rem; letter-spacing: 0.08em; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; white-space: normal; }
}

/* Startseite: Regionen-Zeile (2.23.1) */
.ik-region-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; padding: 0.875rem 0; border-top: 1px solid var(--ik-line); border-bottom: 1px solid var(--ik-line); font-size: 0.875rem; color: var(--ik-grey); }
.ik-region-line__label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ik-grey-light); }
.ik-region-line a { color: var(--ik-grey); text-decoration: none; }
.ik-region-line a:hover, .ik-region-line a:focus-visible { color: var(--ik-terracotta); text-decoration: underline; }
@media ( max-width: 640px ) {
	.ik-region-line { justify-content: flex-start; gap: 0.375rem 1.25rem; }
	.ik-region-line__label { flex-basis: 100%; }
}

/* Regionen-Übersicht: Abstand zwischen Einleitung und Liste (2.23.2) */
.post-type-archive-standort .ik-regionen { margin-top: clamp( 1.75rem, 3vw, 2.75rem ); }
