/* Carina Matussek – ergänzende Stile zu theme.json */

body {
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
}

/* Abschnitte liegen ohne Lücke untereinander */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull:last-child { margin-block-end: 0; }

/* Hervorhebungen in Überschriften */
:is(h1, h2, h3, .wp-block-heading) em { color: var(--wp--preset--color--tiefsee); }
:is(.has-nachtblau-background-color, .has-tiefsee-background-color) :is(h1, h2, h3) em { color: var(--wp--preset--color--gold); }

/* Kleine Überschrift (Eyebrow) */
.is-style-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--tiefsee);
}
.has-nachtblau-background-color .is-style-eyebrow:not(.has-text-color) { color: var(--wp--preset--color--gold); }
.has-tiefsee-background-color .is-style-eyebrow:not(.has-text-color) { color: var(--wp--preset--color--sand); }

/* Frage oder Zitat groß */
.is-style-frage {
	font-family: var(--wp--preset--font-family--playfair);
	font-style: italic;
	font-size: var(--wp--preset--font-size--quote);
	line-height: 1.3;
}

/* Nummer über Stufen */
.is-style-nummer {
	font-family: var(--wp--preset--font-family--playfair);
	font-style: italic;
	font-size: 24px;
	line-height: 1;
	color: var(--wp--preset--color--tiefsee);
}

/* Bilder */
.wp-block-image.is-style-bogen img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 320px 320px 0 0;
}
.wp-block-image.is-style-kreis img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
}

/* Karten */
.wp-block-group.is-style-karte,
.wp-block-group.is-style-karte-rahmen {
	padding: clamp(28px, 4vw, 44px);
	border-radius: 4px;
	height: 100%;
	box-sizing: border-box;
}
.wp-block-group.is-style-karte-rahmen { border: 1px solid var(--wp--preset--color--karamell); }
.wp-block-group.is-style-linie-oben {
	border-top: 1px solid var(--wp--preset--color--karamell);
	padding-top: 24px;
}
.wp-block-column > .wp-block-group.is-style-karte,
.wp-block-column > .wp-block-group.is-style-karte-rahmen { height: 100%; }
.wp-block-group.is-style-karte > .wp-block-buttons:last-child,
.wp-block-group.is-style-karte-rahmen > .wp-block-buttons:last-child { margin-top: auto; padding-top: 8px; }

/* Buttons */
.wp-block-button.is-style-gold .wp-block-button__link {
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--nachtblau);
}
.wp-block-button.is-style-gold .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--nachtblau);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: inherit;
	border: 1px solid currentColor;
	padding: 15px 29px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--nachtblau);
	border-color: var(--wp--preset--color--nachtblau);
	color: var(--wp--preset--color--paper);
}
:is(.has-nachtblau-background-color, .has-tiefsee-background-color) .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--nachtblau);
}

/* Links auf dunklem Grund */
:is(.has-nachtblau-background-color, .has-tiefsee-background-color) a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--sand); }
:is(.has-nachtblau-background-color, .has-tiefsee-background-color) a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--paper); }

/* Listen */
.wp-block-list.is-style-punkte,
.wp-block-list.is-style-ohne-punkte {
	list-style: none;
	padding-left: 0;
}
.wp-block-list.is-style-punkte li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
}
.wp-block-list.is-style-punkte li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--tiefsee);
}
.has-nachtblau-background-color .wp-block-list.is-style-punkte li::before { background: var(--wp--preset--color--gold); }
.wp-block-list.is-style-ohne-punkte li { margin-bottom: 6px; }

/* Wellenlinie als Trenner */
.wp-block-spacer.is-style-wellen {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 64' preserveAspectRatio='none'%3E%3Cpath d='M0 22 Q 80 6 160 22 T 320 22 T 480 22 T 640 22 T 800 22 T 960 22 T 1120 22 T 1280 22' fill='none' stroke='%232f5d62' stroke-width='1.2'/%3E%3Cpath d='M0 40 Q 80 24 160 40 T 320 40 T 480 40 T 640 40 T 800 40 T 960 40 T 1120 40 T 1280 40' fill='none' stroke='%23c09f80' stroke-width='1.2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* T-Konto (Soll und Haben) */
.wp-block-columns.is-style-konto {
	gap: 0 !important;
	border-top: 2px solid var(--wp--preset--color--nachtblau);
}
.wp-block-columns.is-style-konto > .wp-block-column { padding: 20px 24px 8px; }
.wp-block-columns.is-style-konto > .wp-block-column:first-child { border-right: 2px solid var(--wp--preset--color--nachtblau); }
@media (max-width: 781px) {
	.wp-block-columns.is-style-konto > .wp-block-column:first-child {
		border-right: 0;
		border-bottom: 2px solid var(--wp--preset--color--nachtblau);
	}
}

/* Hinweisleiste oben */
.cm-hinweis p { margin: 0; }
.cm-hinweis a { color: var(--wp--preset--color--gold) !important; font-weight: 600; }

/* Kopfbereich */
.cm-kopf .wp-block-site-title a { text-decoration: none; }
.cm-kopf .wp-block-navigation a { text-decoration: none; }
.cm-kopf .wp-block-navigation a:hover { color: var(--wp--preset--color--tiefsee); }
.cm-kopf .wp-block-button__link { padding: 12px 22px; font-size: 13px; }

/* Fußbereich */
.cm-fuss a { text-decoration: none; }
.cm-fuss a:hover { text-decoration: underline; }

/* Häufige Fragen */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--karamell);
	padding: 20px 0;
}
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 21px;
	line-height: 1.4;
	cursor: pointer;
}
.wp-block-details > *:not(summary) { margin-top: 12px; }

/* Bildplatzhalter, bis echte Fotos eingesetzt sind */
.wp-block-image img[src$="portrait-platzhalter.svg"] { background: var(--wp--preset--color--sand); }

/* Fokus sichtbar */
a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--tiefsee);
	outline-offset: 3px;
}
.has-nachtblau-background-color a:focus-visible { outline-color: var(--wp--preset--color--gold); }

/* Spalten mit Hintergrund (geteilter Einstieg) */
.wp-block-columns.cm-geteilt { gap: 0 !important; }
.wp-block-columns.cm-geteilt > .wp-block-column { padding: clamp(56px, 9vw, 120px) clamp(24px, 6vw, 96px); }
