/* ==========================================================================
   vh-landing.css
   Moderner Refresh fuer ALLE Dokument-Landingpages (die Erklaerseiten VOR dem
   Formular, z.B. /musterbriefe/einsprache-strafbefehl/). Gescoped auf
   body.vh-landing (per body_class-Filter in functions.php an die beiden
   Templates content-/contract-resignment-explanation-ad.php gehaengt).
   Ohne diese Klasse voellig inert.

   Zwei-Ton-System: Violett #582488 = Struktur/Ueberschriften (wie die
   Formulare), Orange #EF7700 = die eine Hauptaktion (CTA). Boldness bewusst
   nur beim CTA; alles andere ruhig.
   ========================================================================== */

body.vh-landing {
	--vhl-orange: #EF7700;
	--vhl-orange-dark: #d96b00;
	--vhl-violet: #582488;
	--vhl-violet-dark: #4a1e73;
	--vhl-border: #e7e2ef;
	--vhl-text: #2b2b33;
	--vhl-muted: #5b5b66;
	--vhl-tint: #f7f5fb;
	--vhl-shadow: 0 10px 30px rgba(88, 36, 132, .07);
}

/* --- Rahmen & Rhythmus ---------------------------------------------------- */
body.vh-landing .site-main .entry-content {
	max-width: min(1180px, 92vw);
	margin-left: auto;
	margin-right: auto;
	color: var(--vhl-text);
}

/* Seitentitel: kraeftiger + auf Inhaltsbreite ausgerichtet. margin-top bleibt
   der Theme-Wert (haelt den Titel unter der fixierten Navbar frei); nur der
   grosse Abstand nach unten wird gekappt. */
body.vh-landing .entry-title {
	max-width: min(1180px, 92vw);
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.4rem !important;
	font-weight: 800;
	line-height: 1.12;
	color: var(--vhl-text);
	font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem);
}

body.vh-landing .entry-content h2,
body.vh-landing .entry-content .wp-block-heading {
	color: var(--vhl-violet);
	font-weight: 700;
	line-height: 1.2;
}

/* --- 1) Vertrauensreihe: 3 Karten statt schwarzer Umrandungsbox ---------- */
body.vh-landing .cancellation-head {
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 1.75rem 0 2.75rem !important;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 1.25rem;
}
body.vh-landing .cancellation-head > [class*="col-"] {
	flex: 1 1 260px;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
}
body.vh-landing .osc_servicebox {
	height: 100%;
	background: #fff;
	border: 1px solid var(--vhl-border);
	border-radius: 16px;
	box-shadow: var(--vhl-shadow);
	padding: 1.9rem 1.6rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .95rem;
}
/* Icon-Kreis: kleiner + violett getoenter Hintergrund. WICHTIG: nur
   background-COLOR setzen (nicht das background-Shorthand), sonst faellt das
   als SVG-Hintergrundbild hinterlegte Icon (PDF/Schloss) weg. background-size
   explizit klein, sonst rendert das 1792px-SVG nur seine Ecke. !important,
   weil das Theme .iconcircle mit hoher Prioritaet auf 150px/grau setzt. */
body.vh-landing .osc_servicebox .iconcircle,
body.vh-landing .osc_servicebox .icon_bg {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 76px !important;
	height: 76px !important;
	border-radius: 50% !important;
	background-color: #efe9f6 !important;
	background-size: 40px 40px !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	color: var(--vhl-orange);
	font-size: 34px;
	line-height: 1;
	margin: 0 auto;
	padding: 0;
	flex: none;
}
body.vh-landing .osc_servicebox_content {
	color: var(--vhl-text);
	font-size: 1rem;
	line-height: 1.5;
}

