/*
 * Trendfloristik – Gestaltung.
 *
 * Prinzipien
 * 1. Zwei Schriften, klare Rollen: Gruppo (Marke) für Überschriften und Markenname; Manrope für allen Fließtext,
 *    Navigation, Buttons und Formulare. Alte Inhalte mit Klasse „gruppo“ oder Inline-Fettungen werden dieser
 *    Regel unterworfen – Betonung im Text nur über <strong>.
 * 2. Eine Fläche, ein Radius: Rosé-Flächen 28 px, Bilder/Karten 18 px, Felder 12 px, Buttons Pille.
 * 3. Bewegung nur als Unterstützung (Einblenden, Bild-Zoom) und nie bei „reduzierter Bewegung“.
 * 4. Farben der alten Seite bleiben, das neue Design passt sich ihnen an: Altes Rosé #e0d0c6 für Karten, Bänder
 *    und Footer; Blush #f0d4c2 für Header und Kopfleiste; der Seitengrund ist eine helle Tönung des alten Rosé
 *    (kein Weiß), Eingabefelder ebenso. Chips auf farbigen Flächen sind durchscheinend (--tf-glass). Reines Weiß
 *    nur, wo es fachlich nötig ist (QR-Codes zum Scannen).
 * 5. Daten in Tabellenform zeigen, wenn sie Tabellen sind (Öffnungszeiten: Tag | Zeiten, ohne Umbruch in Zeiten).
 * 6. Elemente, die ein zweites Gerät brauchen (QR-Codes), nur auf großen Bildschirmen zeigen.
 * 7. Farbige Flächen im Seiteninhalt sind Karten (Innenabstand, Radius, nie randlos). Randlos sind nur Hero,
 *    Template-Bänder und Footer – auch wenn ein alter Inhalt „volle Breite“ gewählt hat.
 * 8. Ein einzelnes Bild ist nie höher als der Bildschirm; es wird verkleinert, nicht beschnitten.
 * 9. Ein Header für alle Seiten: volle Bildschirmhöhe und dieselbe Farbe wie im bisherigen Auftritt
 *    (Blush #f0d4c2 zu 80 % über dem Bild), dazu ein Hinweis zum Weiterscrollen. Unterseiten unterscheiden
 *    sich nur im Titel, nicht in Höhe oder Farbe.
 * 10. Buttons tragen die Farben der Seite: gefüllt in warmem Taupe, beim Darüberfahren dunkler; Kontur-Buttons
 *    in Taupe. Fast-Schwarz bleibt dem Text vorbehalten. Das gilt für jeden Button (Inhalt, Navigation,
 *    Formulare, Cookie-Hinweis, Nach-oben), auch wenn ein alter Inhalt eine andere Farbe gewählt hat.
 * 11. Inhaltsseiten haben einen Aufbau: Einleitung (Kicker, Überschrift, Lead) → Karten → Galerie → Abschluss-Karte.
 *    Struktur statt Formatierung: Fließtext ist Absatz, Aufzählungen sind Listen (kurze als Chips, Sätze mit
 *    Häkchen), „Bezeichnung: Wert“ ist eine Datenliste. Umgesetzt mit dev/sql/seiten-modernisieren.php.
 * 12. Die Kopfleiste bleibt oben stehen und sieht an jeder Scrollposition so aus wie ganz oben auf der Seite: als
 *    oberer Rand des Headers (Bild, Ausschnitt, Blush-Schicht). Kein eigener Streifen, Schatten oder Farbwechsel,
 *    nichts an ihr hängt am Scrollen.
 */

