/* ==========================================================================
   3D Partner — Startseite (Homepage, Post 6685)
   Designrichtlinie v2.5.0: Werkstatt-Amber (#F59E0B), Navy (#12367D),
   Technik-Blau (#0072B5), Schutz-Grün (#0B7A4E), Container 1400px.
   Verwendet eigene Scoped Tokens (--p3dh-*), da partner3d-repair-intake
   globale :root { --p3d-primary; --p3d-border; } Tokens überschreibt.
   ========================================================================== */

/* 1. Shell-Overrides (nur auf Startseite mit .p3dh begrenzt) */
body.p3d-home-page:has(.p3dh) #content {
	max-width: calc(var(--p3d-container-max, 1400px) + 10%);
}

body.p3d-home-page:has(.p3dh) .entry-header {
	display: none;
}

body.p3d-home-page:has(.p3dh) article.page,
body.p3d-home-page:has(.p3dh) .entry-content {
	margin-top: 0 !important;
	margin-bottom: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.p3dh,
.p3dh .wp-block-group__inner-container {
	max-width: 100%;
}

body.p3d-home-page:has(.p3dh) #main,
main:has(.p3dh) {
	overflow-x: clip;
}

/* Floating-Sidebar auf der Startseite ausblenden (verdeckt Header-Suche & Mobile-Bar) */
body.p3d-home-page:has(.p3dh) .floating-menu {
	display: none !important;
}

/* 2. Scoped Tokens & Grundregeln */
.p3dh,
.p3dh-mobile-bar {
	--p3dh-navy: #12367d;
	--p3dh-blue: #0072b5;
	--p3dh-blue-tint: #eef4ff;
	--p3dh-surface: #f7f9fc;
	--p3dh-border: #d5dde6;
	--p3dh-text: #404040;
	--p3dh-muted: #525f70;
	--p3dh-accent: var(--p3d-accent, #f59e0b);
	--p3dh-accent-hover: var(--p3d-accent-hover, #d97706);
	--p3dh-accent-line: var(--p3d-accent-line, #d97706);
	--p3dh-accent-fg: var(--p3d-accent-fg, #1a202c);
	--p3dh-accent-tint: var(--p3d-accent-tint, #fffbeb);
	--p3dh-accent-border: var(--p3d-accent-border, #f5c969);
	--p3dh-green: #0b7a4e;
	--p3dh-green-tint: #ecfdf5;
}

.p3dh {
	color: var(--p3dh-text);
	font-size: 0.96875rem;
	line-height: 1.55;
}

.p3dh *,
.p3dh *::before,
.p3dh *::after {
	box-sizing: border-box;
}

.p3dh > *,
.p3dh-s > .wp-block-group,
.p3dh-contact-grid > *,
.p3dh-faq-grid > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.p3dh :focus-visible {
	outline: 3px solid var(--p3dh-accent-line);
	outline-offset: 3px;
}

.p3dh a:where(:not(.p3d-repair-form-wrapper a, .p3d-repair-form-container a, .p3dgr a, .p3dh-btn, a.p3dh-service-card, .p3dh-mobile-bar-btn)) {
	color: var(--p3dh-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.p3dh a:where(:not(.p3d-repair-form-wrapper a, .p3d-repair-form-container a, .p3dgr a, .p3dh-btn, a.p3dh-service-card, .p3dh-mobile-bar-btn)):hover,
.p3dh a:where(:not(.p3d-repair-form-wrapper a, .p3d-repair-form-container a, .p3dgr a, .p3dh-btn, a.p3dh-service-card, .p3dh-mobile-bar-btn)):focus-visible {
	color: var(--p3dh-navy);
}

/* Plugin-Isolation */
.p3dh .p3d-repair-form-container h1::after,
.p3dh .p3d-repair-form-container h2::after,
.p3dh .p3d-repair-form-container h3::after,
.p3dh .p3dgr h2::after,
.p3dh .p3dgr h3::after {
	content: none !important;
	display: none !important;
}

/* 3. Full-Bleed-Helper */
.p3dh-voll {
	position: relative;
	isolation: isolate;
}

.p3dh-voll::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
}

.p3dh-voll--hero::before {
	background: linear-gradient(135deg, #0b5db8 0%, #12367d 58%, #0d2559 100%);
}

/* Nutzer-Vorgabe: Partner-Carousel-Hintergrund #a7a7a7 unverändert behalten */
.p3dh-voll--carousel::before {
	background: #a7a7a7;
}

.p3dh-voll--surface::before {
	background: var(--p3dh-surface);
}

.p3dh-voll--navy::before {
	background: var(--p3dh-navy);
}

/* 4. Sektionen & Typografie (4K-Skala v2.5.0) */
.p3dh-s {
	padding-block: 44px;
	scroll-margin-top: 96px;
}

.p3dh-s--tight {
	padding-block: 0;
}

.p3dh h1:where(:not(.p3d-repair-form-container h1, .p3d-repair-form-wrapper h1, .p3dgr h1)),
.p3dh h2:where(:not(.p3d-repair-form-container h2, .p3d-repair-form-wrapper h2, .p3dgr h2)),
.p3dh h3:where(:not(.p3d-repair-form-container h3, .p3d-repair-form-wrapper h3, .p3dgr h3)) {
	font-family: "Space Grotesk", Arial, sans-serif;
	font-weight: 700;
	text-wrap: balance;
	margin: 0;
}

.p3dh h1:where(:not(.p3d-repair-form-container h1, .p3d-repair-form-wrapper h1, .p3dgr h1)) {
	font-size: clamp(1.75rem, 2.5vw, 2.375rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #ffffff;
	max-width: 24ch;
}

.p3dh h1:where(:not(.p3d-repair-form-container h1, .p3d-repair-form-wrapper h1, .p3dgr h1))::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: var(--p3dh-accent);
	margin-top: 14px;
}

.p3dh h2:where(:not(.p3d-repair-form-container h2, .p3d-repair-form-wrapper h2, .p3dgr h2)) {
	font-size: clamp(1.375rem, 1.7vw, 1.75rem);
	line-height: 1.2;
	color: var(--p3dh-navy);
	max-width: 34ch;
}

.p3dh h2:where(:not(.p3d-repair-form-container h2, .p3d-repair-form-wrapper h2, .p3dgr h2))::before {
	content: none !important;
}

.p3dh h2:where(:not(.p3d-repair-form-container h2, .p3d-repair-form-wrapper h2, .p3dgr h2))::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: var(--p3dh-accent);
	margin-top: 12px;
}

.p3dh h3:where(:not(.p3d-repair-form-container h3, .p3d-repair-form-wrapper h3, .p3dgr h3)) {
	font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
	line-height: 1.3;
	color: var(--p3dh-navy);
}

.p3dh .p3dh-service-card h3::after,
.p3dh .p3dh-step h3::after,
.p3dh .p3dh-ins-strip h3::after,
.p3dh .p3dh-contact-card h3::after {
	content: none !important;
	display: none !important;
}

.p3dh-voll--navy h2:where(:not(.p3dgr h2)) {
	color: #ffffff;
}

.p3dh-kicker {
	display: inline-block;
	margin: 0 0 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--p3dh-blue);
}

.p3dh-kicker--on-dark {
	color: rgba(255, 255, 255, 0.88);
}

.p3dh-sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
}

.p3dh-sec-head-text {
	min-width: 0;
}

.p3dh-intro {
	margin: 14px 0 0;
	max-width: 64ch;
	color: var(--p3dh-text);
}

.p3dh-num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* 5. Buttons (Werkstatt-Amber #F59E0B + #1A202C, Hover #D97706) */
.p3dh-btn,
.p3dh a.p3dh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border: 2px solid var(--p3dh-accent);
	border-radius: 6px;
	background: var(--p3dh-accent);
	color: var(--p3dh-accent-fg);
	font: 700 0.96875rem/1.2 Inter, Arial, sans-serif;
	box-shadow: 0 2px 6px rgba(18, 54, 125, 0.14);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.p3dh-btn:hover,
.p3dh-btn:focus-visible,
.p3dh a.p3dh-btn:hover,
.p3dh a.p3dh-btn:focus-visible {
	background: var(--p3dh-accent-hover);
	border-color: var(--p3dh-accent-hover);
	color: var(--p3dh-accent-fg);
	text-decoration: none;
}

.p3dh-btn:active,
.p3dh a.p3dh-btn:active {
	transform: translateY(1px);
}

.p3dh-btn--secondary,
.p3dh a.p3dh-btn--secondary {
	background: #ffffff;
	border: 2px solid var(--p3dh-navy);
	color: var(--p3dh-navy);
	box-shadow: none;
}

.p3dh-btn--secondary:hover,
.p3dh-btn--secondary:focus-visible,
.p3dh a.p3dh-btn--secondary:hover,
.p3dh a.p3dh-btn--secondary:focus-visible {
	background: var(--p3dh-blue-tint);
	border-color: var(--p3dh-navy);
	color: var(--p3dh-navy);
}

.p3dh-btn--on-dark,
.p3dh a.p3dh-btn--on-dark {
	background: transparent;
	border: 2px solid #ffffff;
	color: #ffffff;
	box-shadow: none;
}

.p3dh-btn--on-dark:hover,
.p3dh-btn--on-dark:focus-visible,
.p3dh a.p3dh-btn--on-dark:hover,
.p3dh a.p3dh-btn--on-dark:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	border-color: #ffffff;
	color: #ffffff;
}

.p3dh-cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}

/* 6. Hero (60/40) */
.p3dh-hero {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	align-items: center;
	padding-block: 40px 44px;
	color: #ffffff;
}

.p3dh-hero-text {
	min-width: 0;
}

.p3dh-hero-lead {
	margin: 16px 0 0;
	max-width: 56ch;
	font-size: 1.03125rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.93);
}

.p3dh .p3dh-hero-trust {
	list-style: none;
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.94);
}

.p3dh .p3dh-hero-trust li {
	position: relative;
	padding-left: 18px;
	margin: 0;
}

.p3dh .p3dh-hero-trust li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: #4ade80;
	font-weight: 700;
}

.p3dh-hero-media {
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.24);
	box-shadow: 0 18px 40px rgba(8, 22, 56, 0.34);
	background: #0d2559;
}

.p3dh-hero-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* 7. Partner-Carousel (#a7a7a7, Motion unverändert erhalten) */
.partner-carousel-container {
	width: 100%;
	overflow: hidden;
	padding: 20px 0;
}

.partner-carousel-track {
	display: flex;
	width: calc(200px * 34);
	animation: partnerCarousel 120s linear infinite;
}

.partner-carousel-item {
	width: 200px;
	flex-shrink: 0;
	padding: 0 20px;
	box-sizing: border-box;
}

.partner-carousel-item img {
	display: block;
	width: 100%;
	height: 60px;
	object-fit: contain;
}

@keyframes partnerCarousel {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(calc(-200px * 17));
	}
}

/* 8. Leistungen (Karten im /dienstleistungen/-Stil + WERTGARANTIE-Streifen) */
.p3dh-service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 24px;
	align-items: stretch;
}

