/*
 * DF Theme Spiritbalance: theme layer (base additions, header, footer, non-DF templates).
 *
 * Built from the approved prototype (spiritbalance/prototype, 2026-11-09):
 *   Part 1 = prototype css/theme/base.css   (heading colour per scheme, scheme "hell" #FBF7FB, dark scheme
 *                                            gradient, buttons, scroll offset, skip link, SHADOW TOKENS §5)
 *   Part 2 = prototype css/theme/header.css (info bar + sticky main bar, burger, sub menu)
 *   Part 3 = prototype css/theme/footer.css (invitation card, 4 columns, legal row)
 *   Part 4 = theme only: WordPress templates without a DF layout (404, search, index, archive, page
 *            without layout, single fallback), restyled with tokens.
 * Parts 1-3 are copied verbatim (only the watermark URL is adapted to this file's location). When the
 * prototype CSS changes, copy the part again (see docs/BUILD.md). Sections never go here: their CSS is
 * df-sections/<type>/style.css.
 *
 * Loads after DF Editor's base.css (dependency df-editor-base, enqueued on every page by functions.php),
 * so same-specificity scheme overrides (.df-scheme-hell) win. Tokens / --df-* only.
 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--wp--preset--color--primary, #8E2B7E); outline-offset: 2px; }
.site-main:focus { outline: none; }
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* =====================================================================
 * Part 1: prototype css/theme/base.css
 * ===================================================================== */

/* ---------- 1. Heading colour per scheme ---------- */
.df-scheme-hell,
.df-scheme-hell-alt { --df-heading: var(--wp--custom--heading, var(--df-fg)); --df-btn2-fg: var(--wp--preset--color--primary); } /* secondary = violet outline pill (approved) */
.df-scheme-dunkel,
.df-scheme-primaer,
.df-scheme-akzent  { --df-heading: var(--df-fg); }
.df-section :is(h1, h2, h3, h4) { color: var(--df-heading, inherit); font-weight: 400; }