/* ---------- Tokens ---------- */
:root {
	--tf-radius-sm: var(--wp--custom--radius--sm, 12px);
	--tf-radius: var(--wp--custom--radius--md, 18px);
	--tf-radius-lg: var(--wp--custom--radius--lg, 28px);
	--tf-radius-pill: var(--wp--custom--radius--pill, 999px);
	--tf-color-cream: var(--wp--preset--color--cream, #fcf9f7);
	--tf-color-rose: var(--wp--preset--color--rose, #e0d0c6);
	--tf-color-rose-light: var(--wp--preset--color--rose-light, #f4ece7);
	--tf-color-blush: var(--wp--preset--color--blush, #f0d4c2);
	--tf-color-taupe: var(--wp--preset--color--taupe, #8a6f63);
	--tf-color-taupe-dark: var(--wp--preset--color--taupe-dark, #6f5a50);
	--tf-color-ink: var(--wp--preset--color--contrast, #2a2421);
	--tf-color-line: var(--wp--preset--color--line, #e3d6ce);
	--tf-color-muted: var(--wp--preset--color--accent-4, #6f625b);
	--tf-font-display: var(--wp--preset--font-family--gruppo, gruppo, sans-serif);
	--tf-font: var(--wp--preset--font-family--manrope, Manrope, system-ui, sans-serif);
	--tf-surface: var(--tf-color-rose-light);
	--tf-card: var(--tf-color-rose);
	--tf-glass: rgba(255, 255, 255, .5);
	--tf-shadow: var(--wp--preset--shadow--soft, 0 18px 40px -22px rgba(60, 40, 30, .35));
	--tf-topbar-h: 72px;
	/* Prinzip 9: Farbe des bisherigen Headers (Blush, Deckkraft 80 %). */
	--tf-hero-overlay: rgba(240, 212, 194, .8);
	/* Prinzip 10: Weiß auf Taupe 4,6:1, auf dunklem Taupe 6,5:1 (WCAG AA). */
	--tf-btn-bg: var(--tf-color-taupe);
	--tf-btn-bg-hover: var(--tf-color-taupe-dark);
	--tf-btn-fg: #fff;
	--tf-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grundlagen ---------- */
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--tf-topbar-h) + 16px);
}

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--tf-color-blush);
	color: var(--tf-color-ink);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--tf-color-taupe);
	outline-offset: 3px;
	border-radius: 6px;
}

a {
	text-underline-offset: .2em;
	text-decoration-thickness: 1px;
	transition: color .2s ease;
}

/* ---------- Schrift-Rollen (Prinzip 1) ---------- */
:where(.wp-site-blocks) :is(p, li, dd, dt, td, th, figcaption, blockquote, label, input, select, textarea),
:where(.wp-site-blocks) :is(p, li).gruppo,
:where(.wp-site-blocks) :is(p, li).has-gruppo-font-family {
	font-family: var(--tf-font) !important;
}

:where(.wp-site-blocks main, .wp-site-blocks .tf-footer) :is(p, li) {
	font-weight: 400 !important;
	letter-spacing: 0;
}

strong,
b {
	font-weight: 600;
}

:where(.wp-site-blocks) :is(h1, h2, h3, h4, h5, h6),
:where(.wp-site-blocks) :is(h1, h2, h3, h4, h5, h6) :is(strong, b) {
	font-family: var(--tf-font-display) !important;
	font-weight: 400 !important;
	font-style: normal;
}

:where(.wp-site-blocks) :is(h1, h2, h3, h4) {
	-webkit-text-stroke: .35px currentColor;
	text-wrap: balance;
}

:where(.wp-site-blocks) :is(h5, h6) {
	-webkit-text-stroke: .25px currentColor;
}

p {
	text-wrap: pretty;
}

.tf-eyebrow {
	font-family: var(--tf-font) !important;
	font-size: .8rem !important;
	font-weight: 600 !important;
	letter-spacing: .22em !important;
	text-transform: uppercase;
	color: var(--tf-color-taupe);
	margin-bottom: .6rem !important;
}

/* ---------- Abstände ---------- */
.wp-block-spacer {
	max-height: clamp(24px, 7vw, 110px);
}

p:empty {
	display: none;
}

/* ---------- Flächen, Karten, Bilder (Prinzip 2) ---------- */
.wp-block-group.has-background:not(.alignfull),
.wp-block-columns.has-background:not(.alignfull),
.is-style-tf-card,
.tf-card {
	border-radius: var(--tf-radius-lg);
}

.is-style-tf-card,
.tf-card {
	background: var(--tf-card);
	padding: clamp(1.5rem, 4vw, 2.75rem);
}

.wp-block-cover:not(.alignfull):not(.tf-hero) {
	border-radius: var(--tf-radius-lg);
	overflow: hidden;
}

/* Prinzip 7. */
.wp-block-post-content > :is(.wp-block-group, .wp-block-columns).has-background.alignfull,
.wp-block-post-content > .wp-block-cover.alignfull {
	max-width: min(var(--wp--style--global--wide-size, 1280px), calc(100% - 2 * var(--wp--style--root--padding-left, 24px))) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border-radius: var(--tf-radius-lg);
	overflow: hidden;
}

.wp-block-post-content .wp-block-group.has-background:not([style*="padding-top"]) {
	padding-top: clamp(2rem, 5vw, 3.5rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.wp-block-post-content .wp-block-group.has-background:not([style*="padding-left"]) {
	padding-left: clamp(1.25rem, 4vw, 3rem);
	padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* Prinzip 8. */
.wp-block-post-content > figure.wp-block-image img {
	display: block;
	width: auto;
	max-height: 85vh;
	margin-inline: auto;
}

/* Text auf Bild-Flächen braucht genug Kontrast. */
.wp-block-cover:not(.tf-hero) > .wp-block-cover__background.has-background-dim {
	opacity: .78 !important;
}

.wp-block-image img,
.wp-block-media-text__media img,
.wp-block-post-featured-image img {
	border-radius: var(--tf-radius);
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}

figcaption,
.wp-element-caption {
	text-align: center;
	margin-top: .6em;
}

/* Anklickbare Bilder (Lightbox oder Link) sanft vergrößern. */
.wp-block-image:has(> a, > .lightbox-trigger) {
	overflow: hidden;
	border-radius: var(--tf-radius);
}

.wp-block-image:has(> a, > .lightbox-trigger) img {
	transition: transform .6s var(--tf-ease);
}

.wp-block-image:has(> a, > .lightbox-trigger):hover img {
	transform: scale(1.035);
}

.wp-lightbox-overlay .scrim {
	background-color: rgba(42, 36, 33, .92) !important;
}

.wp-lightbox-overlay .close-button {
	color: #fff;
}

.wp-lightbox-overlay img {
	border-radius: var(--tf-radius);
}

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-element-button {
	border-radius: var(--tf-radius-pill) !important;
	font-family: var(--tf-font) !important;
	font-weight: 600 !important;
	transition: background-color .25s ease, color .25s ease, transform .25s var(--tf-ease), box-shadow .25s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: var(--tf-shadow);
}

/* Prinzip 10: auch alte Inhalte mit eigener Button-Farbe (z. B. „has-foreground-background-color“). */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.wp-element-button:not(.tf-consent__secondary, .is-style-outline > .wp-block-button__link) {
	background-color: var(--tf-btn-bg) !important;
	color: var(--tf-btn-fg) !important;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:is(:hover, :focus-visible),
.wp-element-button:not(.tf-consent__secondary, .is-style-outline > .wp-block-button__link):is(:hover, :focus-visible) {
	background-color: var(--tf-btn-bg-hover) !important;
}

.wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: .55em;
	transition: transform .25s var(--tf-ease);
}

.wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--tf-color-taupe-dark) !important;
	border-color: transparent !important;
	box-shadow: inset 0 0 0 1.5px var(--tf-btn-bg);
}

.wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--tf-btn-bg) !important;
	color: var(--tf-btn-fg) !important;
}

/* ---------- Kopfleiste ---------- */
/* Prinzip 12: bleibt oben stehen und zeigt immer den oberen Rand des Headers (gleiches Bild, gleicher Ausschnitt,
   gleiche Blush-Schicht, gleicher Zoom). Bild, Ausschnitt und Höhe setzt theme.js aus dem Header-Bild; overflow
   schneidet die Ebene auf Leistenhöhe zu (das fest positionierte Handy-Menü ist davon nicht betroffen). */
.tf-topbar {
	position: fixed !important;
	overflow: hidden;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--tf-topbar-h);
	padding: 0 clamp(16px, 4vw, 48px) !important;
	margin: 0 !important;
	gap: 1.5rem;
	align-items: center;
	max-width: none !important;
}

.tf-topbar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	z-index: -1;
	height: var(--tf-hero-h, 100svh);
	background:
		linear-gradient(var(--tf-hero-overlay), var(--tf-hero-overlay)),
		var(--tf-hero-img, none) var(--tf-hero-pos, 50% 50%) / cover no-repeat,
		var(--tf-surface);
	pointer-events: none;
}

.admin-bar .tf-topbar {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.tf-topbar__brand {
	margin: 0 !important;
	font-family: var(--tf-font-display) !important;
	font-size: 1.6rem !important;
	font-weight: 400 !important;
	letter-spacing: .03em;
	-webkit-text-stroke: .4px currentColor;
	white-space: nowrap;
	line-height: 1;
}

.tf-topbar__brand a {
	text-decoration: none;
	color: var(--tf-color-ink);
}

.tf-topbar .wp-block-navigation {
	margin-left: auto;
}

.tf-topbar .wp-block-navigation__container {
	gap: clamp(.6rem, 1.4vw, 1.5rem) !important;
}

.tf-topbar .wp-block-navigation-item__content {
	padding: .45rem .1rem;
	text-decoration: none;
	position: relative;
}

.tf-topbar .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: .15rem;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--tf-ease);
}

