/* Ergänzungen, die theme.json nicht abdeckt. Design-Tokens stehen ausschließlich in theme.json. */

/* Sichtbarer Tastaturfokus (WCAG 2.4.7 / 2.4.13) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--leaf);
	outline-offset: 2px;
	border-radius: 2px;
}
:where(.has-deep-ridge-background-color, .is-style-sevenridge-dark) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--sprout);
}

/* Links im Fließtext immer unterstrichen, damit sie nicht nur über Farbe erkennbar sind */
.entry-content :where(p, li) a:not(.wp-element-button) {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

/* Messwerte: nur echte Werte in Mono */
.is-style-messwert {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

/* Firstlinie als Trenner (Block-Stil für core/separator) */
.wp-block-separator.is-style-firstlinie {
	border: none;
	height: 14px;
	width: 7rem;
	max-width: 100%;
	background: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 14'%3E%3Cpolyline points='1,13 9,7 17,13 25,4 33,13 41,2 49,13 57,1 65,13 73,2 81,13 89,4 97,13 105,7 111,13' fill='none' stroke='%232F6B4F' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 1;
}
.has-deep-ridge-background-color .wp-block-separator.is-style-firstlinie {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 14'%3E%3Cpolyline points='1,13 9,7 17,13 25,4 33,13 41,2 49,13 57,1 65,13 73,2 81,13 89,4 97,13 105,7 111,13' fill='none' stroke='%239BD35A' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Bewegung nur, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* WooCommerce-Feinschliff im CI */
.wc-block-components-product-price, .wp-block-woocommerce-product-price { font-variant-numeric: tabular-nums; }
.wc-block-components-button:not(.is-link) { border-radius: 999px; }

/* Kopfbereich */
.sr-header { border-bottom: 1px solid var(--wp--preset--color--mist); padding-top: 0.9rem; padding-bottom: 0.9rem; }
.sr-header .sr-logo { margin: 0; }
.sr-header .sr-logo img { display: block; height: auto; }

/* Hero */
.sr-hero .wp-block-cover__inner-container { padding-bottom: var(--wp--preset--spacing--60); }
.sr-hero, .sr-hero :where(h1, h2, p) { color: var(--wp--preset--color--mesa-sand); }
.sr-hero :where(h1) { color: var(--wp--preset--color--base); max-width: 16ch; }

/* Fußbereich */
.sr-footer a { color: var(--wp--preset--color--mesa-sand); }
.sr-footer a:hover { color: var(--wp--preset--color--sprout); }
.sr-footer :where(h2, h3, h4) { color: var(--wp--preset--color--base); }

/* Deutlich sichtbare Platzhalter */
.sr-platzhalter { border: 2px dashed var(--wp--preset--color--dusk-amber); padding: 1rem 1.25rem; border-radius: 6px; font-size: var(--wp--preset--font-size--small); }
