/**
 * Bienek Fotografie – Politur-Layer
 *
 * Enthält bewusst NUR das, was theme.json nicht abbilden kann:
 * Motion-Tokens, Interaktionszustände, Sticky-Header-Verhalten,
 * Block-Stil-Variationen und die optischen Platzhalter (Formular/Buchung).
 *
 * Farben, Typografie, Abstände, Radien und Schatten kommen ausschließlich
 * aus theme.json (--wp--preset--* / --wp--custom--*).
 *
 * Diese Datei wird im Frontend UND im Editor geladen (add_editor_style),
 * damit der Editor exakt wie das Frontend aussieht.
 */

/* -------------------------------------------------------------------------
 * 1. Tokens & Grundlagen
 * ---------------------------------------------------------------------- */

:root,
.editor-styles-wrapper {
	--header-height: var( --wp--custom--header-height, 76px );
	--header-height-mobile: var( --wp--custom--header-height-mobile, 62px );

	--dur-fast: var( --wp--custom--duration--fast, 150ms );
	--dur-base: var( --wp--custom--duration--base, 220ms );
	--dur-slow: var( --wp--custom--duration--slow, 420ms );

	--ease-out: var( --wp--custom--easing--out, cubic-bezier( 0.22, 1, 0.36, 1 ) );
	--ease-in: var( --wp--custom--easing--in, cubic-bezier( 0.55, 0, 1, 0.45 ) );
	--ease-in-out: var( --wp--custom--easing--in-out, cubic-bezier( 0.65, 0, 0.35, 1 ) );

	--radius-xs: var( --wp--custom--radius--xs, 2px );
	--radius-sm: var( --wp--custom--radius--sm, 4px );
	--radius-md: var( --wp--custom--radius--md, 8px );
	--radius-lg: var( --wp--custom--radius--lg, 14px );
	--radius-pill: var( --wp--custom--radius--pill, 999px );

	--rule: 1px solid var( --wp--preset--color--border );
}

@media ( max-width: 781px ) {
	:root {
		--header-height: var( --wp--custom--header-height-mobile, 62px );
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-synthesis-weight: none;
}

/* Sprungziele landen nie unter dem klebenden Header. */
:where( h1, h2, h3, h4, h5, h6, .wp-block-group, .wp-block-cover, [ id ] ) {
	scroll-margin-top: calc( var( --header-height ) + 1.5rem );
}

/* Optische Korrektur: Serif-Displaygrößen dürfen leicht überhängen. */
.wp-block-post-content > h2:not( :first-child ),
.entry-content > h2:not( :first-child ) {
	margin-top: var( --wp--preset--spacing--l );
}

/* -------------------------------------------------------------------------
 * 2. Fokus & Zustände (nie entfernen – nur schön machen)
 * ---------------------------------------------------------------------- */

:focus-visible {
	outline: 2px solid var( --wp--preset--color--text );
	outline-offset: 3px;
	border-radius: var( --radius-xs );
}

.has-surface-inverse-background-color :focus-visible,
.wp-block-cover :focus-visible {
	outline-color: var( --wp--preset--color--base );
}

/* Sichtbarer Skip-Link im Fokus */
.skip-link.screen-reader-text:focus {
	background-color: var( --wp--preset--color--text );
	color: var( --wp--preset--color--base );
	border-radius: var( --radius-sm );
	font-family: var( --wp--preset--font-family--sans );
	font-size: 0.875rem;
	left: 1rem;
	padding: 0.75rem 1.25rem;
	top: 1rem;
	z-index: 100000;
	text-decoration: none;
}

a,
button,
.wp-element-button,
.wp-block-button__link {
	transition:
		color var( --dur-fast ) var( --ease-out ),
		background-color var( --dur-fast ) var( --ease-out ),
		border-color var( --dur-fast ) var( --ease-out ),
		opacity var( --dur-fast ) var( --ease-out ),
		transform var( --dur-fast ) var( --ease-out );
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: translateY( 1px );
}

/* -------------------------------------------------------------------------
 * 3. Kopfbereich (sticky, ohne Layout-Sprung)
 * ---------------------------------------------------------------------- */

.bienek-header {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: var( --header-height );
	backdrop-filter: saturate( 140% ) blur( 12px );
	-webkit-backdrop-filter: saturate( 140% ) blur( 12px );
	border-bottom: 1px solid var( --wp--preset--color--border );
	transition:
		border-color var( --dur-base ) var( --ease-out ),
		background-color var( --dur-base ) var( --ease-out );
}

/* Der Editor darf nicht kleben – sonst überlagert der Header die Werkzeugleiste. */
.editor-styles-wrapper .bienek-header {
	position: relative;
}

.bienek-header.is-scrolled {
	border-bottom-color: var( --wp--preset--color--text );
}

/* Navigation: Unterstrich wächst aus der Mitte, nur transform/opacity. */
.bienek-header .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.35rem;
}

