/**
 * Primus Startseite – Premium Design System (Theme 0.1.39+)
 * Nur auf is_front_page() geladen.
 *
 * Surfaces: clean | mist | warm | deep | image
 * Elevation: 0–3 | Cards | CTA | Motion
 */

/* === Tokens (Startseite + später übertragbar) === */
body.home {
	--primus-blue: var(--wp--preset--color--primus-blue, #1656a6);
	--primus-blue-deep: #0f3f7c;
	--primus-gold: var(--wp--preset--color--primus-gold, #c9a227);
	--primus-soft-blue: #e8f1fa;
	--primus-warm-white: #fbf7ef;
	--primus-mist-mid: #f3f7fb;
	--primus-card-border: rgba(22, 86, 166, 0.12);
	--primus-radius-card: 14px;
	--primus-radius-lg: 18px;
	--primus-shadow-1: 0 6px 18px rgba(22, 86, 166, 0.06);
	--primus-shadow-2: 0 12px 28px rgba(22, 86, 166, 0.1);
	--primus-shadow-3: 0 16px 40px rgba(22, 86, 166, 0.16);
	--primus-lift: -3px;
	--primus-motion-fast: 180ms ease;
	--primus-motion-normal: 240ms ease;
	--primus-section-pad-y: clamp(3.5rem, 5.2vw, 5.5rem);
}

/* Surface utilities (wiederverwendbar) */
.primus-surface--clean {
	background-color: #fff;
	background-image: none;
}

.primus-surface--mist {
	background-color: #fff;
	background-image:
		radial-gradient(ellipse 70% 55% at 10% 20%, rgba(232, 241, 250, 0.95) 0%, rgba(232, 241, 250, 0) 70%),
		radial-gradient(ellipse 55% 50% at 92% 30%, rgba(220, 234, 247, 0.65) 0%, rgba(220, 234, 247, 0) 68%),
		radial-gradient(ellipse 60% 40% at 50% 100%, rgba(236, 243, 250, 0.8) 0%, rgba(236, 243, 250, 0) 70%),
		linear-gradient(180deg, #ffffff 0%, #f5f8fc 45%, #ffffff 100%);
}

.primus-surface--warm {
	background-color: #fffefb;
	background-image:
		radial-gradient(ellipse 65% 50% at 15% 15%, rgba(251, 244, 228, 0.9) 0%, rgba(251, 244, 228, 0) 68%),
		radial-gradient(ellipse 50% 45% at 88% 70%, rgba(247, 238, 214, 0.45) 0%, rgba(247, 238, 214, 0) 70%),
		linear-gradient(180deg, #fffefb 0%, #fbf7ef 50%, #ffffff 100%);
}

/* === Section rhythm (Startseite) === */

/* Hero bleibt IMAGE – nur weicher Anschluss */
body.home .wp-block-primus-hero-reveal.hero-section {
	box-shadow: inset 0 -28px 40px -28px rgba(22, 86, 166, 0.08);
}

/* Vertrauen: Warm Light Trust-Zone */
body.home #vertrauen.trust-section {
	background-color: transparent !important;
	background-image:
		radial-gradient(ellipse 70% 60% at 20% 0%, rgba(251, 244, 228, 0.85) 0%, transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #fbf8f0 55%, #ffffff 100%);
	border-bottom: none;
	padding-block: clamp(1.75rem, 3vw, 2.5rem) !important;
}

body.home #vertrauen .trust-section__grid {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(201, 162, 39, 0.22);
	border-radius: var(--primus-radius-card);
	box-shadow: var(--primus-shadow-1);
	backdrop-filter: blur(4px);
}

body.home #vertrauen .trust-section__item {
	border-top: none;
	padding-top: 0.35rem;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
}

body.home #vertrauen .trust-section__item::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--primus-gold), rgba(201, 162, 39, 0.15));
}

body.home #vertrauen .trust-section__item p {
	color: var(--primus-blue);
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.35;
}

