/**
 * Primus Versicherungen-Hub – Conversion after homepage standard (Theme 0.1.63+)
 * Nur auf is_page( 'versicherungen' ). Startseite und andere Seiten unberührt.
 */

.versicherungen-page__hero,
.versicherungen-page__trust,
.versicherungen-page__a1,
.versicherungen-page__competence,
.versicherungen-page__orient,
.versicherungen-page__worlds,
.versicherungen-page__compare,
.versicherungen-page__situations,
.versicherungen-page__process,
.versicherungen-page__schaden,
.versicherungen-page__notes,
.versicherungen-page__related,
.versicherungen-page__regional,
.versicherungen-page__cta {
	--primus-blue: var(--wp--preset--color--primus-blue, #1656a6);
	--primus-blue-deep: #0f3f7c;
	--primus-navy: #0b2f5c;
	--primus-gold: var(--wp--preset--color--primus-gold, #c9a227);
	--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(3rem, 4.8vw, 5rem);
}

/* Surfaces (shared names with hub/home) */
.versicherungen-page__hero.primus-surface--mist,
.versicherungen-page__worlds.primus-surface--mist,
.versicherungen-page__process.primus-surface--mist,
.versicherungen-page__regional.primus-surface--mist,
.primus-surface--mist {
	background-color: #fff !important;
	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%),
		linear-gradient(180deg, #ffffff 0%, #f5f8fc 45%, #ffffff 100%);
}

.primus-surface--warm {
	background-color: #fffefb !important;
	background-image:
		radial-gradient(ellipse 65% 50% at 15% 15%, rgba(251, 244, 228, 0.9) 0%, rgba(251, 244, 228, 0) 68%),
		linear-gradient(180deg, #fffefb 0%, #fbf7ef 50%, #ffffff 100%);
}

.primus-surface--clean {
	background-color: #fff !important;
	background-image: none;
}

.primus-surface--deep {
	background-color: var(--primus-navy, #0b2f5c) !important;
	background-image:
		radial-gradient(ellipse 60% 50% at 15% 10%, rgba(22, 86, 166, 0.55) 0%, transparent 70%),
		radial-gradient(ellipse 45% 40% at 90% 80%, rgba(201, 162, 39, 0.12) 0%, transparent 65%),
		linear-gradient(165deg, #0b2f5c 0%, #0f3f7c 55%, #0b2f5c 100%);
	color: #fff;
}

.primus-surface--deep .wp-block-heading,
.primus-surface--deep p {
	color: #fff;
}

.primus-section-eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primus-gold, #c9a227);
}

/* Breadcrumb */
.leistungen-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);
}

.leistungen-hub__breadcrumb a {
	color: var(--primus-blue, #1656a6);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Hero */
.versicherungen-page__hero {
	padding-block: clamp(2.25rem, 4vw, 3.75rem) !important;
	box-shadow: inset 0 -28px 40px -28px rgba(22, 86, 166, 0.08);
}

.versicherungen-page__hero-media {
	align-items: center;
	gap: clamp(1.5rem, 3vw, 2.75rem);
}

.versicherungen-page__hero-copy {
	flex: 1 1 46%;
	min-width: min(100%, 280px);
	max-width: 34rem;
}

.versicherungen-page__hero-copy .has-xx-large-font-size {
	font-size: clamp(1.85rem, 3.2vw, 2.55rem) !important;
	line-height: 1.15;
	color: var(--primus-blue-deep, #0f3f7c);
}

.versicherungen-page__hero-figure {
	flex: 1 1 48%;
	min-width: min(100%, 280px);
}

.versicherungen-page__intro-photo img {
	border-radius: var(--primus-radius-lg, 18px);
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: 42% 40%;
	box-shadow: var(--primus-shadow-2);
	display: block;
}

/* A1 Eigentum & Werte */
.versicherungen-page__a1,
.versicherungen-page__competence {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__a1-grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 1.1rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.versicherungen-page__a1-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.versicherungen-page__a1-grid {
		grid-template-columns: 1.15fr 1fr 1fr;
	}
}

.versicherungen-page__a1-card {
	height: 100%;
	min-width: 0;
	scroll-margin-top: 5.5rem;
	border: 1px solid var(--primus-card-border) !important;
	background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%) !important;
	box-shadow: var(--primus-shadow-1);
	transition: border-color var(--primus-motion-normal), box-shadow var(--primus-motion-normal), transform var(--primus-motion-normal);
}

.versicherungen-page__a1-card--priority {
	border-color: rgba(22, 86, 166, 0.2) !important;
	border-top: 3px solid var(--primus-blue, #1656a6) !important;
	background:
		radial-gradient(circle at 100% 0%, rgba(232, 241, 250, 0.8) 0%, transparent 50%),
		linear-gradient(165deg, #f4f8fc 0%, #ffffff 58%) !important;
	box-shadow: var(--primus-shadow-2);
}

.versicherungen-page__a1-card .wp-block-heading {
	color: var(--primus-blue-deep, #0f3f7c);
	font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important;
	margin: 0 !important;
}

.versicherungen-page__a1-cta {
	margin-top: auto !important;
	margin-bottom: 0 !important;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 600;
}

.versicherungen-page__a1-cta a {
	color: var(--primus-gold, #c9a227);
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.versicherungen-page__a1-cta a:focus-visible {
	outline: 2px solid var(--primus-gold, #c9a227);
	outline-offset: 3px;
}

.versicherung-group--featured {
	border-top: 3px solid var(--primus-blue, #1656a6) !important;
	background:
		radial-gradient(circle at 100% 0%, rgba(232, 241, 250, 0.55) 0%, transparent 48%),
		rgba(255, 255, 255, 0.96) !important;
}

.versicherung-group .service-card__link {
	margin-top: auto !important;
}

.versicherung-group .service-card__link a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.versicherungen-page__hero-trust,
.versicherungen-page__click-trigger {
	display: inline-flex;
	margin-top: 0.55rem;
	padding: 0.35rem 0;
	border: none;
	background: transparent;
	box-shadow: none;
	font-weight: 500;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--wp--preset--color--muted, #6b6b6b);
}

.versicherungen-page__click-trigger--on-deep {
	color: rgba(255, 255, 255, 0.82);
	justify-content: center;
	width: 100%;
	margin-top: 0.85rem;
}

/* Micro-commitment orientation chips */
.versicherungen-page__orient-grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	scroll-margin-top: 5.5rem;
}

@media (min-width: 640px) {
	.versicherungen-page__orient-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.versicherungen-page__orient-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.versicherungen-page__orient-chip {
	margin: 0 !important;
}

.versicherungen-page__orient-chip a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	border: 1px solid var(--primus-card-border);
	background: #fff;
	color: var(--primus-blue-deep, #0f3f7c);
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	box-shadow: var(--primus-shadow-1);
	transition: border-color var(--primus-motion-fast), box-shadow var(--primus-motion-fast), transform var(--primus-motion-fast);
}

.versicherungen-page__orient-chip--priority a {
	border-color: rgba(22, 86, 166, 0.22);
	border-top: 3px solid var(--primus-blue, #1656a6);
	background: linear-gradient(165deg, #f4f8fc 0%, #ffffff 70%);
}

.versicherungen-page__orient-chip a:focus-visible {
	outline: 2px solid var(--primus-gold, #c9a227);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.versicherungen-page__orient-chip a:hover {
		border-color: rgba(22, 86, 166, 0.35);
		box-shadow: var(--primus-shadow-2);
		transform: translateY(-2px);
	}
}

.versicherungen-page__a1-subhead {
	margin: 0.5rem 0 0 !important;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--primus-blue-deep, #0f3f7c);
}

.versicherungen-page__contextual-trust {
	margin: 0 !important;
	font-size: 0.86rem !important;
	color: var(--wp--preset--color--muted, #6b6b6b);
}

.versicherungen-page__smart-check-slot:empty {
	display: none;
}

/* Trust */
.versicherungen-page__trust {
	padding-block: clamp(1.5rem, 2.8vw, 2.25rem) !important;
}

.versicherungen-page__trust .trust-section__grid {
	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);
}

.versicherungen-page__trust .trust-section__item {
	flex: 1 1 200px;
	gap: 0.45rem;
}

.versicherungen-page__trust .trust-section__item::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--primus-gold, #c9a227), rgba(201, 162, 39, 0.15));
}

/* Orientation */
.versicherungen-page__orient {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__orient-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.versicherungen-page__orient-grid > .service-card,
.versicherungen-page__orient-card {
	flex: 1 1 calc(25% - 0.75rem);
	min-width: min(100%, 160px);
	padding: 1.15rem 1.1rem !important;
	border-radius: var(--primus-radius-card) !important;
	border: 1px solid var(--primus-card-border) !important;
	background: #fff !important;
	box-shadow: var(--primus-shadow-1);
	transition: transform var(--primus-motion-normal), box-shadow var(--primus-motion-normal);
}

.versicherungen-page__orient-grid > .service-card a,
.versicherungen-page__orient-card a {
	color: var(--primus-blue-deep, #0f3f7c);
	font-weight: 600;
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.versicherungen-page__orient-note {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* Insurance groups */
.versicherungen-page__worlds {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__groups,
.versicherungen-page__worlds-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.versicherung-group {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: min(100%, 280px);
	padding: 1.25rem !important;
	border-radius: var(--primus-radius-card) !important;
	border: 1px solid var(--primus-card-border) !important;
	background: rgba(255, 255, 255, 0.94) !important;
	box-shadow: var(--primus-shadow-1);
	scroll-margin-top: 5.5rem;
}

.versicherung-group .wp-block-heading {
	color: var(--primus-blue-deep, #0f3f7c);
	font-size: clamp(1.05rem, 1.4vw, 1.2rem) !important;
}

.versicherung-group ul {
	margin: 0.35rem 0 0;
	padding-left: 1.1rem;
}

.versicherung-group .product-link {
	margin-bottom: 0.25rem;
	color: #3a4658;
}

.primus-hub-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #eef5fc 0%, #dceaf7 100%);
	color: var(--primus-blue, #1656a6);
	margin-bottom: 0.35rem;
}

.primus-hub-icon--gold {
	background: linear-gradient(145deg, #f8f1d8 0%, #efe0a8 100%);
	color: #8a7014;
}

/* Compare */
.versicherungen-page__compare {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__compare-row {
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.versicherungen-page__compare-copy {
	flex: 1 1 50%;
	min-width: min(100%, 280px);
}

.versicherungen-page__compare-media {
	flex: 1 1 42%;
	min-width: min(100%, 260px);
}

.versicherungen-page__compare-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--primus-radius-lg);
	box-shadow: var(--primus-shadow-2);
	display: block;
}

.versicherungen-page__checklists {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1rem 0;
}

.versicherungen-page__checklists .wp-block-column,
.versicherungen-page__checklist {
	flex: 1 1 240px;
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid var(--primus-card-border);
	border-radius: var(--primus-radius-card);
	border-left: 4px solid var(--primus-gold, #c9a227);
}

/* Situations */
.versicherungen-page__situations {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__situations .service-card,
.versicherungen-page__situation-card {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: min(100%, 240px);
	border-radius: var(--primus-radius-card) !important;
	border: 1px solid var(--primus-card-border) !important;
	box-shadow: var(--primus-shadow-1);
	background: #fff !important;
}

.versicherungen-page__situations .services-section__grid,
.versicherungen-page__situations-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Process */
.versicherungen-page__process {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__steps {
	counter-reset: vers-step;
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	position: relative;
}

.versicherungen-page__steps li {
	counter-increment: vers-step;
	margin: 0;
	padding: 1.15rem;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--primus-card-border);
	border-radius: var(--primus-radius-card);
	box-shadow: var(--primus-shadow-1);
	position: relative;
}

.versicherungen-page__steps li::before {
	content: counter(vers-step, decimal-leading-zero);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	margin-bottom: 0.65rem;
	border-radius: 50%;
	background: var(--primus-blue, #1656a6);
	color: #fff;
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
	font-size: 0.85rem;
}

/* Schaden panel */
.versicherungen-page__schaden {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__schaden-panel {
	padding: clamp(1.25rem, 2.5vw, 1.75rem) !important;
	border-radius: var(--primus-radius-lg);
	border: 1px solid var(--primus-card-border);
	border-left: 4px solid var(--primus-gold, #c9a227);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--primus-shadow-1);
}

/* Related / notes / regional */
.versicherungen-page__notes,
.versicherungen-page__related,
.versicherungen-page__regional {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__related .service-card {
	flex: 1 1 calc(33.33% - 0.75rem);
	min-width: min(100%, 220px);
	border-radius: var(--primus-radius-card) !important;
	border: 1px solid var(--primus-card-border) !important;
	box-shadow: var(--primus-shadow-1);
	background: #fff !important;
}

.versicherungen-page__related .services-section__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* CTA */
.versicherungen-page__cta {
	padding-block: var(--primus-section-pad-y) !important;
}

.versicherungen-page__cta-panel {
	max-width: 40rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--primus-radius-lg);
	background:
		radial-gradient(ellipse 70% 60% at 0% 0%, rgba(201, 162, 39, 0.14) 0%, transparent 55%),
		rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.versicherungen-page__cta .is-style-outline .wp-element-button {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	background: transparent;
}

.versicherungen-page__cta .wp-element-button {
	min-height: 44px;
}

/* Interactive */
@media (hover: hover) and (pointer: fine) {
	.versicherungen-page__orient-grid > .service-card:hover,
	.versicherungen-page__orient-card:hover,
	.versicherungen-page__a1-card:hover,
	.versicherung-group:hover,
	.versicherungen-page__situation-card:hover,
	.versicherungen-page__related .service-card:has(a):hover,
	.versicherungen-page__related-grid .service-card:has(a):hover {
		transform: translateY(var(--primus-lift));
		box-shadow: var(--primus-shadow-3);
	}
}

.versicherung-group:focus-within,
.versicherungen-page__a1-card:focus-within,
.versicherungen-page__orient-card:focus-within {
	outline: 2px solid var(--primus-blue, #1656a6);
	outline-offset: 3px;
}

/* Headings safety – keine Mittelwort-Umbrüche */
.wp-block-heading,
h1,
h2,
h3 {
	max-width: 100%;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

/* Responsive */
@media (max-width: 1024px) {
	.versicherungen-page__orient-card {
		flex: 1 1 calc(50% - 0.5rem);
	}

	.versicherungen-page__steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 781px) {
	.versicherungen-page__hero-copy,
	.versicherungen-page__hero-figure,
	.versicherungen-page__compare-copy,
	.versicherungen-page__compare-media {
		flex: 1 1 100%;
	}

	.versicherungen-page__hero-figure {
		order: -1;
	}

	.versicherungen-page__intro-photo img {
		object-position: 45% 35%;
	}

	.versicherung-group,
	.versicherungen-page__orient-card,
	.versicherungen-page__related .service-card,
	.versicherungen-page__situations .service-card {
		flex: 1 1 100%;
	}
}

@media (max-width: 390px) {
	.versicherungen-page__hero-copy .has-xx-large-font-size {
		font-size: 1.65rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.versicherungen-page__orient-card,
	.versicherungen-page__orient-chip a,
	.versicherungen-page__a1-card,
	.versicherung-group,
	.versicherungen-page__situation-card,
	.versicherungen-page__related .service-card {
		transition: none !important;
	}

	.versicherungen-page__orient-card:hover,
	.versicherungen-page__orient-chip a:hover,
	.versicherungen-page__a1-card:hover,
	.versicherung-group:hover,
	.versicherungen-page__situation-card:hover,
	.versicherungen-page__related .service-card:has(a):hover {
		transform: none !important;
	}
}