/* ---------- 1b. Scheme "hell" = very light violet (user 2026-11-09) ---------- */
.df-scheme-hell { --df-bg: var(--wp--custom--hell, #FBF7FB); }
.df-hero.df-scheme-hell { --df-bg: var(--wp--preset--color--base); } /* hero veil over the photo stays white */

/* ---------- 2. Dark scheme = dark violet ---------- */
.df-scheme-dunkel {
	--df-bg: var(--wp--custom--dark, #3D1538);
	background: linear-gradient(160deg, var(--wp--custom--dark, #3D1538), var(--wp--custom--dark-2, #2A0E26));
}

/* ---------- 3. Buttons (pill radius = token) ---------- */
.df-btn { font-family: var(--df-font-body); letter-spacing: .01em; }

/* ---------- 4. Page basics ---------- */
:root { --df-scroll-offset: calc(var(--wp--custom--header-height-mobile, 64px) + var(--wp--preset--spacing--40)); }
@media (min-width: 48em) {
	:root { --df-scroll-offset: calc(var(--wp--custom--header-height, 84px) + var(--wp--preset--spacing--40)); }
}
html { scroll-padding-top: var(--df-scroll-offset); }
body { overflow-x: clip; }

.df-skip-link {
	position: absolute;
	left: var(--wp--preset--spacing--40);
	top: var(--wp--preset--spacing--30);
	z-index: 1000;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--df-btn-radius, 999px);
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--on-primary);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}
.df-skip-link:focus { transform: none; outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* Placeholder images (client adds photos later): the violet stripe image of "Blöcke – Übersicht",
   <img class="df-img--placeholder" src="assets/img/placeholder-streifen.jpg" alt="" …> inside a
   .df-frame / .df-ratio-* box, so it always fills the box like a real photo would. */
.df-img--placeholder { object-fit: cover; object-position: center; }

/* ---------- 5. Shadows + hover lift (user 2026-11-09) ---------- */
:root {
	/* cards + image placeholders: soft light violet (secondary = Violett tief) */
	--df-shadow-soft: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--secondary) 8%, transparent);
	--df-shadow-lift: 0 16px 40px color-mix(in srgb, var(--wp--preset--color--secondary) 14%, transparent);
	/* tight version for images inside a scroll container (galerie karussell track: only 4px / 12px inner padding
	   clips a bigger shadow; padding must not change) */
	--df-shadow-tight: 0 3px 8px color-mix(in srgb, var(--wp--preset--color--secondary) 10%, transparent);
	--df-shadow-tight-lift: 0 6px 10px color-mix(in srgb, var(--wp--preset--color--secondary) 16%, transparent);
	/* buttons: smaller version */
	--df-shadow-btn: 0 4px 14px color-mix(in srgb, var(--wp--preset--color--secondary) 12%, transparent);
	--df-shadow-btn-lift: 0 8px 22px color-mix(in srgb, var(--wp--preset--color--secondary) 18%, transparent);
	/* orange primary pills: warm glow, same geometry */
	--df-shadow-btn-accent: 0 4px 14px color-mix(in srgb, var(--wp--preset--color--accent) 30%, transparent);
	--df-shadow-btn-accent-lift: 0 8px 22px color-mix(in srgb, var(--wp--preset--color--accent) 38%, transparent);
	/* dark scheme (violet gradient): darker shadow that still reads on the dark background */
	--df-shadow-dark: 0 8px 24px color-mix(in srgb, var(--wp--custom--dark-2) 55%, transparent);
	--df-shadow-dark-lift: 0 16px 40px color-mix(in srgb, var(--wp--custom--dark-2) 70%, transparent);
	--df-shadow-dark-btn: 0 4px 14px color-mix(in srgb, var(--wp--custom--dark-2) 60%, transparent);
	--df-shadow-dark-btn-lift: 0 8px 22px color-mix(in srgb, var(--wp--custom--dark-2) 75%, transparent);
	/* hover lift */
	--df-lift: -4px;
	--df-lift-btn: -2px;
	--df-shadow-transition: box-shadow .25s ease, transform .25s ease;
}
@media (prefers-reduced-motion: reduce) {
	:root { --df-lift: 0px; --df-lift-btn: 0px; } /* shadow change only, no movement */
}

/* buttons (every .df-btn; text links .df-btn--link get none) */
.df-btn {
	--df-btn-shadow: var(--df-shadow-btn);
	--df-btn-shadow-hover: var(--df-shadow-btn-lift);
	box-shadow: var(--df-btn-shadow);
	transition: filter .15s ease, background-color .15s ease, color .15s ease, var(--df-shadow-transition);
}
.df-scheme-dunkel .df-btn { --df-btn-shadow: var(--df-shadow-dark-btn); --df-btn-shadow-hover: var(--df-shadow-dark-btn-lift); }
@media (hover: hover) {
	.df-btn:hover { box-shadow: var(--df-btn-shadow-hover); transform: translateY(var(--df-lift-btn)); }
}
.df-btn.df-btn--link { box-shadow: none; transform: none; }

/* =====================================================================
 * Part 2: prototype css/theme/header.css
 * ===================================================================== */
/* =====================================================================
 * theme: header (-> df-theme-spiritbalance header.php + assets/css/theme.css)
 * Owner: Setup. Approved design: mockup-home/_parts/00-header.html (live template 20).
 * NO CTA button in the header (user decision 2026-11-08), also not in the burger menu.
 *
 * Parts: .df-site-topbar (info bar, desktop only, scrolls away, scheme "dunkel" but Violett tief)
 *        .df-site-header (sticky main bar: logo, main menu, burger; .is-compact after 40 px of scroll)
 * Heights: 64px phone (custom.header-height-mobile), 84px desktop (custom.header-height),
 *          compact (scrolled) 64px everywhere.
 * Menu: burger below 48em (disclosure that pushes the page, visible close "✕ Schließen", Esc closes).
 *       From 48em the full menu - unless js/header.js finds it does not fit in one row (e.g. 768-900px):
 *       then it adds .df-site-header--collapsed and the burger menu is used at that width too.
 *       Without JS (no html.df-js) the menu is always visible (no hidden navigation).
 * Mobile first, only breakpoint 48em (min-width). Tokens / --df-* only.
 * ===================================================================== */

/* ---------- Info bar (desktop only; the same links are in the burger menu) ---------- */
.df-site-topbar {
	--df-bg: var(--wp--preset--color--secondary);
	display: none;
	background: var(--df-bg);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
}
.df-site-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
	min-height: 38px;
	padding-block: var(--wp--preset--spacing--20);
}
.df-site-topbar__claim {
	margin: 0;
	font-family: var(--df-font-heading);
	font-size: .9375rem;
	letter-spacing: .01em;
	color: color-mix(in srgb, var(--df-fg) 88%, transparent);
}
.df-site-topbar__links { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50); }
.df-site-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	color: var(--df-fg);
	font-weight: 500;
	text-decoration: none;
}
.df-site-topbar__link:is(:hover, :focus-visible) { color: var(--wp--custom--accent-light); }
.df-site-topbar .df-site-icon { width: 13px; height: 13px; fill: var(--wp--custom--accent-light); }

