/* Yogafreunde: only what theme.json cannot express. Breakpoint: 782px (WordPress columns). */

:root {
	--yf-radius: 1.25rem;
	--yf-header-h: 5.5rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
:target { scroll-margin-top: 2rem; }
.yf-main > .wp-block-post-content > :first-child { margin-block-start: 0; }
.yf-main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Header: floating bar over hero / title band ---------- */
.yf-header { position: absolute; inset: clamp(.75rem, 2vw, 1.25rem) 0 auto; z-index: 20; padding-inline: clamp(.75rem, 3vw, 2rem); }
.yf-header__bar {
	border-radius: var(--yf-radius);
	padding: .75rem clamp(1rem, 2.5vw, 1.75rem);
	box-shadow: 0 10px 40px -18px rgba(74, 53, 57, .35);
	/* No backdrop-filter: it would trap the fixed mobile menu overlay inside the bar. */
	background-color: rgba(247, 216, 188, .97) !important;
}
.yf-header__logo img { width: clamp(150px, 18vw, 230px); height: auto; }
.yf-header .wp-block-navigation-item__content { padding-block: .4rem; position: relative; }
.yf-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.yf-header .wp-block-navigation-item__content:hover::after,
.yf-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.yf-header .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--beere); }
.yf-header .wp-block-navigation__responsive-container-open {
	width: 2.75rem; height: 2.75rem; border-radius: 50%; place-items: center;
	background: var(--wp--preset--color--beere); color: #fff;
}
@media (max-width: 599px) { .yf-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: grid; } }
.yf-header .wp-block-navigation__submenu-icon { margin-left: .3rem; }
.yf-header .wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 15rem; padding: .6rem; border: 0 !important; border-radius: 1rem;
	background: var(--wp--preset--color--weiss) !important; color: var(--wp--preset--color--schrift) !important;
	box-shadow: 0 18px 40px -16px rgba(74, 53, 57, .35);
}
.yf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .45rem .75rem !important; border-radius: .6rem; font-size: .95rem; }
.yf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.yf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--hell); color: var(--wp--preset--color--beere); }
.yf-nur-mobil { display: none !important; }
.is-menu-open .yf-nur-mobil { display: flex !important; }

/* Mobile menu: a plum panel that opens as a circle from the menu button. Main items large and
   left-aligned, sub-items as small pills, «Stundenplan» as the button at the end. */
.yf-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem clamp(1.5rem, 7vw, 3rem) 2.5rem; overflow-x: hidden; }
.yf-header .is-menu-open::before {
	content: ""; position: fixed; z-index: -1; pointer-events: none; right: -18vw; bottom: -6vh; width: 85vw; aspect-ratio: 1;
	background: url(../img/signet.svg) center / contain no-repeat; opacity: .14;
}
.yf-header .is-menu-open .wp-block-navigation__responsive-dialog { position: relative; }
.yf-header .is-menu-open .wp-block-navigation__responsive-container-close {
	top: .25rem; right: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
	background: rgba(251, 241, 232, .12); color: var(--wp--preset--color--hell); transition: background-color .3s, rotate .4s cubic-bezier(.2, .7, .2, 1);
}
.yf-header .is-menu-open .wp-block-navigation__responsive-container-close:hover { background: rgba(251, 241, 232, .22); rotate: 90deg; }
.yf-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 4.25rem !important; }
.yf-header .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; }
.yf-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	display: block; width: 100%; padding: .85rem 0; border-bottom: 1px solid rgba(251, 241, 232, .16);
	font-family: var(--wp--preset--font-family--karma); font-size: clamp(1.75rem, 7.5vw, 2.25rem); font-weight: 500; line-height: 1.1;
}
.yf-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding: 0; color: var(--wp--preset--color--hell); }
.yf-header .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.yf-header .is-menu-open .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.yf-header .is-menu-open .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content,
.yf-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--pfirsich); }
.yf-header .is-menu-open .wp-block-navigation__submenu-container {
	display: flex !important; flex-flow: row wrap !important; gap: .5rem .4rem !important; width: 100%;
	padding: .75rem 0 .15rem !important; background: transparent !important; box-shadow: none; border: 0;
}
.yf-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { width: auto; margin: 0 !important; font-family: var(--wp--preset--font-family--jost); font-size: .875rem; font-weight: 450; line-height: 1.2; }
.yf-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .45rem .9rem !important; border-radius: 999px; border: 1px solid rgba(251, 241, 232, .3); color: var(--wp--preset--color--hell);
	transition: background-color .3s, color .3s, border-color .3s;
}
.yf-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--hell); border-color: var(--wp--preset--color--hell); color: var(--wp--preset--color--pflaume); }
.yf-header .is-menu-open .wp-block-navigation__container > .yf-nur-mobil { display: flex !important; justify-content: flex-start; align-items: flex-start !important; border-bottom: 0; padding-top: 1.75rem; }
.yf-header .is-menu-open .yf-nur-mobil > .wp-block-navigation-item__content {
	display: inline-flex; padding: 1rem 1.9rem !important; border-radius: 999px; font-family: var(--wp--preset--font-family--jost); font-size: 1rem; font-weight: 500;
	background: var(--wp--preset--color--pfirsich); color: var(--wp--preset--color--pflaume) !important;
}
@media (prefers-reduced-motion: no-preference) {
	.yf-header .wp-block-navigation__responsive-container.is-menu-open { animation: yf-menu-auf .65s cubic-bezier(.65, 0, .25, 1) both; }
	.yf-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { animation: yf-menu-eintrag .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.25s + var(--yf-i, 0) * .06s); }
	.yf-header .is-menu-open .wp-block-navigation__container > :nth-child(2) { --yf-i: 1; }
	.yf-header .is-menu-open .wp-block-navigation__container > :nth-child(3) { --yf-i: 2; }
	.yf-header .is-menu-open .wp-block-navigation__container > :nth-child(4) { --yf-i: 3; }
	.yf-header .is-menu-open .wp-block-navigation__container > :nth-child(5) { --yf-i: 4; }
	.yf-header .is-menu-open .wp-block-navigation__container > :nth-child(6) { --yf-i: 5; }
	.yf-header .is-menu-open .wp-block-navigation__container > :nth-child(7) { --yf-i: 6; }
	.yf-header .is-menu-open::before { animation: yf-atmen 8s ease-in-out infinite; }
}
@keyframes yf-menu-auf { from { clip-path: circle(1.4rem at calc(100% - 3.25rem) 3rem); } to { clip-path: circle(160vmax at calc(100% - 3.25rem) 3rem); } }
@keyframes yf-menu-eintrag { from { opacity: 0; translate: -1.5rem 0; } }
@media (max-width: 781px) {
	.yf-header .wp-block-buttons.yf-header__cta { display: none; }
	.yf-intro .wp-block-column.has-background { padding: 2.5rem 1.5rem !important; }
}