.p3dh a.p3dh-service-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px 22px;
	background: #ffffff;
	border: 1px solid var(--p3dh-border);
	border-radius: 12px;
	color: var(--p3dh-text);
	text-decoration: none !important;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.p3dh a.p3dh-service-card:hover,
.p3dh a.p3dh-service-card:focus-visible {
	border-color: var(--p3dh-blue);
	box-shadow: 0 8px 22px rgba(18, 54, 125, 0.08);
	transform: translateY(-2px);
}

.p3dh-service-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.p3dh-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--p3dh-blue-tint);
}

.p3dh-icon--green {
	background: var(--p3dh-green-tint);
}

.p3dh-icon::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
}

.p3dh-icon--repair::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312367d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.p3dh-icon--wartung::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312367d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

.p3dh-icon--shop::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312367d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

.p3dh-icon--druck::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312367d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

.p3dh-icon--modding::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312367d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E");
}

.p3dh-icon--scan::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312367d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M17 3h2a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M21 17v2a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M7 21H5a2 2 0 0 1-2-2v-2'/%3E%3Cline x1='7' y1='12' x2='17' y2='12'/%3E%3C/svg%3E");
}

.p3dh-icon--shield::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a4e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.p3dh-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--p3dh-surface);
	border: 1px solid var(--p3dh-border);
	font-family: "Space Grotesk", Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--p3dh-navy);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.p3dh-pill--green {
	background: var(--p3dh-green-tint);
	border-color: var(--p3dh-green);
	color: var(--p3dh-green);
}

