/* Tu Felix Austria – Basis-Styles. Alle Maße in rem (kein px). */

/* Browser-Schriftgröße des Nutzers respektieren */
html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	/* Platz für den sticky Header bei Ankersprüngen und Tastaturfokus */
	scroll-padding-top: 7rem;
}

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

body {
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

/* ------------------------------------------------------------------
 * Seitengerüst: kein Blockabstand zwischen Header, Main und Footer.
 * Der Template-Part-Wrapper des Headers wird "durchsichtig", damit
 * der Header über die ganze Seite sticky bleiben kann, die Topbar
 * aber normal wegscrollt.
 * ---------------------------------------------------------------- */
body .wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-site-blocks > .wp-block-template-part:has(> .tfa-header) {
	display: contents;
}

/* Seiten bestehen aus vollbreiten Abschnitten: zwischen direkt aufeinander
   folgenden Abschnitten kein Abstand, normale Blöcke behalten den Blockabstand. */
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* ------------------------------------------------------------------
 * Fokus
 * ---------------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible,
.wp-element-button:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--rot);
	outline-offset: var(--wp--custom--focus--offset);
}

/* Auf dunklem Grund: heller Fokusring */
.has-gruen-background-color :where(a, button):focus-visible,
.has-textgruen-background-color :where(a, button):focus-visible,
.tfa-on-dark :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--creme-hell);
}

/* Mindestgröße für Klick- und Tippflächen */
.wp-element-button,
.wp-block-button__link,
.wp-block-navigation-item__content,
.wp-block-search__button,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-height: var(--wp--custom--min-target);
	display: inline-flex;
	align-items: center;
}

/* Skip-Link */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--creme-hell);
	color: var(--wp--preset--color--gruen);
	clip-path: none;
	height: auto;
	width: auto;
	padding: 0.875rem 1.5rem;
	z-index: 100000;
}

/* ------------------------------------------------------------------
 * Hover-Effekte: Links
 * ---------------------------------------------------------------- */
a {
	transition:
		color 0.25s ease,
		text-decoration-color 0.25s ease,
		text-underline-offset 0.25s ease,
		opacity 0.25s ease;
}

/* Fließtext-Links: bleiben unterstrichen (Barrierefreiheit), Linie gleitet leicht weg */
a:where(:not(.wp-element-button):not(.wp-block-button__link)) {
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.2em;
}

a:where(:not(.wp-element-button):not(.wp-block-button__link)):hover {
	text-underline-offset: 0.35em;
}

/* Navigation, Titel, Logo: Unterstreichung blendet weich ein */
.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-post-title a,
.wp-block-site-title a,
.wp-block-site-logo a,
.wp-block-woocommerce-product-template .wp-block-post-title a {
	text-decoration-line: underline;
	text-decoration-thickness: 0.0625rem;
	text-decoration-color: transparent;
	text-underline-offset: 0.35em;
	transition:
		color 0.25s ease,
		text-decoration-color 0.25s ease,
		text-underline-offset 0.25s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible,
.wp-block-post-title a:hover,
.wp-block-post-title a:focus-visible,
.wp-block-site-title a:hover,
.wp-block-woocommerce-product-template .wp-block-post-title a:hover {
	text-decoration-color: currentColor;
	text-underline-offset: 0.5em;
}

/* ------------------------------------------------------------------
 * Hover-Effekte: Buttons
 * ---------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button {
	justify-content: center;
	transition: 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.wc-block-components-button:hover {
		transform: translateY(-0.125rem);
		box-shadow: var(--wp--preset--shadow--weich);
	}

	.wp-element-button:active,
	.wp-block-button__link:active,
	.wc-block-components-button:active {
		transform: translateY(0);
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------------
 * Block-Stil "Textlink": kleiner, gesperrter, unterstrichener Link
 * statt Button (so im Design). Farbe wird vom Abschnitt geerbt.
 * ---------------------------------------------------------------- */
.wp-block-button.is-style-tfa-textlink > .wp-block-button__link.wp-element-button {
	background: transparent;
	color: inherit;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration-line: underline;
	text-decoration-thickness: 0.0625rem;
	text-decoration-color: currentColor;
	text-underline-offset: 0.55em;
}

.wp-block-button.is-style-tfa-textlink > .wp-block-button__link.wp-element-button:hover,
.wp-block-button.is-style-tfa-textlink > .wp-block-button__link.wp-element-button:focus-visible {
	background: transparent;
	color: var(--tfa-link-hover, var(--wp--preset--color--rot));
	box-shadow: none;
	transform: none;
	text-underline-offset: 0.8em;
}

.tfa-on-dark {
	--tfa-link-hover: var(--wp--preset--color--rose);
}

/* ------------------------------------------------------------------
 * Outline-Buttons (Core nutzt px für den Rahmen, hier rem)
 * ---------------------------------------------------------------- */
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	background-color: transparent;
	color: var(--wp--preset--color--gruen);
	border: 0.125rem solid var(--wp--preset--color--gruen);
	padding: 0.75rem 1.625rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--gruen);
	color: var(--wp--preset--color--creme-hell);
}