/* Room for the floating header on pages without a hero. */
.yf-pagetitle {
	position: relative; overflow: hidden; isolation: isolate;
	padding-block: calc(var(--yf-header-h) + clamp(3.5rem, 7vw, 6rem)) clamp(3rem, 6vw, 5rem) !important;
	margin-block: 0 !important;
}
.yf-pagetitle .wp-block-post-title, .yf-pagetitle h1 { margin: 0; }
/* «Abendlicht»: abstract dunes at sunset (assets/img/abendlicht.svg), the title floats in the sky. */
.yf-pagetitle.yf-pagetitle {
	background: url(../img/abendlicht.svg) 68% 100% / cover no-repeat, var(--wp--preset--gradient--titelbalken) !important;
	min-height: clamp(21rem, 34vw, 30rem);
	padding-block: calc(var(--yf-header-h) + clamp(2.5rem, 5vw, 4.5rem)) clamp(7.5rem, 13vw, 11rem) !important;
}
.yf-pagetitle :is(.wp-block-post-title, h1) { font-size: clamp(2.75rem, 1.5rem + 4.5vw, 5rem); letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(251, 241, 232, .8); }
/* Lange Titel (Datenschutzerklärung): Breite bis wideSize, auf schmalen Screens an Silbengrenzen trennen statt mitten im Wort. */
.yf-pagetitle :is(.wp-block-post-title, h1) { max-width: var(--wp--style--global--wide-size); hyphens: auto; overflow-wrap: normal; }
.yf-pagetitle.is-style-blaetter::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.yf-pagetitle :is(.wp-block-post-title, h1) { animation: yf-auftauchen 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
	.yf-pagetitle.yf-pagetitle { animation: yf-abendlicht 1.8s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes yf-abendlicht { from { background-position: 68% 140%, 0 0; } }
.page-template-page-ohne-titel .yf-main > .wp-block-post-content > :first-child:not(.yf-hero) { padding-top: calc(var(--yf-header-h) + 3rem); }

/* Leaves ornament (group style «Mit Blättern»). */
.is-style-blaetter { position: relative; isolation: isolate; overflow-x: clip; }
.is-style-blaetter::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: clamp(180px, 26vw, 380px); aspect-ratio: 800 / 621;
	left: clamp(-3rem, -2vw, 0rem); top: 18%;
	background: url(../img/blaetter.png) center / contain no-repeat; opacity: .35;
}
.is-style-blaetter.yf-pagetitle::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: clamp(80px, 9vw, 130px); aspect-ratio: 800 / 621; right: 12%; bottom: 14%;
	background: url(../img/blaetter.png) center / contain no-repeat; opacity: .3; transform: rotate(160deg);
}

/* ---------- Hero ---------- */
.yf-hero { position: relative; margin-block: 0 !important; }
.yf-hero .wp-block-cover__inner-container { padding-top: var(--yf-header-h); }
.yf-hero__signet img { filter: drop-shadow(0 14px 30px rgba(74, 53, 57, .2)); }
.yf-hero__title { text-transform: uppercase; letter-spacing: .01em; line-height: .95 !important; text-shadow: 0 2px 24px rgba(74, 53, 57, .25); }
.yf-hero__title mark { background: none; color: var(--wp--preset--color--beere); display: block; }
.yf-badge {
	position: absolute !important; z-index: 3; right: clamp(1rem, 5vw, 6rem); bottom: calc(clamp(2rem, 6vw, 6rem) + .5rem - var(--wp--preset--spacing--70)); /* relative to the inner container: just above the intro card overlap */
	width: clamp(180px, 16vw, 220px); aspect-ratio: 1; border-radius: 50% !important;
	display: grid !important; place-content: center; text-align: center;
	box-shadow: var(--wp--preset--shadow--weich);
	animation: yf-float 6s ease-in-out infinite;
}
.yf-badge p { line-height: 1.2; margin: 0 0 .6rem; }
.yf-badge::before {
	content: ""; position: absolute; inset: -11px; border-radius: 50%; pointer-events: none;
	border: 1.5px dashed rgba(247, 216, 188, .9);
}
.yf-badge .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .55rem; padding: .2rem 0 !important; border: 0 !important;
	background: none !important; color: var(--wp--preset--color--beere) !important; font-size: .9rem; letter-spacing: .01em;
	transform: none !important;
}
.yf-badge .wp-block-button__link::after {
	content: ""; flex: none; width: 1.85rem; height: 1.85rem; border-radius: 50%;
	background: var(--wp--preset--color--beere) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem no-repeat;
	transition: translate .45s cubic-bezier(.2, .7, .2, 1), background-color .3s;
}
.yf-badge .wp-block-button__link::before { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.yf-badge .wp-block-button__link:focus-visible { outline: none; }
.yf-badge:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--pflaume); outline-offset: 14px; }
.yf-badge { transition: box-shadow .5s ease; }
.yf-badge:hover { box-shadow: 0 24px 50px -18px rgba(74, 53, 57, .55); }
.yf-badge:hover .wp-block-button__link::after { translate: .3rem 0; background-color: var(--wp--preset--color--pflaume); }
@keyframes yf-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .yf-badge { animation: none; } }
@media (max-width: 781px) {
	.yf-hero { min-height: 0 !important; }
	.yf-hero .wp-block-columns { text-align: center; }
	.yf-hero .wp-block-buttons { justify-content: center; }
	.yf-hero__signet { max-width: 55%; margin-inline: auto !important; }
	.yf-hero__title mark { color: var(--wp--preset--color--pfirsich); }
	.yf-badge { position: relative !important; right: auto; bottom: auto; margin: 2rem auto 0 !important; width: 200px; }
}