.tf-topbar .wp-block-navigation-item__content:hover::after,
.tf-topbar .current-menu-item > .wp-block-navigation-item__content::after,
.tf-topbar [aria-current="page"]::after {
	transform: scaleX(1);
}

@media (min-width: 1101px) {
	.tf-topbar .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
		background: var(--tf-btn-bg);
		color: #fff;
		border-radius: var(--tf-radius-pill);
		padding: .55rem 1.2rem;
		transition: background-color .25s ease;
	}

	.tf-topbar .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content:hover {
		background: var(--tf-btn-bg-hover);
	}

	.tf-topbar .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content::after {
		display: none;
	}
}

/* Bis 1100 px: Menü-Button statt Leiste (WordPress schaltet sonst erst bei 600 px um). */
@media (max-width: 1100px) {
	.tf-topbar .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.tf-topbar .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}
}

.tf-topbar .wp-block-navigation__responsive-container-open {
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-glass);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 6px 20px -12px rgba(60, 40, 30, .5);
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tf-color-blush) !important;
	padding: clamp(1.5rem, 6vw, 3rem) !important;
	animation: tf-menu-in .35s var(--tf-ease);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: .35rem !important;
	align-items: flex-start !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--tf-font-display);
	font-size: clamp(1.6rem, 6vw, 2.2rem);
	-webkit-text-stroke: .35px currentColor;
	text-decoration: none;
	padding: .2rem 0 !important;
}

