/*
Theme Name: Primus Finanzdienst
Theme URI: https://finanzprimus.de
Author: Primus Finanzdienst GmbH
Author URI: https://finanzprimus.de
Description: Block-Theme der Primus Finanzdienst GmbH.
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Version: 0.1.106
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primus-finanzdienst
Tags: block-patterns, block-styles, full-site-editing, accessibility-ready, custom-colors, custom-menu
*/

/* Basis-Styles werden primär über theme.json gesteuert. */

/* Überschriften: keine unkontrollierten Mittelwort-Umbrüche.
   Umbruch nur zwischen vollständigen Wörtern (kein overflow-wrap: anywhere). */
.entry-content .wp-block-heading,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
	max-width: 100%;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	-webkit-hyphens: none;
}

/*
 * Companion zu overflow-wrap:normal: lange deutsche Komposita per Fluid-Sizing
 * in typische Hero-/Content-Spalten einpassen – statt mitten im Wort zu brechen.
 */
.entry-content h1.has-xx-large-font-size,
.entry-content .wp-block-heading.has-xx-large-font-size,
.entry-content h1 {
	font-size: clamp( 1.25rem, 1.55vw + 0.95rem, 2.65rem ) !important;
}

/* Section-H2/H3 auf schmalen Viewports: lange Komposita ohne Mittelwort-Bruch. */
@media ( max-width: 480px ) {
	.entry-content h2:not( .service-card__title ),
	.entry-content h2.wp-block-heading:not( .service-card__title ) {
		font-size: clamp( 1.1rem, 3.6vw + 0.45rem, 1.35rem ) !important;
	}

	.entry-content h3:not( .service-card__title ),
	.entry-content h3.wp-block-heading:not( .service-card__title ) {
		font-size: clamp( 1.05rem, 3.2vw + 0.4rem, 1.25rem ) !important;
	}

	/* Karten-Titel: bestehende Card-Typo behalten (nicht die Section-Clamps). */
	.entry-content .service-card h2,
	.entry-content .service-card h3,
	.entry-content .service-card .wp-block-heading,
	.entry-content .service-card__title {
		font-size: clamp( 0.95rem, 4.5cqi, 1.15rem ) !important;
	}
}

:root {
	--primus-surface: #eef2f6;
	--primus-section-space-desktop: 5.5rem;
	--primus-section-space-tablet: 4.25rem;
	--primus-section-space-mobile: 3.25rem;
	--primus-grid-gap: 1.5rem;
	--primus-card-padding: 1.75rem;
	--primus-ink: #333333;
	--primus-ink-soft: #4a4a4a;
	/* Interaktive Service-/Leistungskarten (Hover/Fokus) */
	--primus-card-lift: -3px;
	--primus-card-motion: 220ms ease;
	--primus-card-shadow-rest: 0 6px 18px rgba( 22, 86, 166, 0.06 );
	--primus-card-shadow-hover: 0 12px 28px rgba( 22, 86, 166, 0.1 );
	--primus-card-focus-ring: 0 0 0 2px rgba( 201, 162, 39, 0.45 );
	/* Elevation / Surfaces (Startseite-Premium; übertragbar) */
	--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-warm-white: #fbf7ef;
	--primus-mist-mid: #f3f7fb;
}

/* Goldene Kleinschrift auf hellem Grund: dunklerer Ton für WCAG AA (≥ 4.5:1). */
.has-primus-gold-color.has-text-color,
.hero-section__kicker.has-primus-gold-color,
.hero-section__kicker {
	color: #7A5F12 !important;
}

/* Markengold bleibt für Flächen/Buttons unverändert (theme.json). */

/* === Flächenkontrast & Text auf Surface === */
.has-surface-background-color {
	background-color: var( --wp--preset--color--surface, var( --primus-surface ) ) !important;
}

.has-surface-background-color,
.has-surface-background-color p,
.has-surface-background-color li {
	color: var( --wp--preset--color--ink, var( --primus-ink ) );
}

.has-surface-background-color .has-muted-color,
.has-surface-background-color .has-medium-gray-color {
	color: var( --primus-ink-soft ) !important;
}