/* ---------- Intro card overlapping the hero ---------- */
.yf-intro { position: relative; z-index: 4; margin-top: clamp(-6rem, -6vw, -2rem) !important; }
.yf-intro > .wp-block-columns { border-radius: var(--yf-radius); overflow: hidden; box-shadow: var(--wp--preset--shadow--weich); }
.yf-intro .wp-block-column { margin: 0; }
.yf-intro .wp-block-image, .yf-intro .wp-block-image img { height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
@media (max-width: 781px) { .yf-intro { margin-top: 0 !important; } .yf-intro .wp-block-image img { aspect-ratio: 4 / 5; } }

/* ---------- Image styles ---------- */
.wp-block-image img { display: block; }
.is-style-bogen img { border-radius: 50% 50% var(--yf-radius) var(--yf-radius) / 40% 40% var(--yf-radius) var(--yf-radius) !important; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.is-style-organisch img { border-radius: 62% 38% 55% 45% / 52% 44% 56% 48% !important; aspect-ratio: 1; object-fit: cover; width: 100%; }
.is-style-kreis img { border-radius: 50% !important; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Course cards: whole card clickable, gentle zoom. */
.yf-kurskarte { position: relative; }
/* Image, shape behind and disc come from the offer section styles (.yf-angebot__medien). */
.yf-kurskarte .yf-angebot__medien { margin-bottom: 1.75rem; }
.yf-kurskarte .yf-angebot__bild { isolation: isolate; }
.yf-kurskarte .yf-angebot__bild img { border-radius: 0 !important; }
/* Home cards stay calm: no shape behind, small disc inside the image corner, no ring. */
.yf-kurskarte .yf-angebot__medien::before { content: none; }
.yf-kurskarte .yf-angebot__scheibe { width: clamp(4.25rem, 6vw, 5.5rem); font-size: clamp(.65rem, .6rem + .2vw, .8rem); right: .9rem !important; left: auto !important; bottom: .9rem; rotate: -6deg; box-shadow: 0 12px 24px -14px rgba(30, 15, 25, .6); }
.yf-kurskarte .yf-angebot__scheibe::before { content: none; }
.yf-kurskarte h3 { margin-bottom: .55rem; }
.yf-kurskarte h3 a {
	text-decoration: none; color: inherit;
	background: linear-gradient(currentColor, currentColor) center calc(100% - .05em) / 0 1px no-repeat;
	transition: background-size .5s cubic-bezier(.2, .7, .2, 1);
}
.yf-kurskarte:hover h3 a { background-size: 100% 1px; }
.yf-kurskarte__info { margin: 0 !important; font-size: .95rem; letter-spacing: .02em; color: var(--wp--preset--color--pflaume); }
.yf-kurskarte h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* whole card incl. image and disc is the link */
.yf-kurskarte h3 a:focus-visible { outline: none; }
.yf-kurskarte:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--pflaume); outline-offset: 6px; border-radius: var(--yf-radius); }

/* ---------- Group styles ---------- */
.is-style-karte { border-radius: var(--yf-radius); }
.is-style-vortitel { font-family: var(--wp--preset--font-family--karma); font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--pflaume); margin-bottom: 0 !important; line-height: 1.3; }
.is-style-vortitel + :is(h1, h2, h3) { margin-top: .1em !important; }
/* Outline buttons on photos (cover) stay readable. */
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link { --yf-sweep: #fff; }
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--wp--preset--color--beere); }
.is-style-kontakt { list-style: none; padding-left: 0 !important; display: grid; gap: .75rem; }
.is-style-kontakt li { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 3rem; padding: 0 0 0 4rem !important; margin: 0 !important; line-height: 1.5; }
.is-style-kontakt li a { align-self: flex-start; }
.is-style-kontakt li::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; border-radius: 50%;
	background: var(--wp--preset--color--weiss); box-shadow: inset 0 0 0 1px rgba(143, 76, 80, .25);
	transition: background-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.is-style-kontakt li::after {
	content: ""; position: absolute; left: .9rem; top: 50%; width: 1.2rem; height: 1.2rem; margin-top: -.6rem;
	background: var(--wp--preset--color--beere); -webkit-mask: var(--yf-icon) center / contain no-repeat; mask: var(--yf-icon) center / contain no-repeat;
	transition: background-color .35s ease;
}
.is-style-kontakt li:hover::before, .is-style-kontakt li:focus-within::before { background: var(--wp--preset--color--beere); box-shadow: inset 0 0 0 1px var(--wp--preset--color--beere); transform: scale(1.08); }
.is-style-kontakt li:hover::after, .is-style-kontakt li:focus-within::after { background: var(--wp--preset--color--weiss); }
.is-style-kontakt a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .4s ease; }
.is-style-kontakt li:hover a, .is-style-kontakt a:focus-visible { background-size: 100% 1px; }
.is-style-kontakt li:nth-child(1) { --yf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.is-style-kontakt li:nth-child(2) { --yf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.is-style-kontakt li:nth-child(3) { --yf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }

/* ---------- Details (accordion) ---------- */
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--karma); font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--beere); cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--jost); font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details summary:focus-visible { outline: 2px solid var(--wp--preset--color--pflaume); outline-offset: 4px; }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	--yf-sweep: var(--wp--preset--color--pflaume);
	background-image: linear-gradient(var(--yf-sweep), var(--yf-sweep));
	background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
	transition: background-size .45s cubic-bezier(.2, .7, .2, 1), border-color .45s, color .3s, transform .3s;
}
.wp-block-button__link:hover, .wp-block-button__link:focus-visible { background-size: 100% 100%; border-color: var(--yf-sweep); transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { --yf-sweep: var(--wp--preset--color--beere); background-color: transparent; color: var(--wp--preset--color--beere); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: #fff; }
.has-pflaume-background-color.wp-block-button__link { --yf-sweep: var(--wp--preset--color--beere); }
.has-pfirsich-background-color.wp-block-button__link, .has-weiss-background-color.wp-block-button__link, .has-hell-background-color.wp-block-button__link { --yf-sweep: var(--wp--preset--color--beere); }
.has-pfirsich-background-color.wp-block-button__link:hover, .has-weiss-background-color.wp-block-button__link:hover, .has-hell-background-color.wp-block-button__link:hover { color: #fff !important; }

/* ---------- Forms (Forminator, design «none»): a white card, soft filled fields, floating labels ----------
   assets/js/formular.js marks filled fields (.yf-gefuellt), so the label stays small at the top. */
.yf-form {
	position: relative; isolation: isolate; box-sizing: border-box;
	padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: calc(var(--yf-radius) * 1.4);
	background: var(--wp--preset--color--weiss);
	box-shadow: 0 2px 0 rgba(143, 76, 80, .06), 0 40px 80px -48px rgba(74, 53, 57, .55);
}
.yf-form::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none; right: -1.5rem; top: -2.25rem;
	width: clamp(90px, 10vw, 130px); aspect-ratio: 800 / 621; background: url(../img/blaetter.png) center / contain no-repeat;
	opacity: .55; rotate: 160deg;
}
.yf-form .forminator-ui.forminator-custom-form { margin: 0; }
.yf-form .forminator-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .9rem; margin: 0 0 .9rem !important; }
.yf-form .forminator-col { grid-column: span 12; min-width: 0; padding: 0; margin: 0 !important; } /* Forminator adds a bottom margin to stacked columns */
@media (min-width: 601px) { .yf-form .forminator-col-6 { grid-column: span 6; } }
.yf-form .forminator-field { display: grid; gap: 0; position: relative; }
.yf-form .forminator-required { color: var(--wp--preset--color--beere); }

/* Text fields with the label floating inside. */
.yf-form .forminator-input, .yf-form .forminator-textarea {
	box-sizing: border-box; width: 100%; margin: 0 !important; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--wp--preset--color--schrift);
	padding: 1.55rem 2.75rem .55rem 1.1rem; min-height: 3.6rem; border-radius: 1rem;
	border: 1.5px solid transparent; background: var(--wp--preset--color--hell) no-repeat right 1rem center / 1.1rem;
	transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.yf-form .forminator-textarea { resize: vertical; height: 8.5rem !important; min-height: 6rem !important; padding-top: 1.75rem; }
.yf-form .forminator-input:hover, .yf-form .forminator-textarea:hover { border-color: rgba(143, 76, 80, .25); }
.yf-form .forminator-input:focus, .yf-form .forminator-textarea:focus {
	outline: none; border-color: var(--wp--preset--color--beere); background-color: var(--wp--preset--color--weiss);
	box-shadow: 0 0 0 4px rgba(143, 76, 80, .12);
}
.yf-form .forminator-field:has(> :is(.forminator-input, .forminator-textarea)) > .forminator-label {
	position: absolute; z-index: 1; left: 1.15rem; top: 1.12rem; pointer-events: none; transform-origin: left top;
	font-size: 1rem; font-weight: 400; line-height: 1.3; color: rgba(74, 53, 57, .72);
	transition: translate .3s cubic-bezier(.2, .7, .2, 1), scale .3s cubic-bezier(.2, .7, .2, 1), color .3s;
}
.yf-form .forminator-field:is(:focus-within, .yf-gefuellt):has(> :is(.forminator-input, .forminator-textarea)) > .forminator-label,
.yf-form .forminator-field:has(> .forminator-input:autofill) > .forminator-label {
	translate: 0 -.62rem; scale: .76; font-weight: 500; color: var(--wp--preset--color--beere);
}
/* A small check once a field is filled in correctly. */
.yf-form .yf-gefuellt > .forminator-input:valid:not(:focus) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f4c50' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.yf-form .forminator-description { position: absolute; right: 1rem; bottom: .45rem; margin: 0 !important; font-size: .72rem; line-height: 1.3; color: var(--wp--preset--color--pflaume); opacity: .75; transition: opacity .3s; }
.yf-form .forminator-field:not(:focus-within) .forminator-description { opacity: 0; }
.yf-form .forminator-has_error :is(.forminator-input, .forminator-textarea) { border-color: #b3261e; background-color: #fff6f4; }
.yf-form .forminator-error-message { margin-top: .35rem; padding-left: 1.1rem; font-size: .85rem; font-weight: 500; color: #b3261e; }

/* Choices (radio) as selectable tiles. */
.yf-form .forminator-field:has(.forminator-radio) { gap: .6rem; }
.yf-form .forminator-field:has(.forminator-radio) > .forminator-label { font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--pflaume); }
.yf-form .forminator-field:has(.forminator-radio) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); column-gap: .75rem; }
.yf-form .forminator-field:has(.forminator-radio) > :not(.forminator-radio) { grid-column: 1 / -1; }
.yf-form .forminator-radio {
	position: relative; display: flex; align-items: center; gap: .75rem; margin: 0 !important; cursor: pointer;
	padding: 1rem 1.1rem; border-radius: 1rem; border: 1.5px solid transparent; background: var(--wp--preset--color--hell);
	transition: border-color .3s, background-color .3s, box-shadow .3s, translate .3s cubic-bezier(.2, .7, .2, 1);
}
.yf-form .forminator-radio:hover { border-color: rgba(143, 76, 80, .3); translate: 0 -2px; }
.yf-form .forminator-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yf-form .forminator-radio-bullet { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid rgba(143, 76, 80, .55); background: var(--wp--preset--color--weiss); transition: box-shadow .3s, border-color .3s; }
.yf-form .forminator-radio-label { font-family: var(--wp--preset--font-family--karma); font-size: 1.1rem; line-height: 1.25; color: var(--wp--preset--color--schrift); }
.yf-form .forminator-radio:has(input:checked) { border-color: var(--wp--preset--color--beere); background: var(--wp--preset--color--weiss); box-shadow: 0 0 0 4px rgba(143, 76, 80, .1); }
.yf-form .forminator-radio:has(input:checked) .forminator-radio-bullet { border-color: var(--wp--preset--color--beere); box-shadow: inset 0 0 0 4px var(--wp--preset--color--weiss); background: var(--wp--preset--color--beere); }
.yf-form .forminator-radio:has(input:focus-visible) { outline: 3px solid var(--wp--preset--color--pflaume); outline-offset: 2px; }