.wp-block-navigation__responsive-container-close {
	width: 46px;
	height: 46px;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-glass);
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes tf-menu-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* ---------- Hero ---------- */
/* Prinzip 9: Höhe gilt für jeden Header, auch wenn ein Block eine eigene Mindesthöhe trägt. */
.tf-hero {
	text-align: center;
	isolation: isolate;
	overflow: hidden;
	min-height: 100vh !important;
	min-height: 100svh !important;
}

.tf-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 920px;
	position: static;
}

.tf-hero .wp-block-cover__inner-container > * {
	position: relative;
	z-index: 2;
}

.tf-hero .wp-block-cover__background {
	background: var(--tf-hero-overlay) !important;
	opacity: 1 !important;
}

.tf-hero .tf-brand,
.tf-hero .tf-brand a {
	color: var(--tf-color-ink);
	text-decoration: none;
}

.tf-hero .tf-brand {
	font-size: clamp(3rem, 1.6rem + 6.5vw, 6.5rem) !important;
	line-height: .95 !important;
	letter-spacing: .02em;
	margin: 0;
	-webkit-text-stroke: .9px currentColor;
}

.tf-hero .tf-tagline {
	font-size: clamp(.78rem, .7rem + .35vw, .95rem) !important;
	font-weight: 600 !important;
	letter-spacing: .32em;
	text-transform: uppercase;
	margin-top: 1.25rem !important;
}

.tf-hero .tf-hero-address {
	color: var(--tf-color-muted);
	margin-top: .4rem !important;
}

.tf-hero .wp-block-buttons {
	margin-top: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.tf-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.tf-hero .tf-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: clamp(16px, 4vh, 36px);
	transform: translateX(-50%);
	margin: 0 !important;
	font-size: .72rem !important;
	font-weight: 600 !important;
	letter-spacing: .25em;
	text-transform: uppercase;
	z-index: 2;
}

.tf-scroll-cue a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	text-decoration: none;
	color: var(--tf-color-ink);
}

.tf-scroll-cue a::after {
	content: "";
	width: 1.5px;
	height: 38px;
	background: linear-gradient(var(--tf-color-ink), transparent);
	animation: tf-cue 2.2s ease-in-out infinite;
	transform-origin: top;
}

@keyframes tf-cue {
	0% { transform: scaleY(0); opacity: 0; }
	30% { opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}

.tf-hero--sub .wp-block-post-title {
	font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem) !important;
	margin: 0 !important;
	-webkit-text-stroke: .6px currentColor;
}

.tf-hero--sub .tf-tagline {
	margin-top: .9rem !important;
}

@media (prefers-reduced-motion: no-preference) {
	.tf-hero > .wp-block-cover__image-background,
	.tf-topbar::before {
		animation: tf-kenburns 14s var(--tf-ease) both;
	}
}

@keyframes tf-kenburns {
	from { transform: scale(1.1); }
	to { transform: scale(1); }
}

/* ---------- Leistungs-Karten (Startseite) ---------- */
.tf-services {
	gap: clamp(1rem, 2vw, 1.75rem) !important;
}