.p3dh-service-card h3 {
	margin: 0 0 6px;
	font-size: 1.125rem;
	line-height: 1.25;
}

.p3dh-service-card p {
	margin: 0 0 16px;
	font-size: 0.90625rem;
	line-height: 1.5;
	color: var(--p3dh-text);
}

.p3dh-service-foot {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Space Grotesk", Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--p3dh-blue);
	transition: color 0.15s ease;
}

.p3dh-arrow {
	display: inline-block;
	transition: transform 0.15s ease;
}

.p3dh a.p3dh-service-card:hover .p3dh-service-foot,
.p3dh a.p3dh-service-card:focus-visible .p3dh-service-foot {
	color: var(--p3dh-navy);
}

.p3dh a.p3dh-service-card:hover .p3dh-arrow,
.p3dh a.p3dh-service-card:focus-visible .p3dh-arrow {
	transform: translateX(3px);
}

/* WERTGARANTIE-Streifen unter den 6 Leistungen */
.p3dh-ins-strip {
	margin-top: 20px;
	padding: 20px 24px;
	background: var(--p3dh-surface);
	border: 1px solid var(--p3dh-border);
	border-left: 4px solid var(--p3dh-green);
	border-radius: 12px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px 20px;
	align-items: center;
}

.p3dh-ins-copy {
	min-width: 0;
}