.df-site-icon { flex: none; width: 1em; height: 1em; fill: currentColor; }

/* ---------- Main bar ---------- */
.df-site-header {
	--df-header-h: var(--wp--custom--header-height-mobile, 64px);
	position: sticky;
	top: 0;
	z-index: 200;
	border-bottom: 1px solid var(--df-border);
	transition: background-color .3s ease, box-shadow .3s ease;
}
.df-site-header.is-compact {
	background: color-mix(in srgb, var(--df-bg) 95%, transparent);
	box-shadow: 0 8px 28px color-mix(in srgb, var(--wp--preset--color--secondary) 8%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}
.df-site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: var(--wp--preset--spacing--30);
}
.df-site-logo {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	min-height: calc(var(--df-header-h) - 1px); /* + 1px border = header height */
	transition: min-height .3s ease;
}
.df-site-logo img { display: block; width: 62px; height: auto; transition: width .3s ease; }

/* ---------- Burger (phone, and desktop widths where the menu does not fit) ---------- */
.df-site-burger {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center; /* icon only: the label "Menü"/"Schließen" is .df-sr-only (user 2026-11-09) */
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--df-btn-radius);
	background: transparent;
	color: var(--df-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.df-js .df-site-burger { display: inline-flex; }
.df-site-burger:hover { background: var(--df-surface); }
.df-site-burger__icon::before { content: "\2630"; font-size: 1.5em; line-height: 1; } /* ☰ */
.df-site-burger[aria-expanded="true"] .df-site-burger__icon::before { content: "\2715"; font-size: 1.25em; } /* ✕ = visible close */

/* ---------- Menu: phone / burger version (base) ---------- */
.df-site-nav { flex-basis: 100%; }
.df-js .df-site-nav { display: none; }
.df-js .df-site-nav.is-open {
	display: block;
	max-height: calc(100vh - var(--df-header-h));
	max-height: calc(100dvh - var(--df-header-h));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-block-end: var(--wp--preset--spacing--40);
}
.df-site-menu { border-top: 1px solid var(--df-border); }
.df-site-menu__item + .df-site-menu__item { border-top: 1px solid var(--df-border); }
.df-site-menu__link,
.df-site-submenu__link {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	color: var(--df-heading);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}
.df-site-menu__link:is(:hover, :focus-visible),
.df-site-submenu__link:is(:hover, :focus-visible) { color: var(--df-accent); background: var(--df-surface); }
.df-site-menu__link[aria-current="page"],
.df-site-submenu__link[aria-current="page"] { color: var(--df-accent); font-weight: 600; }

.df-site-menu__item--has-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.df-site-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--df-radius);
	background: transparent;
	color: var(--df-heading);
	cursor: pointer;
}
.df-site-menu__toggle .df-site-icon { width: 12px; height: 12px; transition: transform .2s ease; }
.df-site-menu__toggle[aria-expanded="true"] .df-site-icon { transform: rotate(180deg); }
.df-site-menu__toggle:hover { color: var(--df-accent); background: var(--df-surface); }
.df-site-submenu { grid-column: 1 / -1; background: var(--df-surface); }
.df-js .df-site-submenu { display: none; }
.df-js .df-site-menu__toggle[aria-expanded="true"] + .df-site-submenu { display: block; }
.df-site-submenu li + li { border-top: 1px solid var(--df-border); }
.df-site-submenu__link { padding-inline-start: calc(2 * var(--wp--preset--spacing--40)); }
.df-site-submenu__link:is(:hover, :focus-visible) { background: var(--df-bg); }
/* parent of the current page (set by the build: data-current on the <li>) */
.df-site-menu__item--has-sub[data-current] > .df-site-menu__link { color: var(--df-accent); }

