/* ==========================================================================
   Esmeralda – Komponenten
   Alle Farben, Schriften und Button-Werte kommen aus Design → Esmeralda-Design
   bzw. dem Website-Editor (CSS-Variablen --wp--preset--* / --wp--custom--*).
   Hier stehen bewusst keine festen Farbwerte.
   ========================================================================== */

:root {
	--es-base: var(--wp--preset--color--base);
	--es-surface: var(--wp--preset--color--surface);
	--es-header: var(--wp--preset--color--header);
	--es-footer: var(--wp--preset--color--footer);
	--es-border: var(--wp--preset--color--border);
	--es-contrast: var(--wp--preset--color--contrast);
	--es-text: var(--wp--preset--color--text);
	--es-muted: var(--wp--preset--color--muted);
	--es-subtle: var(--wp--preset--color--subtle);
	--es-gold: var(--wp--preset--color--gold);
	--es-gold-dark: var(--wp--preset--color--gold-dark);
	--es-on-dark: var(--wp--preset--color--on-dark, #fff);
	--es-hero: var(--wp--preset--gradient--sand);
	--es-box: var(--wp--preset--gradient--bronze);
	--es-cream: var(--wp--preset--gradient--cream);
	--es-btn-radius: var(--wp--custom--button--radius, 999px);
	--es-btn-border: var(--wp--custom--button--border-width, 1.5px);
	--es-btn-outline: var(--wp--custom--button--outline, var(--es-gold));
	--es-btn-text: var(--wp--custom--button--text, #fff);
	--es-heading: var(--wp--preset--font-family--heading);
	--es-body: var(--wp--preset--font-family--body);
	--es-accent: var(--wp--preset--font-family--accent);
	--es-script: var(--wp--preset--font-family--script);
	--es-line-soft: color-mix(in srgb, var(--es-border) 70%, var(--es-surface));
	--es-hover-bg: color-mix(in srgb, var(--es-gold) 14%, var(--es-surface));
	--es-shadow: 0 10px 26px color-mix(in srgb, var(--es-contrast) 10%, transparent);
	--es-shadow-pop: 0 14px 34px color-mix(in srgb, var(--es-contrast) 12%, transparent);
	--es-max: 1440px;
	--es-gutter: clamp(16px, 4vw, 48px);
	--es-radius: 4px;
	--es-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4'/%3E%3C/svg%3E");
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .es-layout, .wp-site-blocks > .es-home { flex: 1 0 auto; }
.wp-site-blocks > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
:where(a):focus-visible, :where(button, summary, input):focus-visible { outline: 2px solid var(--es-gold); outline-offset: 3px; border-radius: 2px; }
.es-muted { color: var(--es-subtle); font-size: 13px; }
:where(h1, h2, h3, h4, h5, h6) { text-transform: var(--wp--custom--heading--transform, none); }

/* Goldener Strich ------------------------------------------------------- */
.es-rule { display: block; width: 22px; height: 1.5px; background: var(--es-gold); margin: 12px 0 16px; }
.is-style-es-ruled::after { content: ""; display: block; width: 22px; height: 1.5px; background: var(--es-gold); margin: 14px 0 6px; }
.has-text-align-center.is-style-es-ruled::after { margin-inline: auto; }

/* Kicker ----------------------------------------------------------------- */
.es-eyebrow { margin: 0 0 16px; font-size: 12.5px; font-weight: 500; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--es-gold-dark); }
.es-eyebrow--dark { color: var(--es-text); }
.es-eyebrow--dark span { color: var(--es-gold-dark); }

/* Buttons ---------------------------------------------------------------
   .es-btn trägt immer auch .wp-element-button und übernimmt damit Farbe,
   Form, Abstände und Schrift aus den globalen Button-Einstellungen. */
.es-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .15s, background-color .15s, color .15s, box-shadow .15s; }
.es-btn .es-icon { flex: none; }
.es-btn.es-btn--small { font-size: max(12px, calc(var(--wp--custom--button--font-size, 15px) * .9)); padding: .85em 1.85em; }
.es-btn.es-btn--outline { background: transparent; color: var(--es-btn-outline); border: var(--es-btn-border) solid var(--es-btn-outline); box-shadow: none; }
.es-btn.es-btn--outline:hover { background: var(--es-btn-outline); color: var(--es-btn-text); }
.es-btn.es-btn--ghost { background: transparent; color: var(--es-on-dark); border: 1.4px solid var(--es-on-dark); box-shadow: none; padding: 8px 20px; font-size: 13px; font-weight: 400; }
.es-btn.es-btn--ghost:hover { background: color-mix(in srgb, var(--es-on-dark) 14%, transparent); color: var(--es-on-dark); }

.wp-block-button.is-style-es-outline .wp-block-button__link { background: transparent; border: var(--es-btn-border) solid var(--es-btn-outline); color: var(--es-btn-outline); box-shadow: none; }
.wp-block-button.is-style-es-outline .wp-block-button__link:hover { background: var(--es-btn-outline); color: var(--es-btn-text); }
.wp-block-button.is-style-es-square .wp-block-button__link { border-radius: 0; }
.wp-block-button.is-style-es-link .wp-block-button__link { display: inline-flex; align-items: center; gap: 9px; padding: 0; background: none; border: 0; box-shadow: none; color: var(--es-gold-dark); }
.wp-block-button.is-style-es-link .wp-block-button__link::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--es-arrow) center / contain no-repeat; mask: var(--es-arrow) center / contain no-repeat; }
.wp-block-button.is-style-es-link .wp-block-button__link:hover { background: none; color: var(--es-contrast); }
.wp-block-button.es-btn-ghost .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 1.5px solid var(--es-on-dark); color: var(--es-on-dark); box-shadow: none; padding: 8px 24px; font-size: 14px; font-weight: 400;
}
.wp-block-button.es-btn-ghost .wp-block-button__link:hover { background: color-mix(in srgb, var(--es-on-dark) 12%, transparent); color: var(--es-on-dark); }
.wp-block-button.es-btn-ghost--small .wp-block-button__link { padding: 5px 15px; font-size: 11px; border-width: 1.2px; }
.wp-block-button.es-btn-ghost .wp-block-button__link::after,
.es-arrow-link a::after {
	content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--es-arrow) center / contain no-repeat; mask: var(--es-arrow) center / contain no-repeat; flex: none;
}