.bienek-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background-color: currentColor;
	transform: scaleX( 0 );
	transform-origin: center;
	transition: transform var( --dur-base ) var( --ease-out );
}

.bienek-header .wp-block-navigation-item__content:hover::after,
.bienek-header .wp-block-navigation-item__content:focus-visible::after,
.bienek-header .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX( 1 );
}

.bienek-header .wp-block-navigation-item__content:focus-visible::after {
	display: none;
}

/* Mobiles Overlay-Menü: ruhig, großzügig, in Theme-Typografie. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp( 1.5rem, 6vw, 3rem );
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: var( --wp--preset--spacing--m );
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var( --wp--preset--font-family--display );
	font-size: var( --wp--preset--font-size--xxl );
	line-height: 1.15;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	transition: opacity var( --dur-fast ) var( --ease-out );
}

.wp-block-navigation__responsive-container-open:hover,
.wp-block-navigation__responsive-container-close:hover {
	opacity: 0.65;
}

/* -------------------------------------------------------------------------
 * 4. Block-Stil-Variationen (registriert in functions.php)
 * ---------------------------------------------------------------------- */

/* Cover: Vollbild-Hero – Höhe abzüglich Headerhöhe, kein Sprung. */
.wp-block-cover.is-style-hero-full {
	min-height: calc( 100svh - var( --header-height ) );
}

@supports not ( height: 100svh ) {
	.wp-block-cover.is-style-hero-full {
		min-height: calc( 100vh - var( --header-height ) );
	}
}

.editor-styles-wrapper .wp-block-cover.is-style-hero-full {
	min-height: 74vh;
}

/* Gruppe: Karte */
.wp-block-group.is-style-card {
	background-color: var( --wp--preset--color--base );
	border: var( --rule );
	border-radius: var( --radius-md );
	padding: clamp( 1.5rem, 3vw, 2.25rem );
	transition:
		transform var( --dur-base ) var( --ease-out ),
		box-shadow var( --dur-base ) var( --ease-out ),
		border-color var( --dur-base ) var( --ease-out );
}

.wp-block-group.is-style-card:hover {
	transform: translateY( -2px );
	border-color: var( --wp--preset--color--text-muted );
	box-shadow: var( --wp--preset--shadow--raised );
}

/* Gruppe: Sektion mit Haarlinie oben */
.wp-block-group.is-style-hairline-top {
	border-top: var( --rule );
}

/* Bild: feiner Rahmen */
.wp-block-image.is-style-frame img {
	border: var( --rule );
	padding: 0;
	border-radius: var( --radius-xs );
}

/* Bild/Galerie: ruhiger Zoom bei Hover */
.wp-block-image.is-style-hover-zoom {
	overflow: hidden;
	border-radius: var( --radius-xs );
}

.wp-block-image.is-style-hover-zoom img {
	transition: transform var( --dur-slow ) var( --ease-out );
	will-change: transform;
}

.wp-block-image.is-style-hover-zoom:hover img,
.wp-block-image.is-style-hover-zoom:focus-within img {
	transform: scale( 1.035 );
}

.wp-block-gallery.is-style-hover-zoom .wp-block-image {
	overflow: hidden;
	border-radius: var( --radius-xs );
}

.wp-block-gallery.is-style-hover-zoom .wp-block-image img {
	transition: transform var( --dur-slow ) var( --ease-out );
}

.wp-block-gallery.is-style-hover-zoom .wp-block-image:hover img,
.wp-block-gallery.is-style-hover-zoom .wp-block-image:focus-within img {
	transform: scale( 1.035 );
}

/* Button: Umriss (sekundär) */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background-color: transparent;
	color: var( --wp--preset--color--text );
	border: 1px solid var( --wp--preset--color--border );
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:focus-visible {
	background-color: var( --wp--preset--color--text );
	border-color: var( --wp--preset--color--text );
	color: var( --wp--preset--color--base );
}