/* Jubiläum: Warm Light + stärkere Panel-Präsenz */
body.home #jubilaeum.anniversary-section {
	background:
		radial-gradient(ellipse 60% 50% at 80% 20%, rgba(251, 244, 228, 0.7) 0%, transparent 65%),
		linear-gradient(180deg, rgba(22, 86, 166, 0.025), transparent 50%),
		linear-gradient(180deg, #fbf8f0 0%, #f4f6f8 100%) !important;
	padding-block: clamp(2rem, 3.5vw, 3rem);
}

body.home #jubilaeum .anniversary-panel {
	border-radius: var(--primus-radius-lg);
	border-color: rgba(201, 162, 39, 0.22);
	box-shadow: var(--primus-shadow-2);
	background:
		radial-gradient(circle at 8% 12%, rgba(255, 252, 245, 0.95) 0%, transparent 40%),
		#fff;
}

body.home #jubilaeum .anniversary-panel__years {
	color: var(--primus-gold);
	letter-spacing: 0.12em;
}

/* Google Reviews: Soft Mist – Daten/Logik unverändert, nur Fläche/Elevation */
body.home #google-bewertungen.primus-gr {
	background-color: transparent;
	background-image:
		radial-gradient(ellipse 65% 55% at 12% 10%, rgba(232, 241, 250, 0.9) 0%, transparent 68%),
		radial-gradient(ellipse 50% 45% at 90% 80%, rgba(220, 234, 247, 0.55) 0%, transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #f4f8fc 48%, #ffffff 100%);
	padding-top: var(--primus-section-pad-y);
	padding-bottom: var(--primus-section-pad-y);
}

body.home #google-bewertungen .primus-gr__summary {
	box-shadow: var(--primus-shadow-1);
	border-radius: 12px;
}

body.home #google-bewertungen .primus-gr__slide.is-active .primus-gr__card,
body.home #google-bewertungen .primus-gr__card {
	border-radius: 12px;
	box-shadow: var(--primus-shadow-1);
	border: 1px solid var(--primus-card-border);
}

body.home #google-bewertungen .primus-gr__aside-card {
	border-radius: 12px;
	box-shadow: var(--primus-shadow-1);
}

body.home #google-bewertungen .primus-gr__transparency {
	border-radius: 12px;
	border: 1px solid rgba(22, 86, 166, 0.1);
	background: rgba(255, 255, 255, 0.72);
	padding: 1.15rem 1.25rem;
}

/* Leistungen: Clean White + Premium Feature Cards */
body.home #leistungen.services-section {
	background-color: #fff !important;
	background-image:
		radial-gradient(ellipse 55% 40% at 50% 0%, rgba(238, 242, 246, 0.65) 0%, transparent 70%),
		linear-gradient(180deg, #f8fafc 0%, #ffffff 28%, #ffffff 100%);
}

body.home #leistungen .wp-block-heading.has-x-large-font-size {
	color: var(--primus-blue);
}

body.home #leistungen .services-section__grid > .service-card,
body.home #leistungen .primus-home-services > .service-card {
	position: relative;
	border-radius: var(--primus-radius-card) !important;
	border-color: var(--primus-card-border) !important;
	border-top: 3px solid var(--primus-blue) !important;
	box-shadow: var(--primus-shadow-1);
	padding-top: 1.35rem !important;
	transition:
		transform var(--primus-motion-fast),
		box-shadow var(--primus-motion-fast),
		border-color var(--primus-motion-fast);
}

/* Erste Reihe: etwas stärkere Primärgewichtung (ohne neue Inhalte) */
body.home #leistungen .primus-home-services > .service-card:nth-child(-n + 2) {
	box-shadow: var(--primus-shadow-2);
	background:
		radial-gradient(circle at 100% 0%, rgba(232, 241, 250, 0.55) 0%, transparent 45%),
		#fff !important;
}

body.home #leistungen .primus-home-services > .service-card:nth-child(-n + 2) .primus-home-service-icon {
	width: 56px !important;
	height: 56px;
	background-color: rgba(22, 86, 166, 0.11);
}

body.home #leistungen .service-card__link a {
	color: var(--primus-blue);
	font-weight: 600;
	text-decoration: none;
	gap: 0.35rem;
}

body.home #leistungen .service-card__link a::after {
	content: "→";
	display: inline-block;
	transition: transform var(--primus-motion-fast);
}