.p3dh-ins-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.p3dh-ins-copy h3 {
	margin: 0;
	font-size: 1.0625rem;
}

.p3dh-ins-copy p {
	margin: 0;
	font-size: 0.90625rem;
	color: var(--p3dh-text);
}

/* 9. Ablauf in 6 Schritten (01-06 Badges) */
.p3dh .p3dh-steps {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.p3dh .p3dh-step {
	background: #ffffff;
	border: 1px solid var(--p3dh-border);
	border-radius: 12px;
	padding: 20px;
	margin: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.p3dh-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--p3dh-navy);
	color: #ffffff;
	font-family: "Space Grotesk", Arial, sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	margin-bottom: 12px;
}

.p3dh .p3dh-step h3 {
	margin: 0 0 6px;
}

.p3dh .p3dh-step p {
	margin: 0;
	font-size: 0.90625rem;
	line-height: 1.5;
	color: var(--p3dh-text);
}

/* 10. Über uns (60/40 Sven) + Navy-KPI-Band */
.p3dh-about {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	align-items: center;
}

.p3dh-about > * {
	min-width: 0;
}

.p3dh-about p {
	margin: 14px 0 0;
	max-width: 60ch;
}

.p3dh .p3dh-list--pro {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.p3dh .p3dh-list--pro li {
	position: relative;
	padding-left: 22px;
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
}

.p3dh .p3dh-list--pro li::before {
	content: "\2713";
	color: var(--p3dh-green);
	font-weight: 700;
	position: absolute;
	left: 0;
	top: 0;
}

.p3dh-about-media {
	min-width: 0;
}

.p3dh-about-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--p3dh-border);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 30% 15%;
	background: var(--p3dh-surface);
	box-shadow: 0 8px 24px rgba(18, 54, 125, 0.08);
}

/* Navy-KPI-Band */
.p3dh-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.p3dh-kpi-card {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	padding: 20px 16px;
	text-align: center;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.p3dh-kpi-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
}

.p3dh-kpi-icon::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
}

.p3dh-kpi-icon--printers::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.p3dh-kpi-icon--brands::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}