.tf-service {
	position: relative;
	background: var(--tf-card);
	border-radius: var(--tf-radius);
	overflow: hidden;
	box-shadow: var(--tf-shadow);
	display: flex;
	flex-direction: column;
	transition: transform .4s var(--tf-ease), box-shadow .4s ease;
}

.tf-service:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 50px -24px rgba(60, 40, 30, .45);
}

.tf-service .wp-block-image {
	margin: 0 !important;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.tf-service .wp-block-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0;
	transition: transform .8s var(--tf-ease);
}

.tf-service:hover .wp-block-image img {
	transform: scale(1.06);
}

.tf-service h3 {
	margin: 1.25rem 1.4rem .35rem !important;
	font-size: 1.55rem !important;
}

.tf-service h3 a {
	text-decoration: none;
	color: inherit;
}

/* Ganze Karte anklickbar über den Titel-Link. */
.tf-service h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tf-service p {
	margin: 0 1.4rem 1.2rem !important;
	color: var(--tf-color-muted);
	font-size: .97rem;
}

.tf-service p.tf-service__more {
	margin-top: auto !important;
	margin-bottom: 1.4rem !important;
	font-weight: 600 !important;
	color: var(--tf-color-ink);
	font-size: .9rem;
}

.tf-service p.tf-service__more::after {
	content: " →";
	display: inline-block;
	transition: transform .3s var(--tf-ease);
}

.tf-service:hover p.tf-service__more::after {
	transform: translateX(5px);
}

@media (max-width: 1023px) {
	.tf-services {
		flex-wrap: wrap !important;
	}

	.tf-services > .wp-block-column {
		flex-basis: calc(50% - 1rem) !important;
		flex-grow: 1 !important;
	}
}

@media (max-width: 599px) {
	.tf-services > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Kontaktliste mit Symbolen ---------- */
.tf-ico {
	position: relative;
	padding-left: 3.1rem;
	min-height: 2.3rem;
	margin: 0 0 1.1rem !important;
}

.tf-ico::before {
	content: "";
	position: absolute;
	left: 0;
	top: -.1rem;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-glass);
}

.tf-ico::after {
	content: "";
	position: absolute;
	left: .6rem;
	top: .5rem;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--tf-color-taupe);
	-webkit-mask: var(--tf-ico) center / contain no-repeat;
	mask: var(--tf-ico) center / contain no-repeat;
}