/* ------------------------------------------------------------------
 * Eyebrow-Zeile über Überschriften
 * ---------------------------------------------------------------- */
.tfa-eyebrow {
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rot);
	line-height: 1.4;
}

.tfa-eyebrow a {
	color: var(--wp--preset--color--textgruen);
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.55em;
}

.tfa-eyebrow a:hover {
	color: var(--wp--preset--color--rot);
}

.tfa-muted {
	opacity: 0.8;
}

.tfa-narrow {
	max-width: 30rem;
	margin-inline: auto;
}

.tfa-narrow--s {
	max-width: 22rem;
	margin-inline: auto;
}

/* ------------------------------------------------------------------
 * Topbar (scrollt weg) und Header (sticky)
 * ---------------------------------------------------------------- */
.tfa-topbar {
	padding-block: 0.5rem;
	text-align: center;
}

.tfa-topbar p {
	margin: 0;
}

.tfa-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--position-offset, 0);
	z-index: 100;
	border-bottom: var(--wp--custom--hairline) solid var(--wp--preset--color--rose);
}

.tfa-header .wp-block-site-logo img {
	width: clamp(7rem, 5rem + 6vw, 10rem);
	height: auto;
	filter: none; /* Logo nur in Originalfarben */
}

/* Navigation und Icons auf einer Mittellinie */
.tfa-header__actions,
.tfa-header__icons {
	align-items: center;
}

.tfa-header .wp-block-navigation,
.tfa-header .wp-block-navigation__container {
	align-items: center;
	margin: 0;
	gap: 0rem 1.4rem;
}

.tfa-header .wp-block-navigation .wp-block-navigation__responsive-container-content {
	padding-top: 1.1rem;
}

.tfa-header .wp-block-navigation-item {
	align-items: center;
}

.tfa-header .wc-block-mini-cart,
.tfa-header .wp-block-woocommerce-customer-account,
.tfa-header .wc-block-customer-account {
	display: flex;
	align-items: center;
	margin: 0;
}

.tfa-header .wc-block-mini-cart__button,
.tfa-header .wc-block-customer-account a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--wp--custom--min-target);
	min-height: var(--wp--custom--min-target);
	margin: 0;
	padding: 0;
	line-height: 1;
	background: transparent;
	color: var(--wp--preset--color--textgruen);
	text-decoration: none;
	transition: color 0.25s ease, transform 0.25s ease;
}

.tfa-header .wc-block-mini-cart__button:hover,
.tfa-header .wc-block-customer-account a:hover {
	color: var(--wp--preset--color--rot);
	background: transparent;
}


/* Header-Navigation: aktive Seite in Theme-Rot */
.tfa-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
.tfa-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.tfa-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--rot);
}

/* Mobiles Aufklappmenü: Links ca. 60 % größer (Basis: Schriftgröße "small") */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: calc(var(--wp--preset--font-size--small) * 1.6);
}

