/* ==========================================================================
   Offizin: ergänzende Regeln
   Tokens kommen aus theme.json (--wp--preset--*, --wp--custom--*).
   Ziel: WCAG 2.2 AA, Texte ab 19 px, Kontraste bis AAA, Klickflächen ab 44 px.
   Aufbau: Grundlagen, Fokus, Layout, Kopfbereich, Komponenten, Flächen,
   Formulare, Kontrast-Modus, Shop.
   ========================================================================== */

:root {
	--offizin-gutter: clamp(1.25rem, 4vw, 4rem);
	--offizin-radius: var(--wp--custom--radius);
	--offizin-radius-lg: var(--wp--custom--radius-lg);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 2rem;
}

/* Schriftgröße per Lesehilfe (alles ist in rem gesetzt) */
html[data-text="1"] { font-size: 112.5%; }
html[data-text="2"] { font-size: 125%; }
html[data-text="3"] { font-size: 150%; }

/* Zeilenumbruch: Überschriften ausgleichen, Absätze ohne einzelne Endwörter */
:is(h1, h2, h3, h4, .wp-block-post-title) { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
	overflow-wrap: break-word;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

:where(a) {
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

a,
.wp-element-button,
.wp-block-button__link {
	transition:
		color var(--wp--custom--transition),
		background-color var(--wp--custom--transition),
		border-color var(--wp--custom--transition);
}

::selection {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--contrast);
}

/* Fokus: gut sichtbar, auf dunklem Grund weiß (WCAG 2.4.7, 2.4.11, 2.4.13) */
:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

:is(.has-deep-background-color, .has-accent-background-color, .offizin-bar) :focus-visible {
	outline-color: #fff;
}

/* Sprunglink: erscheint nur bei Tastatur-Fokus */
.skip-link.screen-reader-text:focus,
.offizin-skip:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 0.85rem 1.5rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: 999px;
	box-shadow: 0 0 0 3px var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	text-decoration: none;
}

/* Layout ----------------------------------------------------------------- */

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body .wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > main { flex: 1 0 auto; }

.is-narrow { max-width: 36rem; }

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

/* Leiste oben: Öffnungsstatus, Lesehilfe, Notdienst und Telefon */
.offizin-bar {
	background: var(--wp--preset--color--deep);
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.offizin-bar p { margin: 0; }
.offizin-bar a { color: inherit; text-decoration: underline; }
.offizin-bar a:hover { color: inherit; text-decoration-thickness: 3px; }
.offizin-bar > .wp-block-group { padding-block: 0.5rem; }
.offizin-bar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }

.offizin-status { font-weight: 600; }

.offizin-status[data-state]::before {
	content: "";
	display: inline-block;
	width: 0.6rem;
	height: 0.6rem;
	margin-right: 0.55rem;
	border-radius: 50%;
	vertical-align: 0.05em;
	box-shadow: 0 0 0 2px #fff;
}

.offizin-status[data-state="open"]::before { background: #6FD08C; }
.offizin-status[data-state="closed"]::before { background: #FF8F86; }

.offizin-a11y { display: inline-flex; gap: 0.35rem; }

.offizin-a11y button {
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.15rem 0.85rem;
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.offizin-a11y button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.offizin-a11y button[aria-pressed="true"] { background: #fff; color: var(--wp--preset--color--deep); }
.offizin-a11y button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Kopfzeile: Wortmarke links, Navigation und Vorbestellen rechts */
.site-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.offizin-header-row { gap: 0.5rem 1.5rem; }
.offizin-header-row .wp-block-navigation { gap: 0.25rem; }

.site-header .wp-block-site-title { margin: 0; }

.site-header .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 2.75rem;
}

.site-header .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 2rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%230B6046' d='M12 2h8a2 2 0 0 1 2 2v6h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-6v6a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-6H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-header .wp-block-site-tagline { margin: 0; }

.wp-block-navigation .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.wp-block-navigation .wp-block-navigation-item a[aria-current="page"],
.wp-block-navigation .current-menu-item > a {
	background: var(--wp--preset--color--accent-tint);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* Letzter Menüpunkt "Rezept vorbestellen" als Button */
.wp-block-navigation .offizin-nav-cta > .wp-block-navigation-item__content {
	min-height: 3rem;
	padding: 0.55rem 1.4rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

.wp-block-navigation .offizin-nav-cta > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 2.75rem;
	min-height: 2.75rem;
}

/* Komponenten ------------------------------------------------------------ */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	text-align: center;
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-link .wp-block-button__link {
	min-height: 2.75rem;
	padding: 0.25rem 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.wp-block-button.is-style-link .wp-block-button__link::after {
	content: "\2192";
	margin-left: 0.5em;
	text-decoration: none;
}

.wp-block-button.is-style-link .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--deep);
}

/* Beschriftung */
.wp-block-heading.is-style-label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--accent);
}

/* Liste ohne Aufzählung */
.wp-block-list.is-style-plain { list-style: none; padding-left: 0; }

/* Zeile mit Linie (Fakten, Zeitleiste) */
.wp-block-group.is-style-row {
	border-top: 2px solid var(--wp--preset--color--line);
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--40);
}