.tf-ico--pin { --tf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2c-3.9 0-7 3.1-7 7 0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.tf-ico--phone { --tf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E"); }
.tf-ico--mail { --tf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 6.5A1.5 1.5 0 0 1 4.5 5h15A1.5 1.5 0 0 1 21 6.5v11a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5v-11zm2 .9v.2l7 4.7 7-4.7v-.2H5zm14 2.6-7 4.6-7-4.6V17h14v-7z'/%3E%3C/svg%3E"); }
.tf-ico--insta { --tf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4zm0 2a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7zm5 3.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7zm0 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM17.3 5.8a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E"); }
.tf-ico--clock { --tf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 3v4.6l3.2 1.9-1 1.7L11 12.7V7h2z'/%3E%3C/svg%3E"); }

.tf-contact .tf-card h3 {
	margin-bottom: 1.25rem !important;
}

.tf-qr-row {
	gap: 1rem !important;
}

.tf-qr-row .wp-block-image img {
	background: #fff;
	padding: 6px;
	box-sizing: border-box;
}

/* ---------- Öffnungszeiten und Live-Status ---------- */
.tf-open-status {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .38rem .9rem;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-glass);
	font-size: .85rem !important;
	font-weight: 600 !important;
	margin: 0 0 1rem !important;
}

.tf-open-status:empty {
	display: none;
}

.tf-open-status::before {
	content: "";
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: #b9a49a;
}

.tf-open-status.is-open::before {
	background: #4f9a63;
	box-shadow: 0 0 0 4px rgba(79, 154, 99, .18);
	animation: tf-pulse 2.4s ease-in-out infinite;
}

@keyframes tf-pulse {
	50% { box-shadow: 0 0 0 7px rgba(79, 154, 99, 0); }
}

.tf-hours .tf-today {
	font-weight: 700;
}

/* Von theme.js erzeugte Tabellenform (Prinzip 5). */
.tf-hours.tf-hours--grid {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.25rem;
	row-gap: .2rem;
}

.tf-hours--grid > span {
	display: contents;
}

.tf-hours--grid .tf-hours__time > span {
	white-space: nowrap;
}

.tf-hours--grid .tf-hours__closed {
	color: var(--tf-color-muted);
}

.tf-hours--grid .tf-today > span {
	color: var(--tf-color-ink);
}

.tf-hours--grid .tf-today > .tf-hours__day::after {
	content: "heute";
	margin-left: .5rem;
	padding: .05rem .5rem;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-color-blush);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	vertical-align: .1em;
}

/* ---------- Fußbereich ---------- */
.tf-footer {
	color: var(--tf-color-ink);
}

.tf-footer a {
	text-decoration-color: rgba(42, 36, 33, .3);
}

.tf-footer a:hover {
	color: var(--tf-color-taupe);
	text-decoration-color: currentColor;
}

.tf-footer .tf-footer-brand {
	font-family: var(--tf-font-display) !important;
	font-size: 2.1rem !important;
	-webkit-text-stroke: .5px currentColor;
	line-height: 1;
	margin-bottom: .6rem !important;
}

.tf-footer .tf-footer-brand a {
	text-decoration: none;
	color: inherit;
}

.tf-footer h3 {
	font-size: 1.3rem !important;
	margin-bottom: .9rem !important;
}

.tf-footer p {
	font-size: .95rem !important;
	line-height: 1.75;
}

.tf-footer .tf-tagline {
	font-size: .7rem !important;
	font-weight: 600 !important;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--tf-color-taupe);
}

.tf-footer .tf-footer-qr img {
	background: #fff;
	padding: 6px;
	box-sizing: border-box;
}

.tf-footer-bottom {
	border-top: 1px solid rgba(42, 36, 33, .14);
	padding-top: 1.25rem;
}

.tf-footer-bottom p {
	font-size: .85rem !important;
	margin: 0 !important;
	color: var(--tf-color-muted);
}

.tf-footer-bottom .wp-block-navigation {
	font-size: .85rem;
}

.tf-footer-bottom .wp-block-navigation a {
	text-decoration: none;
}

.tf-footer-bottom .wp-block-navigation a:hover {
	text-decoration: underline;
}

/* ---------- Formulare (tf-formulare) im Markenstil ---------- */
.has-background > .wp-block-tf-form,
.has-background > .tf-form-wrap {
	padding-block: clamp(.5rem, 2vw, 1.5rem);
}

.tf-form input[type="text"],
.tf-form input[type="email"],
.tf-form input[type="tel"],
.tf-form input[type="date"],
.tf-form input[type="datetime-local"],
.tf-form select,
.tf-form textarea {
	border-radius: var(--tf-radius-sm) !important;
	border: 1.5px solid var(--tf-color-line) !important;
	background-color: var(--tf-surface) !important;
	padding: .8rem 1rem !important;
	font-size: 1rem !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tf-form input:focus,
.tf-form select:focus,
.tf-form textarea:focus {
	border-color: var(--tf-color-taupe) !important;
	box-shadow: 0 0 0 4px rgba(138, 111, 99, .15) !important;
	outline: none !important;
}

.tf-form label,
.tf-form legend {
	font-weight: 600 !important;
	font-size: .92rem !important;
}

.tf-form .wp-element-button {
	padding: 1rem 2.2rem !important;
	font-size: 1rem !important;
}


/* ---------- Über mich: abwechselnde Bild-Text-Reihen ---------- */
.tf-about-row .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	box-shadow: var(--tf-shadow);
}

@media (min-width: 782px) {
	.tf-about-row--flip {
		flex-direction: row-reverse;
	}
}

.tf-five {
	list-style: none;
	counter-reset: tf-five;
	padding: 0 !important;
	margin: 1.25rem 0 0 !important;
	display: grid;
	gap: .9rem;
}

.tf-five li {
	counter-increment: tf-five;
	display: grid;
	grid-template-columns: 3rem 1fr;
	align-items: center;
	background: var(--tf-glass);
	border-radius: var(--tf-radius);
	padding: .85rem 1.1rem;
	box-shadow: 0 8px 24px -18px rgba(60, 40, 30, .45);
}

.tf-five li::before {
	content: counter(tf-five);
	font-family: var(--tf-font-display);
	font-size: 2rem;
	line-height: 1;
	color: var(--tf-color-taupe);
	-webkit-text-stroke: .5px currentColor;
}

/* Aufklappbarer Text („Weiterlesen“) */
.tf-more > summary {
	cursor: pointer;
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 600;
	padding: .6rem 1.2rem;
	border-radius: var(--tf-radius-pill);
	box-shadow: inset 0 0 0 1.5px currentColor;
	transition: background-color .25s ease, color .25s ease;
}

.tf-more > summary::-webkit-details-marker {
	display: none;
}

.tf-more > summary::after {
	content: "+";
	font-size: 1.2em;
	line-height: 1;
	transition: transform .3s var(--tf-ease);
}

.tf-more[open] > summary::after {
	transform: rotate(45deg);
}

.tf-more > summary:hover {
	background: var(--tf-btn-bg);
	color: var(--tf-btn-fg);
}

.tf-more[open] > summary {
	margin-bottom: 1rem;
}

.tf-more[open] > :not(summary) {
	animation: tf-fade-in .45s var(--tf-ease);
}

@keyframes tf-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

/* Trenner als drei Punkte */
.wp-block-separator.is-style-dots {
	border: 0 !important;
	background: none !important;
	color: var(--tf-color-taupe);
	margin-block: 2rem !important;
}

/* Fußbereich: feste Spaltenbreiten auf großen Bildschirmen */
@media (min-width: 782px) {
	.tf-footer > .wp-block-columns {
		display: grid !important;
		grid-template-columns: 1.15fr 1fr 1.3fr auto;
	}
}

/* ---------- Inhaltsseiten (Prinzip 11): Einleitung, Karten, Chips, Häkchen, Daten, Abschluss-Karte ---------- */
/* Abschnitte haben einen gleichen, großzügigen Abstand – statt Abstandshaltern im Inhalt. */
.wp-block-post-content > * + :is(.tf-section, .wp-block-gallery, .tf-cta) {
	margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
}

.tf-intro h2 {
	text-wrap: balance;
}

.tf-lead {
	font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem) !important;
	color: var(--tf-color-muted);
	text-wrap: balance;
}

.tf-muted {
	color: var(--tf-color-muted);
}

/* Zusammengesetzte Namen („Blumen-Abo“) nicht am Bindestrich umbrechen. */
.tf-nowrap {
	white-space: nowrap;
}

.tf-cards {
	gap: clamp(1rem, 2.5vw, 2rem) !important;
}

.tf-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.tf-cards > .wp-block-column > .tf-card {
	flex: 1;
	margin: 0 !important;
}

.tf-card > :first-child {
	margin-top: 0 !important;
}

.tf-card > :last-child {
	margin-bottom: 0 !important;
}

.tf-card h3 {
	margin-bottom: 1rem !important;
}

/* Kurze Aufzählungen als Chips (Prinzip 11.3). */
ul.tf-chips {
	list-style: none;
	padding: 0 !important;
	margin-block: .25rem 1rem !important;
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
}

ul.tf-chips li {
	margin: 0 !important;
	padding: .5rem 1rem;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-glass);
	font-weight: 500;
	line-height: 1.35;
	box-shadow: 0 6px 18px -14px rgba(60, 40, 30, .45);
	transition: transform .25s var(--tf-ease), background-color .25s ease;
}

