/**
 * Frontend-Korrekturen hausversicherung-vergleich.de
 *
 * Farb-Token: Divis Akzent #2ea3f2 erreicht auf Weiß nur 2,75:1 und fällt
 * damit durch WCAG AA. Drei Stufen ersetzen ihn:
 *   --hvv-blue-800 #0a4f8f  8,10:1 auf Weiß  -> Flächen mit weißer Schrift
 *   --hvv-blue-700 #0b5ea8  6,60:1 auf Weiß  -> Links, Text, Balken
 *   --hvv-blue-600 #0c71c3  5,04:1 auf Weiß  -> gefüllte Flächen
 *   --hvv-blue-300 #2ea3f2                   -> nur noch dekorativ
 */

:root {
	--hvv-blue-900: #062f57;
	--hvv-blue-800: #0a4f8f;
	--hvv-blue-700: #0b5ea8;
	--hvv-blue-600: #0c71c3;
	--hvv-blue-300: #2ea3f2;
	--hvv-blue-050: #eef5fb;
	--hvv-ink: #1f2933;
	--hvv-muted: #46535f;
	--hvv-accent: #c2410c;
	--hvv-accent-dark: #9a3412;
	--hvv-focus: #b45309;
	--hvv-radius: 10px;
}

/* -------------------------------------------------------------------------
   1. Fokus sichtbar machen (WCAG 2.4.7)
   Divis Reset enthält :focus{outline:0} ohne jeden Ersatz.
   ---------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
.et_pb_button:focus-visible,
.hvv-toggle__btn:focus-visible {
	outline: 3px solid var(--hvv-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.et_pb_bg_layout_dark a:focus-visible,
.et_pb_bg_layout_dark .et_pb_button:focus-visible,
#top-header a:focus-visible,
.hvv-actionbar a:focus-visible,
.hvv-hero a:focus-visible {
	outline-color: #ffffff;
	box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------------------------
   2. Skip-Link
   ---------------------------------------------------------------------- */

.hvv-skip-link {
	position: absolute;
	top: 0;
	left: -9999px;
	z-index: 100001;
	padding: 14px 22px;
	background: var(--hvv-blue-800);
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 var(--hvv-radius) 0;
}

.hvv-skip-link:focus {
	left: 0;
	outline: 3px solid #ffffff;
	outline-offset: -6px;
}

/* -------------------------------------------------------------------------
   3. Top-Bar: Kontrast und Telefon-Link
   Vorher #ffffff auf #2EA3F2 bei 12px = 2,75:1
   ---------------------------------------------------------------------- */

#top-header,
#et-secondary-nav li ul {
	background-color: var(--hvv-blue-800) !important;
}

#top-header {
	font-size: 15px;
	line-height: 1.5;
}

#top-header,
#top-header a,
#top-header #et-info-phone,
#top-header #et-info-email {
	color: #ffffff;
}

.hvv-phone-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-right: 10px;
	color: #ffffff;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.hvv-phone-link::before {
	content: "\260E";
	margin-right: 8px;
	font-size: 1.1em;
}

.hvv-phone-link:hover,
.hvv-phone-link:focus {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------
   4. Links: Divi-Akzent ersetzen
   ---------------------------------------------------------------------- */

#main-content a,
.et_pb_text a,
.et_pb_toggle_content a,
.et_pb_blurb_description a {
	color: var(--hvv-blue-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}

#main-content a:hover {
	text-decoration-thickness: 2px;
}

#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
	color: var(--hvv-blue-700) !important;
}

/* MultiForum-Keyword-Links: Rot signalisiert Fehler, nicht Verweis. */
a.w24mf-link[style] {
	color: var(--hvv-blue-700) !important;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
}

/*
 * Auf dunklen Sektionen muss die Linkfarbe umschlagen. Divis Blau und das
 * Ersatzblau sind auf dem dunklen Hero-Verlauf praktisch unsichtbar
 * (gemessen 1,26:1). Buttons sind ausgenommen, sie bringen eigene Farben mit.
 */