/* Umriss-Button auf dunklem Grund */
.has-surface-inverse-background-color .wp-block-button.is-style-ghost .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-ghost .wp-block-button__link {
	color: var( --wp--preset--color--base );
	border-color: rgba( 255, 255, 255, 0.45 );
}

.has-surface-inverse-background-color .wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-ghost .wp-block-button__link:hover,
.has-surface-inverse-background-color .wp-block-button.is-style-ghost .wp-block-button__link:focus-visible,
.wp-block-cover .wp-block-button.is-style-ghost .wp-block-button__link:focus-visible {
	background-color: var( --wp--preset--color--base );
	border-color: var( --wp--preset--color--base );
	color: var( --wp--preset--color--text );
}

/* Button: Textlink mit Linie */
.wp-block-button.is-style-underline .wp-block-button__link {
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: inherit;
	padding: 0.35rem 0.1rem;
}

.wp-block-button.is-style-underline .wp-block-button__link:hover,
.wp-block-button.is-style-underline .wp-block-button__link:focus-visible {
	background-color: transparent;
	opacity: 0.65;
}

/* Überschrift: kursiver Serif-Akzent */
.is-style-display-italic {
	font-family: var( --wp--preset--font-family--display );
	font-style: italic;
}

/* Liste: Häkchenliste (für Pakete/Leistungen) */
.wp-block-list.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-checklist > li {
	padding-left: 1.6rem;
	position: relative;
	margin-block: 0.55rem;
}

.wp-block-list.is-style-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.7rem;
	height: 0.35rem;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate( -45deg );
	opacity: 0.75;
}

/* Liste ohne Aufzählungszeichen (Footer-Navigation, Meta-Listen) */
.wp-block-list.bienek-list-plain {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.bienek-list-plain a {
	text-decoration: none;
	text-underline-offset: 0.18em;
}

.wp-block-list.bienek-list-plain a:hover,
.wp-block-list.bienek-list-plain a:focus-visible {
	text-decoration: underline;
}

/* Zitat: Testimonial */
.wp-block-quote.is-style-testimonial {
	border: 0;
	padding-left: 0;
	text-align: inherit;
}

.wp-block-quote.is-style-testimonial cite {
	display: block;
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--xs );
	font-style: normal;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --wp--preset--color--text-muted );
	margin-top: var( --wp--preset--spacing--m );
}

/* Trenner: Haarlinie über volle Breite */
.wp-block-separator.is-style-hairline {
	border: 0;
	border-top: var( --rule );
	opacity: 1;
	width: 100%;
	max-width: none;
}

/* Sanftes Einblenden beim Scrollen (opt-in pro Block) */
html.bienek-js .is-style-reveal {
	opacity: 0;
	transform: translateY( 14px );
	transition:
		opacity var( --dur-slow ) var( --ease-out ),
		transform var( --dur-slow ) var( --ease-out );
	will-change: opacity, transform;
}

html.bienek-js .is-style-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

.editor-styles-wrapper .is-style-reveal {
	opacity: 1 !important;
	transform: none !important;
}

/* -------------------------------------------------------------------------
 * 5. Detaillierte Politur einzelner Core-Blöcke
 * ---------------------------------------------------------------------- */

/* Details/Akkordeon (FAQ) */
.wp-block-details summary {
	cursor: pointer;
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--lg );
	font-weight: 500;
	letter-spacing: -0.01em;
	list-style: none;
	padding-right: 2.5rem;
	position: relative;
	transition: opacity var( --dur-fast ) var( --ease-out );
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary:hover {
	opacity: 0.7;
}

.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	width: 0.65rem;
	height: 0.65rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY( -70% ) rotate( 45deg );
	transition: transform var( --dur-base ) var( --ease-out );
}

.wp-block-details[ open ] summary::after {
	transform: translateY( -30% ) rotate( -135deg );
}

.wp-block-details[ open ] > *:not( summary ) {
	animation: bienek-fade-in var( --dur-base ) var( --ease-out ) both;
}