.p3dh-kpi-icon--years::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.p3dh-kpi-icon--service::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.p3dh-kpi-val {
	font-family: "Space Grotesk", Arial, sans-serif;
	font-size: clamp(1.75rem, 2.4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.1;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

.p3dh-kpi-label {
	font-size: 0.90625rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
}

/* 11. Kundenstimmen ([p3d_google_reviews] Integration) */
.p3dh-reviews-box {
	margin-top: 24px;
}

.p3dh .p3dgr__summary--link {
	border: 1px solid var(--p3dh-border);
	background: #ffffff;
}

.p3dh .p3dgr__card {
	background: #ffffff;
	border: 1px solid var(--p3dh-border);
}

.p3dh .p3dgr__more {
	color: var(--p3dh-blue);
	min-height: 32px;
	padding: 4px 0;
}

.p3dh-reviews-foot {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	font-size: 0.875rem;
	color: var(--p3dh-muted);
}

.p3dh-reviews-foot p {
	margin: 0;
}

/* 12. Top-5-FAQs (2-Spalten + echtes Kadence Accordion wie reparatur.css) */
.p3dh-faq-grid {
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: 32px;
	align-items: start;
}

.p3dh-faq-grid > * {
	min-width: 0;
}

.p3dh-faq-more {
	margin: 14px 0 0;
	font-size: 0.9375rem;
	color: var(--p3dh-muted);
}

.p3dh .wp-block-kadence-accordion {
	width: 100%;
}

.p3dh .kt-accordion-inner-wrap {
	row-gap: 10px;
}

.p3dh .wp-block-kadence-pane {
	border: 1px solid var(--p3dh-border);
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	transition: border-color 0.15s ease;
}

.p3dh .wp-block-kadence-pane:has(.kt-accordion-panel-active) {
	border-color: var(--p3dh-navy);
}

.p3dh .kt-accordion-header-wrap {
	margin: 0 !important;
	padding: 0 !important;
}

.p3dh .kt-blocks-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 44px;
	padding: 12px 18px;
	border: 0;
	border-radius: 0;
	background-color: var(--p3dh-surface);
	color: var(--p3dh-navy);
	font: 600 0.96875rem/1.35 Inter, Arial, sans-serif;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.p3dh .kt-blocks-accordion-header:hover,
.p3dh .kt-blocks-accordion-header.kt-accordion-panel-active {
	background-color: var(--p3dh-blue-tint);
	color: var(--p3dh-navy);
}

.p3dh .kt-blocks-accordion-header:focus-visible {
	outline: 3px solid var(--p3dh-accent-line);
	outline-offset: -3px;
}

.p3dh .kt-blocks-accordion-icon-trigger {
	flex: none;
	margin-left: 16px;
	transition: transform 0.15s ease;
}

.p3dh .kt-blocks-accordion-icon-trigger::before,
.p3dh .kt-blocks-accordion-icon-trigger::after {
	background-color: var(--p3dh-navy);
	transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.p3dh .kt-accordion-panel-inner {
	padding: 14px 18px 18px;
	border: 0;
	border-top: 1px solid var(--p3dh-border);
	background: #ffffff;
	color: var(--p3dh-text);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.p3dh .kt-accordion-panel-inner p {
	margin: 0;
}

.p3dh .kt-accordion-panel-inner p + p {
	margin-top: 10px;
}

/* 13. Kontakt & Anfrageformular (4fr/8fr-Split + Plugin-UX/A11y-Fixes) */
.p3dh-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"head form"
		"aside form";
	column-gap: 32px;
	row-gap: 20px;
	align-items: stretch;
}

.p3dh-contact-head {
	grid-area: head;
	min-width: 0;
}

.p3dh-contact-head .p3dh-intro {
	margin: 14px 0 0;
	max-width: none;
}

.p3dh-contact-aside {
	grid-area: aside;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.p3dh-contact-aside > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.p3dh-contact-card,
.p3dh-form-card {
	background: #ffffff;
	border: 1px solid var(--p3dh-border);
	border-radius: 12px;
	min-width: 0;
}

.p3dh-contact-card {
	padding: 22px;
}

.p3dh-contact-card p {
	margin: 10px 0 0;
	font-size: 0.9375rem;
}

.p3dh-contact-meta {
	list-style: none;
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--p3dh-border);
	display: grid;
	gap: 10px;
	font-size: 0.9375rem;
}

.p3dh-contact-meta li {
	margin: 0;
}

.p3dh-map-wrap {
	border: 1px solid var(--p3dh-border);
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	flex: 1 1 auto;
	min-height: 260px;
	display: flex;
	flex-direction: column;
}

.p3dh-map-wrap .kt-google-maps-container,
.p3dh-map-wrap .kb-google-maps-container {
	flex: 1 1 auto;
	height: 100% !important;
	min-height: 260px;
	margin: 0;
}

.p3dh-map-wrap .kt-google-maps-container iframe,
.p3dh-map-wrap .kb-google-maps-container iframe {
	height: 100% !important;
	min-height: 260px;
}

.p3dh-form-card {
	grid-area: form;
	padding: 36px 36px 28px;
	display: flex;
	flex-direction: column;
}

.p3dh-form-card .p3d-repair-form-wrapper {
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.p3dh-form-card .p3d-progress-bar {
	margin-bottom: 28px;
	flex: 0 0 auto;
}

.p3dh-form-card .p3d-repair-intake-form {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.p3dh-form-card .p3d-form-step {
	flex: 1 0 auto;
	padding: 32px 32px 28px;
	border-radius: 10px;
	border: 1px solid #e6ecf2;
	box-shadow: 0 2px 10px rgba(18, 54, 125, 0.04);
	min-height: 0;
}

.p3dh-form-card .p3d-form-navigation {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--p3dh-border);
	flex: 0 0 auto;
}

.p3dh-form-card .p3d-privacy-note {
	margin: 14px 0 0;
	flex: 0 0 auto;
}

/* Redundante 6-Schritte-Box + Raketen-Text über dem 6-Schritte-Wizard ausblenden */
.p3dh-form-card .p3d-form-guide,
.p3dh-form-card .p3d-form-intro-text {
	display: none;
}

.p3dh-form-card .p3d-step-title {
	font-family: "Space Grotesk", Arial, sans-serif !important;
	font-size: clamp(1.125rem, 1.4vw, 1.25rem) !important;
	line-height: 1.3 !important;
	color: var(--p3dh-navy) !important;
	margin-bottom: 24px !important;
}

.p3dh-form-card #p3d-next-btn,
.p3dh-form-card #p3d-submit-btn {
	background: var(--p3dh-accent) !important;
	border-color: var(--p3dh-accent) !important;
	color: var(--p3dh-accent-fg) !important;
	font-weight: 700 !important;
}

.p3dh-form-card #p3d-next-btn:hover,
.p3dh-form-card #p3d-next-btn:focus-visible,
.p3dh-form-card #p3d-submit-btn:hover,
.p3dh-form-card #p3d-submit-btn:focus-visible {
	background: var(--p3dh-accent-hover) !important;
	border-color: var(--p3dh-accent-hover) !important;
	color: var(--p3dh-accent-fg) !important;
}

.p3dh-form-card #p3d-reset-form {
	color: var(--p3dh-muted) !important;
	text-decoration: underline;
	min-height: 44px;
	padding: 8px 12px !important;
}

.p3dh-form-card #p3d-reset-form:hover,
.p3dh-form-card #p3d-reset-form:focus-visible {
	color: var(--p3dh-navy) !important;
}