#main-content .et_pb_bg_layout_dark .et_pb_text_inner a:not(.et_pb_button),
.et_pb_bg_layout_dark a.w24mf-link[style] {
	color: #ffffff !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

#main-content .et_pb_bg_layout_dark .et_pb_text_inner a:not(.et_pb_button):hover,
.et_pb_bg_layout_dark a.w24mf-link[style]:hover {
	text-decoration-thickness: 2px;
}

/* -------------------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------------- */

.et_pb_button.hvv-cta-primary,
.et_pb_button.hvv-cta-primary:hover {
	background-color: var(--hvv-accent) !important;
	border-color: var(--hvv-accent) !important;
	color: #ffffff !important;
}

.et_pb_button.hvv-cta-primary:hover {
	background-color: var(--hvv-accent-dark) !important;
	border-color: var(--hvv-accent-dark) !important;
}

.et_pb_button {
	min-height: 48px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

/* -------------------------------------------------------------------------
   6. Akkordeon per Tastatur bedienbar (WCAG 2.1.1)
   ---------------------------------------------------------------------- */

.et_pb_toggle_title .hvv-toggle__btn {
	all: unset;
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 8px 44px 8px 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.et_pb_toggle_open .et_pb_toggle_title .hvv-toggle__btn {
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   7. Tap-Targets (WCAG 2.5.8)
   ---------------------------------------------------------------------- */

#et_search_icon,
.mobile_menu_bar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.et_mobile_menu li a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 14px 5%;
	color: var(--hvv-ink);
}

/* -------------------------------------------------------------------------
   8. Fremd-iframes responsiv
   Der mr-money-Rechner trägt width="700" im Markup.
   ---------------------------------------------------------------------- */

.et_pb_text_inner iframe,
.et_pb_code_inner iframe,
#mrmoFrame {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* -------------------------------------------------------------------------
   9. Lesbarkeit
   ---------------------------------------------------------------------- */

/*
 * Nur Zeilenlänge und Zeilenabstand vereinheitlichen – ausdrücklich KEINE
 * Textfarbe. Ein Farbwert an dieser Stelle trägt ID-Spezifität und schlägt
 * damit auch die hellen Schriftfarben auf dunklen Divi-Sektionen (Hero),
 * was dort dunkelgrauen Text auf blauem Grund erzeugt hat.
 */
#main-content .et_pb_text_inner p,
#main-content .et_pb_text_inner li {
	max-width: 70ch;
	line-height: 1.75;
}

#main-content .et_pb_text_inner li {
	margin-bottom: 0.5em;
}

/* -------------------------------------------------------------------------
   10. Feste Kontaktleiste auf Mobilgeräten
   ---------------------------------------------------------------------- */

.hvv-actionbar {
	display: none;
}

@media (max-width: 980px) {
	.hvv-actionbar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 99998;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1px;
		padding-bottom: env(safe-area-inset-bottom, 0);
		background: rgba(0, 0, 0, 0.12);
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
	}

	.hvv-actionbar__item {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 56px;
		font-size: 16px;
		font-weight: 700;
		text-decoration: none;
	}

	.hvv-actionbar__item--call {
		background: var(--hvv-blue-800);
		color: #ffffff;
	}

	.hvv-actionbar__item--offer {
		background: var(--hvv-accent);
		color: #ffffff;
	}

	.hvv-actionbar__icon {
		font-size: 1.15em;
	}

	#page-container {
		padding-bottom: 64px;
	}
}

/* -------------------------------------------------------------------------
   11. Startseite: eigene Bausteine
   ---------------------------------------------------------------------- */

.hvv-trustbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 30px;
	align-items: center;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hvv-trustbar--stacked {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px !important;
}

/*
 * Auf dunklem Grund: heller Text, weißer Kreis, blauer Haken.
 * Die doppelte Klasse hebt die Spezifität über die Grundregel
 * `.hvv-trustbar li` weiter unten – sonst gewinnt diese über die
 * Quellreihenfolge und färbt den Text dunkelgrau auf Blau.
 */
.hvv-trustbar.hvv-trustbar--dark li {
	color: #e8f1fa;
}