/* ------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */
.tfa-footer {
	border-top: var(--wp--custom--hairline) solid var(--wp--preset--color--rose);
	text-align: center;
}

.tfa-footer__brand .wp-block-site-logo img {
	width: 9rem;
	height: auto;
	filter: none; /* Logo nur in Originalfarben auf hellem Grund */
}

.tfa-footer-title {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.tfa-footer p,
.tfa-address {
	margin-block: 0;
}

.tfa-address {
	font-style: normal;
}

.tfa-footer .wp-block-navigation__container {
	align-items: center;
	gap: 0.25rem;
}


/* Footer-Navigation: Zeilenabstand der Links ca. 30 % kleiner (3rem → ca. 2,1rem) */
.tfa-footer .wp-block-navigation:not(.tfa-legal) .wp-block-navigation-item__content {
	min-height: 1.875rem;
}

.tfa-legal .wp-block-navigation__container {
	justify-content: center;
	gap: 0.5rem 1.5rem;
}

/* ------------------------------------------------------------------
 * Startseite: Platzhalter-Flächen (Cover ohne Bild).
 * Sobald ein Bild gesetzt wird, verdeckt es die Fläche; das Platzhalter-
 * Label kann dann gelöscht werden.
 * ---------------------------------------------------------------- */
.tfa-ph {
	background-color: var(--wp--preset--color--textgruen);
}

.tfa-ph--rose { background-color: var(--wp--preset--color--rose); }
.tfa-ph--salbei { background-color: var(--wp--preset--color--salbei); }
.tfa-ph--creme { background-color: var(--wp--preset--color--creme); }
.tfa-ph--creme-hell { background-color: var(--wp--preset--color--creme-hell); }

/* Vorlage: Platzhalter-Beschriftung klein und ruhig */
.tfa-ph p {
	margin: 0;
}

/* Hero: Text unten links, Überschrift bricht nach "für" um */
.tfa-hero .wp-block-heading {
	max-width: 10em;
	text-wrap: wrap; /* Umbruch nach "für" wie im Design, nicht ausbalanciert */
}

/* Foto-Abschnitte: Overlay wird zum Verlauf nach unten (lesbarer Text).
   Das Overlay liegt zwischen Bild und Text, der Text bleibt unverdeckt. */
.tfa-shade .wp-block-cover__background {
	background: linear-gradient(to top, rgb(47 58 42 / 0.75), rgb(47 58 42 / 0.05) 70%) !important;
	opacity: 1 !important;
}


/* Vollbreite Foto-Covers: Höhe wächst mit der Breite (mobil 32rem, Desktop ca. 1,9:1) */
.wp-block-cover.alignfull:is(.tfa-hero, .tfa-shade) {
	min-height: clamp(32rem, 52vw, 64rem) !important;
}

/* Variante je Bild: höher, z. B. für Hochformat-Motive */
.wp-block-cover.alignfull.tfa-cover--tall {
	min-height: clamp(36rem, 62vw, 76rem) !important;
}

/* Abstände im Textblock: Eyebrow und Überschrift enger, Überschrift und Text enger */
.tfa-eyebrow + .wp-block-heading,
.tfa-eyebrow + p {
	margin-block-start: 0.75rem;
}

.wp-block-heading + p,
.wp-block-heading + .wp-block-buttons {
	margin-block-start: 1rem;
}

/* ------------------------------------------------------------------
 * Zweispalter ohne Abstand (volle Breite): Panels füllen die Spalte
 * ---------------------------------------------------------------- */
.tfa-split {
	gap: 0;
}

.tfa-split > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.tfa-split > .wp-block-column > * {
	flex: 1 1 auto;
}

.tfa-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-height: 100%;
}

.tfa-panel--between {
	justify-content: space-between;
}

.tfa-panel > * {
	flex: 0 0 auto;
}

.tfa-panel > .tfa-product {
	flex: 0 0 auto;
}

/* Produktbild in der Pants-Kachel */
.tfa-product {
	width: 100%;
	max-width: 18rem;
	min-height: 24rem;
	margin-inline: auto !important;
}