.p3dh-form-card .p3d-info-icon {
	min-width: 32px;
	min-height: 32px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--p3dh-blue-tint) !important;
	border: 1px solid var(--p3dh-blue) !important;
	color: var(--p3dh-navy) !important;
	font-size: 0.9rem;
	font-weight: 700;
}

/* 14. Mobile Sticky-Bar (<= 768px) */
.p3dh-mobile-bar {
	display: none;
}

@media (max-width: 768px) {
	body.p3d-home-page:has(.p3dh) #main-footer {
		padding-bottom: 84px;
	}

	.p3dh-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 900;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #ffffff;
		border-top: 1px solid var(--p3dh-border, #d5dde6);
		box-shadow: 0 -4px 18px rgba(18, 54, 125, 0.14);
		transform: translateY(0);
		transition: transform 0.22s ease;
	}

	.p3dh-mobile-bar.is-hidden {
		transform: translateY(110%);
		pointer-events: none;
	}

	.p3dh-mobile-bar-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		padding: 10px 20px;
		border-radius: 8px;
		background: var(--p3dh-accent, #f59e0b);
		color: var(--p3dh-accent-fg, #1a202c) !important;
		font: 700 0.96875rem/1.2 Inter, Arial, sans-serif;
		text-decoration: none !important;
	}

	.p3dh-mobile-bar-btn:hover,
	.p3dh-mobile-bar-btn:focus-visible {
		background: var(--p3dh-accent-hover, #d97706);
		color: var(--p3dh-accent-fg, #1a202c) !important;
	}
}

/* 15. Responsive, Sticky & Touch */
@media (min-width: 1025px) {
	.p3dh-faq-info {
		position: sticky;
		top: 96px;
	}
}

@media (max-width: 768px), (pointer: coarse) {
	.p3dh-btn,
	.p3dh a.p3dh-btn,
	.p3dh .kt-blocks-accordion-header,
	.p3dh .p3dgr__more,
	.p3dh-form-card .p3d-info-icon,
	.p3dh-form-card button,
	.p3dh-contact-meta a,
	.p3dh-reviews-foot a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	.p3dh .p3dgr .p3dgr__more {
		min-height: 46px !important;
		box-sizing: border-box;
		display: inline-flex;
		align-items: center;
	}

	.p3dh-btn,
	.p3dh a.p3dh-btn,
	.p3dh .kt-blocks-accordion-header {
		min-height: 48px;
	}

	.p3dh-form-card .p3d-info-icon {
		min-width: 44px;
		min-height: 44px;
		width: 44px;
		height: 44px;
	}

	.p3dh-form-card .p3d-btn {
		min-height: 48px;
	}
}

@media (max-width: 1024px) {
	.p3dh-hero,
	.p3dh-about,
	.p3dh-faq-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.p3dh-contact-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		grid-template-areas:
			"head"
			"form"
			"aside";
		gap: 24px;
	}

	.p3dh-map-wrap {
		flex: 0 0 auto;
		min-height: 0;
	}

	.p3dh-map-wrap .kt-google-maps-container,
	.p3dh-map-wrap .kb-google-maps-container,
	.p3dh-map-wrap .kt-google-maps-container iframe,
	.p3dh-map-wrap .kb-google-maps-container iframe {
		height: 260px !important;
		min-height: 260px;
	}

	.p3dh-service-grid,
	.p3dh .p3dh-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p3dh-kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p3dh-ins-strip {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.p3dh-ins-strip > .p3dh-btn,
	.p3dh-ins-strip > a.p3dh-btn {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 768px) {
	.p3dh-s {
		padding-block: 32px;
	}

	.p3dh-s--tight {
		padding-block: 0;
	}

	.p3dh-hero {
		padding-block: 24px 28px;
	}

	.p3dh-service-grid,
	.p3dh .p3dh-steps {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.p3dh-ins-strip {
		grid-template-columns: 1fr;
		padding: 18px 16px;
	}

	.p3dh-map-wrap {
		min-height: 220px;
	}

	.p3dh-map-wrap .kt-google-maps-container,
	.p3dh-map-wrap .kb-google-maps-container,
	.p3dh-map-wrap .kt-google-maps-container iframe,
	.p3dh-map-wrap .kb-google-maps-container iframe {
		height: 220px !important;
		min-height: 220px;
	}

	.p3dh-contact-card,
	.p3dh-form-card {
		padding: 20px 16px;
	}

	.p3dh-form-card .p3d-form-step {
		padding: 20px 16px;
	}

	.p3dh-cta-row {
		flex-direction: column;
		align-items: stretch;
	}

	.p3dh-cta-row .p3dh-btn,
	.p3dh-cta-row a.p3dh-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p3dh a,
	.p3dh-btn,
	.p3dh a.p3dh-service-card,
	.p3dh-arrow,
	.p3dh .wp-block-kadence-pane,
	.p3dh .kt-blocks-accordion-header,
	.p3dh .kt-blocks-accordion-icon-trigger,
	.p3dh .kt-blocks-accordion-icon-trigger::before,
	.p3dh .kt-blocks-accordion-icon-trigger::after,
	.p3dh-mobile-bar {
		transition: none !important;
	}

	.p3dh-btn:active,
	.p3dh a.p3dh-service-card:hover,
	.p3dh a.p3dh-service-card:focus-visible,
	.p3dh a.p3dh-service-card:hover .p3dh-arrow,
	.p3dh a.p3dh-service-card:focus-visible .p3dh-arrow {
		transform: none !important;
	}
}