/* Messages after sending. */
.yf-form .forminator-response-message:not(:empty) {
	margin: 0 0 1.25rem; padding: 1.1rem 1.25rem 1.1rem 3.4rem; border-radius: 1rem; background: var(--wp--preset--color--hell);
	font-weight: 500; position: relative;
}
.yf-form .forminator-response-message:not(:empty)::before {
	content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
	background: var(--wp--preset--color--beere) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / .95rem no-repeat;
}
.yf-form .forminator-response-message.forminator-error:not(:empty) { background: #fff6f4; font-size: .95rem; }
.yf-form .forminator-response-message.forminator-error:not(:empty)::before { background: #b3261e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / .95rem no-repeat; }
.yf-form .forminator-response-message ul { margin: 0; padding-left: 1.1rem; }
.yf-form .forminator-response-message[aria-hidden="true"] { display: none; }
.yf-form .forminator-response-message p { margin: 0; }
.yf-form-hinweis { margin: .1rem 0 0; font-size: .8125rem; line-height: 1.55; color: rgba(74, 53, 57, .8); }
.yf-form .forminator-edit-module { display: none; }

/* Send button with the arrow disc of the site. */
.yf-form .forminator-ui .forminator-button-submit {
	cursor: pointer; display: inline-flex; align-items: center; gap: .9rem; justify-self: start; width: auto;
	font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: .02em; line-height: 1.1; color: #fff;
	padding: .55rem .55rem .55rem 1.75rem; border: 0; border-radius: 999px;
	background: linear-gradient(var(--wp--preset--color--pflaume), var(--wp--preset--color--pflaume)) left center / 0% 100% no-repeat var(--wp--preset--color--beere);
	transition: background-size .45s cubic-bezier(.2, .7, .2, 1), translate .3s;
}
.yf-form .forminator-ui .forminator-button-submit::after {
	content: ""; width: 2.4rem; height: 2.4rem; border-radius: 50%;
	background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
	transition: translate .45s cubic-bezier(.2, .7, .2, 1), background-color .3s;
}
.yf-form .forminator-ui .forminator-button-submit:hover, .yf-form .forminator-ui .forminator-button-submit:focus-visible { background-size: 100% 100%; translate: 0 -1px; }
.yf-form .forminator-ui .forminator-button-submit:hover::after { translate: .2rem 0; background-color: rgba(255, 255, 255, .24); }
.yf-form .forminator-button-submit:focus-visible { outline: 3px solid var(--wp--preset--color--pflaume); outline-offset: 3px; }
.yf-form .forminator-button-submit.forminator-onload, .yf-form .forminator-button-submit[disabled] { opacity: .6; cursor: progress; }

/* ---------- Eversports ---------- */
.yf-eversports { min-height: 12rem; }
.yf-eversports--preview { padding: 1.5rem; border: 2px dashed var(--wp--preset--color--sand); border-radius: var(--yf-radius); background: var(--wp--preset--color--hell); }

/* ---------- Gallery ---------- */
.wp-block-gallery.has-nested-images figure.wp-block-image { overflow: hidden; border-radius: .9rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 0; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.yf-footer a { text-decoration: none; }
.yf-footer a:hover { text-decoration: underline; }
.yf-footer__legal p { margin: 0; }

/* Weekday headings in the contact block. */
.wp-block-column h4.wp-block-heading { font-family: var(--wp--preset--font-family--jost); font-size: 1.0625rem; font-weight: 600; color: var(--wp--preset--color--pflaume); margin-bottom: .25rem; }
.wp-block-column h4.wp-block-heading + .wp-block-list { margin-top: 0; }

/* ---------- Image beside long text: top-aligned, the image travels along ---------- */
@media (min-width: 782px) {
	.yf-bild-text > .wp-block-column:has(> .wp-block-image:only-child) { align-self: stretch; }
	.yf-bild-text > .wp-block-column > .wp-block-image:only-child { position: sticky; top: 2rem; }
}

/* ---------- Retreat: programme list ---------- */
/* Day card header: date disc next to the weekday. */
.yf-programm__kopf { gap: 1.1rem !important; align-items: center; margin-bottom: 1.75rem; }
.yf-programm__kopf h3 { margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); }
.yf-programm__datum {
	flex: none; margin: 0 !important; width: 5.25rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
	background: var(--wp--preset--color--pfirsich); color: var(--wp--preset--color--pflaume); rotate: -8deg;
	font-family: var(--wp--preset--font-family--karma); font-size: .72rem; line-height: 1.1;
}
.yf-programm__datum strong { display: block; font-size: 2.3em; font-weight: 500; color: var(--wp--preset--color--beere); }

/* Timeline: time | dot on a line | activity. Yoga and Pilates get a filled dot. */
.yf-programm { --zeit: 8.25rem; list-style: none; padding: 0; margin: 0; position: relative; }
.yf-programm::before { content: ""; position: absolute; left: calc(var(--zeit) + .95rem); top: .9rem; bottom: .9rem; width: 1.5px; background: rgba(143, 76, 80, .22); }
.yf-programm li { position: relative; display: grid; grid-template-columns: var(--zeit) 1fr; column-gap: 2.25rem; align-items: baseline; padding-block: .6rem; transition: translate .3s; }
.yf-programm li br { display: none; }
.yf-programm li strong { font-family: var(--wp--preset--font-family--karma); font-weight: 500; font-size: 1.05rem; color: var(--wp--preset--color--beere); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.yf-programm li::before {
	content: ""; position: absolute; left: calc(var(--zeit) + .95rem - 5.25px); top: 1.15rem; width: 12px; height: 12px; border-radius: 50%;
	background: var(--wp--preset--color--hell); box-shadow: inset 0 0 0 2px rgba(143, 76, 80, .55); transition: scale .3s;
}
.yf-programm li.yf-programm__praxis::before { background: var(--wp--preset--color--beere); box-shadow: 0 0 0 4px rgba(143, 76, 80, .15); }
.yf-programm li.yf-programm__praxis { font-weight: 450; }
.yf-programm li:hover::before { scale: 1.35; }
.yf-programm__hinweis { margin-top: 1.25rem !important; padding: .8rem 1rem; border-radius: 1rem; background: var(--wp--preset--color--weiss); }
@media (max-width: 600px) {
	.yf-programm { --zeit: 0rem; padding-left: 1.75rem; }
	.yf-programm::before { left: .35rem; }
	.yf-programm li { grid-template-columns: 1fr; row-gap: .1rem; }
	.yf-programm li strong { text-align: left; font-size: .95rem; }
	.yf-programm li::before { left: calc(-1.75rem + .35rem - 5.25px); top: 1rem; }
}
.yf-preis { margin-block: .25rem 0 !important; line-height: 1.1; color: var(--wp--preset--color--beere); }
.yf-preis { white-space: nowrap; }
.yf-hero--seite .is-style-vortitel { color: var(--wp--preset--color--pfirsich); }
.yf-hero--seite :is(h1, p) { text-shadow: 0 2px 18px rgba(40, 25, 28, .45); }
.yf-hero--seite .wp-block-cover__inner-container { padding-top: calc(var(--yf-header-h) + clamp(1.5rem, 4vw, 3rem)); }

/* ---------- Lists: a small leaf instead of the dot ---------- */
ul.wp-block-list:not(.is-style-kontakt, .is-style-dokumente, .is-style-chips, .yf-programm) { list-style: none; padding-left: 0; }
ul.wp-block-list:not(.is-style-kontakt, .is-style-dokumente, .is-style-chips, .yf-programm) > li { position: relative; padding-left: 1.6rem; margin-bottom: .35rem; }
ul.wp-block-list:not(.is-style-kontakt, .is-style-dokumente, .is-style-chips, .yf-programm) > li::before {
	content: ""; position: absolute; left: .2rem; top: .62em; width: .6rem; height: .6rem;
	border-radius: 0 62% 0 62%; background: var(--wp--preset--color--beere); opacity: .8; rotate: -20deg;
}

/* ---------- Schedule table (table style «Stundenplan») ---------- */
.is-style-stundenplan { margin-block: 1.5rem 1.75rem; }
.is-style-stundenplan table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.is-style-stundenplan thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-style-stundenplan :is(td, th) { border: 0; padding: 1rem .75rem; vertical-align: baseline; }
.is-style-stundenplan tbody tr { position: relative; border-top: 1px solid rgba(143, 76, 80, .2); transition: background-color .35s ease; }
.is-style-stundenplan tbody tr:last-child { border-bottom: 1px solid rgba(143, 76, 80, .2); }
.is-style-stundenplan td:first-child {
	padding-left: 1.1rem; font-family: var(--wp--preset--font-family--karma); font-size: 1.2rem; color: var(--wp--preset--color--beere);
	box-shadow: inset 0 0 0 var(--wp--preset--color--beere); transition: box-shadow .35s cubic-bezier(.2, .7, .2, 1);
}
.is-style-stundenplan td:nth-child(2) { font-weight: 500; color: var(--wp--preset--color--pflaume); white-space: nowrap; }
.is-style-stundenplan td:nth-child(3) a { display: inline-block; color: var(--wp--preset--color--schrift); text-decoration: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1), color .35s; }
.is-style-stundenplan td:nth-child(3) a::after { content: ""; position: absolute; inset: 0; }
.is-style-stundenplan td:last-child { text-align: right; font-size: .9rem; color: var(--wp--preset--color--pflaume); white-space: nowrap; padding-right: 1rem; }
.is-style-stundenplan tbody tr:is(:hover, :focus-within) { background: var(--wp--preset--color--hell); }
.is-style-stundenplan tbody tr:is(:hover, :focus-within) td:first-child { box-shadow: inset 4px 0 0 var(--wp--preset--color--beere); }
.is-style-stundenplan tbody tr:is(:hover, :focus-within) td:nth-child(3) a { transform: translateX(.4rem); color: var(--wp--preset--color--beere); }
.is-style-stundenplan td:nth-child(3) a:focus-visible { outline: none; }
.is-style-stundenplan tbody tr:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--pflaume); outline-offset: -3px; }
@media (max-width: 599px) {
	.is-style-stundenplan :is(table, tbody) { display: block; }
	.is-style-stundenplan tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: .9rem .9rem .9rem 1rem; }
	.is-style-stundenplan td { padding: 0 !important; }
	.is-style-stundenplan td:first-child { box-shadow: none; }
	.is-style-stundenplan td:nth-child(2) { text-align: right; align-self: center; }
	.is-style-stundenplan tbody tr:is(:hover, :focus-within) { box-shadow: inset 4px 0 0 var(--wp--preset--color--beere); }
}