.has-primus-blue-background-color,
.has-primus-blue-background-color p,
.has-primus-blue-background-color li,
.has-primus-blue-background-color h1,
.has-primus-blue-background-color h2,
.has-primus-blue-background-color h3,
.has-primus-blue-background-color h4 {
	color: var( --wp--preset--color--white, #fff );
}

.has-primus-blue-background-color a:not(.wp-element-button) {
	color: var( --wp--preset--color--white, #fff );
}

.has-primus-blue-background-color a:not(.wp-element-button):hover,
.has-primus-blue-background-color a:not(.wp-element-button):focus-visible {
	color: var( --wp--preset--color--primus-gold, #c9a227 );
}

/* === Einheitliches Karten-/Raster-System ===
   WordPress is-layout-flex defaultet auf align-items:center → vertikale Kartensprünge.
   Grids strecken Karten einer Reihe; mobile stapeln inhaltsabhängig. */
.services-section__grid,
.kontakt-hub__channel-grid,
.kontakt-hub__anliegen-grid,
.kontakt-hub__location-grid,
.ueber-uns__principle-grid,
.ueber-uns__audience-grid,
.primus-card-grid {
	display: grid !important;
	grid-template-columns: repeat( auto-fill, minmax( min( 100%, 280px ), 1fr ) );
	gap: var( --primus-grid-gap );
	align-items: stretch;
	justify-content: start;
	width: 100%;
}

/*
 * Desktop-Proportion (Phase 1): große Leistungs-/Service-Raster an wideSize (1200)
 * und Header-Achse binden – nicht viewportbreit laufen lassen.
 */
.services-section__grid,
.quick-service-grid {
	max-width: var( --wp--style--global--wide-size, 1200px );
	margin-inline: auto;
	box-sizing: border-box;
}

.services-section > .wp-block-group.alignwide,
.quick-service-section > .wp-block-group.alignwide {
	max-width: var( --wp--style--global--wide-size, 1200px );
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
}

.services-section__grid > .service-card,
.services-section__grid > .wp-block-group,
.kontakt-hub__channel-grid > .service-card,
.kontakt-hub__channel-grid > .wp-block-group,
.kontakt-hub__anliegen-grid > .service-card,
.kontakt-hub__anliegen-grid > .wp-block-group,
.kontakt-hub__location-grid > .location-card,
.kontakt-hub__location-grid > .wp-block-group,
.ueber-uns__principle-grid > .wp-block-group,
.ueber-uns__audience-grid > .service-card,
.ueber-uns__audience-grid > .wp-block-group,
.primus-card-grid > .service-card,
.primus-card-grid > .wp-block-group {
	flex: unset !important;
	max-width: none !important;
	width: auto;
	min-width: 0;
	height: 100%;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	box-sizing: border-box;
}

.service-card .wp-block-heading,
.location-card .wp-block-heading {
	margin: 0;
	line-height: 1.3;
}

.service-card__text,
.service-card > p:not(.service-card__link),
.location-card > p {
	flex: 1 1 auto;
}

.service-card .wp-block-buttons:last-child,
.service-card__link,
.location-card .wp-block-buttons:last-child,
.kontakt-hub__channel .wp-block-buttons:last-child {
	margin-top: auto;
	padding-top: var( --wp--preset--spacing--xs );
}

/* Spalten mit Karten: gemeinsame Reihenhöhe, keine Vertikalzentrierung */
.wp-block-columns:has( > .wp-block-column .service-card ),
.wp-block-columns:has( > .wp-block-column .location-card ) {
	align-items: stretch !important;
}

.wp-block-column:has( > .service-card ),
.wp-block-column:has( > .location-card ) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.wp-block-column > .service-card,
.wp-block-column > .location-card {
	flex: 1 1 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
}

@media ( max-width: 781px ) {
	.services-section__grid,
	.kontakt-hub__channel-grid,
	.kontakt-hub__anliegen-grid,
	.kontakt-hub__location-grid,
	.ueber-uns__principle-grid,
	.ueber-uns__audience-grid,
	.primus-card-grid {
		grid-template-columns: 1fr;
	}

	.services-section__grid > .service-card,
	.services-section__grid > .wp-block-group,
	.kontakt-hub__channel-grid > .service-card,
	.kontakt-hub__anliegen-grid > .service-card,
	.ueber-uns__audience-grid > .service-card {
		height: auto;
	}
}

/* Abschnittsabstände (große Inhaltsflächen) */
.services-section.alignfull,
.claims-section.alignfull,
.business-section.alignfull,
.contact-section.alignfull,
.leistungen-hub__world,
.leistungen-hub__hero,
.kontakt-hub__hero,
.standorte-hub__hero,
.ueber-uns__hero,
.primus-home-section {
	padding-top: clamp( var( --primus-section-space-mobile ), 5vw, var( --primus-section-space-desktop ) );
	padding-bottom: clamp( var( --primus-section-space-mobile ), 5vw, var( --primus-section-space-desktop ) );
}

@media ( min-width: 782px ) and ( max-width: 1024px ) {
	.services-section.alignfull,
	.claims-section.alignfull,
	.business-section.alignfull,
	.contact-section.alignfull,
	.leistungen-hub__world,
	.leistungen-hub__hero,
	.kontakt-hub__hero,
	.standorte-hub__hero,
	.ueber-uns__hero,
	.primus-home-section {
		padding-top: var( --primus-section-space-tablet );
		padding-bottom: var( --primus-section-space-tablet );
	}
}

/* === reset === */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-block-button.is-style-fill .wp-element-button,
.wp-block-button .wp-element-button {
	box-shadow: none;
}
/* === header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__nav-cta {
	gap: var( --wp--preset--spacing--md );
}

.site-header .wp-block-navigation-item > a,
.site-header .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.site-header__cta .wp-element-button {
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
	white-space: nowrap;
}

.site-header .wp-block-navigation__responsive-container-open {
	min-width: 44px;
	min-height: 44px;
}

.site-header__logo.wp-block-site-logo {
	margin-right: var( --wp--preset--spacing--md );
}

.site-header__logo.wp-block-site-logo img {
	max-width: 180px;
	width: 100%;
	height: auto;
	object-fit: contain;
}

@media ( max-width: 600px ) {
	.site-header__logo.wp-block-site-logo img {
		max-width: 140px;
	}
}
/* === vertrauen === */
.trust-section__grid {
	gap: var( --wp--preset--spacing--md );
}

.trust-section--compact {
	border-bottom: 1px solid rgba( 22, 86, 166, 0.08 );
}

.trust-section__item {
	flex: 1 1 200px;
	max-width: 320px;
	padding-top: var( --wp--preset--spacing--xs );
	border-top: 2px solid var( --wp--preset--color--primus-gold );
	align-self: stretch;
	justify-content: flex-start;
}

.trust-section--compact .trust-section__item {
	flex: 1 1 220px;
	min-width: min( 100%, 220px );
	max-width: 320px;
	padding-top: var( --wp--preset--spacing--xs );
	text-align: center;
	align-self: stretch;
	justify-content: flex-start;
}

.trust-section--compact .trust-section__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var( --wp--preset--spacing--lg );
}

.trust-section__item p {
	margin: 0;
}
/* Visuell versteckt, für Screenreader verfügbar (Jubiläums-Endwerte u. a.) */
.screen-reader-text {
	border: 0;
	clip: rect( 1px, 1px, 1px, 1px );
	clip-path: inset( 50% );
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* === jubilaeum (Startseiten-Panel mit Siegel + Kennzahlen) === */
.anniversary-section {
	background:
		linear-gradient( 180deg, rgba( 22, 86, 166, 0.03 ), transparent 48% ),
		var( --wp--preset--color--surface, #f4f6f8 );
}

.anniversary-panel {
	display: grid;
	grid-template-columns: minmax( 10rem, 0.95fr ) minmax( 14rem, 1.35fr ) minmax( 12rem, 1.15fr );
	gap: clamp( 1.25rem, 2.5vw, 2rem );
	align-items: center;
	max-width: var( --wp--style--global--wide-size, 1200px );
	margin-inline: auto;
	padding: clamp( 1.25rem, 2.5vw, 2rem ) clamp( 1rem, 2vw, 1.75rem );
	background: #fff;
	border: 1px solid rgba( 22, 86, 166, 0.08 );
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba( 22, 86, 166, 0.06 );
	box-sizing: border-box;
}

.anniversary-panel__seal {
	position: relative;
	display: grid;
	place-items: center;
	justify-self: center;
	width: clamp( 11rem, 18vw, 13.5rem );
	aspect-ratio: 1;
}

.anniversary-panel__wreath {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow( 0 2px 6px rgba( 121, 95, 18, 0.1 ) );
}

.anniversary-panel__seal-core {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 0.35rem;
	pointer-events: none;
}

.anniversary-panel__seal-num {
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
	font-weight: 700;
	font-size: clamp( 2.75rem, 5vw, 3.5rem );
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var( --wp--preset--color--primus-blue, #1656a6 );
	font-variant-numeric: tabular-nums;
}

.anniversary-panel__seal-unit {
	margin-top: 0.2rem;
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --wp--preset--color--primus-blue, #1656a6 );
}

.anniversary-panel__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
	min-width: 0;
	padding-inline: clamp( 0.25rem, 1vw, 0.75rem );
	border-inline: 1px solid rgba( 22, 86, 166, 0.1 );
}

.anniversary-panel__years {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin: 0;
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	color: #7a5f12;
}

.anniversary-panel__years-rule {
	display: block;
	width: 1.5rem;
	height: 1px;
	background: var( --wp--preset--color--primus-gold, #c9a227 );
}

.anniversary-panel__title {
	margin: 0;
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
	font-weight: 700;
	font-size: clamp( 1.45rem, 2.2vw, 1.9rem );
	line-height: 1.2;
	color: var( --wp--preset--color--primus-blue, #1656a6 );
}

.anniversary-panel__rule {
	display: block;
	width: 3rem;
	height: 2px;
	margin-inline: auto;
	background: var( --wp--preset--color--primus-gold, #c9a227 );
}

.anniversary-panel__lead {
	margin: 0;
	max-width: 28rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var( --primus-ink-soft, #4a5560 );
}

.anniversary-panel__thanks {
	margin: 0.15rem 0 0;
	font-family: var( --wp--preset--font-family--lato, Lato, sans-serif );
	font-style: italic;
	font-weight: 500;
	font-size: 1.05rem;
	color: var( --wp--preset--color--primus-blue, #1656a6 );
}

.anniversary-panel__stats {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.anniversary-stat {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 0.15rem;
}

.anniversary-stat + .anniversary-stat {
	border-top: 1px solid rgba( 22, 86, 166, 0.1 );
}

.anniversary-stat__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
}

.anniversary-stat__icon svg {
	display: block;
}

.anniversary-stat__body {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.anniversary-stat__value {
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
	font-weight: 700;
	font-size: clamp( 1.85rem, 2.8vw, 2.35rem );
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var( --wp--preset--color--primus-blue, #1656a6 );
	font-variant-numeric: tabular-nums;
}

.anniversary-stat__label {
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
	font-weight: 600;
	font-size: 0.95rem;
	color: #5a6570;
}

@media ( max-width: 1024px ) {
	.anniversary-panel {
		grid-template-columns: minmax( 9rem, 0.9fr ) minmax( 0, 1.4fr );
		grid-template-areas:
			"seal copy"
			"stats stats";
	}

	.anniversary-panel__seal {
		grid-area: seal;
	}

	.anniversary-panel__copy {
		grid-area: copy;
		border-inline: none;
		border-left: 1px solid rgba( 22, 86, 166, 0.1 );
		padding-left: 1rem;
	}

	.anniversary-panel__stats {
		grid-area: stats;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 1rem;
		border-top: 1px solid rgba( 22, 86, 166, 0.1 );
		padding-top: 0.35rem;
	}

	.anniversary-stat + .anniversary-stat {
		border-top: 0;
		border-left: 1px solid rgba( 22, 86, 166, 0.1 );
		padding-left: 1rem;
	}
}

@media ( max-width: 600px ) {
	.anniversary-panel {
		grid-template-columns: 1fr;
		grid-template-areas:
			"seal"
			"copy"
			"stats";
		justify-items: stretch;
		padding: 1.25rem 1rem;
	}

	.anniversary-panel__seal {
		width: min( 12rem, 70vw );
	}

	.anniversary-panel__copy {
		border: 0;
		padding: 0;
		align-items: center;
		text-align: center;
	}

	.anniversary-panel__years {
		justify-content: center;
	}

	.anniversary-panel__title,
	.anniversary-panel__lead,
	.anniversary-panel__thanks {
		text-align: center;
	}

	.anniversary-panel__rule {
		margin-inline: auto;
	}

	.anniversary-panel__stats {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.anniversary-stat {
		justify-content: center;
		text-align: left;
	}

	.anniversary-stat + .anniversary-stat {
		border-left: 0;
		border-top: 1px solid rgba( 22, 86, 166, 0.1 );
		padding-left: 0.15rem;
	}
}

@media ( max-width: 360px ) {
	.anniversary-stat__value {
		font-size: 1.65rem;
	}
}

/* Legacy-Klassen: Signet/Features (falls woanders referenziert) */
.anniversary-signet {
	gap: var( --wp--preset--spacing--sm );
	flex-wrap: nowrap;
	align-items: center;
	margin-bottom: var( --wp--preset--spacing--xs );
}

.anniversary-signet__years {
	margin: 0;
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	color: #7A5F12;
	white-space: nowrap;
}

.anniversary-signet__label {
	margin: 0;
	position: relative;
	flex: 1 1 auto;
	padding-left: var( --wp--preset--spacing--sm );
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var( --wp--preset--color--primus-blue );
}

.anniversary-signet__label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY( -50% );
	width: 1px;
	height: 1.4em;
	background-color: var( --wp--preset--color--primus-gold );
}

.anniversary-signet::after {
	content: "";
	flex: 0 1 96px;
	height: 2px;
	background: linear-gradient( to right, var( --wp--preset--color--primus-gold ), transparent );
}

@media ( max-width: 600px ) {
	.anniversary-signet::after {
		display: none;
	}
	.anniversary-signet__label {
		font-size: 0.8rem;
	}
}

.anniversary-section__features {
	row-gap: var( --wp--preset--spacing--xs );
	column-gap: var( --wp--preset--spacing--sm );
}

.anniversary-section__feature {
	margin: 0;
	padding-left: var( --wp--preset--spacing--sm );
	position: relative;
	font-weight: 600;
}

.anniversary-section__feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var( --wp--preset--color--primus-gold );
}
/* === leistungen === */
.services-section__grid {
	gap: var( --primus-grid-gap );
}

.service-card {
	position: relative;
	min-height: 0;
	box-shadow: var( --primus-card-shadow-rest );
	transition:
		border-color var( --primus-card-motion ),
		box-shadow var( --primus-card-motion ),
		transform var( --primus-card-motion );
}

.service-card .wp-block-heading {
	margin: 0;
	line-height: 1.25;
	hyphens: none;
	-webkit-hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
	max-width: 100%;
}

.service-card__text {
	flex-grow: 1;
}

.service-card__link {
	position: relative;
	z-index: 1;
}

.service-card__link a {
	font-family: var( --wp--preset--font-family--montserrat );
	font-weight: 600;
	font-size: 0.875rem;
	color: var( --wp--preset--color--primus-blue );
	text-decoration: none;
	transition: color var( --primus-card-motion );
}

.service-card__link a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.service-card .wp-element-button {
	min-height: 44px;
	transition:
		color var( --primus-card-motion ),
		border-color var( --primus-card-motion ),
		background-color var( --primus-card-motion );
}

.service-card__link a:focus-visible,
.service-card .wp-element-button:focus-visible {
	outline: 2px solid var( --wp--preset--color--primus-gold );
	outline-offset: 3px;
	border-radius: 2px;
}

/* Feine Pointer-Geräte: dezente Anhebung nur bei echtem Hover und nur bei Karten mit Aktion. */
@media ( hover: hover ) and ( pointer: fine ) {
	.service-card:has( a ):hover {
		border-color: var( --wp--preset--color--primus-blue ) !important;
		box-shadow: var( --primus-card-shadow-hover );
		transform: translateY( var( --primus-card-lift ) );
	}

	.service-card:has( a ):hover .service-card__link a,
	.service-card:has( a ):hover .is-style-outline .wp-element-button {
		color: var( --wp--preset--color--primus-gold-hover );
		border-color: var( --wp--preset--color--primus-gold-hover );
	}
}

.service-card:focus-within {
	border-color: var( --wp--preset--color--primus-gold ) !important;
	box-shadow: var( --primus-card-focus-ring ), var( --primus-card-shadow-hover );
}

.service-card:focus-within .service-card__link a,
.service-card:focus-within .is-style-outline .wp-element-button {
	color: var( --wp--preset--color--primus-gold-hover );
	border-color: var( --wp--preset--color--primus-gold-hover );
}

@media ( prefers-reduced-motion: reduce ) {
	.service-card,
	.service-card__link a,
	.service-card .wp-element-button {
		transition: none;
	}

	.service-card:has( a ):hover,
	.service-card:focus-within {
		transform: none;
	}
}
/* === service === */
.quick-service-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: var( --wp--preset--spacing--sm );
	align-items: stretch;
}

.quick-service-item {
	justify-content: flex-start;
	align-self: stretch;
	position: relative;
	height: 100%;
	margin-top: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	border-top: 3px solid rgba( 22, 86, 166, 0.18 ) !important;
	box-shadow: 0 1px 0 rgba( 22, 86, 166, 0.06 );
	transition:
		border-top-color var( --primus-card-motion ),
		box-shadow var( --primus-card-motion ),
		transform var( --primus-card-motion );
}

.quick-service-item .wp-block-buttons {
	margin-top: auto;
}

.quick-service-item--primary {
	border-top-color: var( --wp--preset--color--primus-gold ) !important;
	border-top-width: 4px !important;
	background-color: #ffffff !important;
	box-shadow: 0 2px 10px rgba( 22, 86, 166, 0.08 );
}

.quick-service-item--primary .wp-element-button {
	background-color: var( --wp--preset--color--primus-gold );
	color: var( --wp--preset--color--ink );
	border: none;
}

.quick-service-item--primary .wp-element-button:hover,
.quick-service-item--primary .wp-element-button:focus-visible {
	background-color: var( --wp--preset--color--primus-gold-hover );
	color: var( --wp--preset--color--ink );
}

.quick-service-item--claims {
	border-left: 3px solid var( --wp--preset--color--primus-blue );
}

.quick-service-item--whatsapp {
	grid-column: 1 / -1;
	border-top-color: rgba( 22, 86, 166, 0.28 ) !important;
}

.quick-service-item--whatsapp .wp-element-button {
	border-color: var( --wp--preset--color--primus-blue );
	color: var( --wp--preset--color--primus-blue );
}

.quick-service-item .wp-element-button {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.quick-service-item .wp-element-button:focus-visible {
	outline: 2px solid var( --wp--preset--color--primus-gold );
	outline-offset: 3px;
}

@media ( hover: hover ) and ( pointer: fine ) {
	.quick-service-item:hover {
		border-top-color: var( --wp--preset--color--primus-blue ) !important;
		box-shadow: var( --primus-card-shadow-hover );
		transform: translateY( var( --primus-card-lift ) );
	}

	.quick-service-item--primary:hover {
		border-top-color: var( --wp--preset--color--primus-gold-hover ) !important;
	}
}

.quick-service-item:focus-within {
	box-shadow: var( --primus-card-focus-ring ), var( --primus-card-shadow-hover );
}

@media ( prefers-reduced-motion: reduce ) {
	.quick-service-item {
		transition: none;
	}

	.quick-service-item:hover,
	.quick-service-item:focus-within {
		transform: none;
	}
}

@media ( min-width: 900px ) {
	.quick-service-grid {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	}

	.quick-service-item--primary {
		grid-column: span 3;
	}

	.quick-service-item--secondary {
		grid-column: span 2;
	}

	.quick-service-item--whatsapp {
		grid-column: span 6;
	}
}

@media ( max-width: 599px ) {
	.quick-service-grid {
		grid-template-columns: 1fr;
	}

	.quick-service-item--whatsapp {
		grid-column: auto;
	}
}
/* === schaden === */
.claims-section__copy {
	flex: 1 1 420px;
}

.claims-section__panel {
	flex: 1 1 300px;
	max-width: 420px;
}

.claims-section__steps {
	counter-reset: claims-step;
	list-style: none;
	margin: 0;
	padding: 0;
}

.claims-section__steps li {
	counter-increment: claims-step;
	position: relative;
	padding: 0.65rem 0 0.65rem 2.75rem;
	border-top: 1px solid rgba( 22, 86, 166, 0.12 );
}

.claims-section__steps li:last-child {
	border-bottom: 1px solid rgba( 22, 86, 166, 0.12 );
}

.claims-section__steps li::before {
	content: counter( claims-step );
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-family: var( --wp--preset--font-family--montserrat );
	font-size: 0.75rem;
	font-weight: 700;
	color: var( --wp--preset--color--primus-blue );
	background: rgba( 22, 86, 166, 0.08 );
}
/* === unternehmen === */
.business-section .wp-block-list {
	list-style: disc;
	padding-left: 1.25rem;
}

.business-section__photo {
	margin-top: var( --wp--preset--spacing--sm );
	margin-bottom: var( --wp--preset--spacing--sm );
	overflow: hidden;
	border-radius: 8px;
}

.business-section__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 60%;
}

.business-section .wp-element-button {
	background-color: var( --wp--preset--color--primus-gold );
	color: var( --wp--preset--color--ink );
}

.business-section .wp-element-button:hover {
	background-color: var( --wp--preset--color--primus-gold-hover );
}
/* === standorte === */
.location-card {
	height: 100%;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-card:focus-within,
.location-card:hover {
	border-color: var( --wp--preset--color--primus-blue );
	box-shadow: 0 4px 16px rgba( 22, 86, 166, 0.08 );
}

/*
 * Gemeinsame Bildfläche (Foto + CSS-Platzhalter): gleiche Breite/Höhe/16:9.
 * Spezifität über .wp-block-image, damit Core-margin:0 die Bleed-Ränder nicht löscht.
 */
.location-card .wp-block-image.location-card__photo,
.location-card .location-card__media-placeholder {
	margin-top: calc( -1 * var( --wp--preset--spacing--md ) );
	margin-right: calc( -1 * var( --wp--preset--spacing--md ) );
	margin-bottom: var( --wp--preset--spacing--xs );
	margin-left: calc( -1 * var( --wp--preset--spacing--md ) );
	width: calc( 100% + ( var( --wp--preset--spacing--md ) * 2 ) );
	max-width: none;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px 4px 0 0;
	box-sizing: border-box;
	padding-left: 0;
	padding-right: 0;
}

.location-card .location-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 70%;
	aspect-ratio: auto;
}

/* Vettelschoß-Collage (3:2 in 16:9): etwas höherer Fokus als Hennef-Nachtfoto */
.primus-home-locations .location-card--service .location-card__photo img {
	object-position: center 48%;
}

.location-card .location-card__media-placeholder {
	background:
		linear-gradient( 135deg, rgba( 22, 86, 166, 0.06 ), rgba( 201, 162, 39, 0.1 ) );
}

.location-card .wp-block-list {
	list-style: disc;
	padding-left: 1.1rem;
	color: var( --wp--preset--color--ink );
}

.location-card .wp-block-buttons {
	margin-top: auto;
}

.location-card .wp-element-button {
	min-height: 44px;
}

/* Standort-Pin (Homepage-Karten + Hub-Module) */
.location-module__meta,
.location-card__meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.15rem;
}

.location-module__kicker,
.location-card__kicker {
	margin: 0;
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
	font-size: var( --wp--preset--font-size--small, 0.875rem );
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a5f12;
}

.location-module__pin,
.location-card__pin {
	position: relative;
	display: inline-block;
	flex: 0 0 14px;
	width: 14px;
	height: 20px;
	color: var( --wp--preset--color--primus-blue, #1656a6 );
	transform-origin: 50% 100%;
	transition: transform 0.2s ease, color 0.2s ease;
}

.location-module__pin::before,
.location-card__pin::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border: 2px solid currentColor;
	border-radius: 50% 50% 50% 0;
	transform: rotate( -45deg );
	background: color-mix( in srgb, var( --wp--preset--color--primus-gold, #c9a227 ) 35%, transparent );
	box-sizing: border-box;
}

.location-module__pin::after,
.location-card__pin::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 4px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: currentColor;
}

.location-module:hover .location-module__pin,
.location-module:focus-within .location-module__pin,
.location-card:hover .location-card__pin,
.location-card:focus-within .location-card__pin {
	transform: translateY( -2px ) scale( 1.06 );
	color: var( --wp--preset--color--primus-gold-hover, #b68e1e );
}

.location-module__address,
.standorte-hub__address {
	display: block;
	margin: 0;
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
	color: var( --wp--preset--color--ink, #333 );
}

.location-module__features {
	margin: 0;
}

.location-module__digital-note {
	margin-top: 0.25rem;
	color: var( --wp--preset--color--ink-soft, #4a4a4a );
}

.location-module__actions .wp-element-button {
	min-height: 44px;
}

/* === standorte-hub (seitenspezifisch) === */
.standorte-hub #hennef,
.standorte-hub #vettelschoss,
.standorte-hub #digitale-beratung {
	scroll-margin-top: 6rem;
}

.standorte-hub__hero h1 {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	-webkit-hyphens: none;
	max-width: 100%;
}

.standorte-hub__way-grid {
	gap: var( --wp--preset--spacing--md );
}

.standorte-hub__way-card {
	flex: 1 1 280px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.standorte-hub__way-card:hover,
.standorte-hub__way-card:focus-within {
	border-color: var( --wp--preset--color--primus-blue );
	box-shadow: 0 4px 16px rgba( 22, 86, 166, 0.08 );
}

.standorte-hub__location-row {
	gap: var( --wp--preset--spacing--lg );
}

.standorte-hub__location-copy {
	flex: 1 1 48%;
	min-width: min( 100%, 280px );
	max-width: 100%;
}

.standorte-hub__location-figure {
	flex: 1 1 44%;
	min-width: min( 100%, 260px );
	max-width: 100%;
}

.standorte-hub__photo img {
	border-radius: 8px;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.standorte-hub__module {
	position: relative;
}

.standorte-hub__cta .wp-block-button .wp-element-button,
.standorte-hub__hennef .wp-block-button .wp-element-button,
.standorte-hub__vettelschoss .wp-block-button .wp-element-button,
.standorte-hub__digital .wp-block-button .wp-element-button {
	min-height: 44px;
}

@media ( max-width: 781px ) {
	.standorte-hub__location-copy,
	.standorte-hub__location-figure {
		flex: 1 1 100%;
	}

	.standorte-hub__photo img {
		max-height: 280px;
	}

	.standorte-hub__hero .wp-block-buttons,
	.standorte-hub__hennef .wp-block-buttons,
	.standorte-hub__vettelschoss .wp-block-buttons,
	.standorte-hub__digital .wp-block-buttons,
	.standorte-hub__cta .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.standorte-hub__hero .wp-block-button,
	.standorte-hub__hennef .wp-block-button,
	.standorte-hub__vettelschoss .wp-block-button,
	.standorte-hub__digital .wp-block-button,
	.standorte-hub__cta .wp-block-button {
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.standorte-hub *,
	.location-card,
	.location-module__pin,
	.location-card__pin,
	.standorte-hub__way-card {
		animation: none !important;
		transition: none !important;
	}

	.location-module:hover .location-module__pin,
	.location-module:focus-within .location-module__pin,
	.location-card:hover .location-card__pin,
	.location-card:focus-within .location-card__pin {
		transform: none;
	}
}
/* === kontakt === */
.contact-section__panel a {
	color: var( --wp--preset--color--primus-blue );
}

.contact-section__media {
	width: 100%;
}

.contact-section__photo {
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
}

.contact-section__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 22% 35%;
}
/* === footer === */
.site-footer a {
	color: var( --wp--preset--color--white );
	text-decoration: underline;
}

.site-footer a:hover {
	color: var( --wp--preset--color--light-gray );
}

.site-footer a:focus {
	outline: 2px solid var( --wp--preset--color--white );
	outline-offset: 2px;
}

.site-footer .wp-block-separator {
	opacity: 0.35;
	margin-top: var( --wp--preset--spacing--sm );
	margin-bottom: var( --wp--preset--spacing--sm );
}

.site-footer__logo {
	margin: 0 0 var( --wp--preset--spacing--sm ) !important;
	max-width: 140px;
	line-height: 0;
}

.site-footer__logo a {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.site-footer__logo img {
	display: block;
	max-width: 120px;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media ( max-width: 600px ) {
	.site-footer__logo img {
		max-width: 96px;
		max-height: 36px;
	}
}
/* === kontakt-hub === */
.kontakt-hub__breadcrumb {
	margin: 0;
	padding-top: var( --wp--preset--spacing--sm );
	padding-bottom: var( --wp--preset--spacing--xs );
	font-size: var( --wp--preset--font-size--small );
	color: var( --wp--preset--color--muted );
}

.kontakt-hub__breadcrumb a {
	color: var( --wp--preset--color--primus-blue );
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.kontakt-hub__breadcrumb a:hover,
.kontakt-hub__breadcrumb a:focus {
	color: var( --wp--preset--color--primus-gold-hover );
	text-decoration: underline;
}

.kontakt-hub__channel-grid,
.kontakt-hub__anliegen-grid,
.kontakt-hub__location-grid {
	gap: var( --wp--preset--spacing--md );
}

.kontakt-hub__channel {
	flex: 1 1 280px;
	height: 100%;
}

.kontakt-hub__channel .wp-element-button {
	min-height: 44px;
}

.kontakt-hub__external-note {
	font-size: var( --wp--preset--font-size--small );
	color: var( --wp--preset--color--muted );
	margin-top: var( --wp--preset--spacing--xs );
}

.kontakt-hub__anliegen-card {
	flex: 1 1 calc( ( 100% - var( --wp--preset--spacing--md ) ) / 2 );
	max-width: calc( ( 100% - var( --wp--preset--spacing--md ) ) / 2 );
}

.kontakt-hub__location-card {
	flex: 1 1 300px;
}

.kontakt-hub__privacy-panel {
	border-left: 4px solid var( --wp--preset--color--primus-gold );
}

.kontakt-hub__form-section {
	scroll-margin-top: 6rem;
}

.kontakt-hub__cta-panel {
	text-align: center;
}

@media ( max-width: 600px ) {
	.leistungen-hub__hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.leistungen-hub__hero .wp-block-button {
		width: 100%;
	}

	.kontakt-hub__hero .wp-block-buttons,
	.kontakt-hub__cta-panel .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.kontakt-hub__hero .wp-block-button,
	.kontakt-hub__cta-panel .wp-block-button {
		width: 100%;
	}

	.kontakt-hub__anliegen-card {
		flex: 1 1 100%;
		max-width: 100%;
	}
}
/* === ueber-uns (seitenspezifisch) === */
.ueber-uns__hero-media,
.ueber-uns__cta-panel {
	align-items: center;
	gap: var( --wp--preset--spacing--lg );
}

.ueber-uns__hero-copy,
.ueber-uns__cta-copy {
	flex: 1 1 48%;
	min-width: min(100%, 280px);
	max-width: 100%;
}

.ueber-uns__hero-figure,
.ueber-uns__cta-figure {
	flex: 1 1 44%;
	min-width: min(100%, 260px);
	max-width: 100%;
}

.ueber-uns__hero-copy h1,
.ueber-uns__cta-copy h2 {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	-webkit-hyphens: none;
	max-width: 100%;
}

.ueber-uns__team-photo img {
	border-radius: 8px;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center center;
}

.ueber-uns__cta-panel--text-only {
	justify-content: flex-start;
}

.ueber-uns__cta-panel--text-only .ueber-uns__cta-copy {
	flex: 1 1 100%;
	max-width: 720px;
}

.ueber-uns__principle-card,
.ueber-uns__audience-grid > .service-card {
	flex: 1 1 280px;
}

.ueber-uns__principle-grid,
.ueber-uns__audience-grid {
	gap: var( --wp--preset--spacing--md );
}

.ueber-uns__cta .wp-block-button .wp-element-button {
	min-height: 44px;
}

@media ( max-width: 781px ) {
	.ueber-uns__hero-copy,
	.ueber-uns__hero-figure,
	.ueber-uns__cta-copy,
	.ueber-uns__cta-figure {
		flex: 1 1 100%;
	}

	.ueber-uns__team-photo img {
		object-position: center center;
		max-height: none;
	}

	.ueber-uns__hero .wp-block-buttons,
	.ueber-uns__cta .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.ueber-uns__hero .wp-block-button,
	.ueber-uns__cta .wp-block-button {
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.ueber-uns * {
		animation: none !important;
		transition: none !important;
	}
}

/* === kontakt intro media (seitenspezifisch) === */
.kontakt-hub__intro-media {
	align-items: center;
	gap: var( --wp--preset--spacing--lg );
}

.kontakt-hub__intro-copy {
	flex: 1 1 56%;
	min-width: min( 100%, 300px );
}

.kontakt-hub__intro-figure {
	flex: 1 1 40%;
	min-width: min( 100%, 260px );
}

.kontakt-hub__intro-figure img {
	border-radius: 8px;
}

@media ( max-width: 781px ) {
	.kontakt-hub__intro-copy,
	.kontakt-hub__intro-figure {
		flex: 1 1 100%;
	}
}


/* === responsive === */
@media ( max-width: 781px ) {
	/* Unternehmensbereich: Bild unter den Text, volle Breite */
	.primus-home-business-media__copy,
	.primus-home-business-media__figure {
		flex: 1 1 100%;
		max-width: 100%;
	}
	.primus-home-business-media__figure {
		order: 2;
	}
	.primus-home-business-media__copy {
		order: 1;
	}
	/* Standortfoto/Platzhalter: Bleed nur Desktop; Mobil volle Innenbreite, gleiches 16:9 */
	.primus-home-locations .location-card .wp-block-image.location-card__photo,
	.primus-home-locations .location-card .location-card__media-placeholder {
		margin-left: 0;
		margin-right: 0;
		margin-top: 0;
		width: 100%;
		border-radius: 4px;
	}
	/* Icon-Flaeche nicht groesser skalieren */
	.primus-home-service-icon {
		width: 46px;
		height: 46px;
		flex: 0 0 46px;
	}
	/* 30-Jahre-Flaeche: Text zuerst, Punkte danach */
	.primus-home-history__copy,
	.primus-home-history__points {
		flex: 1 1 100%;
		max-width: 100%;
	}
	.primus-home-history__copy {
		order: 1;
	}
	.primus-home-history__points {
		order: 2;
	}
	/* Kontaktabschluss: Text/CTA zuerst, Panel danach, keine leere Spalte */
	.primus-home-contact__copy,
	.primus-home-contact__panel {
		flex: 1 1 100%;
		max-width: 100%;
	}
	.primus-home-contact__copy {
		order: 1;
	}
	.primus-home-contact__panel {
		order: 2;
	}
	/* dekorativer Bogen auf schmalen Viewports reduzieren */
	.primus-home-contact__inner::after {
		width: 100px;
		height: 100px;
		right: 8px;
		top: -24px;
	}
}

@media ( max-width: 600px ) {
	/* kompaktere Hauptabschnittsabstaende auf Mobil */
	.primus-home-section {
		padding-top: clamp( 3rem, 12vw, 4rem );
		padding-bottom: clamp( 3rem, 12vw, 4rem );
	}
	.primus-home-contact__inner::after {
		display: none;
	}
	.anniversary-signet {
		flex-wrap: wrap;
		row-gap: var( --wp--preset--spacing--xs );
	}
}

@media ( max-width: 320px ) {
	.hero-section .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.hero-section .wp-block-button {
		width: 100%;
	}
}

/* Statuskennzeichnung â€žIn Entwicklungâ€œ */
.primus-status-badge {
	display: inline-block;
	margin: 0 0 var(--wp--preset--spacing--xs, 0.5rem);
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--wp--preset--color--light-gray, #d9e2ec);
	border-radius: 999px;
	background: var(--wp--preset--color--white, #fff);
	line-height: 1.4;
}

/* Einheitliche fachliche Hinweise (z. B. Baufinanzierung) */
.fachlicher-hinweis {
	margin-top: var(--wp--preset--spacing--xs, 0.5rem) !important;
	padding: 0.45rem 0.65rem;
	border-left: 3px solid var(--wp--preset--color--primus-gold, #c9a227);
	background: var(--wp--preset--color--surface, #eef2f6);
	border-radius: 0 4px 4px 0;
	line-height: 1.45;
}

/* === DatenschutzerklÃ¤rung === */
.datenschutz-page__body {
	line-height: 1.65;
}

.datenschutz-page__body h2 {
	scroll-margin-top: 6rem;
	margin-top: var(--wp--preset--spacing--lg, 2rem);
}

.datenschutz-page__body h3 {
	margin-top: var(--wp--preset--spacing--md, 1.25rem);
}

.datenschutz-toc {
	border-left: 4px solid var(--wp--preset--color--primus-gold, #c9a227);
	border-radius: 4px;
}

.datenschutz-toc__list {
	columns: 1;
	gap: 1.5rem;
}

@media (min-width: 782px) {
	.datenschutz-toc__list {
		columns: 2;
	}
}

.datenschutz-toc__list a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.datenschutz-toc__list a:focus {
	outline: 2px solid var(--wp--preset--color--primus-blue, #1656a6);
	outline-offset: 2px;
}

.datenschutz-page__callout {
	border-left: 4px solid var(--wp--preset--color--primus-blue, #1656a6);
	border-radius: 4px;
}