@keyframes bienek-fade-in {
	from {
		opacity: 0;
		transform: translateY( -4px );
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Bilder: kein Layout-Shift, ruhige Kanten */
figure.wp-block-image img,
.wp-block-post-featured-image img {
	height: auto;
	max-width: 100%;
	border-radius: var( --radius-xs );
}

/* Galerie-Bildunterschriften dezent */
.wp-block-gallery figcaption {
	font-size: var( --wp--preset--font-size--xs );
}

/* Social-Links: reduziert, monochrom */
.wp-block-social-links.is-style-logos-only .wp-social-link {
	transition:
		transform var( --dur-fast ) var( --ease-out ),
		opacity var( --dur-fast ) var( --ease-out );
	opacity: 0.75;
}

.wp-block-social-links.is-style-logos-only .wp-social-link:hover {
	opacity: 1;
	transform: translateY( -2px );
}

/* Tabellen (z. B. Preisübersicht) */
.wp-block-table td,
.wp-block-table th {
	border-color: var( --wp--preset--color--border );
	padding: 0.85rem 1rem;
}

.wp-block-table th {
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--xs );
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Beitragsliste / Query-Loop */
.wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* Lesbare Unterstriche im Fließtext */
.wp-block-post-content a,
.wp-block-paragraph a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

/* -------------------------------------------------------------------------
 * 6. Optische Platzhalter (Formular & Terminbuchung)
 *
 * ACHTUNG – bewusster wp:html-Ausnahmebereich:
 * Diese Klassen stylen die Platzhalter in den Mustern
 * "contact-form" und "booking".
 * Sobald die Plugins aktiv sind, ersetzt man den HTML-Block
 * durch den Plugin-Block – das Styling bleibt gültig,
 * weil die Klassen dort wiederverwendet werden.
 * ---------------------------------------------------------------------- */

.bienek-form {
	display: grid;
	gap: var( --wp--preset--spacing--m );
	width: 100%;
}

.bienek-form__row {
	display: grid;
	gap: var( --wp--preset--spacing--m );
}

@media ( min-width: 600px ) {
	.bienek-form__row--two {
		grid-template-columns: 1fr 1fr;
	}
}

.bienek-form__field {
	display: grid;
	gap: 0.5rem;
}

.bienek-form__label {
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--xs );
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --wp--preset--color--text-muted );
}

.bienek-form input[ type="text" ],
.bienek-form input[ type="email" ],
.bienek-form input[ type="tel" ],
.bienek-form input[ type="date" ],
.bienek-form select,
.bienek-form textarea {
	appearance: none;
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid var( --wp--preset--color--border );
	border-radius: 0;
	color: var( --wp--preset--color--text );
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--md );
	padding: 0.7rem 0.1rem;
	width: 100%;
	transition:
		border-color var( --dur-base ) var( --ease-out ),
		background-color var( --dur-base ) var( --ease-out );
}

.bienek-form textarea {
	min-height: 8.5rem;
	resize: vertical;
	line-height: 1.6;
}

.bienek-form select {
	background-image: linear-gradient( 45deg, transparent 50%, currentColor 50% ), linear-gradient( 135deg, currentColor 50%, transparent 50% );
	background-position: right 0.85rem center, right 0.5rem center;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 2rem;
}

.bienek-form input:hover,
.bienek-form select:hover,
.bienek-form textarea:hover {
	border-bottom-color: var( --wp--preset--color--text-muted );
}

.bienek-form input:focus-visible,
.bienek-form select:focus-visible,
.bienek-form textarea:focus-visible {
	border-bottom-color: var( --wp--preset--color--text );
	outline: 2px solid var( --wp--preset--color--text );
	outline-offset: 4px;
}

.bienek-form input::placeholder,
.bienek-form textarea::placeholder {
	color: var( --wp--preset--color--text-muted );
	opacity: 0.6;
}

.bienek-form__consent {
	align-items: start;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: auto 1fr;
	font-size: var( --wp--preset--font-size--sm );
	color: var( --wp--preset--color--text-muted );
}

.bienek-form__consent input[ type="checkbox" ] {
	appearance: none;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --radius-xs );
	height: 1.15rem;
	width: 1.15rem;
	margin-top: 0.15rem;
	position: relative;
	transition:
		background-color var( --dur-fast ) var( --ease-out ),
		border-color var( --dur-fast ) var( --ease-out );
}

.bienek-form__consent input[ type="checkbox" ]:checked {
	background-color: var( --wp--preset--color--text );
	border-color: var( --wp--preset--color--text );
}

.bienek-form__consent input[ type="checkbox" ]:checked::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.14rem;
	width: 0.32rem;
	height: 0.6rem;
	border-right: 1.5px solid var( --wp--preset--color--base );
	border-bottom: 1.5px solid var( --wp--preset--color--base );
	transform: rotate( 45deg );
}