/* Kopfzeile -------------------------------------------------------------- */
.es-header { position: relative; z-index: 20; background: var(--es-header); border-bottom: 1px solid var(--es-border); }
.es-header__inner { max-width: var(--es-max); margin: 0 auto; padding: 10px var(--es-gutter); min-height: 86px; align-items: center; gap: 16px 32px !important; }

.es-brand { display: flex; align-items: center; gap: 18px; flex: none; text-decoration: none; }
.es-brand__text { display: flex; flex-direction: column; gap: 6px; }
.es-brand__name { font-size: 17px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--es-gold-dark); white-space: nowrap; }
.es-brand__tagline { font-size: 9.5px; line-height: 1; letter-spacing: .32em; text-transform: uppercase; color: var(--es-subtle); }
.es-brand__img { max-height: 58px; width: auto; }
.es-brand--footer { gap: 10px; }
.es-brand--footer .es-brand__name { font-size: 14px; }
.es-brand--footer .es-brand__img { max-height: 34px; }
.es-lotus { color: var(--es-gold); }

/* Hauptmenü */
.es-nav { flex: 1 1 auto; align-self: stretch; font-size: 14px; }
.es-nav .wp-block-navigation__container { gap: 4px 30px; }
.es-nav .wp-block-navigation-item { min-height: 56px; align-items: center; }
.es-nav .wp-block-navigation-item__content { color: var(--es-text); white-space: nowrap; }
.es-nav .wp-block-navigation-item__content:hover { color: var(--es-gold-dark); }
.es-nav .wp-block-navigation__container > .wp-block-navigation-item { position: relative; }
.es-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.es-nav .es-current-section > .wp-block-navigation-item__content { color: var(--es-gold-dark); }
.es-nav .wp-block-navigation__container > .current-menu-item::after,
.es-nav .es-current-section::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: var(--es-gold); }
.es-nav .es-current-section::after { right: 17px; }
.es-nav .wp-block-navigation__submenu-icon { margin-left: 7px; width: 10px; height: 10px; }
.es-nav .wp-block-navigation__submenu-container {
	top: 52px !important; left: -18px !important; min-width: 220px !important; padding: 10px !important; border: 1px solid var(--es-border) !important;
	border-radius: 10px; background: var(--es-surface) !important; box-shadow: var(--es-shadow-pop);
}
.es-nav .wp-block-navigation__submenu-container .wp-block-navigation-item { min-height: 0; }
.es-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 12px !important; border-radius: 6px; color: var(--es-text); font-size: 14px; }
.es-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.es-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { background: var(--es-hover-bg); color: var(--es-gold-dark); }