.df-site-header :is(a, button):focus-visible { outline: 3px solid var(--df-accent); outline-offset: 2px; }

/* ---------- Desktop (from 48em) ---------- */
@media (min-width: 48em) {
	.df-site-topbar { display: block; }
	.df-site-header { --df-header-h: var(--wp--custom--header-height, 84px); }
	.df-site-header.is-compact { --df-header-h: var(--wp--custom--header-height-mobile, 64px); }
	.df-site-header__inner { flex-wrap: nowrap; column-gap: var(--wp--preset--spacing--50); }
	.df-site-logo { flex: none; }
	.df-site-logo img { width: 92px; }
	.df-site-header.is-compact .df-site-logo img { width: 70px; }

	/* Burger menu again when the full menu does not fit (js/header.js) */
	.df-site-header--collapsed .df-site-header__inner { flex-wrap: wrap; }
	.df-site-header--collapsed .df-site-logo { flex: 1 1 auto; }

	/* Full menu */
	.df-js .df-site-header:not(.df-site-header--collapsed) .df-site-burger { display: none; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-nav,
	.df-js .df-site-header:not(.df-site-header--collapsed) .df-site-nav {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
		max-height: none;
		overflow: visible;
		padding: 0;
	}
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		align-items: center;
		gap: 0 var(--wp--preset--spacing--20);
		border: 0;
	}
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item { position: relative; border: 0; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item--extra { display: none; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__link {
		position: relative;
		padding: 10px var(--wp--preset--spacing--20);
		background: none;
		white-space: nowrap;
	}
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__link::after {
		content: "";
		position: absolute;
		left: var(--wp--preset--spacing--20);
		right: var(--wp--preset--spacing--20);
		bottom: 4px;
		height: 2px;
		border-radius: 2px;
		background: var(--wp--preset--color--accent);
		opacity: 0;
		transition: opacity .2s ease;
	}
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__link:is(:hover, :focus-visible)::after { opacity: 1; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__link[aria-current="page"] { color: var(--df-heading); font-weight: 500; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__link[aria-current="page"]::after,
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item--has-sub[data-current] > .df-site-menu__link::after { background: var(--df-accent); opacity: 1; }

	/* Sub menu: link + small toggle, card on hover / focus / toggle */
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item--has-sub { display: flex; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item--has-sub > .df-site-menu__link { padding-inline-end: 2px; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item--has-sub > .df-site-menu__link::after { right: 2px; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__toggle { min-width: 1.75rem; background: none; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-submenu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
		display: none;
		min-width: 15rem;
		padding: var(--wp--preset--spacing--20);
		border: 1px solid var(--df-border);
		border-radius: var(--df-radius);
		background: var(--df-bg);
		box-shadow: var(--df-shadow);
	}
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item--has-sub:is(:hover, :focus-within) > .df-site-submenu,
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__toggle[aria-expanded="true"] + .df-site-submenu { display: block; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-menu__item--has-sub.is-closed > .df-site-submenu { display: none; } /* Esc closes while hovered */
	.df-site-header:not(.df-site-header--collapsed) .df-site-submenu li + li { border: 0; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-submenu__link { padding: 13px var(--wp--preset--spacing--40); border-radius: 6px; }
	.df-site-header:not(.df-site-header--collapsed) .df-site-submenu__link:is(:hover, :focus-visible) { background: var(--df-surface); }
}

@media (prefers-reduced-motion: reduce) {
	.df-site-header,
	.df-site-header * { transition: none !important; }
}

/* =====================================================================
 * Part 3: prototype css/theme/footer.css
 * ===================================================================== */
/* =====================================================================
 * theme: footer (-> df-theme-spiritbalance footer.php + assets/css/theme.css)
 * Owner: Setup. Approved design: mockup-home/_parts/99-footer.html (live template 21), light variant:
 * scheme hell-alt (Blass), invitation card (Yin-Yang mark + "Lass uns kennenlernen" + violet pill CTA),
 * 4 columns (brand · Kontakt · Angebote · Mehr), legal row; Yin-Yang watermark bottom right.
 * Phone: invitation stacked + full-width button, grid 2 columns (brand and Kontakt full width).
 * Mobile first, only breakpoint 48em (min-width). Tokens / --df-* only.
 * Shadows (user 2026-11-09): invitation card --df-shadow-soft + lift on hover; the CTA is a .df-btn (button shadow from base.css).
 * ===================================================================== */

.df-site-footer {
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--60) 28px;
	color: var(--df-muted);
	font-size: 1rem;
	line-height: 1.65;
}
.df-site-footer::after { /* Yin-Yang watermark */
	content: "";
	position: absolute;
	right: -100px;
	bottom: -120px;
	width: 300px;
	height: 300px;
	background: url("../img/sb-mark.svg") center / contain no-repeat;
	opacity: .045;
	pointer-events: none;
}
.df-site-footer__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(44px, 5vw, 64px);
}
.df-site-footer p { margin: 0; }
.df-site-footer a { color: inherit; }

/* Invitation card */
.df-site-footer__invite {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
	padding: 26px clamp(22px, 3vw, 36px);
	border: 1px solid var(--df-border);
	border-radius: var(--df-radius);
	background: var(--df-surface);
	box-shadow: var(--df-shadow-soft); /* shadow tokens: base.css (user 2026-11-09) */
	transition: var(--df-shadow-transition);
}
@media (hover: hover) {
	.df-site-footer__invite:hover { box-shadow: var(--df-shadow-lift); transform: translateY(var(--df-lift)); }
}
.df-site-footer__mark { flex: none; width: 46px; height: 46px; }
.df-site-footer__invite-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.df-site-footer__invite-title {
	font-family: var(--df-font-heading);
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	line-height: 1.2;
	color: var(--df-heading);
}
.df-site-footer .df-site-footer__cta { width: 100%; color: var(--df-btn-fg); white-space: nowrap; }
.df-site-footer .df-site-footer__cta:hover { background: var(--wp--preset--color--secondary); border-color: var(--wp--preset--color--secondary); filter: none; }

/* Columns */
.df-site-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px var(--wp--preset--spacing--50);
}
.df-site-footer__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.df-site-footer__col--brand,
.df-site-footer__col--contact { grid-column: 1 / -1; }
.df-site-footer__logo { display: inline-block; align-self: flex-start; line-height: 0; border-radius: 4px; }
.df-site-footer__logo img { width: 110px; height: auto; }
.df-site-footer__claim { max-width: 30ch; }
.df-site-footer__title {
	font-family: var(--df-font-heading);
	font-size: 1.3rem;
	line-height: 1.2;
	color: var(--df-heading);
}
.df-site-footer address { font-style: normal; text-wrap: pretty; }
.df-site-footer__links li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 2.75rem; /* tap target */
	text-decoration: none;
}
.df-site-footer__links .df-site-icon { width: 15px; height: 15px; fill: var(--df-accent); }
.df-site-footer__links a span:not(.df-sr-only),
.df-site-footer__legal a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: color .2s ease, background-size .25s ease;
}
.df-site-footer__links a:is(:hover, :focus-visible) span:not(.df-sr-only),
.df-site-footer__legal a:is(:hover, :focus-visible) { color: var(--df-accent); background-size: 100% 1px; }

/* Legal row */
.df-site-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px var(--wp--preset--spacing--50);
	padding-top: 22px;
	border-top: 1px solid var(--df-border);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}
.df-site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 22px; }
.df-site-footer__legal a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }

.df-site-footer :is(a, button):focus-visible { outline: 3px solid var(--df-accent); outline-offset: 3px; }

@media (min-width: 48em) {
	.df-site-footer::after { right: -200px; bottom: -230px; width: 460px; height: 460px; opacity: .07; }
	.df-site-footer__invite { flex-direction: row; align-items: center; gap: 20px 28px; }
	.df-site-footer .df-site-footer__cta { width: auto; }
	.df-site-footer__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .9fr);
		column-gap: clamp(28px, 4vw, 56px);
	}
	.df-site-footer__col--brand,
	.df-site-footer__col--contact { grid-column: auto; }
	.df-site-footer__links li a { min-height: 0; padding-block: 4px; }
	.df-site-footer__bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
	.df-site-footer__legal a { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.df-site-footer * { transition: none !important; }
}

