/* EHNES Kontakt CTA — Rahmen + WPForms-Restyling auf CI.
   Tokens (mit Fallback): Blau #0B55A0, Roboto, eckige Buttons, Hexagon-Marker. */
.ek-cta {
	--ek-accent: #0B55A0;
	--ek-accent-dark: #08427B;
	--ek-ink: #1C2530;
	--ek-muted: #5B6770;
	--ek-line: #E5E9ED;
	--ek-font: var(--ws-font, "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif);
	--ek-hex: var(--ws-hex, polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%));
	position: relative;
	padding: 72px max(24px, calc((100vw - 1240px) / 2));
	font-family: var(--ek-font);
	overflow: hidden;
}
.ek-cta__inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start;
}

/* ---- Text-Spalte ---- */
/* CI-Typografie: Eyebrow Roboto 700, Titel Roboto 700, Text Roboto 18px 300 */
.ek-cta__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .5rem;
	color: var(--ek-accent); font-family: var(--ek-font); font-size: .82rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
}
.ek-cta__eyebrow svg { width: 16px; height: 16px; }
.ek-cta__title { margin: 0 0 .6rem; color: var(--ek-ink); font-family: var(--ek-font); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.ek-cta__lead { margin: 0 0 28px; color: var(--ek-muted); font-family: var(--ek-font); font-size: 18px; font-weight: 300; line-height: 1.6; max-width: 48ch; }
.ek-cta__trust { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ek-cta__trust li { display: flex; align-items: center; gap: 12px; color: var(--ek-ink); font-size: 1rem; font-weight: 500; }
.ek-cta__trust-ic {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 36px; aspect-ratio: var(--ws-hex-ratio, 0.866); height: auto;
	background: var(--ek-accent); color: #fff; clip-path: var(--ek-hex); font-size: 14px;
}
.ek-cta__trust-ic svg { width: 1em; height: 1em; fill: currentColor; }
.ek-cta__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 22px; border-top: 1px solid var(--ek-line); }
.ek-cta__direct-lbl { color: var(--ek-muted); font-size: .9rem; }
.ek-cta__direct a { color: var(--ek-accent); font-weight: 600; text-decoration: none; font-size: 1rem; }
.ek-cta__direct a:hover { color: var(--ek-accent-dark); }

/* ---- Hexagon-Akzent ---- */
.ek-cta--hex::after {
	content: ""; position: absolute; right: -70px; bottom: -70px; z-index: 0;
	width: 360px; aspect-ratio: var(--ws-hex-ratio, 0.866);
	background: var(--ek-accent); opacity: .06; clip-path: var(--ek-hex);
	pointer-events: none;
}

/* ---- Formular-Karte ---- */
.ek-cta__form {
	position: relative; z-index: 1;
	background: #fff; border-radius: 0; padding: 36px 36px 30px;
	box-shadow: 0 20px 60px rgba(8, 31, 56, 0.18);
}

/* =====================================================================
   WPForms-Restyling (auf CI) — alles unter .ek-cta gescoped
   ===================================================================== */
.ek-cta .wpforms-container { margin: 0; }
.ek-cta .wpforms-form * { font-family: var(--ek-font) !important; }
.ek-cta .wpforms-field { padding: 0 0 18px; }
.ek-cta .wpforms-field-label { color: var(--ek-ink); font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.ek-cta .wpforms-required-label { color: #d63637; }
.ek-cta .wpforms-field-description { color: var(--ek-muted); font-size: .82rem; }

/* Inputs / Textarea */
.ek-cta .wpforms-field input[type="text"],
.ek-cta .wpforms-field input[type="email"],
.ek-cta .wpforms-field input[type="tel"],
.ek-cta .wpforms-field input[type="url"],
.ek-cta .wpforms-field textarea {
	width: 100%; box-sizing: border-box;
	border: 1px solid var(--ek-line); border-radius: 0; background: #fff;
	padding: 12px 14px; font-size: 1rem; color: var(--ek-ink);
	transition: border-color .15s, box-shadow .15s;
}
.ek-cta .wpforms-field input:focus,
.ek-cta .wpforms-field textarea:focus {
	outline: none; border-color: var(--ek-accent);
	box-shadow: 0 0 0 3px rgba(11, 85, 160, .12);
}
.ek-cta .wpforms-field-row { margin-bottom: 0; }

/* Radio „Anliegen" + Checkbox „Branche" als auswählbare Karten (außer DSGVO).
   Nativer Kreis/Box wird unsichtbar über die ganze Karte gelegt → ganze Karte
   klickbar, kein „schwebender" Kreis. Markierung via :has(input:checked). */
.ek-cta .wpforms-field-radio ul,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ek-cta .wpforms-field-radio li,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li {
	position: relative; margin: 0 !important;
	border: 1.5px solid var(--ek-line); border-radius: 0;
	transition: border-color .15s, background .15s;
}
.ek-cta .wpforms-field-radio li label,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li label {
	display: block; margin: 0; padding: 12px 18px; cursor: pointer;
	color: var(--ek-ink); font-size: .95rem; font-weight: 500;
}
.ek-cta .wpforms-field-radio li input,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li input {
	position: absolute !important; inset: 0; top: 0; left: 0;
	width: 100% !important; height: 100% !important; margin: 0 !important;
	opacity: 0 !important; cursor: pointer; z-index: 1;
}
/* WPForms-Modern zeichnet einen eigenen Kreis via ::before/::after — ausblenden */
.ek-cta .wpforms-field-radio li input::before,
.ek-cta .wpforms-field-radio li input::after,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li input::before,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li input::after { display: none !important; }
.ek-cta .wpforms-field-radio li:hover,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li:hover { border-color: var(--ek-accent); }
.ek-cta .wpforms-field-radio li:has(input:checked),
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li:has(input:checked) { border-color: var(--ek-accent); background: rgba(11, 85, 160, .08); }
.ek-cta .wpforms-field-radio li:has(input:checked) label,
.ek-cta .wpforms-field-checkbox:not(.ws-gdpr) li:has(input:checked) label { color: var(--ek-accent); }

/* DSGVO: sichtbare Checkbox + Text (keine Karte) */
.ek-cta .wpforms-field.ws-gdpr ul { list-style: none; margin: 0; padding: 0; }
.ek-cta .wpforms-field.ws-gdpr li label {
	display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
	font-weight: 400; font-size: .85rem; color: var(--ek-muted); line-height: 1.5;
}
.ek-cta .wpforms-field.ws-gdpr li input { margin-top: 3px; accent-color: var(--ek-accent); flex: 0 0 auto; }

/* Buttons (Submit + Multi-Step Weiter/Zurück) = pb-btn-Look, eckig */
.ek-cta .wpforms-submit,
.ek-cta .wpforms-page-button {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ek-accent) !important; color: #fff !important;
	border: 2px solid var(--ek-accent) !important; border-radius: 0 !important;
	padding: 13px 30px !important; font-size: .95rem !important; font-weight: 600 !important;
	letter-spacing: .01em; cursor: pointer; transition: background .2s, border-color .2s;
}
.ek-cta .wpforms-submit:hover,
.ek-cta .wpforms-page-button:hover { background: var(--ek-accent-dark) !important; border-color: var(--ek-accent-dark) !important; }
.ek-cta .wpforms-page-button.wpforms-page-prev {
	background: transparent !important; color: var(--ek-accent) !important;
}
.ek-cta .wpforms-page-button.wpforms-page-prev:hover { background: var(--ek-accent) !important; color: #fff !important; }

/* Multi-Step Page-Indicator (circles) — gefüllte Hexagon-Marker in CI */
.ek-cta .wpforms-page-indicator { margin-bottom: 28px; border: 0; background: none; padding: 0; }
.ek-cta .wpforms-page-indicator.circles { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ek-cta .wpforms-page-indicator.circles .wpforms-page-indicator-page {
	display: inline-flex; align-items: center; gap: 10px; opacity: 1; color: var(--ek-muted);
	font-size: .9rem; font-weight: 600;
}
.ek-cta .wpforms-page-indicator.circles .wpforms-page-indicator-page-number {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: 40px !important; height: 46px !important; line-height: 1 !important;
	background: var(--ek-line);
	clip-path: var(--ek-hex); border: 0 !important; border-radius: 0 !important;
	font-weight: 700; font-size: .95rem;
}
.ek-cta .wpforms-page-indicator.circles .wpforms-page-indicator-page.active,
.ek-cta .wpforms-page-indicator.circles .wpforms-page-indicator-page.done { color: var(--ek-ink); }
.ek-cta .wpforms-page-indicator.circles .wpforms-page-indicator-page.active .wpforms-page-indicator-page-number,
.ek-cta .wpforms-page-indicator.circles .wpforms-page-indicator-page.done .wpforms-page-indicator-page-number {
	background: var(--ek-accent); color: #fff;
}

/* Bestätigung / Fehler */
.ek-cta .wpforms-confirmation-container-full {
	background: rgba(11, 85, 160, .07); border: 1px solid var(--ek-line); border-radius: 0;
	color: var(--ek-ink); padding: 22px 24px;
}

/* =====================================================================
   Invertiert: blauer Hintergrund → Text/Icons weiß. Formular bleibt weiß.
   ===================================================================== */
.ek-cta--invert .ek-cta__eyebrow { color: #fff; }
.ek-cta--invert .ek-cta__title { color: #fff; }
.ek-cta--invert .ek-cta__lead { color: rgba(255, 255, 255, .9); }
.ek-cta--invert .ek-cta__trust li { color: #fff; }
.ek-cta--invert .ek-cta__trust-ic { background: #fff; color: var(--ek-accent); }
.ek-cta--invert .ek-cta__direct { border-top-color: rgba(255, 255, 255, .25); }
.ek-cta--invert .ek-cta__direct-lbl { color: rgba(255, 255, 255, .8); }
.ek-cta--invert .ek-cta__direct a { color: #fff; }
.ek-cta--invert .ek-cta__direct a:hover { color: rgba(255, 255, 255, .8); }
.ek-cta--invert.ek-cta--hex::after { background: #fff; opacity: .08; }
.ek-cta .wpforms-error { color: #d63637; font-size: .82rem; }
.ek-cta .wpforms-field input.wpforms-error,
.ek-cta .wpforms-field textarea.wpforms-error { border-color: #d63637; }

@media (max-width: 880px) {
	.ek-cta { padding: 56px 20px; }
	.ek-cta__inner { grid-template-columns: 1fr; gap: 34px; }
	.ek-cta__form { padding: 28px 22px 24px; }
}