/* ---------- Hero: one orchestrated entrance, then the signet breathes ---------- */
@media (prefers-reduced-motion: no-preference) {
	.yf-hero:not(.yf-hero--seite) .wp-block-cover__image-background { animation: yf-sich-setzen 1.8s cubic-bezier(.2, .7, .2, 1) both; }
	.yf-hero__signet { animation: yf-auftauchen 1s .15s cubic-bezier(.2, .7, .2, 1) both, yf-atmen 7s 1.4s ease-in-out infinite; }
	.yf-hero__title { animation: yf-auftauchen 1s .35s cubic-bezier(.2, .7, .2, 1) both; }
	.yf-hero__title mark { animation: yf-auftauchen 1s .55s cubic-bezier(.2, .7, .2, 1) both; }
	.yf-hero:not(.yf-hero--seite) .wp-block-buttons:not(.yf-badge .wp-block-buttons) { animation: yf-auftauchen .9s .75s cubic-bezier(.2, .7, .2, 1) both; }
	.yf-badge { animation: yf-aufgehen .9s 1s cubic-bezier(.3, 1.4, .5, 1) both, yf-float 6s 1.9s ease-in-out infinite; }
}
@keyframes yf-sich-setzen { from { scale: 1.08; } }
@keyframes yf-auftauchen { from { opacity: 0; translate: 0 1.5rem; } }
@keyframes yf-atmen { 50% { scale: 1.03; } }
@keyframes yf-aufgehen { from { opacity: 0; scale: .6; } }

