/*
Theme Name: Karens Musikgarten
Theme URI: https://www.karensmusikgarten.de
Author: Karens Musikgarten
Description: Eigenes, schlankes Block-Theme für Karens Musikgarten: Musikgarten für Babys und Kleinkinder in Steinheim-Höpfigheim und Gesang für besondere Anlässe. Keine Cookies, keine Tracker, Schriften vom eigenen Server.
Version: 0.6.6
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karens-musikgarten
*/

/* ------------------------------------------------------------------
   Grundlagen
   ------------------------------------------------------------------ */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

html,
body {
	overflow-x: clip;
}

.wp-site-blocks {
	overflow-x: clip;
}

/* Zusatzfarbe aus dem Entwurf (Flieder für Symbole und Etiketten) */
:root {
	--kmg-flieder: #EDC8E9;
}

/* Sichtbarer Fokus für Tastaturbedienung (WCAG) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--logo-blau);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Abschnitte: Pünktchen liegen immer im Hintergrund */
.kmg-abschnitt {
	position: relative;
	isolation: isolate;
}

/* ------------------------------------------------------------------
   Pünktchen (Blockstile für Gruppen)
   Nie über Text, Fotos, Schaltflächen oder Karten: z-index -1,
   die Inhalte darüber haben eigene Flächen.
   ------------------------------------------------------------------ */

[class*="is-style-punkte-"] {
	position: relative;
	isolation: isolate;
}

[class*="is-style-punkte-"]::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -15px;
	left: 50%;
	width: 1920px;
	margin-left: -960px;
	height: 100%;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 1920px auto;
}

.is-style-punkte-1::before { background-image: url("assets/punkte/punkte-1.svg"); }
.is-style-punkte-2::before { background-image: url("assets/punkte/punkte-2.svg"); }
.is-style-punkte-3::before { background-image: url("assets/punkte/punkte-3.svg"); }
.is-style-punkte-4::before { background-image: url("assets/punkte/punkte-4.svg"); }
.is-style-punkte-5::before { background-image: url("assets/punkte/punkte-5.svg"); }
.is-style-punkte-band::before { background-image: url("assets/punkte/punkte-band.svg"); }

/* Auf dem Handy: lockeres Pünktchen-Band zwischen den Abschnitten statt der Seitenränder */
@media (max-width: 781px) {
	[class*="is-style-punkte-"] {
		padding-bottom: 84px !important;
	}
	[class*="is-style-punkte-"]::before {
		top: auto;
		bottom: -15px;
		left: 50%;
		width: 390px;
		margin-left: -195px;
		height: 114px;
		background-image: url("assets/punkte/punkte-band-handy.svg");
		background-size: 390px 114px;
		background-position: center bottom;
	}
	.is-style-hinweis-aktuell[class*="is-style-punkte-"],
	.is-style-punkte-band {
		padding-bottom: 0 !important;
	}
	.is-style-punkte-band::before {
		display: none;
	}
}

/* ------------------------------------------------------------------
   Kopfbereich
   ------------------------------------------------------------------ */

.kmg-kopf {
	border-bottom: 1px solid var(--wp--preset--color--rose-hell);
}

.kmg-kopf .kmg-logo img {
	width: 132px;
	height: 132px;
	display: block;
}

.kmg-kopf .wp-block-navigation-item__content {
	padding: 0.5rem 0.25rem;
	border-bottom: 3px solid transparent;
	text-decoration: none;
}

.kmg-kopf .wp-block-navigation-item__content:hover,
.kmg-kopf .wp-block-navigation-item__content:focus-visible {
	border-bottom-color: var(--wp--preset--color--rose-hafer);
}

.kmg-kopf .current-menu-item > .wp-block-navigation-item__content,
.kmg-kopf [aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--rose-hafer-dunkel);
}


/* Menü-Knopf auf dem Handy: Pille mit Symbol und Wort „Menü“ wie im Entwurf */
.kmg-kopf .wp-block-navigation__responsive-container-open {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 18px;
	border: 2px solid var(--wp--preset--color--nachtblau);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1rem;
	color: var(--wp--preset--color--nachtblau);
}

.kmg-kopf .wp-block-navigation__responsive-container-open::after {
	content: "Menü";
}

.kmg-kopf .wp-block-navigation__responsive-container-open svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 599px) {
	.kmg-kopf .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex;
	}
}

@media (max-width: 781px) {
	.kmg-kopf .kmg-logo img { width: 92px; height: 92px; }
	.kmg-kopf .kmg-kopf-knopf { display: none; }
}

/* ------------------------------------------------------------------
   Schaltflächen
   ------------------------------------------------------------------ */

.wp-block-button__link {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--nachtblau);
	color: var(--wp--preset--color--nachtblau);
	padding: calc(0.9rem - 2px) calc(1.75rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--nachtblau);
	color: var(--wp--preset--color--weiss);
}

/* Auf dem Handy stehen die Schaltflächen untereinander und volle Breite */
@media (max-width: 781px) {
	.kmg-knoepfe {
		flex-direction: column;
		align-items: stretch;
	}
	.kmg-knoepfe > .wp-block-button,
	.kmg-knoepfe > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

/* ------------------------------------------------------------------
   Texte
   ------------------------------------------------------------------ */

.kmg-handschrift {
	font-family: var(--wp--preset--font-family--patrick-hand);
	font-size: var(--wp--preset--font-size--handschrift);
	color: var(--wp--preset--color--logo-blau);
	line-height: 1.3;
}

.kmg-etikett {
	display: inline-block;
	align-self: flex-start;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 0.9375rem;
	line-height: 1.3;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--blaugrau-hell);
	color: var(--wp--preset--color--nachtblau);
}

/* ------------------------------------------------------------------
   Fotos (Blockstile für Bilder)
   ------------------------------------------------------------------ */

/* Rund und weich auslaufend, angelehnt an den Kreis des Logos */
.wp-block-image.is-style-rund-weich img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	-webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}

