/*
 * Wunderherz – Gestaltung der Inhalte (Frontend und Editor)
 */

:root {
	--wh-rot: var(--wp--preset--color--rot, #900909);
	--wh-herz: var(--wp--preset--color--herz, #f55c5c);
	--wh-rosa: var(--wp--preset--color--rosa, #fccece);
	--wh-rosa-hell: var(--wp--preset--color--rosa-hell, #feefef);
	--wh-text: var(--wp--preset--color--grau, #5f5f5f);
	--wh-radius: 18px;
	--wh-schatten: 0 6px 30px rgba(144, 9, 9, 0.08);
	--wh-rand: clamp(1.25rem, 4vw, 2.5rem);
	--wh-herz-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.3 8.3 2.2 4 6.1 4c2.3 0 3.9 1.3 5.9 3.6C14 5.3 15.6 4 17.9 4 21.8 4 23.7 8.3 22 11.7 19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
	--wh-herz-umriss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 20s-7-4.3-9.3-8.6C1.1 8.3 2.9 5 6.2 5c2 0 3.4 1.1 5.8 3.5C14.4 6.1 15.8 5 17.8 5c3.3 0 5.1 3.3 3.5 6.4C19 15.7 12 20 12 20z'/%3E%3C/svg%3E");
}

/* ---------- Grundtypografie ---------- */
.wh-inhalt p,
.editor-styles-wrapper p {
	margin-block: 0 1.1em;
}
.wh-inhalt :where(h1, h2, h3, h4) {
	margin-block: 0 0.6em;
	text-wrap: balance;
}
.wh-inhalt p:last-child {
	margin-bottom: 0;
}
.wh-untertitel {
	font-size: clamp(1.25rem, 2.2vw, 2rem);
	line-height: 1.4;
	color: var(--wh-rot);
	font-weight: 400;
}
.wh-klein {
	font-size: 0.9rem;
	color: #8a8a8a;
	margin-bottom: 0.25em !important;
}

/* ---------- Herzchen-Liste ---------- */
ul.is-style-herzen {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
ul.is-style-herzen li {
	position: relative;
	padding-left: 1.75em;
	margin-bottom: 0.65em;
}
ul.is-style-herzen li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.38em;
	width: 1.05em;
	height: 1.05em;
	background: var(--wh-rot);
	-webkit-mask: var(--wh-herz-umriss) center / contain no-repeat;
	mask: var(--wh-herz-umriss) center / contain no-repeat;
}

/* ---------- Überschrift mit Herz ---------- */
.is-style-mit-herz::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin: 0 auto 0.6rem;
	background: var(--wh-herz);
	-webkit-mask: var(--wh-herz-svg) center / contain no-repeat;
	mask: var(--wh-herz-svg) center / contain no-repeat;
}
.is-style-mit-herz:not(.has-text-align-center)::before {
	margin-left: 0;
}

/* ---------- Karten ---------- */
.is-style-karte {
	background: #fff;
	border-radius: var(--wh-radius);
	box-shadow: var(--wh-schatten);
	padding: clamp(1.5rem, 3vw, 2.5rem) !important;
	position: relative;
}
.wp-block-column.is-style-karte {
	display: flex;
	flex-direction: column;
}
.wp-block-column.is-style-karte > .wp-block-buttons {
	margin-top: auto;
	padding-top: 0.5rem;
}

/* Halbtransparente Box im Titelbild */
.is-style-glas {
	background: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 2.5rem) !important;
	border-radius: 4px;
}
.is-style-glas > * {
	max-width: none !important;
}
.is-style-glas h1 {
	margin-bottom: 0.1em;
}

/* Etikett */
.is-style-badge {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: #c04848;
	color: #fff;
	border-radius: 30px;
	padding: 0.2em 0.9em 0.1em;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 !important;
}

/* Preis */
.wh-preis {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--wh-rot);
	line-height: 1.1;
	margin: 0.4em 0 0.2em !important;
}
.wh-preise {
	max-width: 760px;
	margin-inline: auto !important;
}
.wh-preise .is-style-mit-herz::before {
	width: 34px;
	height: 34px;
}

/* Herz-Kacheln */
.wh-herzkachel {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.wh-herzkachel h3 {
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

/* Teaser */
.wh-teaser .is-style-karte h3 {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
}

/* Umriss-Knopf */
.wp-block-button.is-style-umriss .wp-block-button__link {
	background: transparent;
	color: var(--wh-rot);
	box-shadow: inset 0 0 0 2px var(--wh-rot);
}
.wp-block-button.is-style-umriss .wp-block-button__link:hover {
	background: var(--wh-rot);
	color: #fff;
}

/* ---------- FAQ ---------- */
.wh-faq {
	max-width: 800px;
	margin-inline: auto;
}
.wp-block-details.is-style-faq {
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--wh-schatten);
	margin: 0 0 0.85rem;
	padding: 0;
	overflow: hidden;
}
.wp-block-details.is-style-faq > summary {
	list-style: none;
	cursor: pointer;
	padding: 1.1rem 3.5rem 1.1rem 1.5rem;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--wh-rot);
	position: relative;
	line-height: 1.3;
}
.wp-block-details.is-style-faq > summary::-webkit-details-marker {
	display: none;
}
.wp-block-details.is-style-faq > summary::after {
	content: "+";
	position: absolute;
	right: 1.4rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--hind);
	font-size: 1.6rem;
	font-weight: 300;
	transition: transform 0.2s;
}
.wp-block-details.is-style-faq[open] > summary::after {
	transform: translateY(-50%) rotate(45deg);
}
.wp-block-details.is-style-faq > :not(summary) {
	padding: 0 1.5rem;
}
.wp-block-details.is-style-faq > :last-child {
	padding-bottom: 1.25rem;
}

/* ---------- Download-Knopf (Datei-Block) ---------- */
.wp-block-file.is-style-download {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.wp-block-file.is-style-download .wp-block-file__button,
.wp-block-file.is-style-download a:not(.wp-block-file__button) {
	font-weight: 600;
}
.wp-block-file .wp-block-file__button {
	background: var(--wh-rot);
	color: #fff;
	border-radius: 30px;
	padding: 0.6em 1.6em;
	text-decoration: none;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.wp-block-file .wp-block-file__button:hover {
	background: var(--wh-herz);
	color: #fff;
}

/* ---------- Platzhalter (sofort sichtbar, solange er nicht ersetzt ist) ---------- */
.wh-platzhalter {
	background: #fff7d6;
	border: 2px dashed #e0b400;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	color: #6b5500;
}

/* ---------- Zitat ---------- */
.wh-zitat {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.5rem;
	font-style: italic;
	color: var(--wh-rot);
	line-height: 1.4;
}

/* ---------- Seitenkopf ---------- */
.wh-seitenkopf-block h1 {
	margin-bottom: 0.15em;
}
.wh-seitenkopf-block .wh-untertitel {
	margin: 0;
}

/* ---------- Rechtliche Seiten ---------- */
.wh-rechtliches h2 {
	font-size: 1.75rem;
	margin-top: 2.2rem;
	font-weight: 600;
}
.wh-rechtliches h3 {
	font-size: 1.4rem;
	margin-top: 1.6rem;
	font-weight: 600;
}
.wh-rechtliches h4 {
	font-size: 1.15rem;
	margin-top: 1.2rem;
	font-weight: 600;
}
.wh-rechtliches {
	overflow-wrap: anywhere;
}

/* Kurs im Überblick */
.wh-ueberblick {
	max-width: 760px !important;
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0 !important;
}
.wh-ueberblick ul.is-style-herzen {
	margin: 1rem 0 1.25rem;
}