/* Preisliste (Spar-Packs) */
.wp-block-list.tfa-price-list {
	list-style: none;
	margin-inline: auto !important;
	padding: 0;
	max-width: 17rem;
	border-top: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.25);
}

.tfa-price-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.25);
	font-size: var(--wp--preset--font-size--small);
}

.tfa-price-list .tfa-price {
	font-weight: 300;
}

/* Merkmale "Handwerk im Detail" */
.tfa-feature {
	padding-block: 1.25rem;
	border-bottom: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.2);
}

.tfa-feature:last-child {
	border-bottom: 0;
}

.tfa-feature h3 {
	margin: 0 0 0.375rem;
	font-weight: 400;
}

.tfa-feature p {
	margin: 0;
}

/* Gwandkastl-Kacheln */
.tfa-tile {
	min-height: 0;
	aspect-ratio: 4 / 5;
}

.tfa-tile-title a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.35em;
}

.tfa-tile-title a:hover,
.tfa-tile-title a:focus-visible {
	text-decoration-color: currentColor;
}

/* Instagram-Raster: 2 Spalten mobil, 4 Spalten ab 48rem */
.tfa-grid-4.is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 48rem) {
	.tfa-grid-4.is-layout-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

/* Mobil: Foto-Flächen niedriger, Kacheln quadratisch */
@media (max-width: 48rem) {
	.tfa-split .wp-block-cover {
		min-height: 22rem !important;
	}

	.tfa-tile {
		aspect-ratio: 1 / 1;
	}
}

.tfa-square {
	min-height: 0;
	aspect-ratio: 1 / 1;
}

/* Logo unter dem Einleitungstext */
.tfa-intro-logo img {
	width: 5rem;
	height: auto;
	filter: none;
}

/* ------------------------------------------------------------------
 * Newsletter-Formular (Platzhalter, später durch Plugin-Block ersetzen)
 * ---------------------------------------------------------------- */
.tfa-newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 1rem;
	max-width: 26rem;
	margin-inline: auto;
}

.tfa-newsletter input[type="email"] {
	flex: 1 1 12rem;
	min-height: var(--wp--custom--min-target);
	padding: 0.5rem 0;
	font: inherit;
	color: var(--wp--preset--color--textgruen);
	background-color: transparent;
	border: 0;
	border-bottom: 0.0625rem solid var(--wp--preset--color--textgruen);
	border-radius: 0;
	transition: border-color 0.25s ease;
}

.tfa-newsletter input[type="email"]::placeholder {
	color: var(--wp--preset--color--textgruen);
	opacity: 0.65;
}

.tfa-newsletter input[type="email"]:hover {
	border-bottom-color: var(--wp--preset--color--rot);
}

.tfa-newsletter .wp-element-button {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

/* ------------------------------------------------------------------
 * WooCommerce
 * ---------------------------------------------------------------- */
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--gruen);
	font-weight: 400;
}


/* Hilfsklasse: nur für Screenreader sichtbar */
.tfa-visually-hidden {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ------------------------------------------------------------------
 * Größentabelle: echte Text-Tabelle (SEO), responsiv.
 * Passt ab ca. 22rem Breite ohne Scrollen, darunter horizontal scrollbar.
 * ---------------------------------------------------------------- */
.tfa-narrow--m {
	max-width: 38rem;
	margin-inline: auto;
}

.wp-block-table.tfa-size-table {
	max-width: 52rem;
	margin-inline: auto;
	overflow-x: auto;
}

.wp-block-table.tfa-size-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--x-small);
}

.wp-block-table.tfa-size-table thead {
	border-bottom: 0;
}

.wp-block-table.tfa-size-table th,
.wp-block-table.tfa-size-table td {
	padding: 0.75rem 0.5rem;
	border: 0;
	border-bottom: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.2);
	text-align: center;
	font-weight: 300;
	font-variant-numeric: tabular-nums;
}

.wp-block-table.tfa-size-table thead th {
	border-bottom-color: var(--wp--preset--color--textgruen);
	font-weight: 400;
}