/* Weicher Rand ohne harte Kante */
.wp-block-image.is-style-weicher-rand img {
	-webkit-mask-image: radial-gradient(ellipse closest-side, #000 78%, transparent 100%);
	mask-image: radial-gradient(ellipse closest-side, #000 78%, transparent 100%);
}

/* Rundes Foto mit Logo-Plakette unten links */
.wp-block-image.is-style-rund-mit-logo {
	position: relative;
}

.wp-block-image.is-style-rund-mit-logo img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	-webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}

.wp-block-image.is-style-rund-mit-logo::after {
	content: "";
	position: absolute;
	left: -20px;
	bottom: -24px;
	width: 250px;
	height: 250px;
	background: url("assets/images/logo-karens-musikgarten.svg") center / contain no-repeat;
	filter: drop-shadow(0 6px 14px rgba(46, 58, 78, 0.18));
	pointer-events: none;
}

@media (max-width: 781px) {
	.wp-block-image.is-style-rund-mit-logo::after {
		width: 150px;
		height: 150px;
		left: auto;
		right: -6px;
		bottom: -14px;
	}
}

/* ------------------------------------------------------------------
   Hinweiskasten „Aktuell“
   ------------------------------------------------------------------ */

.is-style-hinweis-aktuell {
	background: var(--wp--preset--color--milchweiss);
	border: 2px dashed var(--wp--preset--color--rose-hafer);
	border-radius: 20px;
	padding: 18px 26px;
}

.is-style-hinweis-aktuell .kmg-etikett {
	background: var(--wp--preset--color--rose-hell);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------
   Karten (Kurskarten)
   ------------------------------------------------------------------ */

.is-style-karte {
	background: var(--wp--preset--color--milchweiss);
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(46, 58, 78, 0.08);
}

.is-style-karte > .wp-block-image {
	margin: 0;
}

.is-style-karte > .wp-block-image img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	display: block;
}

@media (max-width: 781px) {
	.is-style-karte > .wp-block-image img { height: 240px; }
}

.is-style-karte h3 {
	font-size: 1.75rem;
}

/* Kurskarte der Startseite: Inhalt unter dem Foto */
.is-style-karte {
	display: flex;
	flex-direction: column;
}

.is-style-karte > * {
	margin: 0 !important;
}

.kmg-karteninhalt {
	flex: 1;
	gap: 12px !important;
	padding: 26px 30px 30px;
}

.kmg-karteninhalt > * {
	margin: 0 !important;
}

.kmg-kartenzeile + .kmg-kartenzeile {
	margin-top: -12px !important;
}

.kmg-kartenfuss {
	gap: 22px !important;
	margin-top: auto !important;
	padding-top: 6px;
}

.kmg-kartenfuss > * {
	margin: 0 !important;
}

/* Beitrag groß, „im Monat“ klein dahinter */
.kmg-preis::after {
	content: " im Monat";
	font-family: var(--wp--preset--font-family--atkinson);
	font-weight: 400;
	font-size: 1rem;
	color: var(--wp--preset--color--nachtblau);
}

.kmg-preis {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 2.25rem;
	color: var(--wp--preset--color--logo-blau);
}

.kmg-textlink {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
}

/* ------------------------------------------------------------------
   Startseite: Bildausschnitt oben wie im Entwurf
   ------------------------------------------------------------------ */

.kmg-fokus-rechts img {
	object-position: 92.7% 50%;
}

@media (max-width: 781px) {
	.kmg-fokus-rechts img { object-position: 96.5% 50%; }
}

/* ------------------------------------------------------------------
   Was ist Musikgarten? Merkmale mit runden Symbolen
   ------------------------------------------------------------------ */

.kmg-merkmal {
	position: relative;
	min-height: 72px;
	padding-left: 94px;
}

.kmg-merkmal + .kmg-merkmal {
	margin-top: 30px;
}

.kmg-merkmal > * {
	margin: 0;
}

.kmg-merkmal h3 {
	font-size: 1.5rem;
	margin-bottom: 4px;
}

.kmg-merkmal::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--wp--preset--color--rose-hell) url("assets/symbole/note.svg") center / 34px no-repeat;
}

.kmg-merkmal-musizieren::before {
	background-color: var(--wp--preset--color--blaugrau-hell);
	background-image: url("assets/symbole/trommel.svg");
}

.kmg-merkmal-bewegen::before {
	background-color: var(--kmg-flieder);
	background-image: url("assets/symbole/bewegen.svg");
}

.kmg-lizenzgeber-link a {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	color: var(--wp--preset--color--nachtblau);
	font-size: 1rem;
}

.kmg-lizenzgeber-link img {
	width: 120px;
	height: auto;
	flex: 0 0 auto;
	background: #fff;
	border-radius: 10px;
	padding: 6px;
	box-sizing: border-box;
}

@media (max-width: 781px) {
	.kmg-merkmal {
		min-height: 56px;
		padding-left: 72px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.kmg-merkmal + .kmg-merkmal { margin-top: 18px; }
	.kmg-merkmal h3 { font-size: 1.1875rem; margin-bottom: 0; }
	.kmg-merkmal::before {
		width: 56px;
		height: 56px;
		top: 50%;
		margin-top: -28px;
		background-size: 28px;
	}
	.kmg-lizenzgeber-link img { width: 100px; border-radius: 8px; padding: 5px; }
	.kmg-lizenzgeber-link a { gap: 12px; font-size: 0.9375rem; }
}

/* ------------------------------------------------------------------
   So läuft eine Stunde: roter Faden, Rituale, Wochenkarte, Etiketten
   ------------------------------------------------------------------ */

.kmg-einleitung {
	max-width: 40em;
}

.kmg-ablauf {
	position: relative;
	margin-top: 36px !important;
	margin-bottom: 56px !important;
}

.kmg-ablauf::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 30px;
	height: 60px;
	background: url("assets/symbole/roter-faden.svg") center / 100% 100% no-repeat;
	pointer-events: none;
}

.kmg-ablauf > .wp-block-column {
	position: relative;
}

.kmg-ritual {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.kmg-ritual > * {
	margin: 0 !important;
}

.kmg-ritual h3 {
	font-size: 1.5rem;
}

.kmg-ritual::before {
	content: "";
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--wp--preset--color--rose-hafer) url("assets/symbole/note-hell.svg") center / 48px no-repeat;
}

.kmg-ritual-abschluss::before {
	background-image: url("assets/symbole/herz-hell.svg");
}

.kmg-wochenkarte {
	background: var(--wp--preset--color--hintergrund);
	border-radius: 40px;
	padding: 30px 34px;
}

.kmg-wochenkarte > * {
	margin: 0;
}

.kmg-wochenkarte > * + * {
	margin-top: 16px;
}

.kmg-wochenkarte h3 {
	font-size: 1.5rem;
}

.kmg-wochenkarte .kmg-handschrift {
	font-size: 1.5rem;
	margin-top: 20px;
}

.kmg-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.kmg-chips li {
	margin: 0;
	background: var(--wp--preset--color--milchweiss);
	border: 2px solid var(--wp--preset--color--rose-hell);
	border-radius: 999px;
	padding: 6px 16px;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	line-height: 1.4;
}

.kmg-chips li:nth-child(3n+2) { border-color: var(--wp--preset--color--blaugrau-hell); }
.kmg-chips li:nth-child(3n) { border-color: var(--kmg-flieder); }

.kmg-chips.kmg-chips-thema li {
	background: var(--wp--preset--color--hintergrund);
	border: 2px dashed var(--wp--preset--color--rose-hafer);
	color: var(--wp--preset--color--logo-blau);
}

/* Zwei Fotos unter dem Ablauf, weich auslaufend */
.kmg-foto-reihe {
	margin: 0;
}

.kmg-foto-reihe img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	border-radius: 40px;
	display: block;
	-webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}

.kmg-foto-vater img {
	object-position: 40% 50%;
}