/* =====================================================================
 * Part 4: WordPress templates without a DF layout (404, search, index, archive, page without layout,
 * single fallback). Restyled with tokens only, same container as the sections. The designed blog
 * (home.php, single.php from the beitrag section, card-post.php) replaces parts of this later (group B).
 * ===================================================================== */
.site-main { display: block; }
.site-container {
	width: 100%;
	max-width: calc(var(--wp--custom--container, 1240px) + 2 * var(--wp--preset--spacing--40, 1rem));
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--40, 1rem);
}
.site-content { padding-block: var(--wp--preset--spacing--60, 3rem); }
.site-content__header { margin-bottom: var(--wp--preset--spacing--50, 1.5rem); }
.site-content__title {
	margin: 0 0 var(--wp--preset--spacing--30, 0.75rem);
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}
.site-meta { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.site-content__media { margin: 0 0 var(--wp--preset--spacing--50, 1.5rem); }
.site-content__media img { display: block; border-radius: var(--wp--custom--radius, 8px); box-shadow: var(--df-shadow-soft); }

/* post_content (legal pages without a layout, posts): readable column */
.site-prose {
	max-width: var(--wp--style--global--content-size, 760px);
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}
.site-prose > * { margin-block: 0; }
.site-prose > * + * { margin-top: var(--wp--preset--spacing--40, 1rem); }
.site-prose > :is(h2, h3) { margin-top: var(--wp--preset--spacing--60, 2.5rem); }
.site-prose > :is(h2, h3) + * { margin-top: var(--wp--preset--spacing--30, 0.75rem); }
.site-prose :is(ul, ol) { padding-left: 1.25em; }
.site-prose li::marker { color: var(--wp--preset--color--accent); }
.site-prose blockquote {
	margin-inline: 0;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--wp--custom--radius, 8px) var(--wp--custom--radius, 8px) 0;
	background: var(--wp--preset--color--base-alt);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--custom--heading);
}
.site-prose :is(figure, .wp-block-image) { margin-inline: 0; }
.site-prose img { border-radius: var(--wp--custom--radius, 8px); }
.site-prose figcaption { margin-top: var(--wp--preset--spacing--20); color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.site-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.site-prose :is(th, td) {
	padding: var(--wp--preset--spacing--20, 0.5rem) var(--wp--preset--spacing--30, 0.75rem);
	border: 1px solid var(--wp--preset--color--border);
	text-align: left;
}

/* Theme button (404 "back" link etc.): same pill as .df-btn */
.site-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7em 1.6em;
	border: 0;
	border-radius: var(--wp--custom--button-radius, 999px);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: var(--df-shadow-btn);
	transition: background-color .15s ease, var(--df-shadow-transition);
}
.site-btn:hover { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--on-primary); }
@media (hover: hover) {
	.site-btn:hover { box-shadow: var(--df-shadow-btn-lift); transform: translateY(var(--df-lift-btn)); }
}