/* Mobiles Menü */
.es-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--es-base); padding: 24px var(--es-gutter); }
.es-nav .is-menu-open .wp-block-navigation__container { gap: 6px; }
.es-nav .is-menu-open .wp-block-navigation-item { min-height: 0; }
.es-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-family: var(--es-heading); font-size: 22px; }
.es-nav .is-menu-open .wp-block-navigation__submenu-container { position: static !important; box-shadow: none; border: 0 !important; background: transparent !important; padding: 4px 0 8px 12px !important; }
.es-nav .is-menu-open .current-menu-item::after, .es-nav .is-menu-open .es-current-section::after { display: none; }
.es-nav .wp-block-navigation__responsive-container-open { color: var(--es-text); }

/* Aktionen rechts */
.es-actions { display: flex; align-items: center; gap: 20px; color: var(--es-muted); flex: none; }
.es-actions__icon { display: inline-flex; color: var(--es-muted); }
.es-actions__icon:hover, .es-search summary:hover { color: var(--es-gold-dark); }
.es-actions__icon--gold { color: var(--es-gold-dark); }
.es-actions .es-btn { margin-left: 12px; }
.es-search { position: relative; }
.es-search summary { list-style: none; cursor: pointer; display: inline-flex; color: var(--es-muted); }
.es-search summary::-webkit-details-marker { display: none; }
.es-search__form { position: absolute; right: -12px; top: calc(100% + 18px); display: flex; gap: 6px; width: min(320px, 80vw); padding: 10px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 10px; box-shadow: var(--es-shadow-pop); }
@media (max-width: 720px) {
	/* Auf dem Smartphone liegt das Icon links: Feld an der linken Kante ausrichten statt rechts. */
	.es-search__form { right: auto; left: 0; width: min(320px, calc(100vw - 32px)); }
}
.es-search__form input { flex: 1; min-width: 0; border: 1px solid var(--es-border); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; background: var(--es-base); color: var(--es-text); }
.es-search__form button { padding: 8px 16px; font-size: 13px; }

/* Seitenkopf (Hero) ------------------------------------------------------ */
.es-hero { position: relative; overflow: hidden; margin: 0 !important; max-width: none !important; }
.es-hero__title { margin: 0 0 20px; font-family: var(--es-heading); font-weight: var(--wp--custom--heading--weight, 400); font-size: var(--wp--preset--font-size--huge, 50px); line-height: 1.08; color: var(--es-contrast); text-wrap: balance; }
.es-hero__text { margin: 0 0 28px; font-size: 17px; line-height: 1.5; color: var(--es-text); max-width: 470px; text-wrap: pretty; }
.es-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.es-hero--home { background: var(--es-hero); }
.es-hero--home .es-hero__photo { position: absolute; inset: 0 0 0 auto; width: 58%; background-size: cover; background-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
.es-hero--home .es-hero__inner { position: relative; max-width: var(--es-max); margin: 0 auto; padding: 52px var(--es-gutter) 34px clamp(48px, 8vw, 130px); min-height: 332px; }
.es-hero--home .es-hero__title { max-width: 560px; margin-bottom: 26px; }
.es-hero--home .es-hero__text { max-width: 450px; margin-bottom: 20px; line-height: 1.45; }

.es-hero--page { background: var(--es-hero); }
.es-hero--page .es-hero__inner { max-width: var(--es-max); margin: 0 auto; padding: 40px var(--es-gutter) 44px clamp(48px, 8vw, 130px); }
.es-hero--page.has-media .es-hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: center; }
.es-hero--page .es-hero__title:last-child { margin-bottom: 0; }
.es-hero__media { aspect-ratio: 4 / 3; border-radius: var(--es-radius); overflow: hidden; }
.es-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-hero__media--empty { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--sand-2) 85%, var(--es-contrast)) 0 10px, var(--wp--preset--color--sand-2) 10px 20px); }
.es-hero__media--empty .es-lotus { opacity: .55; }

.es-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 12.5px; color: var(--es-subtle); }
.es-breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.es-breadcrumbs a { color: var(--es-subtle); }
.es-breadcrumbs a:hover { color: var(--es-gold-dark); }
.es-breadcrumbs [aria-current] { color: var(--es-gold-dark); }