/* ---------- Bewegung: motion concept «Atem» ----------
   1 Ankommen: hero entrance (section «Hero» above). 2 Einatmen: content below the fold rises,
   images unveil from the bottom (assets/js/bewegung.js sets data-yf). 3 Schweben: leaves drift
   with the scroll, the hero photo moves slower than the page, the badge ring turns.
   4 Antworten: hover and focus states at each component. Reduced motion: everything static. */
@media (prefers-reduced-motion: no-preference) {
	[data-yf="auftritt"]:not(.yf-da) { opacity: 0; }
	[data-yf="enthuellen"]:not(.yf-da) img { clip-path: inset(100% 0 0 0); }
	[data-yf="auftritt"].yf-da { animation: yf-einatmen 1s cubic-bezier(.2, .7, .2, 1) calc(var(--yf-n, 0) * .12s) both; }
	[data-yf="enthuellen"].yf-da img { animation: yf-enthuellen 1.3s cubic-bezier(.7, 0, .2, 1) both, yf-sich-setzen 1.8s cubic-bezier(.2, .7, .2, 1) both; }
	.yf-badge::before { animation: yf-drehen 40s linear infinite; }

	@supports (animation-timeline: scroll()) {
		.is-style-blaetter::before { animation: yf-treiben linear both; animation-timeline: view(); }
		.yf-hero .wp-block-cover__image-background { top: -12% !important; height: 124% !important; }
		.yf-hero:not(.yf-hero--seite) .wp-block-cover__image-background {
			animation: yf-sich-setzen 1.8s cubic-bezier(.2, .7, .2, 1) both, yf-parallaxe linear both;
			animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh;
		}
		.yf-hero--seite .wp-block-cover__image-background { animation: yf-parallaxe linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	}
}
@keyframes yf-einatmen { from { opacity: 0; translate: 0 2.5rem; } }
@keyframes yf-enthuellen { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes yf-drehen { to { rotate: 1turn; } }
@keyframes yf-treiben { from { translate: 0 3rem; rotate: -5deg; } to { translate: 0 -3rem; rotate: 5deg; } }
@keyframes yf-parallaxe { from { translate: 0 0; } to { translate: 0 8%; } }

/* ---------- Documents (list style «Dokumente»): each link a card, the file type read from the link ---------- */
.is-style-dokumente { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-block: 2rem 0; }
.is-style-dokumente li { position: relative; margin: 0; }
.is-style-dokumente a {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 1rem; height: 100%; box-sizing: border-box;
	padding: 1.1rem 1.25rem; border-radius: var(--yf-radius); background: var(--wp--preset--color--weiss);
	box-shadow: 0 1px 0 rgba(143, 76, 80, .08), 0 12px 30px -22px rgba(74, 53, 57, .45);
	color: var(--wp--preset--color--schrift); text-decoration: none; font-family: var(--wp--preset--font-family--karma); font-size: 1.15rem; line-height: 1.25;
	transition: translate .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.is-style-dokumente a::before {
	content: ""; grid-row: span 2; width: 3rem; height: 3rem; border-radius: .9rem; background: var(--wp--preset--color--hell)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f4c50' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 1.5rem no-repeat;
}
.is-style-dokumente a::after {
	content: "Dokument"; grid-column: 2; font-family: var(--wp--preset--font-family--jost); font-size: .8rem; letter-spacing: .02em; color: var(--wp--preset--color--pflaume); margin-top: .2rem;
}
.is-style-dokumente a[href$=".pdf" i]::after { content: "PDF, öffnet in neuem Fenster"; }
.is-style-dokumente a[href$=".docx" i]::after, .is-style-dokumente a[href$=".doc" i]::after { content: "Word-Dokument zum Ausfüllen"; }
.is-style-dokumente li::after {
	content: ""; position: absolute; right: 1.25rem; top: 50%; width: 2.25rem; height: 2.25rem; margin-top: -1.125rem; border-radius: 50%; pointer-events: none;
	background: var(--wp--preset--color--beere) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M6 11l6 6 6-6M5 20h14'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
	transition: translate .4s cubic-bezier(.2, .7, .2, 1), background-color .3s;
}
.is-style-dokumente a { padding-right: 4.5rem; }
.is-style-dokumente li:hover a { translate: 0 -3px; box-shadow: 0 1px 0 rgba(143, 76, 80, .08), 0 22px 40px -24px rgba(74, 53, 57, .6); }
.is-style-dokumente li:hover::after { translate: 0 calc(-3px + .15rem); background-color: var(--wp--preset--color--pflaume); }
.is-style-dokumente a:focus-visible { outline: 3px solid var(--wp--preset--color--pflaume); outline-offset: 3px; }

/* ---------- Home: four course cards, staggered, arch and leaf alternating ---------- */
@media (min-width: 782px) {
	.yf-kursreihe > .wp-block-column:nth-child(even) { margin-top: clamp(2.5rem, 6vw, 5rem); }
}
@media (max-width: 781px) {
	.yf-kursreihe { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem !important; }
	.yf-kursreihe > .wp-block-column:nth-child(even) { margin-top: 2.5rem; }
	.yf-kursreihe .yf-kurskarte h3 { font-size: 1.2rem; }
	.yf-kursreihe .yf-kurskarte__info { font-size: .8rem; }
}

/* ---------- Home: retreat teaser on plum ---------- */
.yf-retreat-teaser { overflow: hidden; }
.yf-retreat-teaser .wp-block-column:has(> .yf-retreat-teaser__bild) { position: relative; }
.yf-retreat-teaser__bild { margin: 0; overflow: hidden; border-radius: var(--yf-radius) 62% var(--yf-radius) 62% / var(--yf-radius) 50% var(--yf-radius) 50%; transition: border-radius .9s cubic-bezier(.2, .7, .2, 1); }
.yf-retreat-teaser__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.yf-retreat-teaser .wp-block-column:hover > .yf-retreat-teaser__bild { border-radius: 62% var(--yf-radius) 62% var(--yf-radius) / 50% var(--yf-radius) 50% var(--yf-radius); }
.yf-retreat-teaser .wp-block-column:hover > .yf-retreat-teaser__bild img { transform: scale(1.05); }
.yf-retreat-teaser__datum {
	position: absolute; z-index: 2; left: clamp(-1.5rem, -2vw, -.5rem); bottom: 9%; margin: 0 !important;
	width: clamp(7rem, 11vw, 9rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; rotate: -8deg;
	background: var(--wp--preset--color--pfirsich); color: var(--wp--preset--color--pflaume);
	font-family: var(--wp--preset--font-family--karma); font-size: clamp(.85rem, .8rem + .3vw, 1rem); line-height: 1.15;
	box-shadow: 0 20px 40px -20px rgba(30, 15, 25, .6);
}
.yf-retreat-teaser__datum strong { display: block; font-size: 2.1em; font-weight: 500; color: var(--wp--preset--color--beere); }
.yf-retreat-teaser__datum::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(247, 216, 188, .8); pointer-events: none; }
.yf-retreat-teaser .is-style-vortitel { color: var(--wp--preset--color--pfirsich); opacity: .85; }
.yf-retreat-teaser__fakten { font-weight: 500; color: var(--wp--preset--color--pfirsich); }
.yf-retreat-teaser .has-pfirsich-background-color.wp-block-button__link { color: var(--wp--preset--color--pflaume); border-color: var(--wp--preset--color--pfirsich); --yf-sweep: var(--wp--preset--color--hell); }
.yf-retreat-teaser .has-pfirsich-background-color.wp-block-button__link:hover { color: var(--wp--preset--color--pflaume) !important; }
.yf-retreat-teaser .wp-block-button.is-style-outline .wp-block-button__link { --yf-sweep: var(--wp--preset--color--hell); color: var(--wp--preset--color--hell); border-color: rgba(251, 241, 232, .6); }
.yf-retreat-teaser .wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--wp--preset--color--pflaume); border-color: var(--wp--preset--color--hell); }
.yf-retreat-teaser.is-style-blaetter::before { opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
	.yf-retreat-teaser__datum::before { animation: yf-drehen 40s linear infinite; }
}
@media (max-width: 781px) {
	.yf-retreat-teaser__bild { max-width: 80%; margin-inline: auto !important; }
	.yf-retreat-teaser__datum { left: 2%; }
}

/* ---------- Full-width sections sit flush, no white strip between two coloured ones ---------- */
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
.wp-block-post-content > .alignfull { overflow-x: clip; } /* decorations (leaves at the form) never cause sideways scrolling */

/* ---------- List style «Chips»: short facts or jump links as pills ---------- */
ul.wp-block-list.is-style-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.25rem 1.75rem; }
ul.wp-block-list.is-style-chips > li {
	margin: 0; padding: .4rem 1rem; border-radius: 999px; font-size: .9375rem; line-height: 1.4; font-weight: 450;
	background: color-mix(in srgb, currentColor 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent);
	transition: background-color .3s, color .3s, translate .3s;
}
ul.wp-block-list.is-style-chips > li:has(> a) { padding: 0; }
ul.wp-block-list.is-style-chips > li > a { display: block; padding: .4rem 1rem; border-radius: inherit; color: inherit; text-decoration: none; }
ul.wp-block-list.is-style-chips > li:has(> a:is(:hover, :focus-visible)) { background: var(--wp--preset--color--beere); color: var(--wp--preset--color--weiss); translate: 0 -2px; }