/* Teaser list (index / archive / search until the designed card-post.php exists) */
.site-list {
	display: grid;
	gap: var(--wp--preset--spacing--50, 1.5rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.site-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius, 8px);
	box-shadow: var(--df-shadow-soft);
	transition: var(--df-shadow-transition);
}
@media (hover: hover) {
	.site-card:hover { box-shadow: var(--df-shadow-lift); transform: translateY(var(--df-lift)); }
}
.site-card__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.site-card__body { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--20); padding: var(--wp--preset--spacing--40, 1rem); }
.site-card__title { margin: 0; font-size: var(--wp--preset--font-size--large); -webkit-hyphens: auto; hyphens: auto; }
.site-card__title a { color: inherit; text-decoration: none; }
.site-card__title a:hover { color: var(--wp--preset--color--primary); }
.site-card__excerpt p { margin: 0; }

/* Pagination + post navigation */
.site-main :is(.pagination, .post-navigation) { margin-top: var(--wp--preset--spacing--60, 2.5rem); }
.site-main .nav-links { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20); }
.site-main .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--button-radius, 999px);
	background: var(--wp--preset--color--base);
	text-decoration: none;
}
.site-main .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary); }

/* Search form */
.search-form { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20); margin-top: var(--wp--preset--spacing--40); }
.search-form label { flex: 1 1 14rem; }
.search-form .search-field {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.6em 0.9em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--input-radius, 6px);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1rem;
}
.search-form .search-submit {
	min-height: 2.75rem;
	padding: 0.6em 1.4em;
	border: 0;
	border-radius: var(--wp--custom--button-radius, 999px);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.search-form .search-submit:hover { background: var(--wp--preset--color--secondary); }

/* =====================================================================
 * Part 5: theme only - icons inside DF Inhalt buttons (global.contact.phone / .email). DF Inhalt passes
 * "before" markup through wp_kses_post(), which drops <svg>, so these icons are CSS masks on a <span>
 * with the same class (.df-site-icon) and the same Font Awesome paths as the prototype's inline SVGs.
 * The prototype colours them with fill:; a span takes the colour from background-color.
 * ===================================================================== */
.df-site-icon--phone { --df-site-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z'/%3E%3C/svg%3E"); }
.df-site-icon--mail { --df-site-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'/%3E%3C/svg%3E"); }
.df-site-icon--chevron { --df-site-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0L224 284.5l154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-34 0z'/%3E%3C/svg%3E"); }
.df-site-icon--external { --df-site-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z'/%3E%3C/svg%3E"); }
span.df-site-icon {
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: var(--df-site-icon) center / contain no-repeat;
	mask: var(--df-site-icon) center / contain no-repeat;
}
.df-site-topbar span.df-site-icon { background-color: var(--wp--custom--accent-light); }
.df-site-footer .df-site-footer__links a span.df-site-icon { background: var(--df-accent); } /* beats the link underline rule (0,2,2) */

/* ---------- hero intro on page load (user 2026-11-09: "chữ đi lên" like herzerwacht.com) ----------
   The first hero of a page does not take part in DF Motion (LCP rule: no scroll animation), so it gets a
   one-time entrance instead: background eases from a slight zoom, then eyebrow / title / text / buttons
   rise in one after the other (opacity 0 -> 1, 28px -> 0, easing cubic-bezier(.22,1,.36,1) as on the
   reference). Only with DF Motion on (html.df-motion, set inline in <head>), never in edit mode or with
   reduced motion. The zoom sits on .df-cover-bg because the img itself carries the parallax animation. */
@media screen and (prefers-reduced-motion: no-preference) {
	html.df-motion:not(.df-edit-active) .df-hero.df-is-first { overflow: clip; }
	html.df-motion:not(.df-edit-active) .df-hero.df-is-first .df-cover-bg {
		animation: dfts-hero-zoom 1.8s cubic-bezier(.22, 1, .36, 1) both;
	}
	html.df-motion:not(.df-edit-active) .df-hero.df-is-first .df-hero__content > * {
		animation: dfts-hero-rise 1.1s cubic-bezier(.22, 1, .36, 1) both;
		animation-delay: .15s;
	}
	html.df-motion:not(.df-edit-active) .df-hero.df-is-first .df-hero__content > :nth-child(2) { animation-delay: .35s; }
	html.df-motion:not(.df-edit-active) .df-hero.df-is-first .df-hero__content > :nth-child(3) { animation-delay: .55s; }
	html.df-motion:not(.df-edit-active) .df-hero.df-is-first .df-hero__content > :nth-child(n+4) { animation-delay: .75s; }
}
@keyframes dfts-hero-rise {
	from { opacity: 0; transform: translate3d(0, 28px, 0); }
	to   { opacity: 1; transform: none; }
}
@keyframes dfts-hero-zoom {
	from { transform: scale(1.08); }
	to   { transform: none; }
}

/* ---------- menu font = heading font (Handlee), as on the old spiritbalance.de (user 2026-11-09) ----------
   Desktop menu, burger menu and submenu. Handlee has one weight (400) and a small x-height: 18px, no faux bold
   (current page = accent colour + underline only). */
.df-site-menu__link,
.df-site-submenu__link {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: .01em;
}
.df-site-submenu__link[aria-current="page"],
.df-site-header:not(.df-site-header--collapsed) .df-site-menu__link[aria-current="page"] { font-weight: 400; }
.df-site-header--collapsed :is(.df-site-menu__link, .df-site-submenu__link) { font-size: 1.25rem; } /* burger menu: a bit larger to tap */


/* =====================================================================
   Spiritbalance Widgets: WordPress + Elementor glue (build.py)
   ===================================================================== */

/* Hello Elementor CSS is off: core screen-reader text + skip link (same look as .df-skip-link). */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; overflow: visible; z-index: 100000; left: 1rem; top: 1rem; padding: .75rem 1.25rem; border-radius: var(--wp--custom--radius-pill, 999px); background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary); font-weight: 600; text-decoration: none; }
.site-main > .page-header { display: none; }

/* Theme Builder header on the front end: the Elementor wrappers do not form boxes, so the sticky
   .df-site-header sticks to the page (not to its own wrapper) and the info bar scrolls away. */
body.sbw-site:not(.elementor-editor-active) :is(.elementor-location-header, .elementor-location-header .e-con, .elementor-location-header .e-con-inner, .elementor-location-header .elementor-widget-sbw-header) { display: contents; }

/* Elementor's ".elementor hr { background-color: transparent; margin: 0 }" (0,1,1) beats the FAQ line. */
.elementor hr.df-faq__strich { background: var(--wp--preset--color--accent); margin-top: var(--wp--preset--spacing--50); }

/* Sections fill the Elementor container edge to edge (the section sets its own inner width). */
.elementor-widget:has(> .df-section) { width: 100%; }