@media (max-width: 781px) {
	.kmg-ablauf {
		padding-left: 28px;
		margin-top: 22px !important;
		margin-bottom: 26px !important;
	}
	.kmg-ablauf::before {
		left: 0;
		right: auto;
		top: 24px;
		bottom: 24px;
		width: 20px;
		height: auto;
		background-image: url("assets/symbole/roter-faden-senkrecht.svg");
	}
	.kmg-ritual {
		position: relative;
		min-height: 56px;
		padding-left: 70px;
		text-align: left;
		align-items: flex-start;
		justify-content: center;
		gap: 0;
	}
	.kmg-ritual::before {
		position: absolute;
		left: 0;
		top: 50%;
		margin-top: -28px;
		width: 56px;
		height: 56px;
		background-size: 26px;
	}
	.kmg-ritual h3,
	.kmg-wochenkarte h3 { font-size: 1.25rem; }
	.kmg-wochenkarte {
		border-radius: 28px;
		padding: 20px 18px;
	}
	.kmg-wochenkarte .kmg-handschrift { font-size: 1.3125rem; }
	.kmg-chips { gap: 8px; }
	.kmg-chips li { padding: 4px 12px; }
	.kmg-ablauf.wp-block-columns { gap: 18px !important; }
	.kmg-fotoreihe > .wp-block-column:nth-child(2) { display: none; }
	.kmg-foto-reihe img { height: 300px; border-radius: 32px; }
}

/* ------------------------------------------------------------------
   Hallo, ich bin Karen!
   ------------------------------------------------------------------ */

.kmg-portrait-rund {
	margin: 0;
}

.kmg-portrait-rund img {
	width: 420px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	border: 10px solid var(--wp--preset--color--milchweiss);
	box-shadow: 0 10px 30px rgba(46, 58, 78, 0.10);
	box-sizing: border-box;
	display: block;
}

.kmg-gruss.wp-block-heading {
	font-family: var(--wp--preset--font-family--patrick-hand);
	font-weight: 400;
	font-size: 2.5rem;
	line-height: 1.1;
	color: var(--wp--preset--color--logo-blau);
	margin-bottom: 8px;
}

@media (max-width: 781px) {
	.kmg-karen { text-align: center; }
	.kmg-karen p:not(.kmg-textlink) { text-align: left; }
	.kmg-portrait-rund img { width: 280px; margin: 0 auto; border-width: 8px; }
	.kmg-gruss.wp-block-heading { font-size: 2rem; margin-top: 16px; }
}

/* ------------------------------------------------------------------
   Häufige Fragen (aufklappbar)
   ------------------------------------------------------------------ */

.wp-block-details.kmg-frage {
	border-bottom: 2px solid var(--wp--preset--color--blaugrau-hell);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.kmg-frage summary {
	cursor: pointer;
	list-style: none;
	padding: 22px 0;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.3125rem;
	color: var(--wp--preset--color--nachtblau);
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.kmg-frage summary::-webkit-details-marker {
	display: none;
}

.kmg-frage summary::after {
	content: "+";
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wp--preset--color--logo-blau);
}

.kmg-frage[open] summary::after {
	content: "–";
}

.kmg-frage > p {
	margin: 0 0 22px;
}

.kmg-fragen > .wp-block-heading {
	margin-bottom: 16px;
}

.kmg-fragen > .kmg-textlink {
	margin-top: 28px;
}

@media (max-width: 781px) {
	.kmg-frage summary { font-size: 1.125rem; padding: 18px 0; }
	.kmg-frage > p { margin-bottom: 18px; }
}

/* ------------------------------------------------------------------
   Band „Gesang“
   ------------------------------------------------------------------ */

.kmg-band-text {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--wp--preset--color--nachtblau);
	margin: 0;
}

.kmg-band-link {
	margin: 0;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.1875rem;
}

.kmg-band-link a {
	color: var(--wp--preset--color--nachtblau);
}

@media (max-width: 781px) {
	.kmg-gesang-band > .wp-block-group { flex-direction: column; align-items: flex-start !important; gap: 8px; }
	.kmg-band-text { font-size: 1.25rem; }
}

/* ------------------------------------------------------------------
   Handy: Leiste unten mit „Anrufen“ und „Platz anfragen“
   ------------------------------------------------------------------ */

.wp-block-group.kmg-handy-leiste {
	display: none;
}

@media (max-width: 781px) {
	.wp-block-group.kmg-handy-leiste {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		gap: 10px;
		padding: 10px 16px 14px;
		background: rgba(254, 244, 229, 0.97);
		border-top: 1px solid var(--wp--preset--color--rose-hell);
		box-shadow: 0 -6px 18px rgba(46, 58, 78, 0.10);
	}
	.kmg-handy-leiste .wp-block-buttons { width: 100%; gap: 10px; }
	.kmg-handy-leiste .wp-block-button { flex: 1; margin: 0; }
	.kmg-handy-leiste .wp-block-button:last-child { flex: 1.3; }
	.kmg-handy-leiste .wp-block-button__link { width: 100%; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
	.kmg-handy-leiste .kmg-anrufen .wp-block-button__link::before {
		content: "";
		width: 20px;
		height: 20px;
		margin-right: 8px;
		background: url("assets/symbole/telefon.svg") center / contain no-repeat;
	}
	.kmg-handy-leiste .kmg-anrufen .wp-block-button__link:hover::before { filter: invert(1); }
	body { padding-bottom: 80px; }
	/* Was mit der Tabulatortaste angesteuert wird, rutscht nicht unter die Leiste (Test 6.6) */
	html { scroll-padding-bottom: 96px; }
}

/* Auf Seiten mit Formular keine Leiste: Sie lenkt beim Ausfüllen ab (Handy-Test 6.7).
   Die Klasse setzt das Plugin „Karens Musikgarten · Funktionen“. */
@media (max-width: 781px) {
	body.kmg-mit-formular .wp-block-group.kmg-handy-leiste { display: none; }
	body.kmg-mit-formular { padding-bottom: 0; }
	html:has(body.kmg-mit-formular) { scroll-padding-bottom: 0; }
}

/* Sehr schmale Handys (320 px): „Anrufen“ bleibt in einer Zeile (Test 6.6) */
@media (max-width: 360px) {
	.wp-block-group.kmg-handy-leiste { padding-left: 12px; padding-right: 12px; }
	.kmg-handy-leiste .wp-block-buttons { gap: 8px; }
	.kmg-handy-leiste .wp-block-button__link { padding-left: 8px; padding-right: 8px; }
	.kmg-handy-leiste .kmg-anrufen .wp-block-button__link::before { margin-right: 6px; }
}

/* Auf dem Handy etwas kleinere Einleitungstexte wie im Entwurf */
@media (max-width: 781px) {
	body .has-gross-font-size {
		font-size: 1.125rem !important;
	}
}

/* ------------------------------------------------------------------
   Kurskarte ausführlich (Kursseite)
   ------------------------------------------------------------------ */

.kmg-kurskarten-breit > * + * {
	margin-top: 40px !important;
}

.kmg-karte-breit-spalten {
	gap: 0 !important;
	margin: 0 !important;
}

.kmg-karte-breit-spalten > .wp-block-column {
	margin: 0 !important;
}

.kmg-karte-breit .kmg-kartenbild {
	margin: 0;
	height: 100%;
}

.kmg-karte-breit .kmg-kartenbild img {
	width: 100%;
	height: 100%;
	min-height: 480px;
	object-fit: cover;
	display: block;
}

.kmg-karte-breit .wp-block-column.is-vertically-aligned-center {
	padding: 44px 48px;
}

.kmg-karte-breit .wp-block-column.is-vertically-aligned-center > * {
	margin-top: 0;
	margin-bottom: 18px;
}

.kmg-karte-breit h2 {
	font-size: 2.25rem;
	color: var(--wp--preset--color--nachtblau);
}

.kmg-fakten {
	grid-template-columns: 150px 1fr !important;
	gap: 10px 20px !important;
}

.kmg-fakten > * {
	margin: 0 !important;
}

.kmg-fakt-name {
	font-weight: 700;
	color: var(--wp--preset--color--logo-blau);
}

.kmg-fakt-beitrag {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--wp--preset--color--logo-blau);
	line-height: 1.3;
}