@media (hover: hover) and (pointer: fine) {
	body.home #leistungen .service-card:has(a):hover {
		transform: translateY(var(--primus-lift));
		box-shadow: var(--primus-shadow-2);
		border-color: rgba(22, 86, 166, 0.22) !important;
	}

	body.home #leistungen .service-card:has(a):hover .service-card__link a::after {
		transform: translateX(4px);
	}

	body.home #leistungen .service-card:has(a):hover .primus-home-service-icon {
		background-color: rgba(22, 86, 166, 0.12);
		transform: translateY(-1px);
	}
}

body.home #leistungen .service-card:focus-within {
	box-shadow: var(--primus-shadow-2), var(--primus-card-focus-ring, 0 0 0 2px rgba(201, 162, 39, 0.45));
}

body.home #leistungen .primus-home-service-icon {
	width: 52px !important;
	height: 52px;
	border-radius: 50%;
	background-color: rgba(22, 86, 166, 0.08);
	border: 1px solid rgba(22, 86, 166, 0.12);
}

/* Section eyebrows (sichtbar, semantisch im Markup) */
body.home .primus-section-eyebrow {
	margin: 0 0 0.45rem;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primus-gold);
}

/* Service-Center: nur Rhythmus/Spacing zum Gesamtsystem */
body.home #service.primus-sc {
	padding-top: var(--primus-section-pad-y);
	padding-bottom: var(--primus-section-pad-y);
}

/* Schadenbegleitung: Soft Mist */
body.home #schadenbegleitung.claims-section {
	background-color: transparent !important;
	background-image:
		radial-gradient(ellipse 60% 50% at 85% 20%, rgba(232, 241, 250, 0.75) 0%, transparent 68%),
		linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

body.home #schadenbegleitung .claims-section__panel {
	border-radius: var(--primus-radius-card);
	box-shadow: var(--primus-shadow-1);
	border: 1px solid var(--primus-card-border);
	border-left: 4px solid var(--primus-blue) !important;
	background: #fff;
}

/* Für Unternehmen: Deep Blue – leichte Tiefenstruktur */
body.home #fuer-unternehmen.business-section {
	background:
		radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 42%),
		radial-gradient(circle at 88% 80%, rgba(0, 0, 0, 0.12) 0%, transparent 45%),
		linear-gradient(135deg, var(--primus-blue-deep) 0%, var(--primus-blue) 52%, #1a63bc 100%) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.home #fuer-unternehmen .business-section__photo img,
body.home #fuer-unternehmen .primus-home-business-media__figure img {
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Geschichte: Warm Light */
body.home #geschichte.primus-home-history {
	background-color: transparent !important;
	background-image:
		radial-gradient(ellipse 55% 45% at 10% 30%, rgba(251, 244, 228, 0.7) 0%, transparent 68%),
		linear-gradient(180deg, #fffefb 0%, #f7f4ec 55%, #ffffff 100%);
}

body.home #geschichte .primus-home-history__points {
	border-radius: var(--primus-radius-card);
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(201, 162, 39, 0.18);
	box-shadow: var(--primus-shadow-1);
	padding: 1.25rem 1.35rem;
}

/* Standorte: Mist + Premium Location Cards */
body.home #standorte.locations-section {
	background-color: #fff;
	background-image:
		radial-gradient(ellipse 60% 50% at 20% 10%, rgba(232, 241, 250, 0.85) 0%, transparent 70%),
		linear-gradient(180deg, #f7fafd 0%, #ffffff 40%, #ffffff 100%);
}

body.home #standorte .location-card {
	border-radius: var(--primus-radius-card) !important;
	border: 1px solid var(--primus-card-border) !important;
	box-shadow: var(--primus-shadow-1);
	overflow: hidden;
	transition:
		transform var(--primus-motion-fast),
		box-shadow var(--primus-motion-fast);
}

body.home #standorte .location-card--primary {
	border-top: 3px solid var(--primus-blue) !important;
}

body.home #standorte .location-card--service,
body.home #standorte .wp-block-column:last-child .location-card {
	border-top: 3px solid var(--primus-gold) !important;
	border-left: 1px solid var(--primus-card-border) !important;
	background:
		linear-gradient(160deg, #fbf8f0 0%, #ffffff 70%) !important;
}