.wp-block-table.tfa-size-table th:first-child,
.wp-block-table.tfa-size-table td:first-child {
	text-align: left;
}

.wp-block-table.tfa-size-table figcaption {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	text-align: center;
}

@media (max-width: 30rem) {
	.wp-block-table.tfa-size-table th,
	.wp-block-table.tfa-size-table td {
		padding: 0.625rem 0.25rem;
		font-size: 0.8125rem;
	}
}

/* ------------------------------------------------------------------
 * Aufklapper ("Gut zu wissen"): natives <details>, ohne JavaScript
 * ---------------------------------------------------------------- */
.tfa-details > .wp-block-details {
	margin-block: 0;
	border-top: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.25);
}

.tfa-details > .wp-block-details:last-child {
	border-bottom: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.25);
}

.tfa-details summary {
	padding: 0.875rem 0;
	cursor: pointer;
	transition: 0.3s ease;
}

.tfa-details summary:hover,
.tfa-details summary:focus-visible {
	color: var(--wp--preset--color--rot);
}

.tfa-details .wp-block-details > :not(summary) {
	margin-block: 0 1rem;
	font-size: var(--wp--preset--font-size--small);
}

/* ------------------------------------------------------------------
 * Geschenke: Ideen-Karten, Anlässe, Hinweise
 * ---------------------------------------------------------------- */
.tfa-card > .tfa-tile-title {
	margin-block-start: 0.75rem;
	font-weight: 400;
}

.tfa-card > p {
	margin-block-start: 0.25rem;
}

/* Anlässe: Liste mit Mittelpunkt-Trennern (rein visuell) */
.wp-block-list.tfa-occasions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0;
	margin-inline: auto;
	padding: 0;
	list-style: none;
}

.tfa-occasions li {
	display: flex;
	align-items: center;
}

.tfa-occasions li:not(:last-child)::after {
	content: "·";
	content: "·" / "";
	margin-inline: 1rem;
}

.tfa-note h3 {
	font-weight: 400;
}

/* ------------------------------------------------------------------
 * Händlerseite: Fakten, Startpaket, Kontakt
 * ---------------------------------------------------------------- */
.tfa-stats {
	row-gap: 1.5rem !important;
	column-gap: 0 !important;
}

.tfa-fact {
	padding-inline: 1rem;
}

.tfa-fact > p {
	margin: 0;
}

.tfa-fact > p + p {
	margin-block-start: 0.25rem;
}

@media (min-width: 48rem) {
	.tfa-stats > .tfa-fact + .tfa-fact {
		border-inline-start: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.2);
	}
}

/* Leistungsliste mit Haarlinien */
.wp-block-list.tfa-spec-list {
	list-style: none;
	margin-block: 1.5rem 0;
	padding: 0;
	border-top: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.2);
}

.tfa-spec-list li {
	padding: 0.75rem 0;
	border-bottom: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.2);
	font-size: var(--wp--preset--font-size--small);
}

.tfa-spec-list + p {
	margin-block-start: 1rem;
}

.tfa-statement {
	line-height: 1.4;
}

/* Ansprechperson */
.tfa-person {
	margin-block-start: 2rem;
	gap: 1rem;
}

.tfa-person p {
	margin: 0;
}

.tfa-avatar {
	flex: 0 0 3.5rem;
	box-sizing: border-box;
	width: 3.5rem;
	min-height: 0 !important;
	padding: 0 !important;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

.tfa-avatar p {
	font-size: 0.75rem !important;
}

/* Tabelle "Über die Pants" (Produktbeschreibung) */
.wp-block-table.tfa-data-table table {
	width: 100%;
	border-collapse: collapse;
	border-top: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.2);
}

.wp-block-table.tfa-data-table :where(th, td) {
	padding: 1rem 0;
	border: 0;
	border-bottom: var(--wp--custom--hairline) solid rgb(47 58 42 / 0.2);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 300;
}

.wp-block-table.tfa-data-table th {
	padding-right: 1rem;
	text-align: left;
	opacity: 0.8;
}