/* --- 2) Primaerer CTA: grosser, gefuellter Orange-Button ------------------ */
body.vh-landing .entry-content p:has(> a.btn) {
	text-align: center;
	margin: 2.25rem 0 2.75rem;
}
body.vh-landing .entry-content a.btn,
body.vh-landing .entry-content a.btn-default {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	background: var(--vhl-orange) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 12px;
	padding: 1rem 2.4rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 10px 26px rgba(239, 119, 0, .30);
	transition: background .15s ease, transform .06s ease, box-shadow .15s ease;
}
body.vh-landing .entry-content a.btn:hover,
body.vh-landing .entry-content a.btn-default:hover {
	background: var(--vhl-orange-dark) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(239, 119, 0, .36);
}
body.vh-landing .entry-content a.btn:active,
body.vh-landing .entry-content a.btn-default:active {
	transform: translateY(0);
}
body.vh-landing .entry-content a.btn:focus-visible {
	outline: 3px solid rgba(239, 119, 0, .45);
	outline-offset: 2px;
}
body.vh-landing .entry-content a.btn .glyphicon {
	font-size: 1.05rem;
	top: 0;
}

/* --- 3) Intro-Bild als gerahmte Papier-Karte ----------------------------- */
body.vh-landing .entry-content .wp-block-image {
	margin: 0 auto;
	text-align: center;
}
body.vh-landing .entry-content .wp-block-image img {
	border: 1px solid var(--vhl-border);
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(20, 20, 40, .13);
	background: #fff;
	max-width: 100%;
	height: auto;
}
body.vh-landing .entry-content .wp-block-image figcaption {
	color: var(--vhl-muted);
	font-size: .9rem;
	margin-top: .65rem;
}

/* --- 4) FAQ: nur wenn per JS zum Akkordeon umgebaut ----------------------- */
body.vh-landing .vh-faq--js .vh-faq-jumplist {
	display: none;
}
body.vh-landing .vh-faq-item {
	border: 1px solid var(--vhl-border);
	border-radius: 12px;
	background: #fff;
	margin-bottom: .75rem;
	overflow: hidden;
}
body.vh-landing .vh-faq-q {
	margin: 0;
}
body.vh-landing .vh-faq-q button {
	appearance: none;
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	text-align: left;
	padding: 1.1rem 1.25rem;
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--vhl-violet);
	font-family: inherit;
}
body.vh-landing .vh-faq-q button:hover {
	background: var(--vhl-tint);
}
body.vh-landing .vh-faq-q button:focus-visible {
	outline: 2px solid var(--vhl-violet);
	outline-offset: -2px;
}
body.vh-landing .vh-faq-chev {
	flex: none;
	color: var(--vhl-orange);
	font-size: 1rem;
	transition: transform .2s ease;
}
body.vh-landing .vh-faq-item.is-open .vh-faq-chev {
	transform: rotate(180deg);
}
/* Kollaps-Verhalten nur mit JS, sonst bleiben Antworten sichtbar. */
body.vh-landing .vh-faq--js .vh-faq-a {
	max-height: 0;
	overflow: hidden;
	padding: 0 1.25rem;
	transition: max-height .25s ease, padding .25s ease;
}
body.vh-landing .vh-faq--js .vh-faq-item.is-open .vh-faq-a {
	max-height: 1500px;
	padding: 0 1.25rem 1.15rem;
}
body.vh-landing .vh-faq-a > :first-child {
	margin-top: 0;
}
body.vh-landing .vh-faq-a > :last-child {
	margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
	body.vh-landing .vh-faq--js .vh-faq-a,
	body.vh-landing .vh-faq-chev {
		transition: none;
	}
}

/* --- 5) Bewertungsbox als dezente Karte ----------------------------------- */
body.vh-landing .yasr-visitor-votes {
	background: var(--vhl-tint);
	border: 1px solid var(--vhl-border);
	border-radius: 16px;
	padding: 1.6rem 1rem;
	margin-top: 2.25rem;
	text-align: center;
}

/* --- Mobile-Feinschliff --------------------------------------------------- */
@media (max-width: 782px) {
	body.vh-landing .cancellation-head {
		gap: 1rem;
		margin: 1.25rem 0 2rem !important;
	}
	body.vh-landing .osc_servicebox {
		padding: 1.5rem 1.25rem;
	}
	body.vh-landing .entry-content a.btn,
	body.vh-landing .entry-content a.btn-default {
		width: 100%;
	}
}