@media (hover: hover) and (pointer: fine) {
	body.home #standorte .location-card:hover {
		transform: translateY(-2px);
		box-shadow: var(--primus-shadow-2);
	}

	body.home #standorte .location-card__photo img {
		transition: transform var(--primus-motion-normal);
	}

	body.home #standorte .location-card:hover .location-card__photo img {
		transform: scale(1.015);
	}
}

body.home #standorte .location-card .wp-block-button .wp-element-button,
body.home #standorte .location-card a.wp-block-button__link {
	min-height: 44px;
	border-radius: 10px;
}

/* Kontakt: Deep Blue – hochwertiger Abschluss */
body.home #kontakt.contact-section {
	background:
		radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
		radial-gradient(circle at 90% 75%, rgba(0, 0, 0, 0.14) 0%, transparent 45%),
		linear-gradient(135deg, var(--primus-blue-deep) 0%, var(--primus-blue) 50%, #1a63bc 100%) !important;
}

body.home #kontakt .primus-home-contact__panel,
body.home #kontakt .contact-section__panel {
	border-radius: var(--primus-radius-lg);
	box-shadow: var(--primus-shadow-3);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(6px);
}

body.home #kontakt .wp-block-button.is-style-fill .wp-element-button,
body.home #kontakt .wp-element-button {
	min-height: 48px;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	transition:
		transform var(--primus-motion-fast),
		box-shadow var(--primus-motion-fast);
}

@media (hover: hover) and (pointer: fine) {
	body.home #kontakt .wp-element-button:hover {
		transform: translateY(-1px);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	}
}

/* Section intro: Leistungen – Eyebrow kommt aus dem Pattern-Markup */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	body.home #leistungen .service-card,
	body.home #leistungen .service-card__link a::after,
	body.home #leistungen .primus-home-service-icon,
	body.home #standorte .location-card,
	body.home #standorte .location-card__photo img,
	body.home #kontakt .wp-element-button {
		transition: none !important;
	}

	body.home #leistungen .service-card:has(a):hover,
	body.home #standorte .location-card:hover,
	body.home #kontakt .wp-element-button:hover {
		transform: none;
	}

	body.home #standorte .location-card:hover .location-card__photo img {
		transform: none;
	}
}

/* Mobile: etwas kompakter, Overflow vermeiden */
@media (max-width: 768px) {
	body.home {
		--primus-section-pad-y: clamp(2.75rem, 8vw, 3.75rem);
	}

	body.home #vertrauen .trust-section__grid {
		padding: 1rem;
	}

	body.home #leistungen .services-section__grid > .service-card {
		border-top-width: 3px !important;
	}
}

/* ==================================================================
   Finishing-Pass 0.1.40
   ================================================================== */

/* Reviews: zusammenhängendes Modul */
body.home #google-bewertungen {
	padding-top: clamp(2.75rem, 4vw, 4rem);
	padding-bottom: clamp(2.75rem, 4vw, 4rem);
}

body.home #google-bewertungen .primus-gr__header {
	margin-bottom: 1rem;
}

body.home #google-bewertungen .primus-gr__module {
	padding: 1.15rem 1.2rem 1.25rem;
	border: 1px solid rgba(22, 86, 166, 0.1);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: var(--primus-shadow-1);
}

body.home #google-bewertungen .primus-gr__summary {
	margin-bottom: 1rem;
	background: #f4f7fb;
}

body.home #google-bewertungen .primus-gr__transparency,
body.home #google-bewertungen .primus-gr__disclosure {
	margin-top: 0.85rem;
}

body.home #google-bewertungen .primus-gr__closing {
	margin-top: 0.85rem;
	padding-top: 0.95rem;
}

/* Leistungen: Clean + 2 Primär / 6 Sekundär */
body.home #leistungen.services-section {
	background-color: #fff !important;
	background-image: linear-gradient(180deg, #fafbfc 0%, #ffffff 18%, #ffffff 100%);
}

body.home #leistungen .services-section__primary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
	margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
	body.home #leistungen .services-section__primary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.35rem;
	}
}