.wp-block-table.tfa-data-table td {
	text-align: right;
}


/* ------------------------------------------------------------------
 * Rechtstexte (Datenschutz): Abstände vor Überschriften, Aufzählungen
 * ---------------------------------------------------------------- */
.tfa-legal h2 {
	margin-block-start: 3rem;
}

.tfa-legal h3 {
	margin-block-start: 2rem;
	font-weight: 400;
}

.tfa-legal h4 {
	margin-block-start: 1.5rem;
}

.tfa-legal :where(h2, h3, h4) + p,
.tfa-legal :where(h2, h3, h4) + ul {
	margin-block-start: 0.75rem;
}

.tfa-legal .wp-block-list {
	padding-left: 1.25rem;
}

/* Aufzählung mit eigener Nummerierung "(1)" im Text */
.wp-block-list.tfa-legal-numbered {
	list-style: none;
	padding-left: 0;
}

.tfa-legal-numbered li + li {
	margin-block-start: 0.5rem;
}

/* ------------------------------------------------------------------
 * Warenkorb / Kasse: Steuerhinweis unter der Gesamtsumme
 * ---------------------------------------------------------------- */
.wc-block-components-totals-footer-item-tax {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.02em;
	word-spacing: 0.12em;
	color: var(--wp--preset--color--textgruen);
	opacity: 0.8;
}

.wc-block-components-totals-footer-item-tax-value {
	font-weight: 400;
	font-variant-numeric: lining-nums tabular-nums;
}

/* ------------------------------------------------------------------
 * WooCommerce-Hinweise (Warenkorb, Fehler, Info)
 * ---------------------------------------------------------------- */

/* Programmatisch fokussierte Box (tabindex="-1"): kein Fokusrahmen */
.wc-block-components-notice-banner:focus,
.wc-block-components-notice-banner:focus-visible,
.woocommerce-message:focus,
.woocommerce-message:focus-visible,
.woocommerce-error:focus,
.woocommerce-error:focus-visible,
.woocommerce-info:focus,
.woocommerce-info:focus-visible {
	outline: 0;
}

/* Symbol, Text und Button auf einer Mittellinie */
.wc-block-components-notice-banner {
	align-items: center;
	padding-block: 1rem;
}

.wc-block-components-notice-banner > svg {
	align-self: center;
}

.wc-block-components-notice-banner__content {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding: 0;
}

/* Klassische Hinweise */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

/* Button im Hinweis: ruhiger Textlink statt Kachel mit Schatten */
:is(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info) :is(.wc-forward, .button, .wp-element-button, .wc-block-components-button) {
	order: 2;
	margin: 0;
	padding: 0.25rem 0;
	min-height: 0;
	background: transparent;
	color: var(--wp--preset--color--textgruen);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration-line: underline;
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.55em;
	white-space: nowrap;
	transition: 0.3s ease;
}

:is(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info) :is(.wc-forward, .button, .wp-element-button, .wc-block-components-button):is(:hover, :focus-visible) {
	background: transparent;
	color: var(--wp--preset--color--rot);
	box-shadow: none;
	transform: none;
	text-underline-offset: 0.8em;
}

/* ------------------------------------------------------------------
 * Mein Konto: Anmelden / Passwort vergessen
 * ---------------------------------------------------------------- */

/* Überschrift "Anmelden" ausblenden (bleibt für Screenreader erhalten) */
.woocommerce-account .woocommerce > h2:has(+ form.woocommerce-form-login),
.woocommerce-account .woocommerce > h2:has(+ form.woocommerce-ResetPassword),
.woocommerce-account .u-column1 > h2:has(+ form.woocommerce-form-login) {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	margin: -0.0625rem;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Schmale, zentrierte Box */
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register,
.woocommerce-account form.woocommerce-ResetPassword {
	box-sizing: border-box;
	width: 100%;
	max-width: 28rem;
	margin-inline: auto;
}

/* Button und "Angemeldet bleiben" nebeneinander, auf einer Mittellinie */
.woocommerce-page form.woocommerce-form-login p.form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
}