.bienek-form__submit {
	background-color: var( --wp--preset--color--brand-primary );
	border: 1px solid var( --wp--preset--color--brand-primary );
	border-radius: var( --radius-pill );
	color: var( --wp--preset--color--base );
	cursor: pointer;
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--sm );
	font-weight: 500;
	justify-self: start;
	padding: 0.9rem 1.75rem;
}

.bienek-form__submit:hover,
.bienek-form__submit:focus-visible {
	background-color: var( --wp--preset--color--text-muted );
	border-color: var( --wp--preset--color--text-muted );
}

.bienek-form__note {
	color: var( --wp--preset--color--text-muted );
	font-size: var( --wp--preset--font-size--xs );
}

/* Terminbuchung – Platzhalter-Kalender */
.bienek-booking {
	border: var( --rule );
	border-radius: var( --radius-md );
	padding: clamp( 1.25rem, 3vw, 2rem );
	background-color: var( --wp--preset--color--base );
}

.bienek-booking__head {
	align-items: baseline;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: var( --wp--preset--spacing--m );
}

.bienek-booking__month {
	font-family: var( --wp--preset--font-family--display );
	font-size: var( --wp--preset--font-size--xl );
}

.bienek-booking__legend {
	color: var( --wp--preset--color--text-muted );
	font-size: var( --wp--preset--font-size--xs );
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bienek-booking__grid {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 0.35rem;
}

.bienek-booking__dow {
	color: var( --wp--preset--color--text-muted );
	font-size: var( --wp--preset--font-size--xs );
	letter-spacing: 0.08em;
	padding-bottom: 0.4rem;
	text-align: center;
	text-transform: uppercase;
}

.bienek-booking__day {
	aspect-ratio: 1;
	align-items: center;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: var( --radius-sm );
	color: var( --wp--preset--color--text );
	cursor: pointer;
	display: flex;
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--sm );
	justify-content: center;
	transition:
		background-color var( --dur-fast ) var( --ease-out ),
		border-color var( --dur-fast ) var( --ease-out ),
		color var( --dur-fast ) var( --ease-out );
}

.bienek-booking__day--free {
	border-color: var( --wp--preset--color--border );
}

.bienek-booking__day--free:hover {
	border-color: var( --wp--preset--color--text );
}

.bienek-booking__day--selected {
	background-color: var( --wp--preset--color--text );
	border-color: var( --wp--preset--color--text );
	color: var( --wp--preset--color--base );
}

.bienek-booking__day--empty,
.bienek-booking__day--blocked {
	color: var( --wp--preset--color--text-muted );
	cursor: not-allowed;
	opacity: 0.4;
}

.bienek-booking__slots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var( --wp--preset--spacing--m );
	padding-top: var( --wp--preset--spacing--m );
	border-top: var( --rule );
}

.bienek-booking__slot {
	background-color: transparent;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --radius-pill );
	color: var( --wp--preset--color--text );
	cursor: pointer;
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--sm );
	padding: 0.55rem 1.1rem;
	transition:
		background-color var( --dur-fast ) var( --ease-out ),
		border-color var( --dur-fast ) var( --ease-out ),
		color var( --dur-fast ) var( --ease-out );
}

.bienek-booking__slot:hover,
.bienek-booking__slot:focus-visible {
	border-color: var( --wp--preset--color--text );
}

.bienek-booking__slot[ aria-pressed="true" ] {
	background-color: var( --wp--preset--color--text );
	border-color: var( --wp--preset--color--text );
	color: var( --wp--preset--color--base );
}

/* -------------------------------------------------------------------------
 * 7. Kleine Helfer
 * ---------------------------------------------------------------------- */

/* Laufschrift-freie „Eyebrow“-Auszeichnung ohne eigenes Markup */
.bienek-eyebrow {
	color: var( --wp--preset--color--text-muted );
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--xs );
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Zahl/Kennzahl groß und ruhig */
.bienek-stat {
	font-family: var( --wp--preset--font-family--display );
	line-height: 1;
}

/* Vollbreite Medien innerhalb einer Sektion sauber begrenzen */
.wp-block-group.is-layout-constrained > .alignfull {
	margin-left: calc( -1 * var( --wp--style--root--padding-left, 0px ) );
	margin-right: calc( -1 * var( --wp--style--root--padding-right, 0px ) );
}