/* Inhaltsseite: Seitenleiste + Inhalt ----------------------------------- */
.es-layout { max-width: var(--es-max); width: 100%; margin: 0 auto !important; padding: 48px var(--es-gutter) 56px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.es-layout > * { margin: 0 !important; }
.es-layout__aside { flex: 1 1 260px; max-width: 340px; position: sticky; top: 20px; }
.es-layout__aside:empty, .es-no-sidenav .es-layout__aside { display: none; }
.es-layout__content { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.es-layout__content > * { margin: 0 !important; }
.es-layout__content > .es-prose:empty { display: none; }
.es-layout--single .es-layout__content { flex-basis: 100%; }
.admin-bar .es-layout__aside { top: 52px; }

.es-sidenav { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: var(--es-radius); padding: 26px 26px 22px; }
.es-sidenav__title { margin: 0; font-family: var(--es-heading); font-size: 21px; line-height: 1.2; color: var(--es-contrast); }
.es-sidenav .es-rule { margin: 12px 0 14px; }
.es-sidenav ul { margin: 0; padding: 0; list-style: none; }
.es-sidenav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--es-line-soft); font-size: 14px; color: var(--es-text); }
.es-sidenav li:last-child a { border-bottom: 0; }
.es-sidenav a:hover, .es-sidenav a[aria-current] { color: var(--es-gold-dark); }
.es-sidenav a[aria-current] { font-weight: 500; }
.es-sidenav .es-icon { color: var(--es-gold); flex: none; }

/* Fließtext */
.es-prose { font-size: var(--wp--preset--font-size--medium); line-height: 1.65; max-width: 860px; }
.es-prose > * + * { margin-top: 1em; }
.es-prose h2 { margin-top: 1.6em; }
.es-prose > :first-child { margin-top: 0; }
.is-style-es-dots { list-style: none; padding: 0; }
.is-style-es-dots li { position: relative; padding-left: 18px; margin: 6px 0; }
.is-style-es-dots li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--es-gold); }
.is-style-es-script { font-family: var(--es-script); font-size: 2.2em; line-height: 1.1; color: var(--es-gold-dark); }
.wp-block-group.is-style-es-card { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: var(--es-radius); padding: 26px 28px; }
.wp-block-group.is-style-es-bronze { background: var(--es-box); color: var(--es-on-dark); border-radius: var(--es-radius); padding: 28px 30px; }
.wp-block-group.is-style-es-bronze :where(h1, h2, h3, h4, a) { color: var(--es-on-dark); }

/* Zweispalter (Gut zu wissen + Termin) */
.es-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.es-split > * { margin: 0 !important; }

/* Termin-Box */
.es-cta { border-radius: var(--es-radius); background: var(--es-box); padding: 28px 30px; color: var(--es-on-dark); display: flex; flex-direction: column; justify-content: center; height: 100%; }
.es-cta .es-icon { color: var(--es-on-dark); }
.es-cta__title { margin: 16px 0 0; font-size: 19px; font-weight: 500; line-height: 1.2; }
.es-cta__text { margin: 4px 0 0; font-size: 14.5px; font-weight: 300; line-height: 1.4; }
.es-cta .es-btn { align-self: flex-start; margin-top: 16px; }

/* Karten (Unterseiten, Leistungen, Beiträge) */
.es-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.es-card { display: flex; flex-direction: column; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: var(--es-radius); overflow: hidden; color: var(--es-text); text-decoration: none; transition: box-shadow .2s; }
a.es-card:hover, .es-card:has(a:hover) { box-shadow: var(--es-shadow); color: var(--es-text); }
.es-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin: 0 !important; }
.es-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-card__body { display: flex; flex-direction: column; padding: 22px 24px 24px; }
.es-card__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-family: var(--es-heading); font-size: 21px; line-height: 1.2; color: var(--es-contrast); }
.es-card__title a { color: inherit; }
.es-card__title .es-icon { color: var(--es-gold-dark); flex: none; }
.es-card .es-rule { margin: 12px 0 12px; }
.es-card__text, .es-card .wp-block-post-excerpt { font-size: 14px; line-height: 1.5; color: var(--es-muted); margin: 0; }

/* Startseite ------------------------------------------------------------- */
.es-home { max-width: var(--es-max); width: 100%; margin: 0 auto !important; padding: 26px var(--es-gutter) 22px; }
.es-home > * + * { margin-top: 26px !important; }
.es-grid { display: grid; gap: 20px; }
.es-grid > * { margin: 0 !important; }
.es-grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.es-grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }

.es-navcard { display: flex; height: 100%; min-height: 310px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: var(--es-radius); overflow: hidden; transition: box-shadow .2s; }
.es-navcard:hover { box-shadow: var(--es-shadow); }
.es-navcard__photo { width: 108px; flex: none; background-size: cover; background-position: center; }
.es-navcard__body { flex: 1; padding: 14px 24px 18px 30px; }
.es-navcard__icon { display: block; color: var(--es-gold-dark); min-height: 44px; }
.es-navcard__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-family: var(--es-heading); font-size: 23px; line-height: 1.2; color: var(--es-contrast) !important; }
.es-navcard__title .es-icon { color: var(--es-gold-dark); }
.es-navcard .es-rule { margin: 14px 0 18px; }
.es-navcard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.es-navcard li a { color: var(--es-text); }
.es-navcard li a:hover { color: var(--es-gold-dark); }

.es-tile { position: relative; min-height: 160px; border-radius: 3px; overflow: hidden; margin: 0 !important; }
.es-tile > * { margin: 0; position: relative; }
.es-tile .wp-block-buttons { margin-top: 0; }

.es-tile--gallery { background: var(--es-box); padding: 34px 36px; color: var(--es-on-dark); }
.es-tile--gallery::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 42%; background: url(../images/galerie.jpg) center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.es-tile__kicker { font-size: 10.5px; line-height: 1; letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--es-on-dark) 88%, transparent); }
.es-tile__script { margin: 8px 0 12px !important; font-family: var(--es-accent); font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.15; color: var(--es-on-dark); }