/* ---------- List style «Kacheln»: short items as a tile grid ---------- */
ul.wp-block-list.is-style-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .6rem; margin-block: 1rem 1.75rem; }
ul.wp-block-list.is-style-kacheln > li {
	margin: 0; padding: .8rem 1rem .8rem 2.4rem; border-radius: 1rem; line-height: 1.45;
	background: var(--wp--preset--color--hell); transition: background-color .3s, translate .3s;
}
ul.wp-block-list.is-style-kacheln > li::before { left: 1rem; top: 1.25rem; }
ul.wp-block-list.is-style-kacheln > li:hover { background: var(--wp--preset--color--pfirsich); translate: 0 -2px; }
.has-hell-background-color ul.wp-block-list.is-style-kacheln > li { background: var(--wp--preset--color--weiss); }

/* ---------- Offer sections (Yogaangebot): leaf-shaped image, shape behind, disc ---------- */
.yf-angebot, .yf-kursreihe {
	--yf-form: var(--yf-radius) 62% var(--yf-radius) 62% / var(--yf-radius) 50% var(--yf-radius) 50%;
	--yf-form-hover: 62% var(--yf-radius) 62% var(--yf-radius) / 50% var(--yf-radius) 50% var(--yf-radius);
	--yf-hinterform: var(--wp--preset--color--pfirsich);
	--yf-scheibe: var(--wp--preset--color--pfirsich);
	--yf-ring: rgba(143, 76, 80, .45);
}
.yf-angebot { overflow: clip; }

.yf-angebot.has-pfirsich-background-color { --yf-hinterform: var(--wp--preset--color--hell); --yf-scheibe: var(--wp--preset--color--weiss); }
.yf-angebot.has-hell-background-color { --yf-hinterform: var(--wp--preset--color--sand); }
.yf-angebot--dunkel { --yf-hinterform: rgba(143, 76, 80, .7); --yf-ring: rgba(247, 216, 188, .7); }
.yf-angebot .yf-bild-text--rechts { --yf-form: 62% var(--yf-radius) 62% var(--yf-radius) / 50% var(--yf-radius) 50% var(--yf-radius); --yf-form-hover: var(--yf-radius) 62% var(--yf-radius) 62% / var(--yf-radius) 50% var(--yf-radius) 50%; }