@media (max-width: 781px) {
	.kmg-karte-breit .kmg-kartenbild img { min-height: 0; height: 250px; }
	.kmg-karte-breit .wp-block-column.is-vertically-aligned-center { padding: 24px 22px 28px; }
	.kmg-karte-breit h2 { font-size: 1.75rem; }
	.kmg-fakten { grid-template-columns: 90px 1fr !important; }
	/* Foto auf dem Handy immer oben */
	.kmg-bild-rechts { flex-direction: column-reverse; }
	.kmg-karte-breit-spalten > .wp-block-column { align-self: stretch !important; box-sizing: border-box; }
}

/* ------------------------------------------------------------------
   Bildstrecke mit Vergrößerung (Bühnenfotos)
   ------------------------------------------------------------------ */

.wp-block-gallery.kmg-bildstrecke {
	--wp--style--unstable-gallery-gap: 32px;
	gap: 40px 32px !important;
}

.wp-block-gallery.kmg-bildstrecke .wp-block-image {
	display: flex;
	flex-direction: column;
	justify-content: flex-start !important;
}

.wp-block-gallery.kmg-bildstrecke .wp-block-image::before,
.wp-block-gallery.kmg-bildstrecke .wp-block-image::after {
	display: none !important;
}

.wp-block-gallery.kmg-bildstrecke .wp-block-image img {
	aspect-ratio: 3 / 4;
	height: auto !important;
	width: 100%;
	flex: none !important;
	object-fit: cover;
	border-radius: 28px;
	transition: transform 0.3s;
}

.wp-block-gallery.kmg-bildstrecke .wp-block-image:hover img {
	transform: scale(1.02);
}

.wp-block-gallery.kmg-bildstrecke .wp-block-image figcaption {
	position: static !important;
	background: none !important;
	color: var(--wp--preset--color--nachtblau) !important;
	text-align: left !important;
	text-shadow: none !important;
	max-height: none !important;
	overflow: visible !important;
	padding: 14px 0 0 !important;
	margin: 0 !important;
	font-size: 1.125rem !important;
	line-height: 1.5;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	backdrop-filter: none !important;
}

.wp-block-gallery.kmg-bildstrecke figcaption strong {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.375rem;
}

.kmg-bild-ort,
.kmg-bild-nachweis {
	font-size: 1rem;
	color: var(--wp--preset--color--logo-blau);
}

.kmg-bild-nachweis {
	font-size: 0.875rem;
}

@media (max-width: 781px) {
	.wp-block-gallery.kmg-bildstrecke {
		--wp--style--unstable-gallery-gap: 16px;
		gap: 28px 16px !important;
	}
	.wp-block-gallery.kmg-bildstrecke.columns-3 .wp-block-image {
		width: calc(50% - 8px) !important;
	}
	.wp-block-gallery.kmg-bildstrecke .wp-block-image img { border-radius: 20px; }
	.wp-block-gallery.kmg-bildstrecke .wp-block-image figcaption { font-size: 1rem !important; }
	.wp-block-gallery.kmg-bildstrecke figcaption strong { font-size: 1.125rem; }
}

/* Vergrößerung: Hintergrund in Nachtblau wie im Entwurf */
.wp-lightbox-overlay .scrim {
	background-color: rgba(46, 58, 78, 0.92) !important;
}

/* ------------------------------------------------------------------
   Hörbeispiele: YouTube erst nach Klick, Album-Links
   ------------------------------------------------------------------ */

.kmg-coming-soon {
	background: var(--wp--preset--color--hintergrund);
	border-radius: 20px;
	padding: 20px 26px;
	gap: 16px !important;
	margin: 20px 0 48px !important;
}

.kmg-coming-soon > * {
	margin: 0;
}

.kmg-etikett.kmg-etikett-dunkel {
	background: var(--wp--preset--color--nachtblau);
	color: var(--wp--preset--color--weiss);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.kmg-videos {
	margin-bottom: 48px !important;
}

.kmg-video {
	margin: 0;
}

.kmg-video-rahmen {
	aspect-ratio: 16 / 9;
	background: rgba(163, 181, 196, 0.8);
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
	overflow: hidden;
}

.kmg-video-rahmen.ist-geladen {
	padding: 0;
	background: #000;
}

.kmg-video-rahmen iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.kmg-video-start {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--wp--preset--color--milchweiss);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(46, 58, 78, 0.15);
	transition: transform 0.2s;
}

.kmg-video-start:hover {
	transform: scale(1.06);
}

.kmg-video-knopf {
	width: 0;
	height: 0;
	margin-left: 6px;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent var(--wp--preset--color--nachtblau);
}

.kmg-video-hinweis {
	margin: 0;
	font-size: 0.9375rem;
	max-width: 26em;
	color: var(--wp--preset--color--nachtblau);
}

.kmg-video figcaption {
	margin-top: 12px;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.3125rem;
	text-align: left;
	color: var(--wp--preset--color--nachtblau);
}

.kmg-album {
	gap: 22px !important;
}

.kmg-album > * {
	margin: 0 !important;
}