ul.tf-chips li:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, .7);
}

ul.tf-chips.tf-chips--center {
	justify-content: center;
}

/* Sätze als Häkchen-Liste – gilt auch für alte Listen auf farbigen Flächen. */
ul.tf-check,
.wp-block-post-content :is(.tf-card, .has-background) ul.wp-block-list:not(.tf-chips, .tf-facts, .tf-five) {
	list-style: none;
	padding: 0 !important;
	margin-block: .5rem 0 !important;
	display: grid;
	gap: .8rem;
}

ul.tf-check > li,
.wp-block-post-content :is(.tf-card, .has-background) ul.wp-block-list:not(.tf-chips, .tf-facts, .tf-five) > li {
	position: relative;
	margin: 0 !important;
	padding-left: 2.3rem;
}

ul.tf-check > li::before,
.wp-block-post-content :is(.tf-card, .has-background) ul.wp-block-list:not(.tf-chips, .tf-facts, .tf-five) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-glass);
}

ul.tf-check > li::after,
.wp-block-post-content :is(.tf-card, .has-background) ul.wp-block-list:not(.tf-chips, .tf-facts, .tf-five) > li::after {
	content: "";
	position: absolute;
	left: .38rem;
	top: calc(.15em + .38rem);
	width: .74rem;
	height: .74rem;
	background: var(--tf-color-taupe);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Daten „Bezeichnung: Wert“ als Datenliste (Prinzip 5). */
ul.tf-facts {
	list-style: none;
	padding: 0 !important;
	margin-block: 1.5rem !important;
	border-top: 1px solid rgba(42, 36, 33, .12);
}

ul.tf-facts > li {
	position: relative;
	margin: 0 !important;
	padding: .75rem 0 .75rem 8.25rem;
	border-bottom: 1px solid rgba(42, 36, 33, .12);
}

ul.tf-facts > li > strong:first-child {
	position: absolute;
	left: 0;
	top: .75rem;
	width: 7.5rem;
	font-weight: 600;
	color: var(--tf-color-taupe-dark);
}

.tf-back {
	margin-top: 1.5rem !important;
	font-size: .92rem;
}

.tf-back a {
	text-decoration: none;
	font-weight: 600;
	color: var(--tf-color-taupe-dark);
}

.tf-back a::before {
	content: "← ";
}

/* Info neben Formular: Karte so hoch wie ihr Inhalt. Artikel: Infokarte neben den Bildern.
   Beide bleiben auf großen Bildschirmen beim Scrollen sichtbar. */
.tf-cards.tf-contact > .wp-block-column:first-child > .tf-card {
	flex: 0 0 auto;
}

@media (min-width: 782px) {
	.tf-cards.tf-contact > .wp-block-column:first-child,
	.tf-product > .wp-block-column:last-child {
		position: sticky;
		top: calc(var(--tf-topbar-h) + 24px);
		align-self: flex-start;
	}
}

.tf-portrait,
.tf-portrait img {
	height: 100%;
	margin: 0 !important;
}

.tf-portrait img {
	width: 100%;
	object-fit: cover;
	min-height: 320px;
}

/* Abschluss-Karte: altes Bild und alte Überlagerung, neuer Inhalt. */
.wp-block-cover.tf-cta {
	min-height: 0 !important;
	padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem) !important;
	text-align: center;
}