/* Karten */
.wp-block-group.is-style-card,
.wp-block-group.is-style-card-tint,
.wp-block-group.is-style-card-alert {
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--offizin-radius-lg);
}

.wp-block-group.is-style-card { background: var(--wp--preset--color--surface); }
.wp-block-group.is-style-card-tint { background: var(--wp--preset--color--accent-tint); }

.wp-block-group.is-style-card-alert {
	background: var(--wp--preset--color--signal-tint);
	border-left: 8px solid var(--wp--preset--color--signal);
}

/* Schnellzugriff: ganze Kachel ist ein Link (ein Tab-Stopp, große Klickfläche) */
.offizin-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 11rem;
	height: 100%;
}

.offizin-tile h3 { margin: 0; }
.offizin-tile a { color: inherit; text-decoration: none; }

.offizin-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.offizin-tile:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }
.offizin-tile:hover a, .offizin-tile:hover p { color: inherit; }
.offizin-tile a:focus-visible { outline: none; }
.offizin-tile:focus-within { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.offizin-tile p { margin: 0; }

/* Bilder */
.wp-block-image :where(img) { display: block; }
.wp-block-image figcaption { margin-top: var(--wp--preset--spacing--20); }
.wp-block-image.is-style-rounded-lg img,
.wp-block-image.is-photo img { border-radius: var(--offizin-radius-lg); }

/* Trennlinie über die volle Breite */
.wp-block-separator {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	border-top-width: 0;
	border-left-width: 0;
	border-right-width: 0;
}

/* Tabellen (Öffnungszeiten) */
.wp-block-table { margin: 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; }

.wp-block-table th,
.wp-block-table td {
	padding: 0.75rem 0.5rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: baseline;
}

.wp-block-table th { padding-left: 0; padding-right: 1rem; font-weight: 700; white-space: nowrap; }

/* Öffnungszeiten: linke Spalte so schmal wie ihr Inhalt, Zeiten bekommen den Rest */
.wp-block-table.offizin-hours .has-fixed-layout { table-layout: auto; }
.wp-block-table.offizin-hours th { width: 1%; }
.wp-block-table td:last-child { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; }
.wp-block-table tr:last-child th,
.wp-block-table tr:last-child td { border-bottom: 0; }

.wp-block-table tr.is-today th,
.wp-block-table tr.is-today td {
	background: var(--wp--preset--color--accent-tint);
	font-weight: 700;
}

.wp-block-table tr.is-today th { padding-left: 0.75rem; border-radius: var(--offizin-radius) 0 0 var(--offizin-radius); }
.wp-block-table tr.is-today td:last-child { padding-right: 0.75rem; border-radius: 0 var(--offizin-radius) var(--offizin-radius) 0; }

/* FAQ (core/details) */
.wp-block-details { border-bottom: 2px solid var(--wp--preset--color--line); }
.wp-block-details:first-of-type { border-top: 2px solid var(--wp--preset--color--line); }
.wp-block-details + .wp-block-details { margin-block-start: 0; }

.wp-block-details > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	min-height: 3.5rem;
	padding-block: 1rem;
	cursor: pointer;
	list-style: none;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.3;
}

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