body.home #leistungen .service-card--primary {
	min-height: 100%;
	padding: 1.65rem 1.5rem 1.4rem !important;
	border-radius: 16px !important;
	border: 1px solid rgba(22, 86, 166, 0.14) !important;
	border-top: 3px solid var(--primus-blue) !important;
	box-shadow: var(--primus-shadow-2);
	background:
		radial-gradient(circle at 100% 0%, rgba(232, 241, 250, 0.7) 0%, transparent 48%),
		linear-gradient(160deg, #f7fafd 0%, #ffffff 55%) !important;
}

body.home #leistungen .service-card--primary .service-card__title {
	font-size: clamp(1.2rem, 2vw, 1.4rem) !important;
	min-height: 0 !important;
	display: block !important;
}

body.home #leistungen .service-card--primary .service-card__text {
	font-size: 1.02rem;
	line-height: 1.5;
	flex: 1 1 auto;
}

body.home #leistungen .primus-home-service-icon--lg {
	width: 64px !important;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(145deg, #2a6fbf 0%, var(--primus-blue) 100%);
	color: #fff !important;
	border: none;
	box-shadow: 0 10px 22px rgba(22, 86, 166, 0.22);
}

body.home #leistungen .primus-home-service-icon--lg svg {
	width: 28px;
	height: 28px;
}

body.home #leistungen .services-section__secondary.primus-home-services {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	body.home #leistungen .services-section__secondary.primus-home-services {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 1100px) {
	body.home #leistungen .services-section__secondary.primus-home-services {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.home #leistungen .service-card--secondary {
	padding: 1.15rem 1.1rem 1rem !important;
	border-top-width: 2px !important;
	box-shadow: var(--primus-shadow-1);
}

body.home #leistungen .service-card--secondary .service-card__title {
	font-size: clamp(0.95rem, 1.5vw, 1.05rem) !important;
	min-height: calc(2 * 1.25em);
}

/* Remove old nth-child primary boost (replaced by explicit primary cards) */
body.home #leistungen .primus-home-services > .service-card:nth-child(-n + 2) {
	box-shadow: var(--primus-shadow-1);
	background: #fff !important;
}

body.home #leistungen .primus-home-services > .service-card:nth-child(-n + 2) .primus-home-service-icon {
	width: 52px !important;
	height: 52px;
	background-color: rgba(22, 86, 166, 0.08);
}

body.home #leistungen .services-section__footer-cta {
	margin-top: 0.35rem;
	width: 100%;
	justify-content: center;
}

body.home #leistungen .services-section__footer-cta .wp-element-button {
	min-height: 48px;
	border-radius: 10px;
	padding-inline: 1.5rem;
}

/* Service nach Clean-Leistungen: Mist bleibt klar differenziert */
body.home #service.primus-sc {
	margin-top: 0;
}

/* Schadenprozess */
body.home #schadenbegleitung .claims-section__inner {
	align-items: stretch;
	gap: 1.75rem;
}

body.home #schadenbegleitung .claims-section__copy {
	flex: 1 1 38%;
	max-width: 26rem;
}

body.home #schadenbegleitung .claims-section__panel {
	flex: 1 1 55%;
	max-width: none;
	min-width: min(100%, 20rem);
	padding: 1.5rem 1.45rem !important;
	border-radius: 16px;
	border: 1px solid rgba(22, 86, 166, 0.12);
	border-left: 4px solid var(--primus-blue) !important;
	box-shadow: var(--primus-shadow-2);
}

body.home .claims-section__process {
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

body.home .claims-section__process-step {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	position: relative;
	padding-bottom: 1.25rem;
}

body.home .claims-section__process-step:last-child {
	padding-bottom: 0;
}

body.home .claims-section__process-step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 1.15rem;
	top: 2.5rem;
	bottom: 0.15rem;
	width: 2px;
	background: linear-gradient(180deg, rgba(201, 162, 39, 0.75), rgba(22, 86, 166, 0.18));
}

body.home .claims-section__process-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	background: linear-gradient(145deg, #1a63bc 0%, var(--primus-blue) 100%);
	color: #fff;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	box-shadow: 0 6px 14px rgba(22, 86, 166, 0.22);
	position: relative;
	z-index: 1;
}