.tf-cta .wp-block-buttons {
	margin-top: 1.5rem !important;
}

/* ---------- Einblenden beim Scrollen (Prinzip 3) ---------- */
.tf-anim .tf-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .9s var(--tf-ease), transform .9s var(--tf-ease);
	transition-delay: var(--tf-delay, 0ms);
}

.tf-anim .tf-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.tf-anim .tf-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ---------- Nach oben ---------- */
.tf-to-top {
	position: fixed;
	right: clamp(12px, 3vw, 28px);
	bottom: clamp(12px, 3vw, 28px);
	z-index: 90;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: var(--tf-radius-pill);
	background: var(--tf-btn-bg);
	color: var(--tf-btn-fg);
	font-size: 1.2rem;
	cursor: pointer;
	box-shadow: var(--tf-shadow);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .3s ease, transform .3s var(--tf-ease), background-color .2s ease;
}

.tf-to-top.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.tf-to-top:hover {
	background: var(--tf-btn-bg-hover);
}

/* ---------- Tabellen, Trenner ---------- */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--tf-color-line);
	padding: .6em .8em;
	vertical-align: top;
}

.wp-block-separator {
	border-color: var(--tf-color-line);
	opacity: 1;
}

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 781px) {
	:root {
		--tf-topbar-h: 64px;
	}

	.tf-eyebrow {
		font-size: .7rem !important;
		letter-spacing: .14em !important;
	}

	.tf-hero .tf-tagline {
		letter-spacing: .16em;
	}

	.wp-block-group.has-background:not(.alignfull),
	.wp-block-columns.has-background:not(.alignfull),
	.wp-block-cover:not(.alignfull):not(.tf-hero) {
		margin-left: 12px !important;
		margin-right: 12px !important;
	}

	.wp-block-columns > .wp-block-column:empty {
		display: none;
	}

	.wp-block-post-content > :is(.wp-block-group, .wp-block-columns).has-background.alignfull,
	.wp-block-post-content > .wp-block-cover.alignfull {
		max-width: calc(100% - 24px) !important;
	}

	.tf-topbar__brand {
		font-size: 1.35rem !important;
	}

	.tf-footer-bottom,
	.tf-footer-bottom .wp-block-navigation__container {
		justify-content: flex-start !important;
		row-gap: .5rem !important;
	}

	/* Prinzip 6. */
	.tf-qr-row,
	.tf-footer .tf-footer-qr {
		display: none !important;
	}

	ul.tf-facts > li {
		padding-left: 6.5rem;
	}

	ul.tf-facts > li > strong:first-child {
		width: 6rem;
	}
}

/* ---------- Druck ---------- */
@media print {
	.tf-topbar,
	.tf-to-top,
	.tf-scroll-cue,
	.tf-footer .wp-block-navigation {
		display: none !important;
	}

	.tf-anim .tf-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}