.hvv-trustbar.hvv-trustbar--dark li::before {
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a4f8f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/*
 * Das li ist bewusst KEIN Flex-Container: enthält ein Punkt einen Inline-Link,
 * würden Text und Link zu zwei Flex-Items, zwischen denen nicht umbrochen
 * werden kann – gemessen 22 px Überlauf bei 375 px Breite. Der Haken sitzt
 * deshalb absolut.
 */
.hvv-trustbar li {
	display: block;
	position: relative;
	padding-left: 29px;
	margin: 0 !important;
	max-width: none !important;
	font-size: 15px;
	font-weight: 600;
	color: var(--hvv-muted);
	line-height: 1.45;
}

/*
 * Keine background-Kurzform: sie würde das background-image der
 * --dark-Variante zurücksetzen und blaue Kreise auf blauem Grund erzeugen.
 */
.hvv-trustbar li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc((1.45em - 20px) / 2);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: var(--hvv-blue-600);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: 13px 13px;
	background-repeat: no-repeat;
	background-position: center;
}

/* Auf schmalen Schirmen immer untereinander. */
@media (max-width: 767px) {
	.hvv-trustbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

/* Nummerierte Ablaufschritte. */
.hvv-steps {
	display: grid;
	/* 168px lässt bei rund 990px Inhaltsbreite alle fünf Schritte in eine Reihe. */
	grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hvv-step;
}

.hvv-steps li {
	position: relative;
	margin: 0 !important;
	max-width: none !important;
	/* Schmalerer Innenabstand: sonst bleiben je Zeile nur ~17 Zeichen. */
	padding: 26px 16px 20px;
	background: #ffffff;
	border: 1px solid #dbe4ed;
	border-radius: var(--hvv-radius);
	box-shadow: 0 10px 40px -18px rgba(6, 47, 87, 0.35);
	counter-increment: hvv-step;
	line-height: 1.6;
}

.hvv-steps li::before {
	content: counter(hvv-step);
	position: absolute;
	top: -16px;
	left: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hvv-blue-800);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
}

.hvv-steps strong {
	display: block;
	margin-bottom: 5px;
	color: var(--hvv-ink);
}

/* Beraterin-Karte. */
.hvv-advisor {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	align-items: center;
}

.hvv-advisor__media {
	flex: 0 0 auto;
}

.hvv-advisor__media img {
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
	border-radius: var(--hvv-radius);
	box-shadow: 0 16px 44px -20px rgba(6, 47, 87, 0.6);
}

.hvv-advisor__body {
	flex: 1 1 260px;
	min-width: 240px;
}

.hvv-advisor__name {
	margin: 0 0 2px;
	font-size: 20px;
	font-weight: 700;
	color: var(--hvv-ink);
}

.hvv-advisor__role {
	margin: 0 0 14px;
	font-size: 15px;
	color: var(--hvv-muted);
}

.hvv-advisor__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	margin-top: 16px;
}

.hvv-contactlink {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 8px;
	background: var(--hvv-blue-800);
	color: #ffffff !important;
	font-weight: 700;
	font-size: 17px;
	text-decoration: none !important;
	font-variant-numeric: tabular-nums;
}

.hvv-contactlink:hover,
.hvv-contactlink:focus {
	background: var(--hvv-blue-900);
	color: #ffffff !important;
}

.hvv-contactlink--ghost {
	background: transparent;
	border: 2px solid var(--hvv-blue-800);
	color: var(--hvv-blue-800) !important;
}

.hvv-contactlink--ghost:hover,
.hvv-contactlink--ghost:focus {
	background: var(--hvv-blue-050);
	color: var(--hvv-blue-900) !important;
}

/* Formularkarte. */
.hvv-formcard {
	padding: 8px 4px;
}

.hvv-formcard .hs-form-field {
	margin-bottom: 14px;
}

.hvv-formcard input[type="text"],
.hvv-formcard input[type="email"],
.hvv-formcard input[type="tel"],
.hvv-formcard textarea,
.hvv-formcard select {
	width: 100% !important;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #b9c6d3;
	border-radius: 8px;
	font-size: 16px;
}

.hvv-formcard .hs-button {
	min-height: 50px;
	padding: 0 28px;
	border: 0;
	border-radius: 8px;
	background: var(--hvv-accent);
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.hvv-formcard .hs-button:hover {
	background: var(--hvv-accent-dark);
}

/* Hinweiszeile unter Formularen und Rechnern. */
.hvv-note {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--hvv-muted);
}