body.home .claims-section__process-body {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.65rem 0.85rem;
	border-radius: 12px;
	background: #f7fafd;
	border: 1px solid rgba(22, 86, 166, 0.08);
}

body.home .claims-section__process-icon {
	flex: 0 0 auto;
	color: var(--primus-blue);
	margin-top: 0.1rem;
}

body.home .claims-section__process-text {
	font-size: 1rem;
	line-height: 1.45;
	color: var(--primus-ink, #333);
	font-weight: 600;
}

/* Unternehmen: Bild stärker integriert */
body.home #fuer-unternehmen .primus-home-business-media__figure .business-section__photo,
body.home #fuer-unternehmen .primus-home-business-media__figure img {
	border-radius: 16px;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.home #fuer-unternehmen .primus-home-business-media__figure {
	position: relative;
}

body.home #fuer-unternehmen .primus-home-business-media__figure::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 28%;
	border-radius: 0 0 16px 16px;
	pointer-events: none;
	background: linear-gradient(180deg, transparent, rgba(15, 63, 124, 0.35));
}

/* Geschichte: Timeline */
body.home #geschichte .primus-home-history__timeline {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0 0.35rem 0.35rem;
	flex: 1 1 320px;
	max-width: 380px;
	position: relative;
}

body.home #geschichte .primus-home-history__timeline::before {
	content: "";
	position: absolute;
	left: 0.95rem;
	top: 0.75rem;
	bottom: 0.75rem;
	width: 2px;
	background: linear-gradient(180deg, var(--primus-gold), rgba(22, 86, 166, 0.25));
}

body.home #geschichte .primus-home-history__timeline-item {
	display: grid;
	grid-template-columns: 1.9rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	margin: 0 0 0.95rem;
	position: relative;
}

body.home #geschichte .primus-home-history__timeline-item:last-child {
	margin-bottom: 0;
}

body.home #geschichte .primus-home-history__timeline-marker {
	width: 0.95rem;
	height: 0.95rem;
	margin-top: 0.95rem;
	margin-left: 0.48rem;
	border-radius: 50%;
	background: var(--primus-gold);
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
	position: relative;
	z-index: 1;
}

body.home #geschichte .primus-home-history__timeline-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.95rem 1rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(201, 162, 39, 0.2);
	box-shadow: var(--primus-shadow-1);
}

body.home #geschichte .primus-home-history__timeline-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(22, 86, 166, 0.08);
	color: var(--primus-blue);
}

body.home #geschichte .primus-home-history__timeline-text {
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 700;
	font-size: 1rem;
	color: var(--primus-blue);
	line-height: 1.35;
}

/* Standorte vereinheitlichen */
body.home #standorte .location-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0 0 1.15rem !important;
	overflow: hidden;
}

body.home #standorte .location-card__photo,
body.home #standorte .location-card .wp-block-image.location-card__photo {
	margin: 0 0 0.85rem !important;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0;
}

body.home #standorte .location-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

body.home #standorte .location-card--service .location-card__photo img {
	object-position: center 30%;
}

body.home #standorte .location-card > *:not(.location-card__photo):not(.wp-block-image) {
	padding-left: 1.15rem;
	padding-right: 1.15rem;
}

body.home #standorte .location-card .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto !important;
	padding-top: 0.5rem;
}

body.home #standorte .location-card .wp-block-button:first-child .wp-element-button {
	background: var(--primus-blue);
	color: #fff;
	border-color: var(--primus-blue);
}

body.home #standorte .location-card .wp-block-button.is-style-outline:nth-of-type(2) .wp-element-button,
body.home #standorte .location-card .wp-block-buttons > .wp-block-button:nth-child(2) .wp-element-button {
	border-width: 1.5px;
}

body.home #standorte .location-card .wp-block-buttons > .wp-block-button:nth-child(3) .wp-element-button {
	background: transparent;
	border-color: transparent;
	color: var(--primus-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	box-shadow: none;
	min-height: 44px;
	padding-inline: 0.35rem;
}

body.home #standorte .location-module__digital-note {
	margin-top: 1.35rem;
	padding: 0.95rem 1.15rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(22, 86, 166, 0.12);
	box-shadow: var(--primus-shadow-1);
	text-align: center;
	font-size: 0.98rem;
}