.wp-block-details > summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
}

.wp-block-details[open] > summary::after { content: "\2212"; }

.wp-block-details > :not(summary) {
	max-width: 46rem;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--muted);
}

/* Fließtext: Überschriften direkt im Inhalt (Beiträge, Rechtstexte) bleiben klein. */
.wp-block-post-content > .wp-block-heading { margin-top: var(--wp--preset--spacing--60); }
.wp-block-post-content > h2.wp-block-heading { font-size: var(--wp--preset--font-size--x-large); }
.wp-block-post-content > h3.wp-block-heading { font-size: var(--wp--preset--font-size--large); }
.wp-block-post-content > .wp-block-heading:first-child { margin-top: 0; }

/* Beitragsliste */
.wp-block-post-featured-image img { display: block; width: 100%; height: auto; border-radius: var(--offizin-radius-lg); }
.wp-block-query-pagination { gap: var(--wp--preset--spacing--30); }

.wp-block-post-template .wp-block-post-title a { text-decoration: none; }
.wp-block-post-template .wp-block-post-title a:hover { text-decoration: underline; }

/* Flächen: Tiefgrün, Apothekengrün und Sonnengelb ------------------------ */

:is(.has-deep-background-color, .has-accent-background-color) { color: #fff; }

:is(.has-deep-background-color, .has-accent-background-color) :where(a:not(.wp-element-button)) {
	color: inherit;
}

:is(.has-deep-background-color, .has-accent-background-color) :where(a:not(.wp-element-button)):hover {
	color: inherit;
	text-decoration-thickness: 3px;
}

:is(.has-deep-background-color, .has-accent-background-color) :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

:is(.has-deep-background-color, .has-accent-background-color) .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
	color: #fff;
}

:is(.has-deep-background-color, .has-accent-background-color) .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover {
	background-color: #fff;
	border-color: #fff;
	color: var(--wp--preset--color--deep);
}

:is(.has-deep-background-color, .has-accent-background-color) .wp-block-separator {
	color: rgba(255, 255, 255, 0.4);
}

.has-sun-background-color :where(a:not(.wp-element-button)) { color: var(--wp--preset--color--contrast); }
.has-sun-background-color :where(a:not(.wp-element-button)):hover { color: var(--wp--preset--color--contrast); text-decoration-thickness: 3px; }
.has-sun-background-color :focus-visible { outline-color: var(--wp--preset--color--contrast); }

.is-dim { opacity: 1; color: rgba(255, 255, 255, 0.92); }
.is-dim a { color: #fff; }

.site-footer .wp-block-table th,
.site-footer .wp-block-table td { border-bottom-color: rgba(255, 255, 255, 0.28); }

.site-footer .wp-block-table tr.is-today th,
.site-footer .wp-block-table tr.is-today td { background: rgba(255, 255, 255, 0.16); color: #fff; }
.site-footer .wp-block-heading.is-style-label { font-size: var(--wp--preset--font-size--medium); font-weight: 700; color: inherit; letter-spacing: 0; }
.site-footer .wp-block-navigation .wp-block-navigation-item__content { padding-inline: 0; border-radius: 0; color: inherit; }
.site-footer .wp-block-navigation .wp-block-navigation-item__content:hover,
.site-footer .wp-block-navigation .wp-block-navigation-item a[aria-current="page"] { background: transparent; text-decoration: underline; text-decoration-thickness: 3px; }
.site-footer .offizin-credit img { display: block; width: auto; height: 1.75rem; }
.site-footer .is-brand { margin: 0 0 var(--wp--preset--spacing--30); font-size: var(--wp--preset--font-size--x-large); font-weight: 700; }

/* Einstieg mit Bild: Text links, Foto rechts bis an den Fensterrand ------- */

.offizin-hero-cols { gap: 0; margin: 0; align-items: stretch; }

.offizin-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--wp--preset--spacing--40);
	padding: clamp(2.5rem, 6vw, 6rem) var(--offizin-gutter);
}