.yf-angebot__medien { position: relative; }
.yf-angebot__medien::before {
	content: ""; position: absolute; z-index: 0; inset: 8% -5% -4% 9%; border-radius: var(--yf-form-hover);
	background: var(--yf-hinterform); rotate: 5deg; transition: rotate .9s cubic-bezier(.2, .7, .2, 1), border-radius .9s cubic-bezier(.2, .7, .2, 1);
}
.yf-bild-text--rechts .yf-angebot__medien::before { inset: 8% 9% -4% -5%; rotate: -5deg; }
.yf-angebot__bild { position: relative; z-index: 1; margin: 0 !important; overflow: hidden; border-radius: var(--yf-form); transition: border-radius .9s cubic-bezier(.2, .7, .2, 1); }
.yf-angebot__bild img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
:is(.yf-angebot__medien, .yf-kurskarte):hover .yf-angebot__bild { border-radius: var(--yf-form-hover); }
:is(.yf-angebot__medien, .yf-kurskarte):hover .yf-angebot__bild img { transform: scale(1.05); }
.yf-angebot__medien:hover::before, .yf-kurskarte:hover .yf-angebot__medien::before { rotate: 0deg; border-radius: var(--yf-form); }

.yf-angebot__scheibe {
	position: absolute; z-index: 2; right: clamp(-1.5rem, -2vw, -.5rem); bottom: 9%; margin: 0 !important;
	width: clamp(6.5rem, 10vw, 8.5rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; rotate: -8deg;
	background: var(--yf-scheibe); color: var(--wp--preset--color--pflaume);
	font-family: var(--wp--preset--font-family--karma); font-size: clamp(.85rem, .8rem + .3vw, 1rem); line-height: 1.15;
	box-shadow: 0 20px 40px -20px rgba(30, 15, 25, .55);
}
.yf-bild-text--rechts .yf-angebot__scheibe { right: auto; left: clamp(-1.5rem, -2vw, -.5rem); rotate: 8deg; }
.yf-angebot__scheibe strong { display: block; font-size: 2.1em; font-weight: 500; color: var(--wp--preset--color--beere); }
.yf-angebot__scheibe::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed var(--yf-ring); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
	.yf-angebot__scheibe::before { animation: yf-drehen 40s linear infinite; }
	:is(.yf-angebot__medien, .yf-kurskarte):hover .yf-angebot__scheibe { animation: yf-float 2.4s ease-in-out infinite; }
}
@media (min-width: 782px) {
	.yf-angebot .wp-block-column:has(> .yf-angebot__medien) { align-self: stretch; }
	.yf-angebot .yf-angebot__medien { position: sticky; top: 2.5rem; }
}
@media (max-width: 781px) {
	.yf-angebot .wp-block-column:has(> .yf-angebot__medien) { order: -1; }
	.yf-angebot .yf-angebot__medien { max-width: 82%; margin: 0 auto 1rem; }
	.yf-angebot .yf-angebot__bild img { aspect-ratio: 1; }
	.yf-angebot .yf-angebot__scheibe { right: -6%; }
	.yf-angebot .yf-bild-text--rechts .yf-angebot__scheibe { left: -6%; }
	.yf-kursreihe .yf-angebot__scheibe { right: .5rem !important; bottom: .5rem; }
}

/* Numbered benefits (Männer): Karma numerals on small discs. */
.yf-angebot ol.wp-block-list { list-style: none; padding: 0; counter-reset: yf-punkt; display: grid; gap: 1.1rem; }
.yf-angebot ol.wp-block-list > li { counter-increment: yf-punkt; position: relative; padding-left: 3.25rem; }
.yf-angebot ol.wp-block-list > li::before {
	content: counter(yf-punkt); position: absolute; left: 0; top: 0; width: 2.3rem; aspect-ratio: 1; border-radius: 50%;
	display: grid; place-content: center; background: var(--wp--preset--color--weiss); color: var(--wp--preset--color--beere);
	font-family: var(--wp--preset--font-family--karma); font-size: 1.15rem; line-height: 1;
}
.yf-angebot ol.wp-block-list > li strong { color: var(--wp--preset--color--pflaume); }

/* Dark offer (retreat on plum). */
.yf-angebot--dunkel :is(h2, h3) { color: var(--wp--preset--color--pfirsich); }
.yf-angebot--dunkel .is-style-vortitel { color: var(--wp--preset--color--pfirsich); opacity: .85; }
.yf-angebot--dunkel .yf-angebot__scheibe strong { color: var(--wp--preset--color--beere); }
.yf-angebot--dunkel .wp-block-button__link { background-color: var(--wp--preset--color--pfirsich); color: var(--wp--preset--color--pflaume); border-color: var(--wp--preset--color--pfirsich); --yf-sweep: var(--wp--preset--color--hell); }
.yf-angebot--dunkel .wp-block-button__link:hover { color: var(--wp--preset--color--pflaume) !important; }

/* Preselected choice (button with ?anliegen=…): a short glow so the visitor sees what is ticked. */
@media (prefers-reduced-motion: no-preference) {
	.yf-form .forminator-radio.yf-vorgewaehlt { animation: yf-vorgewaehlt 1.6s cubic-bezier(.2, .7, .2, 1) .5s; }
}
@keyframes yf-vorgewaehlt { 0% { box-shadow: 0 0 0 4px rgba(143, 76, 80, .1); } 35% { box-shadow: 0 0 0 12px rgba(143, 76, 80, .22); } 100% { box-shadow: 0 0 0 4px rgba(143, 76, 80, .1); } }
.yf-angebot ~ [id] { scroll-margin-top: 1rem; }

/* ---------- Quote «Lächle …» (Über mich): plum, breathing signet, text fills as it scrolls in ---------- */
.yf-zitat-abschnitt { position: relative; isolation: isolate; text-align: center; overflow: clip; }
.yf-zitat-abschnitt::after {
	content: ""; position: absolute; z-index: -1; inset: 50% auto auto 50%; translate: -50% -50%;
	width: clamp(16rem, 34vw, 30rem); aspect-ratio: 156.64 / 182.56; pointer-events: none;
	background: var(--wp--preset--color--pfirsich); opacity: .07;
	-webkit-mask: url(../img/signet.svg) center / contain no-repeat; mask: url(../img/signet.svg) center / contain no-repeat;
}
.yf-zitat-abschnitt.is-style-blaetter::before { opacity: .22; }
.yf-zitat.wp-block-quote { border: 0; margin-inline: auto; padding: 0; position: relative; }
.yf-zitat.wp-block-quote p {
	margin: 0; font-family: var(--wp--preset--font-family--karma); font-weight: 400;
	font-size: clamp(2.25rem, 1.3rem + 4vw, 4.75rem); line-height: 1.08; letter-spacing: -.01em;
	color: var(--wp--preset--color--pfirsich); text-wrap: balance; max-width: 15ch; margin-inline: auto;
}
@media (prefers-reduced-motion: no-preference) {
	.yf-zitat-abschnitt::after { animation: yf-atmen 9s ease-in-out infinite; }
	@supports (animation-timeline: view()) {
		.yf-zitat.wp-block-quote p {
			background: linear-gradient(90deg, var(--wp--preset--color--pfirsich) 0 45%, rgba(247, 216, 188, .22) 55% 100%) 100% 0 / 220% 100% no-repeat;
			-webkit-background-clip: text; background-clip: text; color: transparent;
			animation: yf-zitat-aufgehen linear both; animation-timeline: view(); animation-range: entry 35% cover 52%;
		}
	}
}
@keyframes yf-zitat-aufgehen { to { background-position: 0 0; } }