.kmg-albumcover img {
	width: 96px;
	height: 83px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.kmg-album-text > p {
	margin: 0 0 10px;
}

.kmg-album-knoepfe {
	gap: 10px !important;
}

.wp-block-button.kmg-knopf-klein > .wp-block-button__link {
	min-height: 44px;
	padding: 0 16px;
	font-size: 1rem;
}

@media (max-width: 781px) {
	.kmg-video-start { width: 64px; height: 64px; }
	.kmg-video-hinweis { font-size: 0.875rem; }
	.kmg-video-rahmen { padding: 16px; gap: 10px; }
}

/* ------------------------------------------------------------------
   Fußbereich
   ------------------------------------------------------------------ */

.kmg-fuss {
	font-size: 1.0625rem;
}

.kmg-fuss a {
	color: var(--wp--preset--color--nachtblau);
}

.kmg-fuss .kmg-fuss-logo img {
	width: 92px;
	height: 92px;
	display: block;
}

.kmg-fuss .kmg-lizenzgeber img {
	width: 150px;
	height: auto;
	display: block;
}

.kmg-fuss-titel {
	font-weight: 700;
	margin-bottom: 0.25rem !important;
}

.kmg-fuss-links {
	border-top: 1px solid rgba(46, 58, 78, 0.25);
}

.kmg-fuss-links a {
	text-decoration: underline;
}

@media (max-width: 781px) {
	.kmg-fuss {
		font-size: 1rem;
	}
	.kmg-fuss .wp-block-columns {
		gap: 22px !important;
	}
	.kmg-fuss .wp-block-column > * {
		margin-top: 0;
		margin-bottom: 0;
	}
	.kmg-fuss .wp-block-column > * + * {
		margin-top: 4px;
	}
	.kmg-fuss .kmg-fuss-logo img {
		width: 70px;
		height: 70px;
	}
	.kmg-fuss .kmg-lizenzgeber img {
		width: 110px;
	}
}

/* ==========================================================================
   Schritt 6.4: Seiten Kurse, Über mich, Gesang, Kontakt und Rechtstexte
   ========================================================================== */

/* Seitenkopf ohne Foto (Kurse, Kontakt) */
.kmg-seitenkopf h1 { max-width: 16em; }
.kmg-seitenkopf .kmg-einleitung { max-width: 36em; }

/* Sprungmarken auf der Kursseite */
.kmg-sprungmarken {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.kmg-sprungmarken li { margin: 0; }
.kmg-sprungmarken a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--wp--preset--color--milchweiss);
	color: var(--wp--preset--color--nachtblau);
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
}
.kmg-sprungmarken a:hover { background: var(--wp--preset--color--rose-hell); }

/* Sprungziele nicht unter dem Seitenrand verstecken */
[id] { scroll-margin-top: 24px; }

/* Kursort */
.kmg-foto-weich img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	border-radius: 48px;
	display: block;
	-webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.kmg-ort-name {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.5rem;
	margin-bottom: 6px;
}
.kmg-ort-adresse { font-size: 1.25rem; margin-top: 0; }
.kmg-route .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("assets/symbole/ort.svg") center / contain no-repeat;
	mask: url("assets/symbole/ort.svg") center / contain no-repeat;
}
.kmg-route .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Liste mit farbigen Punkten (Gut zu wissen) */
.kmg-punkteliste {
	list-style: none;
	margin: 36px 0 32px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px 48px;
}
.kmg-punkteliste li {
	position: relative;
	margin: 0;
	padding-left: 32px;
}
.kmg-punkteliste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--rose-hafer);
}
.kmg-punkteliste li:nth-child(4n+2)::before { background: var(--wp--preset--color--punkte-blau); }
.kmg-punkteliste li:nth-child(4n+3)::before { background: var(--kmg-flieder); }
.kmg-punkteliste li:nth-child(4n)::before { background: var(--wp--preset--color--rose-hell); }