.offizin-hero-copy > * { margin: 0; }
.offizin-hero-copy .wp-block-heading { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem); line-height: 1.06; letter-spacing: -0.02em; }

.offizin-hero-media { position: relative; min-height: 18rem; }

.offizin-hero-media .wp-block-image { position: absolute; inset: 0; margin: 0; }

.offizin-hero-media .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: 0;
}

@media (min-width: 782px) {
	.offizin-hero-copy {
		padding-left: max(var(--offizin-gutter), calc((100vw - var(--wp--style--global--wide-size)) / 2));
		padding-right: clamp(2rem, 4vw, 4rem);
	}

	.offizin-hero-media { min-height: 30rem; }
	.offizin-hero-media .wp-block-image img { border-top-left-radius: var(--offizin-radius-lg); border-bottom-left-radius: var(--offizin-radius-lg); }
}

/* Leitsatz */
.is-statement {
	max-width: 40ch;
	margin: 0;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* Pfeil in der Kachel */
.offizin-arrow { margin-top: auto; font-size: 1.75rem; line-height: 1; font-weight: 700; }

/* Liste mit Häkchen */
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; }

.wp-block-list.is-style-checks li { position: relative; margin-block: 0.7rem; padding-left: 2.5rem; }

.wp-block-list.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* Nur für Screenreader */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* Raster: feste Spaltenzahl, darunter weniger Spalten */
@media (max-width: 1099px) {
	.wp-block-group.is-layout-grid.offizin-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
	.wp-block-group.is-layout-grid.offizin-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
	.wp-block-group.is-layout-grid.offizin-cols-3,
	.wp-block-group.is-layout-grid.offizin-cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.nowrap { white-space: nowrap; }

/* Zitat: Quelle bleibt auch auf dunklem Grund lesbar */
.wp-block-quote cite { display: block; margin-top: var(--wp--preset--spacing--40); font-weight: 700; }
:is(.has-deep-background-color, .has-accent-background-color) .wp-block-quote cite { color: inherit; }

/* Formulare --------------------------------------------------------------
   Woo-Blöcke (Warenkorb, Kasse) bringen eigene Felder mit und sind ausgenommen. */

:where(input, textarea, select):not(
	[type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"],
	[type="range"], [type="file"], [type="hidden"], [type="color"], [class*="wc-block-"] *
) {
	width: 100%;
	min-height: var(--wp--custom--control-height);
	padding: 0.75rem 1rem;
	font: inherit;
	color: inherit;
	background: var(--wp--custom--field);
	border: 2px solid var(--wp--custom--border-control);
	border-radius: var(--offizin-radius);
}

:where(textarea) { min-height: 9rem; }

:where(input, textarea, select):not([class*="wc-block-"] *):focus {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.wp-block-search__inside-wrapper { gap: var(--wp--preset--spacing--20); }
.wp-block-search .wp-block-search__input { min-width: 0; }

/* Kontrast-Modus ----------------------------------------------------------
   Per Schalter in der Leiste oder automatisch bei prefers-contrast: more. */

html.is-contrast {
	--wp--preset--color--base: #FFFFFF;
	--wp--preset--color--surface: #FFFFFF;
	--wp--preset--color--accent-tint: #FFFFFF;
	--wp--preset--color--line: #000000;
	--wp--preset--color--muted: #000000;
	--wp--preset--color--contrast: #000000;
	--wp--preset--color--accent: #004230;
	--wp--preset--color--deep: #000000;
	--wp--preset--color--signal: #8A0000;
	--wp--preset--color--signal-tint: #FFFFFF;
	--wp--preset--color--sun: #FFE066;
	--wp--custom--border-control: #000000;
}

html.is-contrast a { text-decoration-thickness: 3px; }
html.is-contrast .wp-block-group.is-style-card,
html.is-contrast .wp-block-group.is-style-card-tint,
html.is-contrast .wp-block-group.is-style-card-alert,
html.is-contrast .offizin-tile { border: 3px solid #000; }
html.is-contrast .wp-block-navigation .wp-block-navigation-item a[aria-current="page"] { outline: 3px solid #000; }

@media (prefers-contrast: more) {
	:root {
		--wp--preset--color--surface: #FFFFFF;
		--wp--preset--color--accent-tint: #FFFFFF;
		--wp--preset--color--line: #000000;
		--wp--preset--color--muted: #000000;
		--wp--preset--color--deep: #000000;
		--wp--custom--border-control: #000000;
	}

	.wp-block-group.is-style-card,
	.wp-block-group.is-style-card-tint,
	.wp-block-group.is-style-card-alert,
	.offizin-tile { border: 3px solid #000; }
}

/* Shop (optional, wenn WooCommerce aktiv ist) ---------------------------- */

.wc-block-product-categories-list { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20); margin: 0; padding: 0; list-style: none; }
.wc-block-product-categories-list-item { margin: 0; }

.wc-block-product-categories-list-item > a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.3rem 1.1rem;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.wc-block-product-categories-list-item > a:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }
.wc-block-product-categories-list-item-count { display: none; }

.wc-block-product-template__responsive {
	--offizin-gap: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--60) var(--offizin-gap);
}

.wc-block-product-template__responsive.columns-2 { grid-template-columns: repeat(auto-fill, minmax(max(150px, 50% - 0.5 * var(--offizin-gap)), 1fr)); }
.wc-block-product-template__responsive.columns-3 { grid-template-columns: repeat(auto-fill, minmax(max(150px, 33.3333% - 0.66667 * var(--offizin-gap)), 1fr)); }
.wc-block-product-template__responsive.columns-4 { grid-template-columns: repeat(auto-fill, minmax(max(150px, 25% - 0.75 * var(--offizin-gap)), 1fr)); }

.wc-block-components-product-image { background: var(--wp--preset--color--surface); border-radius: var(--offizin-radius-lg); overflow: hidden; }
.wc-block-components-product-image img { display: block; width: 100%; }

.wc-block-components-product-sale-badge {
	margin: var(--wp--preset--spacing--20);
	padding: 0.2rem 0.8rem;
	background: var(--wp--preset--color--signal);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.wc-block-components-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15em 0.6em; }
.wc-block-components-product-price del { color: var(--wp--preset--color--muted); }
.wc-block-components-product-price ins { color: var(--wp--preset--color--signal); text-decoration: none; }

.offizin-toolbar { padding-block: var(--wp--preset--spacing--30); border-block: 2px solid var(--wp--preset--color--line); }

.wp-block-woocommerce-catalog-sorting select { width: auto; min-height: 2.75rem; padding: 0.4rem 2rem 0.4rem 0.8rem; font-family: inherit; }

@media (min-width: 782px) {
	.offizin-product > .wp-block-column:first-child { position: sticky; top: var(--wp--preset--spacing--40); align-self: flex-start; }
}

.wc-block-add-to-cart-form .stock { margin: 0 0 var(--wp--preset--spacing--30); color: var(--wp--preset--color--muted); }
form.cart { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20); }
form.cart .quantity .qty { width: 5rem; text-align: center; }
form.cart .single_add_to_cart_button { flex: 1 1 12rem; min-height: var(--wp--custom--control-height); }

/* Geschlossener Mini-Warenkorb: nicht per Tastatur erreichbar (WooCommerce lässt ihn sonst außerhalb des Bildes fokussierbar) */
.wc-block-components-drawer__screen-overlay--is-hidden { visibility: hidden; }

.wc-block-mini-cart__button { color: inherit; min-width: 2.75rem; min-height: 2.75rem; }
.wc-block-mini-cart__badge { background: var(--wp--preset--color--signal); color: #fff; font-weight: 700; }

.wc-block-components-button:not(.is-link) {
	min-height: var(--wp--custom--control-height);
	background: var(--wp--preset--color--accent);
	border-radius: 999px;
	color: #fff;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--deep); color: #fff; }

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select__select { border: 2px solid var(--wp--custom--border-control); border-radius: var(--offizin-radius); }

.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-components-checkout-step__heading {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
}