/* Kontakt vs Footer */
body.home #kontakt.contact-section {
	padding-bottom: clamp(3rem, 4.5vw, 4.25rem);
	margin-bottom: 0;
	background:
		radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
		linear-gradient(145deg, #1a63bc 0%, #1656a6 48%, #134f98 100%) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.home #kontakt .primus-home-contact__panel {
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

body.home .site-footer,
body.home footer.site-footer,
body.home footer.site-footer.has-primus-blue-background-color,
body.home .site-footer.has-primus-blue-background-color {
	background: #0b2f5c !important;
	background-color: #0b2f5c !important;
	border-top: 3px solid rgba(201, 162, 39, 0.45);
}

/* Situationseinstiege (Conversion Phase 1) */
body.home #orientierung.situations-section {
	background-color: #fff !important;
	background-image: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

body.home #orientierung .primus-home-situations__grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	body.home #orientierung .primus-home-situations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.15rem;
	}
}

@media (min-width: 1100px) {
	body.home #orientierung .primus-home-situations__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

body.home #orientierung .primus-home-situations__card {
	height: 100%;
	min-width: 0;
	border: 1px solid rgba(22, 86, 166, 0.12) !important;
	background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%) !important;
	box-shadow: var(--primus-shadow-1, 0 1px 2px rgba(22, 40, 70, 0.04));
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.home #orientierung .primus-home-situations__card--priority {
	border-color: rgba(22, 86, 166, 0.18) !important;
	border-top: 3px solid var(--primus-blue, #1656a6) !important;
	background:
		radial-gradient(circle at 100% 0%, rgba(232, 241, 250, 0.75) 0%, transparent 50%),
		linear-gradient(165deg, #f4f8fc 0%, #ffffff 58%) !important;
	box-shadow: var(--primus-shadow-2, 0 6px 18px rgba(22, 40, 70, 0.06));
}

body.home #orientierung .primus-home-situations__icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(22, 86, 166, 0.08);
	color: var(--primus-blue, #1656a6);
	flex-shrink: 0;
}

body.home #orientierung .primus-home-situations__card--priority .primus-home-situations__icon {
	background: linear-gradient(145deg, #2a6fbf 0%, var(--primus-blue, #1656a6) 100%);
	color: #fff;
	box-shadow: 0 8px 18px rgba(22, 86, 166, 0.2);
}

body.home #orientierung .primus-home-situations__title {
	color: var(--primus-blue, #1656a6) !important;
	margin: 0 !important;
}

body.home #orientierung .primus-home-situations__text {
	color: var(--wp--preset--color--muted, #6b6b6b);
	flex: 1 1 auto;
	margin: 0 !important;
}

body.home #orientierung .primus-home-situations__cta {
	margin-top: auto !important;
	margin-bottom: 0 !important;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 600;
	min-height: 44px;
	display: flex;
	align-items: center;
}

body.home #orientierung .primus-home-situations__cta a {
	color: var(--primus-gold, #c9a227);
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

body.home #orientierung .primus-home-situations__cta a:focus-visible {
	outline: 2px solid var(--primus-gold, #c9a227);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	body.home #orientierung .primus-home-situations__card:hover {
		border-color: rgba(22, 86, 166, 0.28) !important;
		box-shadow: var(--primus-shadow-2, 0 8px 22px rgba(22, 40, 70, 0.08));
		transform: translateY(-2px);
	}

	body.home #orientierung .primus-home-situations__card:hover .primus-home-situations__cta a {
		color: #a8861c;
	}
}

body.home #orientierung .primus-home-situations__card:focus-within {
	outline: 2px solid var(--primus-gold, #c9a227);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	body.home #orientierung .primus-home-situations__card {
		transition: none;
		transform: none;
	}

	body.home #orientierung .primus-home-situations__card:hover {
		transform: none;
	}
}

/* Floating rail: Footer-Kollision */
@media (min-width: 769px) {
	.primus-service-rail.is-near-footer .primus-service-rail__panel {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-40%);
		transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
	}
}

@media (max-width: 768px) {
	.primus-service-rail.is-near-footer {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.primus-service-rail.is-near-footer .primus-service-rail__panel {
		transition: none;
	}
}