/* Nummerierte Schritte (Anmeldung, Gesang-Anfrage) */
.kmg-schritte {
	list-style: none;
	counter-reset: kmg-schritt;
	margin: 40px 0 44px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
}
.kmg-schritte li {
	counter-increment: kmg-schritt;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.kmg-schritte li::before {
	content: counter(kmg-schritt);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--wp--preset--color--rose-hafer);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.625rem;
}
.kmg-schritte li:nth-child(2)::before { background: var(--wp--preset--color--rose-hell); }
.kmg-schritte li:nth-child(3)::before { background: var(--wp--preset--color--blaugrau-hell); }
.kmg-schritte strong {
	display: block;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.3;
}
.kmg-schritte-dunkel {
	list-style: none;
	counter-reset: kmg-schritt;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.kmg-schritte-dunkel li {
	counter-increment: kmg-schritt;
	margin: 0;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding-top: 0;
}
.kmg-schritte-dunkel li::before {
	content: counter(kmg-schritt);
	flex: 0 0 48px;
	height: 48px;
	margin-top: -8px;
	border-radius: 50%;
	background: var(--wp--preset--color--nachtblau);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.25rem;
}
.kmg-anruf-zeile { gap: 24px; }
.kmg-anruf-zeile p { margin: 0; }
.kmg-anruf-zeile a { font-weight: 700; }

/* Über mich */
.kmg-portrait-rahmen { margin: 0; display: flex; justify-content: center; }
.kmg-portrait-rahmen img {
	width: 100%;
	max-width: 460px;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	border: 10px solid var(--wp--preset--color--milchweiss);
	box-shadow: 0 10px 30px rgba(46, 58, 78, 0.10);
	box-sizing: border-box;
	display: block;
}
.kmg-portrait-oben img { object-position: 50% 15%; max-width: 420px; }
.kmg-zwischentitel.wp-block-heading {
	font-size: 1.75rem;
	color: var(--wp--preset--color--nachtblau);
	margin-top: 40px;
}
.kmg-gruss-zeile {
	font-family: var(--wp--preset--font-family--patrick-hand);
	font-size: 1.75rem;
	color: var(--wp--preset--color--logo-blau);
}
.kmg-hakenliste {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.kmg-hakenliste li {
	margin: 0;
	position: relative;
	padding-left: 42px;
}
.kmg-hakenliste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 26px;
	height: 26px;
	background: url("assets/symbole/haken.svg") center / contain no-repeat;
}
.kmg-infokarte {
	background: var(--wp--preset--color--hintergrund);
	border-radius: 40px;
	padding: 36px 40px;
}
.kmg-infokarte .kmg-handschrift { font-size: 1.75rem; margin: 0 0 8px; }
.kmg-infokarte p:last-child { margin-bottom: 0; }

/* Gesang */
.kmg-gesang-kopf { background: rgba(163, 181, 196, 0.8); }
.kmg-gesang-kopf .kmg-handschrift { color: var(--wp--preset--color--logo-blau); }
.kmg-gesang-kopf h1 { color: var(--wp--preset--color--nachtblau); }
/* Gesangs-Logo statt der Handschrift-Zeile „Karen Selig-Deininger · Sängerin“ (03.11.2026).
   Der Text bleibt im Inhalt: Screenreader und Suchmaschinen lesen ihn, sichtbar ist das Logo. */
.kmg-gesang-kopf .wp-block-column > .kmg-handschrift:first-child {
	width: min(100%, 380px);
	aspect-ratio: 405 / 215;
	margin: 0 0 8px -12px;
	background: url("assets/images/gesang-logo-saengerin.svg") no-repeat left center / contain;
	color: transparent;
	overflow: hidden;
	white-space: nowrap;
	text-indent: 110%;
}
@media (forced-colors: active) {
	.kmg-gesang-kopf .wp-block-column > .kmg-handschrift:first-child {
		width: auto;
		aspect-ratio: auto;
		margin: 0;
		background: none;
		color: CanvasText;
		text-indent: 0;
		white-space: normal;
	}
}
.kmg-knopf-hell .wp-block-button__link {
	background: var(--wp--preset--color--milchweiss);
	color: var(--wp--preset--color--nachtblau);
}
.kmg-knopf-hell .wp-block-button__link:hover { background: #fff; }
.kmg-bogenbild { margin: 0; display: flex; justify-content: center; }
.kmg-bogenbild img {
	width: 100%;
	max-width: 483px;
	aspect-ratio: 4 / 5;
	height: auto;
	object-fit: cover;
	object-position: center top;
	border-radius: 48% 48% 40px 40px;
	display: block;
	background: var(--wp--preset--color--hintergrund);
	-webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.kmg-anlaesse { gap: 0 48px; margin-top: 40px; }
.kmg-anlass {
	border-top: 2px solid var(--wp--preset--color--punkte-blau);
	padding: 22px 0 30px;
}
.kmg-anlass h3 { margin: 0 0 6px; font-size: 1.5rem; }
.kmg-anlass p { margin: 0; }
.kmg-rund-weich-gross { margin: 0; }
.kmg-rund-weich-gross img {
	width: 360px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	-webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.kmg-titel-klein.wp-block-heading { font-size: 2rem; }
.kmg-chips.kmg-chips-rand { margin-bottom: 14px; }
.kmg-chips.kmg-chips-rand li {
	background: var(--wp--preset--color--milchweiss);
	border-color: var(--wp--preset--color--punkte-blau);
	font-family: inherit;
	font-weight: 700;
	padding: 6px 18px;
}
.kmg-aussage {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.4;
	max-width: 760px;
	margin: 0;
}

/* Gesang: Überschriften wie im Entwurf in Logo-Blau, auf hellblauen Flächen in Nachtblau */
.page-template-page-gesang main h2.wp-block-heading { color: var(--wp--preset--color--logo-blau); }
.page-template-page-gesang main .has-blaugrau-hell-background-color h2.wp-block-heading { color: var(--wp--preset--color--nachtblau); }
.kmg-titel-klein.wp-block-heading + .kmg-schritte-dunkel { margin-top: 28px; }
.kmg-chips.kmg-chips-rand { margin-top: 16px; }

/* Kontakt */
.kmg-formularkarte { padding: 40px 44px; border-radius: 40px; }
.kmg-info {
	display: grid;
	grid-template-columns: 48px 1fr;
	column-gap: 16px;
	margin-top: 28px;
}
.kmg-info > * { grid-column: 2; margin: 0; }
.kmg-info::before {
	content: "";
	display: block;
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--milchweiss);
	-webkit-mask: none;
	mask: none;
	box-shadow: none;
}
.kmg-info-symbol-telefon::before { background: var(--wp--preset--color--milchweiss) url("assets/symbole/telefon.svg") center / 22px no-repeat; }
.kmg-info-symbol-ort::before { background: var(--wp--preset--color--milchweiss) url("assets/symbole/ort.svg") center / 22px no-repeat; }
.kmg-info-titel { font-weight: 700; }
.kmg-info-telefon a {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1.625rem;
	color: var(--wp--preset--color--nachtblau);
}
.kmg-hinweiskarte {
	border-radius: 32px;
	padding: 28px 32px;
	height: 100%;
	box-sizing: border-box;
}
.kmg-hinweiskarte .kmg-handschrift { font-size: 1.625rem; margin: 0 0 8px; }

/* Video wieder schließen (Datenschutzerklärung Abschnitt 13) */
.kmg-video-schliessen {
	margin-top: 12px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--wp--preset--color--nachtblau);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--nachtblau);
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
}
.kmg-video-schliessen:hover { background: var(--wp--preset--color--nachtblau); color: #fff; }

/* Platzhalter für Formulare, die erst in Schritt 6.5 kommen */
.kmg-platzhalter {
	border: 2px dashed var(--wp--preset--color--rose-hafer-dunkel);
	border-radius: 24px;
	padding: 24px 28px;
	background: var(--wp--preset--color--milchweiss);
}
.kmg-platzhalter p { margin: 0 0 8px; }
.kmg-platzhalter p:last-child { margin: 0; }

/* Rechtstexte */
.kmg-rechtstext .kmg-rechtstitel.wp-block-heading {
	font-size: 1.375rem;
	color: var(--wp--preset--color--nachtblau);
	margin-top: 36px;
	margin-bottom: 8px;
}
.kmg-rechtstext h2.kmg-rechtstitel + * { margin-top: 0; }
.kmg-rechtstext p { margin-top: 0; margin-bottom: 12px; }
.kmg-rechtsteil {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 2px solid var(--wp--preset--color--rose-hell);
}
.kmg-rechtsteil > .kmg-rechtstitel:first-child.wp-block-heading { font-size: 2rem; color: var(--wp--preset--color--ueberschrift); margin-top: 0; }
.kmg-rechtsteil h3.kmg-rechtstitel.wp-block-heading { font-size: 1.25rem; }
.kmg-rechtsliste { margin: 0 0 12px; padding-left: 1.4em; }
.kmg-rechtsliste li { margin-bottom: 4px; }
/* Noch offene Angaben bis zum Start: gut sichtbar, damit nichts vergessen wird */
mark.kmg-offen {
	background: #FFE9A8;
	color: var(--wp--preset--color--nachtblau);
	padding: 0 4px;
	border-radius: 4px;
}

@media (max-width: 781px) {
	.kmg-foto-weich img { height: 300px; border-radius: 32px; }
	.kmg-punkteliste { grid-template-columns: 1fr; gap: 20px; }
	.kmg-schritte { gap: 24px; margin: 28px 0 32px; }
	.kmg-schritte li::before { width: 52px; height: 52px; font-size: 1.375rem; }
	.kmg-schritte strong { font-size: 1.25rem; }
	.kmg-portrait-rahmen img { max-width: 280px; border-width: 8px; }
	.kmg-infokarte { padding: 28px 24px; border-radius: 32px; }
	.kmg-bogenbild img { max-width: 100%; height: 460px; width: auto; aspect-ratio: auto; }
	.kmg-rund-weich-gross img { width: 240px; margin: 0 auto; }
	.kmg-titel-klein.wp-block-heading { font-size: 1.625rem; }
	.kmg-aussage { font-size: 1.25rem; }
	.kmg-formularkarte { padding: 28px 22px; border-radius: 32px; }
	.kmg-zwischentitel.wp-block-heading { font-size: 1.5rem; }
}

/* ===== Schritt 6.5a: eigene Formulare (Kündigung, Widerruf) ===== */
/* Felder wie im Design-Entwurf Kontakt: weiße Felder, Rand in Punkte-Blau, runde Ecken */
.kmg-formularseite { max-width: 760px; }
.kmg-formular { display: grid; gap: 22px; margin-top: 8px; }
.kmg-felder-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; align-items: start; }
.kmg-feld { display: grid; gap: 6px; margin: 0; min-width: 0; align-content: start; }
.kmg-feld[hidden] { display: none; }
.kmg-feld > label,
.kmg-auswahl > legend { font-weight: 700; font-size: 1.0625rem; color: var(--wp--preset--color--nachtblau); }
.kmg-feld input[type="text"],
.kmg-feld input[type="email"],
.kmg-feld input[type="tel"],
.kmg-feld input[type="date"],
.kmg-feld select,
.kmg-feld textarea {
	font: inherit;
	font-size: 1.125rem;
	color: var(--wp--preset--color--nachtblau);
	background: var(--wp--preset--color--weiss);
	border: 2px solid var(--wp--preset--color--punkte-blau);
	border-radius: 14px;
	padding: 12px 16px;
	min-height: 52px;
	box-sizing: border-box;
	width: 100%;
}
.kmg-feld textarea { min-height: 150px; resize: vertical; }
.kmg-feld input:focus-visible,
.kmg-feld select:focus-visible,
.kmg-feld textarea:focus-visible { outline: 3px solid var(--wp--preset--color--logo-blau); outline-offset: 1px; }
fieldset.kmg-auswahl { border: 0; padding: 0; margin: 0; }
.kmg-auswahl > legend { padding: 0; margin-bottom: 6px; }
.kmg-option { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.kmg-option input[type="radio"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--wp--preset--color--logo-blau); }
.kmg-option input[type="radio"]:focus-visible { outline: 3px solid var(--wp--preset--color--logo-blau); outline-offset: 2px; }
.kmg-option label { font-size: 1.0625rem; }
/* Häkchen (Platzanfrage: Zwillinge) wie die runden Knöpfe */
.kmg-option input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--wp--preset--color--logo-blau); }
.kmg-option input[type="checkbox"]:focus-visible { outline: 3px solid var(--wp--preset--color--logo-blau); outline-offset: 2px; }
.kmg-haekchen { margin-top: -8px; }
.kmg-anruf-hinweis { margin: 0; }
.kmg-anruf-hinweis a { font-weight: 700; }
/* Fehler: dunkles Rot (neu, nicht im Design), Kontrast über 6:1 auf dem Hintergrund */
.kmg-fehler { color: #9B2C2C; font-weight: 700; margin: 0; font-size: 1rem; }
.kmg-feld-fehler input,
.kmg-feld-fehler select,
.kmg-feld-fehler textarea { border-color: #9B2C2C; }
/* Kontakt und Gesang: Zusatz in der Beschriftung normal gesetzt, Hilfetexte, Datenschutz-Hinweis wie im Design */
.kmg-label-zusatz { font-weight: 400; }
.kmg-hilfe { margin: 0; font-size: 0.9375rem; color: var(--wp--preset--color--nachtblau); }
.kmg-hinweis-feld { margin: -8px 0 0; }
.kmg-hinweis-feld[hidden] { display: none; }
.kmg-datenschutz-hinweis { margin: 0; font-size: 0.9375rem; }
.kmg-feld select { appearance: auto; cursor: pointer; min-height: 57px; }
.kmg-fehler-global { background: var(--wp--preset--color--weiss); border-left: 6px solid #9B2C2C; border-radius: 12px; padding: 12px 16px; }
/* Fangfeld gegen Spam: für Menschen unsichtbar */
.kmg-fangfeld { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kmg-formular .wp-block-buttons { margin-top: 6px; gap: 16px; }
.kmg-formular button.wp-block-button__link,
.kmg-bestaetigung button.wp-block-button__link { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.kmg-formular .is-style-outline button.wp-block-button__link,
.kmg-bestaetigung .is-style-outline button.wp-block-button__link { border: 2px solid currentColor; }
.kmg-bestaetigung,
.kmg-uebersicht {
	background: var(--wp--preset--color--milchweiss);
	border-radius: 28px;
	padding: 28px 32px;
}
.kmg-bestaetigung:focus { outline: none; }
.kmg-uebersicht:focus { outline: 3px solid var(--wp--preset--color--logo-blau); outline-offset: 3px; }
.kmg-bestaetigung-titel { font-weight: 700; font-size: 1.1875rem; margin-top: 0; }
.kmg-uebersicht-erklaerung { margin-top: 0; font-size: 1.125rem; }
.kmg-angaben { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 20px; margin: 16px 0 20px; }
.kmg-angaben dt { font-weight: 700; }
.kmg-angaben dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 781px) {
	.kmg-felder-zwei { grid-template-columns: 1fr; }
	.kmg-bestaetigung, .kmg-uebersicht { padding: 22px 20px; border-radius: 24px; }
	.kmg-angaben { grid-template-columns: 1fr; gap: 2px; }
	.kmg-angaben dd { margin-bottom: 10px; }
}
/* Online-Anmeldung (6.5c) */
.kmg-formular-anmeldung { gap: 26px; }
.kmg-abschnitt-formular { display: grid; gap: 20px; padding-top: 26px; border-top: 2px solid var(--wp--preset--color--blaugrau-hell); }
.kmg-abschnitt-formular > h2 { margin: 0; font-size: 1.5rem; }
.kmg-unterueberschrift { margin: 8px 0 -8px; font-size: 1.1875rem; }
.kmg-frist-hinweis { margin: 0; background: var(--wp--preset--color--milchweiss); border-left: 6px solid var(--wp--preset--color--logo-blau); border-radius: 12px; padding: 12px 16px; }
.kmg-kurs-angaben { margin: 0; }
.kmg-felder-plz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 22px 28px; align-items: start; }
.kmg-felder-iban { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px 28px; align-items: start; }
.kmg-felder-zwei[hidden] { display: none; }
.kmg-mandat { background: var(--wp--preset--color--milchweiss); border-radius: 20px; padding: 18px 22px; font-size: 0.9375rem; }
.kmg-mandat p { margin: 0 0 10px; }
.kmg-mandat p:last-child { margin-bottom: 0; }
.kmg-mandat .kmg-mandat { padding: 0; background: none; }
.kmg-haekchen-gross .kmg-option { align-items: flex-start; }
.kmg-haekchen-gross .kmg-option input[type="checkbox"] { margin-top: 3px; }
.kmg-haekchen-gross .kmg-option label { line-height: 1.5; }
.kmg-aufklappen { background: var(--wp--preset--color--milchweiss); border-radius: 16px; padding: 14px 20px; }
.kmg-aufklappen summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--nachtblau); min-height: 32px; }
.kmg-aufklappen summary:focus-visible { outline: 3px solid var(--wp--preset--color--logo-blau); outline-offset: 3px; }
.kmg-aufklappen-inhalt { font-size: 0.9375rem; }
.kmg-aufklappen-inhalt h3 { font-size: 1.0625rem; margin: 18px 0 6px; }
.kmg-uebersicht-titel { margin: 0 0 6px; font-size: 1.375rem; }
.kmg-angaben .kmg-angaben-voll { grid-column: 1 / -1; }
.kmg-mandat-bereich { margin-top: 28px; }
@media (max-width: 781px) {
	.kmg-felder-plz, .kmg-felder-iban { grid-template-columns: 1fr; }
	.kmg-mandat { padding: 16px 16px; }
}
@media print {
	.wp-block-template-part, .kmg-nicht-drucken, .kmg-handy-leiste { display: none !important; }
	.kmg-bestaetigung { background: none; padding: 0; }
	body.kmg-druck-mandat .wp-block-post-title,
	body.kmg-druck-mandat .kmg-bestaetigung { display: none !important; }
	body.kmg-druck-mandat .kmg-mandat-bereich { border: 0; padding: 0; }
	.kmg-mandat { background: none; padding: 0; }
}

/* ===== Ferienkalender (Entwurf vom 01.11.2026, freigegeben) ===== */
.kmg-fk-seite { max-width: 900px; }
.kmg-fk { display: grid; gap: 32px; }
.kmg-fk + .kmg-fk { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--wp--preset--color--rose-hell); }
.kmg-fk-kopf .kmg-handschrift { margin: 0; }
.kmg-fk-kopf .wp-block-heading { margin: 0 0 8px; }
.kmg-fk-kopf .kmg-einleitung { margin: 0; max-width: 62ch; }
.kmg-fk-karte { background: var(--wp--preset--color--milchweiss); border: 1px solid #E6DCCB; border-radius: 28px; padding: 26px 28px 20px; }
.kmg-fk .wp-block-heading { margin-top: 0; }
.kmg-fk-karte > .wp-block-heading,
.kmg-fk-jahr > .wp-block-heading { font-size: 1.5rem; margin-bottom: 14px; }
.kmg-fk-naechste { background: var(--wp--preset--color--blaugrau-hell); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.kmg-fk-liste { list-style: none; margin: 0; padding: 0; }
.kmg-fk-liste > li { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 6px 18px; padding: 14px 0; border-top: 1px dashed var(--wp--preset--color--rose-hafer); }
.kmg-fk-liste > li:first-child { border-top: 0; padding-top: 4px; }
.kmg-fk-name { font-family: var(--wp--preset--font-family--nunito); font-weight: 800; }
.kmg-fk-zeit { display: block; font-family: var(--wp--preset--font-family--atkinson); font-weight: 400; font-size: 0.9375rem; color: #6B625D; }
.kmg-fk-vorbei-text { font-family: var(--wp--preset--font-family--atkinson); font-weight: 400; font-size: 0.8125rem; color: #6B625D; margin-left: 6px; }
.kmg-fk-tage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.kmg-fk-tag { display: inline-flex; gap: 6px; align-items: baseline; background: var(--wp--preset--color--hintergrund); border: 2px solid var(--wp--preset--color--rose-hafer); border-radius: 999px; padding: 2px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kmg-fk-tag b { font-family: var(--wp--preset--font-family--nunito); font-weight: 800; }
.kmg-fk-vorbei .kmg-fk-tag, .kmg-fk-tag-vorbei { border-style: dashed; opacity: .6; }
.kmg-fk-zusatz { font-size: 0.9375rem; color: #6B625D; }
.kmg-fk-legende { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.875rem; color: #6B625D; margin: 0 0 16px; }
.kmg-fk-legende span { display: inline-flex; gap: 8px; align-items: center; }
.kmg-fk-sw { width: 18px; height: 18px; border-radius: 6px; display: inline-block; border: 1px solid #E6DCCB; }
.kmg-fk-sw-ferien { background: var(--wp--preset--color--blaugrau-hell); }
.kmg-fk-sw-feiertag { background: #F3DDF0; }
.kmg-fk-sw-kurs { background: var(--wp--preset--color--milchweiss); border: 2px solid var(--wp--preset--color--logo-blau); border-radius: 50%; }
.kmg-fk-sw-frei { background: var(--wp--preset--color--blaugrau-hell); border: 2px dashed var(--wp--preset--color--rose-hafer-dunkel); border-radius: 50%; }
.kmg-fk-monate { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.kmg-fk-monat { background: var(--wp--preset--color--milchweiss); border: 1px solid #E6DCCB; border-radius: 16px; padding: 14px 14px 12px; min-width: 0; }
.kmg-fk-monat-titel { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.kmg-fk-monat-titel b { font-family: var(--wp--preset--font-family--nunito); font-weight: 800; font-size: 1.0625rem; }
.kmg-fk-monat-titel small { font-size: 0.8125rem; color: #6B625D; }
.kmg-fk-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font-size: 0.8125rem; text-align: center; font-variant-numeric: tabular-nums; }
.kmg-fk-wt { font-size: 0.6875rem; letter-spacing: .04em; color: #6B625D; padding-bottom: 2px; }
.kmg-fk-wt-di { color: var(--wp--preset--color--logo-blau); font-weight: 700; }
.kmg-fk-d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; }
.kmg-fk-ferien { background: var(--wp--preset--color--blaugrau-hell); }
.kmg-fk-feiertag { background: #F3DDF0; }
.kmg-fk-kurs { border: 2px solid var(--wp--preset--color--logo-blau); border-radius: 50%; font-weight: 700; }
.kmg-fk-kursfrei { border: 2px dashed var(--wp--preset--color--rose-hafer-dunkel); border-radius: 50%; }
.kmg-fk-alt { opacity: .45; }
.kmg-fk-quelle { font-size: 0.875rem; color: #6B625D; max-width: 70ch; }
.kmg-fk-quelle p { margin: 0 0 6px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
/* „Zum Inhalt springen“: beim ersten Druck auf die Tabulatortaste sichtbar (Test 6.6) */
.skip-link.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 14px 22px;
	border-radius: 999px;
	background: var(--wp--preset--color--nachtblau);
	color: var(--wp--preset--color--weiss);
	font-weight: 700;
	text-decoration: none;
	outline: 3px solid var(--wp--preset--color--rose-hafer);
	outline-offset: 2px;
}
@media (max-width: 560px) {
	.kmg-fk-liste > li { grid-template-columns: 1fr; }
	.kmg-fk-karte { padding: 22px 18px 16px; border-radius: 24px; }
}

/* --------------------------------------------------------------
   Bilderschutz (zusammen mit assets/js/bilderschutz.js)
   Kein Ziehen und kein „Bild sichern“ beim langen Drücken auf dem iPhone.
   Bilder in Links (Logo) bleiben unberührt.
   -------------------------------------------------------------- */
img:not(a img) {
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

.kmg-fuss-urheber {
	margin-top: 16px;
	font-size: 0.875rem;
}

.kmg-fuss-urheber a {
	text-decoration: underline;
}