@media (max-width: 767px) {
	.hvv-advisor {
		justify-content: center;
		text-align: center;
	}

	.hvv-advisor__contact {
		justify-content: center;
	}

	.hvv-advisor__media img {
		width: 180px;
	}
}

/* -------------------------------------------------------------------------
   12. Bewegungsreduzierung (WCAG 2.3.3)
   ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.et_animated,
	.et-waypoint {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* -------------------------------------------------------------------------
   13. Korrekturen aus dem Kontrast-Review
   ---------------------------------------------------------------------- */

/*
 * Footer-Links: #0b5ea8 auf #212121 ergab 2,44:1. Das Textmodul im Footer
 * trägt et_pb_bg_layout_light, obwohl die Sektion dunkel ist – die
 * Dark-Regel aus Abschnitt 4 greift dort deshalb nicht.
 */
.et-l--footer .et_pb_text_inner a,
.et-l--footer .et_pb_text_inner a:visited {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.et-l--footer .et_pb_text_inner a:hover {
	text-decoration-thickness: 2px;
}

/* Die Link-Unterstreichung aus Abschnitt 4 erwischt auch die CTA-Buttons. */
#main-content .et_pb_button,
#main-content .et_pb_button:hover,
#main-content .et_pb_button:focus {
	text-decoration: none;
}

/*
 * Divi erzwingt für jede Liste in einem Textmodul Aufzählungspunkte und
 * 1,5em Einzug (`.et_pb_text ul/ol`, Spezifität 0-1-1). Das schlägt die
 * eigenen Listenklassen und erzeugt Punkte über jeder Schritt-Überschrift.
 */
.et_pb_text_inner ol.hvv-steps,
.et_pb_text_inner ul.hvv-trustbar {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

.et_pb_text_inner ol.hvv-steps > li,
.et_pb_text_inner ul.hvv-trustbar > li {
	list-style: none;
}

/* Zustands-Icon des Akkordeons: #cccccc auf Weiß = 1,61:1 (WCAG 1.4.11). */
.et_pb_toggle_title::before {
	color: var(--hvv-muted);
}

/* line-height 1 ließ zweizeilige Fragen aneinanderkleben. */
.et_pb_toggle_title,
.et_pb_toggle_title .hvv-toggle__btn {
	line-height: 1.35;
}

@media (max-width: 980px) {
	.hvv-steps {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

/* -------------------------------------------------------------------------
   14. BetterDocs: Plugin-Blau #528ffe = 3,13:1, Suchbutton #24cc8f = 2,08:1
   ---------------------------------------------------------------------- */

.betterdocs-category-title a,
.betterdocs-category-title,
.docs-cat-link-btn,
.betterdocs-category-link-btn,
.betterdocs-single-category-wrapper:hover .betterdocs-category-title {
	color: var(--hvv-blue-700) !important;
}

.betterdocs-category-grid-wrapper
	.betterdocs-category-grid-inner-wrapper
	> :not(.betterdocs-grid-top-row-wrapper)
	.betterdocs-category-items-counts
	span {
	background-color: var(--hvv-blue-800) !important;
	color: #ffffff !important;
}

.betterdocs-search-submit,
.betterdocs-search-form input[type="submit"] {
	background-color: var(--hvv-blue-800) !important;
	color: #ffffff !important;
}

.betterdocs-search-submit:hover,
.betterdocs-search-form input[type="submit"]:hover {
	background-color: var(--hvv-blue-900) !important;
}

.betterdocs-category-grid-inner-wrapper.layout-1
	.betterdocs-category-header
	.betterdocs-category-header-inner {
	border-bottom-color: var(--hvv-blue-600);
}

.betterdocs-articles-list li a.active,
.betterdocs-articles-list li a.active span,
.betterdocs-sidebar-list-wrapper li a.active {
	color: var(--hvv-blue-700) !important;
	font-weight: 700;
}

/* Das Archiv lief ohne Container über die volle Viewportbreite. */
.betterdocs-wrapper .betterdocs-category-grid-wrapper,
.betterdocs-wrapper .betterdocs-search-form-wrapper {
	box-sizing: border-box;
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