.es-tile--academy { border: 1px solid var(--es-border); background: var(--es-cream); padding: 30px 30px 26px 94px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.es-tile--academy::before, .es-tile--termin::before { content: ""; position: absolute; background: currentColor; }
.es-tile--academy::before { left: 30px; top: 30px; width: 42px; height: 33px; color: var(--es-gold-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 36' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M2 12L23 3l21 9-21 9z'/%3E%3Cpath d='M10 16v9c4 4 9 5 13 5s9-1 13-5v-9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 36' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M2 12L23 3l21 9-21 9z'/%3E%3Cpath d='M10 16v9c4 4 9 5 13 5s9-1 13-5v-9'/%3E%3C/svg%3E") center / contain no-repeat; }
.es-tile__lead { font-family: var(--es-heading); font-size: 15.5px; line-height: 1.3; color: var(--es-text); }
.es-arrow-link { font-size: 12px; }
.es-arrow-link a { display: inline-flex; align-items: center; gap: 9px; color: var(--es-gold-dark); }

.es-tile--termin { background: var(--es-box); padding: 70px 30px 26px; color: var(--es-on-dark); display: flex; flex-direction: column; align-items: flex-start; }
.es-tile--termin::before { left: 30px; top: 26px; width: 34px; height: 30px; color: var(--es-on-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 42' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='2' y='6' width='40' height='34' rx='3'/%3E%3Cpath d='M2 15h40M12 2v8M32 2v8M10 24h5M19 24h5M28 24h5M10 31h5M19 31h5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 42' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='2' y='6' width='40' height='34' rx='3'/%3E%3Cpath d='M2 15h40M12 2v8M32 2v8M10 24h5M19 24h5M28 24h5M10 31h5M19 31h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.es-tile__title { font-size: 17px; font-weight: 500; line-height: 1.2; }
.es-tile__sub { margin-top: 2px !important; font-size: 14.5px; font-weight: 300; line-height: 1.3; }
.es-tile--termin .wp-block-buttons { margin-top: 10px; }

.es-tile--quote { border: 1px solid var(--es-border); background: var(--es-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; color: var(--es-gold-dark); text-align: center; }
.es-quote__big { font-family: var(--es-script); font-size: 44px; line-height: 1; transform: rotate(-8deg); }
.es-quote__small { margin-top: 2px !important; font-size: 15px; font-style: italic; color: var(--es-muted); }
.es-quote__end { font-family: var(--es-script); font-size: 26px; line-height: 1; transform: rotate(-5deg); }
.es-tile--quote::after { content: ""; width: 108px; height: 12px; margin-top: 12px; background: var(--es-gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 12' fill='none' stroke='%23000'%3E%3Cpath d='M0 6h42M66 6h42'/%3E%3Cpath stroke-width='1.2' d='M54 10.5S49.5 7.5 49.5 4.3A2.3 2.3 0 0 1 54 3a2.3 2.3 0 0 1 4.5 1.3C58.5 7.5 54 10.5 54 10.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 12' fill='none' stroke='%23000'%3E%3Cpath d='M0 6h42M66 6h42'/%3E%3Cpath stroke-width='1.2' d='M54 10.5S49.5 7.5 49.5 4.3A2.3 2.3 0 0 1 54 3a2.3 2.3 0 0 1 4.5 1.3C58.5 7.5 54 10.5 54 10.5z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Fußzeile --------------------------------------------------------------- */
.es-footer { background: var(--es-footer); border-top: 1px solid var(--es-border); margin-top: 0 !important; }
.es-footer__inner { max-width: var(--es-max); margin: 0 auto; padding: 16px var(--es-gutter); align-items: center; gap: 16px 40px !important; }
.es-footer .es-brand__name { color: var(--es-gold-dark); }
.es-footer-nav { flex: 1; font-size: 12px; }
.es-footer-nav .wp-block-navigation__container { gap: 8px 28px; }
.es-footer-nav a { color: var(--es-text); }
.es-footer-nav a:hover { color: var(--es-gold-dark); }
.es-social { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.es-social a { display: inline-flex; color: var(--es-muted); }
.es-social a:hover { color: var(--es-gold-dark); }
.es-copyright { margin: 0; font-size: 10.5px; color: var(--es-subtle); }
.es-copyright a { color: var(--es-subtle); }

/* Galerie, Suche --------------------------------------------------------- */
.wp-block-gallery.is-style-es-masonry { gap: 12px !important; }
.wp-block-gallery.is-style-es-masonry .wp-block-image img { border-radius: var(--es-radius); aspect-ratio: 1; object-fit: cover; }
.es-searchform .wp-block-search__input { border: 1px solid var(--es-border); border-radius: 999px; padding: 10px 18px; background: var(--es-base); color: var(--es-text); }
.wp-block-query-pagination { margin-top: 32px; font-size: 14px; }

/* Formulare (gemeinsame Basis für Buchung, Kontakt, Konto) --------------- */
.es-form label { display: block; font-size: 13.5px; color: var(--es-muted); margin-bottom: 6px; }
.es-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.es-form select, .es-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--es-border) 75%, var(--es-subtle)); border-radius: 6px; background: var(--es-base); font: inherit; font-size: 15px; color: var(--es-text);
}
.es-form input:focus, .es-form select:focus, .es-form textarea:focus { outline: none; border-color: var(--es-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--es-gold) 22%, transparent); }

/* Responsiv -------------------------------------------------------------- */
@media (max-width: 1100px) {
	.es-header__inner { justify-content: space-between !important; }
	.es-nav { flex: 0 0 auto; order: 3; align-self: center; }
	.es-actions { margin-left: auto; }
}
@media (max-width: 782px) {
	.es-layout__aside { position: static; max-width: none; order: 2; }
	.es-actions .es-btn { display: none; }
	.es-brand__tagline { display: none; }
	.es-brand .es-lotus { width: 64px; height: auto; }
	.es-brand__name { font-size: 14px; letter-spacing: .14em; }
	.es-hero--home .es-hero__photo { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
	.es-hero--home .es-hero__inner, .es-hero--page .es-hero__inner { padding-left: var(--es-gutter); }
	.es-navcard__photo { width: 84px; }
	.es-footer__inner { justify-content: center !important; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Anleitungen */
.es-anleitungen { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.es-anleitung-card a { display: block; text-decoration: none; color: inherit; }
.es-anleitung-card img { width: 100%; height: auto; border-radius: 6px; }
.es-anleitung-card h3 { margin: 10px 0 4px; }
.es-anleitung-card__lock { display: inline-block; font-size: 12px; letter-spacing: .04em; color: var(--wp--preset--color--gold-dark, #8a6d3b); }
.es-anleitung__steps { padding-left: 1.4em; }
.es-anleitung__steps li { margin-bottom: 18px; }
.es-anleitung__steps h3 { margin: 0 0 4px; }
.es-anleitung__hint { margin-top: 24px; padding: 14px 18px; border-left: 2px solid var(--wp--preset--color--gold, #b8924a); background: var(--wp--preset--color--sand, #f6efe4); border-radius: 0 4px 4px 0; font-size: 14px; }
.es-anleitung__locked { padding: 18px; border: 1px solid var(--wp--preset--color--border, #e5dccb); border-radius: 6px; }