/* Clearfix von WooCommerce (::before/::after) würde im Flex-Container zu leeren Flex-Items mit Abstand */
.woocommerce-page form.woocommerce-form-login p.form-row:has(.woocommerce-form-login__submit)::before,
.woocommerce-page form.woocommerce-form-login p.form-row:has(.woocommerce-form-login__submit)::after {
	display: none;
}

.woocommerce-page form.woocommerce-form-login p.form-row .woocommerce-form-login__submit {
	flex: 0 0 auto;
	float: none;
	width: auto;
	order: 1;
	margin: 0;
}

/* Spezifischer als das WooCommerce-Blocktheme-CSS (.woocommerce-page form .form-row label) */
.woocommerce-page form.woocommerce-form-login .form-row label.woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	float: none;
	width: auto;
	gap: 0.5rem;
	order: 2;
	margin: 0 0 0.5rem;
	padding: 0;
	line-height: 1.2;
	position: relative;
	top: 0.2rem;
}

.woocommerce-page form.woocommerce-form-login .form-row label.woocommerce-form-login__rememberme::before {
	display: none;
}

.woocommerce-form-login .woocommerce-LostPassword,
.woocommerce-form-login .lost_password {
	text-align: center;
}

.woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
	margin: 0;
}

/* Anmelden auf Mobile: Button und "Angemeldet bleiben" untereinander, zentriert */
@media (max-width: 30rem) {
	.woocommerce-page form.woocommerce-form-login p.form-row:has(.woocommerce-form-login__submit) {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.woocommerce-page form.woocommerce-form-login .form-row label.woocommerce-form-login__rememberme {
		justify-content: center;
	}
}

/* Passwort vergessen: Felder in voller Breite, Text und Button zentriert */
.woocommerce-account form.woocommerce-ResetPassword > p:first-child {
	text-align: center;
}

.woocommerce-account form.woocommerce-ResetPassword .form-row {
	float: none;
	width: 100%;
}

.woocommerce-account form.woocommerce-ResetPassword .form-row .input-text,
.woocommerce-account form.woocommerce-ResetPassword .form-row input[type="text"],
.woocommerce-account form.woocommerce-ResetPassword .form-row input[type="email"] {
	box-sizing: border-box;
	width: 100%;
}

.woocommerce-account form.woocommerce-ResetPassword .form-row:has(.woocommerce-Button) {
	text-align: center;
}

/* ------------------------------------------------------------------
 * Mein Konto: Bestelltabelle – Aktionen als ruhige Textlinks
 * ---------------------------------------------------------------- */
.woocommerce-orders-table td,
.woocommerce-orders-table th {
	vertical-align: middle;
}

.woocommerce-orders-table__cell-order-actions {
	white-space: nowrap;
}

.woocommerce-orders-table__cell-order-actions .button {
	display: inline-block;
	min-height: 0;
	margin: 0 0.75rem 0 0;
	padding: 0.25rem 0;
	background: transparent;
	color: var(--wp--preset--color--textgruen);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
	font-size: 0.75rem;
	line-height: 1.4;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration-line: underline;
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.55em;
	transition: 0.3s ease;
}

.woocommerce-orders-table__cell-order-actions .button:last-child {
	margin-right: 0;
}

.woocommerce-orders-table__cell-order-actions .button:is(:hover, :focus-visible) {
	background: transparent;
	color: var(--wp--preset--color--rot);
	box-shadow: none;
	transform: none;
	text-underline-offset: 0.8em;
}

/* Kontodetails: Anzeigename wird nicht verwendet */
.woocommerce-EditAccountForm p:has(#account_display_name),
.woocommerce-EditAccountForm p:has(#account_display_name) + .clear {
	display: none;
}

/* Mein Konto: Hinweis unter dem Login-Formular */
.tfa-login-hint {
	max-width: 28rem;
	margin: 2.5rem auto 0;
	text-align: center;
}

.tfa-login-hint p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.tfa-login-hint .tfa-eyebrow {
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
}