/* -------------------------------------------------------------------------
 * 8. Zeitungs-Anmutung (Editorial)
 *
 * Bausteine eines gedruckten Titelblatts: Datumszeile zwischen Linien,
 * Doppellinie, Spaltensatz mit Trennlinien und Initial. Alle vier sind als
 * Blockstile registriert und lassen sich im Editor an jeden passenden Block
 * hängen – nichts davon ist fest im Muster verdrahtet.
 * ---------------------------------------------------------------------- */

/* Datumszeile: schmale Leiste zwischen kräftiger und feiner Linie */
.wp-block-group.is-style-dateline {
	border-top: 2px solid var( --wp--preset--color--text );
	border-bottom: var( --rule );
	padding-block: 0.6rem;
	font-family: var( --wp--preset--font-family--sans );
	font-size: var( --wp--preset--font-size--xs );
	font-weight: 500;
	letter-spacing: var( --wp--custom--tracking--wider, 0.16em );
	text-transform: uppercase;
	color: var( --wp--preset--color--text-muted );
}

/* Auf schmalen Geräten fällt die mittlere Angabe weg statt umzubrechen. */
@media ( max-width: 599px ) {
	.wp-block-group.is-style-dateline > .bienek-dateline__optional {
		display: none;
	}
}

/* Doppellinie unter der Schlagzeile */
.wp-block-separator.is-style-double-rule {
	border: 0;
	border-top: 3px solid var( --wp--preset--color--text );
	border-bottom: 1px solid var( --wp--preset--color--text );
	box-sizing: border-box;
	height: 7px;
	opacity: 1;
	width: 100%;
	max-width: none;
	background-color: transparent;
}

/* Spaltensatz: Fließtext im Zeitungsumbruch, mit feiner Spaltenlinie */
.is-style-columns-2,
.is-style-columns-3 {
	column-gap: var( --wp--preset--spacing--l );
	column-rule: var( --rule );
	orphans: 2;
	widows: 2;
	text-wrap: pretty;
}

.is-style-columns-2 {
	column-count: 2;
}

.is-style-columns-3 {
	column-count: 3;
}

@media ( max-width: 781px ) {
	.is-style-columns-2,
	.is-style-columns-3 {
		column-count: 1;
	}
}

/* Initial: erster Buchstabe als Serifen-Versal über drei Zeilen.
   Bewusst Hilfsklasse statt Blockstil – so lässt es sich mit dem
   Spaltensatz kombinieren, ohne dass sich beide in der Stilauswahl
   gegenseitig verdrängen. */
.bienek-dropcap::first-letter {
	float: left;
	font-family: var( --wp--preset--font-family--display );
	font-size: 3.4em;
	font-weight: 400;
	line-height: 0.78;
	margin-right: 0.09em;
	padding-top: 0.06em;
	text-transform: uppercase;
}

/* Spaltenlinien zwischen den Spalten eines Spalten-Blocks */
.wp-block-columns.is-style-newsprint > .wp-block-column + .wp-block-column {
	border-left: var( --rule );
	padding-left: var( --wp--preset--spacing--l );
}

@media ( max-width: 781px ) {
	.wp-block-columns.is-style-newsprint > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: var( --rule );
		padding-left: 0;
		padding-top: var( --wp--preset--spacing--l );
	}
}

/* Schlagzeile: enger und härter gesetzt als eine normale Überschrift */
.bienek-headline {
	letter-spacing: -0.035em;
	line-height: 0.94;
	text-wrap: balance;
}

/* Vorspann: der Satz direkt unter der Schlagzeile */
.bienek-standfirst {
	font-family: var( --wp--preset--font-family--display );
	font-style: italic;
	line-height: 1.28;
	text-wrap: pretty;
}

/* Bildunterschrift im Zeitungston: Linie oben, gesperrter Anfang */
.bienek-caption {
	border-top: var( --rule );
	color: var( --wp--preset--color--text-muted );
	font-size: var( --wp--preset--font-size--xs );
	line-height: 1.5;
	padding-top: 0.6rem;
}

/* -------------------------------------------------------------------------
 * 9. Bewegungsreduktion respektieren
 * ---------------------------------------------------------------------- */

@media ( prefers-reduced-motion: reduce ) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	html.bienek-js .is-style-reveal {
		opacity: 1;
		transform: none;
	}

	.wp-block-image.is-style-hover-zoom:hover img,
	.wp-block-gallery.is-style-hover-zoom .wp-block-image:hover img {
		transform: none;
	}
}
