/*
Theme Name: Christina Ruf-Mühlbach
Description: Block-Theme für Christina Ruf-Mühlbach, Heilpraktikerin. Farben, Schriften und Abstände aus dem Designsystem (Palette „Sanft“).
Author: Marcel Mühlbach
Version: 0.1.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ruf-muehlbach
*/

/* Stile für die Block-Varianten aus functions.php.
   Farben nur über die Tokens aus theme.json. */

/* Kicker: Überzeile in Versalien */
.is-style-kicker {
	color: var(--wp--preset--color--salbei-text);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0;
}

/* Leitsatz: goldene Haarlinie + kursiver Garamond-Satz */
.is-style-leitsatz {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--leitsatz);
	font-style: italic;
	line-height: 1.3;
	color: var(--wp--preset--color--tiefsee);
}
.is-style-leitsatz::before {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background: var(--wp--preset--color--gold);
	margin-bottom: var(--wp--preset--spacing--20);
}

/* Einleitung */
.is-style-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
}

/* Hinweis (HWG-Pflichthinweis, Kleingedrucktes) */
.is-style-hinweis {
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--salbei-text);
}

/* Türkis-CTA: eine pro Bildschirmhöhe */
.wp-block-button.is-style-tuerkis .wp-block-button__link {
	background-color: var(--wp--preset--color--tuerkis);
	color: var(--wp--preset--color--tiefsee-dunkel);
}
.wp-block-button.is-style-tuerkis .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--salbei);
	color: var(--wp--preset--color--tiefsee-dunkel);
}

/* Angebotskarte */
.is-style-karte {
	background-color: var(--wp--preset--color--salbei-hell);
	border-radius: 14px;
	padding: var(--wp--preset--spacing--30);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.is-style-karte:hover {
	box-shadow: var(--wp--preset--shadow--weich);
	transform: translateY(-2px);
}
.is-style-karte h3 a { color: inherit; text-decoration: none; }

/* Infobox */
.is-style-infobox {
	background-color: var(--wp--preset--color--tuerkis-hell);
	border-radius: 14px;
	padding: var(--wp--preset--spacing--30);
}

/* Kontaktleiste und Footer: helle Salbei-Leiste mit 3px-Kante */
.is-style-leiste {
	background-color: var(--wp--preset--color--salbei-hell);
	border-top: 3px solid var(--wp--preset--color--salbei);
}

/* Angebotsliste: große Garamond-Ziffern in Türkis */
ol.is-style-angebotsliste {
	list-style: none;
	counter-reset: angebot;
	padding-left: 0;
}
ol.is-style-angebotsliste > li {
	counter-increment: angebot;
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20) 0;
	border-bottom: 1px solid rgba(45, 82, 83, 0.18);
}
ol.is-style-angebotsliste > li::before {
	content: counter(angebot);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 1.9rem + 1.5vw, 3rem);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--tuerkis-text);
}
ol.is-style-angebotsliste strong { color: var(--wp--preset--color--tiefsee); }

/* FAQ: Plus im Goldkreis */
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--titel);
	font-weight: 600;
	color: var(--wp--preset--color--tiefsee);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	min-height: 44px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex: none;
	width: 32px;
	height: 32px;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--text);
	font-size: 1.25rem;
	line-height: 1;
}
.wp-block-details[open] summary::after { content: "–"; }

/* Wortmarke im Kopf */
.wortmarke-zusatz {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--salbei-text);
	margin-top: 4px;
}
.wortmarke-zusatz::before {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background: var(--wp--preset--color--gold);
	margin-bottom: 6px;
}

/* Footer: Links mit goldener Unterstreichung beim Hover */
.site-footer a { color: var(--wp--preset--color--tiefsee); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--gold); text-underline-offset: 4px; }

/* Platzhalter-Kennzeichnung im Entwurf */
.is-style-platzhalter {
	border: 2px dashed var(--wp--preset--color--salbei);
	border-radius: 14px;
	padding: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--salbei-text);
	text-align: center;
	min-height: 240px;
	display: grid;
	place-items: center;
}

/* Sichtbarer Fokus überall */
:where(a, button, summary, input, textarea, select):focus-visible {
	outline: 2px solid var(--wp--preset--color--tiefsee);
	outline-offset: 3px;
}

/* Wortmarke (fester Name, unabhängig vom Website-Titel) */
.wortmarke {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.1;
	margin: 0;
}
.wortmarke a { color: var(--wp--preset--color--tiefsee); text-decoration: none; }
