/* WY Design v2 – Adapter Basis: Elementor- und WooCommerce-Grundbausteine → Set v2.1 (css/set.css).
   Lädt nach dem Set, vor den übrigen Adaptern (inc/assets.php). Nur Abbildungen fremden Markups: Werte als Set-Tokens
   (var(--wy-…)), 0, auto, none, 100%, inherit oder Mechanik. Ausnahme, gekennzeichnet mit „Wert wie Set“: Maße und
   Breiten, für die das Set keine Tokens hat (bei Änderung im Set hier angleichen).
   Was alle Seiten brauchen, steht nur hier (Elementor-Container und -Widgets mit Set-Klasse, Knöpfe gegen das Kit,
   Buttons, Felder); die Seiten-Adapter (adapter-kopf|start|inhalt|blog|woo) wiederholen es nicht.
   Kasse: Buttons, Felder und Links in body.woocommerce-checkout bleiben hier unberührt – die Kasse bildet
   css/adapter-kasse.css auf das Set ab (lädt nur dort). */

/* ── Elementor-Container als Set-Abschnitt ── */
/* → Set: Raster .wy-section / --start / --karte (Abstand nur oben, Inhalt 1216, Rand --wy-rand, kein Widget-Abstand).
   Den Abstand oben (--wy-sektion, --wy-start, --wy-karte-start) setzt das Set selbst am Container; Elementors eigener
   Innenabstand oben/unten ist 0 – sonst stünde er bei „boxed“-Containern im inneren Element ein zweites Mal.
   Abschnitts-Container als „boxed“ anlegen (Inhalt 1216 über --content-width). */
.wy-v2 .e-con.wy-section {
    --padding-top: 0;
    --padding-bottom: 0;
    --padding-left: var(--wy-rand);
    --padding-right: var(--wy-rand);
    --content-width: var(--wy-breite-voll);
    --gap: 0;
    --row-gap: 0;
    --column-gap: 0;
}
/* → Set: Raster (Abstände nur aus Tokens) – innere Elementor-Container mit Set-Klasse (Komponenten wie .wy-karte,
   .wy-hero-copy, .wy-buybox, .wy-cartpage, .wy-huelle): ohne Elementors Standard-Innenabstand (10 px) und -Lücke (20 px).
   Innenabstände und Lücken setzen die Komponenten selbst (Karten über .wy-karte). Stärke 0,4,0 über Elementors
   Element-CSS (0,3,0); Seiten-Adapter, die später laden, dürfen gezielt abweichen (Beitrag: adapter-blog.css). */
.wy-v2 .e-con[class*="wy-"]:not(.wy-section) {
    --padding-top: 0;
    --padding-right: 0;
    --padding-bottom: 0;
    --padding-left: 0;
    --gap: 0;
    --row-gap: 0;
    --column-gap: 0;
}
/* → Set: Hero, Cta, Newsletter, SectionHead, GlasurFenster, Field, Buybox – Flex-Komponenten ohne eigene Richtung stehen
   in einer Zeile (CSS-Grundwert); Elementor stellt Container auf Spalte. */
.wy-v2 .e-con:is(.wy-hero-actions, .wy-cta, .wy-newsletter, .wy-sectionhead, .wy-glasurfenster-duo, .wy-field-row, .wy-buybox-buy, .wy-buybox-brandrow) { --flex-direction: row; }
/* Widget-Abstand: Elementor setzt Widgets in Containern selbst auf margin-block-end 0 (.e-con .elementor-widget.elementor-widget,
   0,3,0) und überstimmt damit den Kit-Abstand von 20 px; Abstände unten aus dem Set (gleiche Stärke, später geladen)
   bleiben stehen. Darum hier keine eigene Regel. */

/* → Set: Raster/Komponenten – Breiten an Widgets mit Set-Klasse. Elementor gibt jedem Widget im Container max-width 100 %
   (.elementor.elementor .e-con > .elementor-widget, 0,4,0) und überstimmt die Breiten des Sets; hier dieselben Breiten in
   gleicher Stärke. Werte wie Set: Hero-Lead 520, Lead in CategoryIntro und Cta 600, Faq-Hinweis 360 (Tablet 560). */
/* Text- und Bildspalte füllen den Container (Wert wie Set .wy-col--text/--breit/.wy-prose: max-width none, seit 23.10.2026) */
.wy-v2 :is(.e-con, .e-con-inner) > .elementor-widget:is(.wy-col--text, .wy-col--breit, .wy-prose) { max-width: none; }
.wy-v2 :is(.e-con, .e-con-inner) > .elementor-widget.wy-col--voll { max-width: none; }
.wy-v2 :is(.e-con, .e-con-inner) > .elementor-widget.wy-form { max-width: var(--wy-breite-text); }
.wy-v2 :is(.e-con, .e-con-inner) > .elementor-widget.wy-hero-lead { max-width: 520px; }
.wy-v2 :is(.wy-categoryintro-copy, .wy-cta-text) > .elementor-widget.wy-lead { max-width: 600px; }
.wy-v2 .wy-faq-head > .elementor-widget.wy-faq-intro { max-width: 360px; }
@media (max-width: 1024px) {
    .wy-v2 .wy-faq-head > .elementor-widget.wy-faq-intro { max-width: 560px; }
}
/* → Set: TextBlock (Abstand nur oben): letzter Absatz im Text-Widget ohne Abstand unten */
.wy-v2 .elementor-widget-text-editor :is(p, ul, ol):last-child { margin-block-end: 0; }

/* ── Überschriften- und Text-Widgets mit Set-Klasse ── */
/* → Set: Typo-Rollen. Die Klasse sitzt am Widget (_css_classes); Titel und Absätze darin erben Schrift, Farbe und Sperrung
   (statt Kit-Global oder Widget-Typo). */
.wy-v2 .elementor-widget:is(.wy-display, .wy-h2, .wy-h3, .wy-h4, .wy-kicker, .wy-lead, .wy-body, .wy-lese, .wy-small, .wy-muted, .wy-price, .wy-mass) :is(.elementor-heading-title, p) {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

/* ── Dunkle Fläche (Container-Klasse wy-dark) ── */
/* → Set: Flächen-Kontext .wy-dark – auch Elementor-Überschriften ohne Set-Klasse kalk */
body.wy-v2 .wy-dark :is(h1, h2, h3, h4, h5, h6) { color: var(--wy-kalk); }
/* → Set: Flächen-Kontext .wy-dark – Links mit fremden Klassen (keine Buttons) minze → Hover kalk. Links ohne Klasse regelt
   das Set selbst, Links mit Set-Klasse ihre Komponente (Footer: Logo bleibt minze, Fußzeile salbei-hell mit 1 px). */
body.wy-v2 .wy-dark a[class]:not([class*="wy-"], .elementor-button, .button) { color: var(--wy-minze); }
body.wy-v2 .wy-dark a[class]:not([class*="wy-"], .elementor-button, .button):hover { color: var(--wy-kalk); }

/* ── Links in Menüs und in der Kasse ── */
/* → Set: Link im Fließtext gilt nicht für WordPress-Menüs (li > a ohne Klasse) */
.wy-v2 :where(nav, .menu, .sub-menu) li > a:not([class]) { text-decoration: none; }
/* → Set: Link im Fließtext – Kasse ausgenommen (Links behalten die Darstellung der Kasse) */
.wy-v2.woocommerce-checkout :is([data-elementor-type="wp-page"], .woocommerce) :is(p, li, dd, td, figcaption, small) > a:not([class]) { text-decoration: inherit; }

/* ── Bild-Widgets mit Bildrahmen oder Glasur-Form ── */
/* → Set: Bildrahmen .wy-bild > img – trägt das Bild-Widget selbst .wy-bild (Format über .wy-bild--… oder die Komponente,
   z. B. CategoryIntro-Foto 4:5, TextMedia-Foto 1:1), liegt das <img> eine Ebene tiefer; es füllt den Rahmen. Die
   Glasur-Form trägt dann der Rahmen (Set). */
.wy-v2 .elementor-widget-image.wy-bild > .elementor-widget-container {
    position: absolute;
    inset: 0;
}
.wy-v2 .elementor-widget-image.wy-bild img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
/* → Set: Merkmal Glasur – Bild-Widget ohne Rahmen: Form am Bild statt an der Widget-Hülle */
.wy-v2 .elementor-widget-image:is(.wy-glasur-a, .wy-glasur-b, .wy-glasur-c):not(.wy-bild) { border-radius: 0; }
.wy-v2 .elementor-widget-image.wy-glasur-a:not(.wy-bild) img { border-radius: var(--wy-glasur-a); }
.wy-v2 .elementor-widget-image.wy-glasur-b:not(.wy-bild) img { border-radius: var(--wy-glasur-b); }
.wy-v2 .elementor-widget-image.wy-glasur-c:not(.wy-bild) img { border-radius: var(--wy-glasur-c); }
.wy-v2 .elementor-widget-image:is(.wy-glasur-a, .wy-glasur-b, .wy-glasur-c) img { object-fit: cover; }

/* ── Buttons: Elementor-Button-Widget ── */
/* Varianten über CSS-Klassen am Widget (_css_classes): wy-btn--primary (Standard) | --stage | --secondary | --ghost |
   --link | --block; wy-link wie --link. Die Set-Klassen gestalten den Button selbst (a.elementor-button), nicht die Hülle. */
/* → Set: Button – Widget-Hülle mit Set-Klasse bleibt neutral (Elementors „Ausblenden auf …“ bleibt wirksam) */
.wy-v2 .elementor-widget:is(.wy-btn, .wy-link):not([class*="elementor-hidden-"]) { display: block; }
.wy-v2 .elementor-widget:is(.wy-btn, .wy-btn--primary, .wy-btn--stage, .wy-btn--secondary, .wy-btn--ghost, .wy-link) {
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
}
/* → Set: Button .wy-btn.wy-btn--primary (wald → Hover salbei, Schrift kalk, Pill, 48 hoch). Wert wie Set: Höhe 48,
   Innenabstand 0 24 (hier 14 24 mit Mindesthöhe, damit Fremd-Buttons nicht abschneiden), 16/20 600, Abstand 8. */
body.wy-v2:not(.woocommerce-checkout) .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 14px 24px;
    border: 0;
    border-radius: var(--wy-radius-pill);
    background-color: var(--wy-wald);
    color: var(--wy-kalk);
    font-family: var(--wy-font-text);
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    box-sizing: border-box;
    transition: background-color var(--wy-t-color), color var(--wy-t-color), border-color var(--wy-t-color);
}
body.wy-v2:not(.woocommerce-checkout) .elementor-button:hover {
    background-color: var(--wy-salbei);
    color: var(--wy-kalk);
}
body.wy-v2:not(.woocommerce-checkout) .elementor-button:visited { color: var(--wy-kalk); }
/* → Set: Button (Abstand Text–Symbol wie der Button) */
body.wy-v2 .elementor-button .elementor-button-content-wrapper { align-items: inherit; gap: inherit; }
body.wy-v2 .elementor-button .elementor-button-icon { display: inline-flex; }
/* → Set: Pfeil .wy-arrow (Wert wie Set: 18 px, rückt beim Hover 4 px) */
body.wy-v2 .elementor-button .elementor-button-icon svg { width: 18px; height: 18px; transition: transform var(--wy-t-move); }
body.wy-v2 .elementor-button:hover .elementor-button-icon svg { transform: translateX(4px); }

/* → Set: Button --stage (auf wald): minze → Hover kalk, Schrift wald */
body.wy-v2 .wy-btn--stage .elementor-button,
body.wy-v2 .wy-btn--stage .elementor-button:visited {
    background-color: var(--wy-minze);
    color: var(--wy-wald);
}
body.wy-v2 .wy-btn--stage .elementor-button:hover {
    background-color: var(--wy-kalk);
    color: var(--wy-wald);
}
/* → Set: Button --secondary: transparent, Rahmen 2 px wald → Hover minze */
body.wy-v2 .wy-btn--secondary .elementor-button,
body.wy-v2 .wy-btn--secondary .elementor-button:visited {
    background-color: transparent;
    color: var(--wy-wald);
    box-shadow: inset 0 0 0 2px var(--wy-wald);
}
body.wy-v2 .wy-btn--secondary .elementor-button:hover {
    background-color: var(--wy-minze);
    color: var(--wy-wald);
}
/* → Set: Button --ghost (auf wald): transparent, Rahmen 2 px minze, Schrift minze → Hover Fläche minze, Schrift wald */
body.wy-v2 .wy-btn--ghost .elementor-button,
body.wy-v2 .wy-btn--ghost .elementor-button:visited {
    background-color: transparent;
    color: var(--wy-minze);
    box-shadow: inset 0 0 0 2px var(--wy-minze);
}
body.wy-v2 .wy-btn--ghost .elementor-button:hover {
    background-color: var(--wy-minze);
    color: var(--wy-wald);
}
/* → Set: Textlink .wy-link (Wert wie Set: Mindesthöhe 48, Abstand 6, Unterstrich 1,5 px mit 5 px Abstand → Hover 3 px) */
body.wy-v2 :is(.wy-btn--link, .wy-link) .elementor-button,
body.wy-v2 :is(.wy-btn--link, .wy-link) .elementor-button:is(:hover, :visited) {
    gap: 6px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--wy-wald);
    box-shadow: none;
}
body.wy-v2 :is(.wy-btn--link, .wy-link) .elementor-button-text {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
}
body.wy-v2 :is(.wy-btn--link, .wy-link) .elementor-button:hover .elementor-button-text { text-decoration-thickness: 3px; }
body.wy-v2 .wy-dark :is(.wy-btn--link, .wy-link) .elementor-button,
body.wy-v2 .wy-dark :is(.wy-btn--link, .wy-link) .elementor-button:is(:hover, :visited) { color: var(--wy-minze); }
/* → Set: Button --block (volle Breite) */
body.wy-v2 .wy-btn--block .elementor-button { width: 100%; }

/* ── Knöpfe des Sets gegen das Kit ── */
/* → Set: Button, Header, HandyMenue, Footer, Field (Mengenwähler), CartDrawer, Buybox, Faq. Das Kit 840 färbt jeden
   <button> bei Hover und Fokus („.elementor-kit-840 button:hover, button:focus“, Stärke 0,2,1): Fläche wald, Schrift kalk,
   kein Rahmen. Es überstimmt damit die Grundwerte der Set-Knöpfe (0,2,0) – nach dem Antippen stand z. B. der
   Mengenwähler oder der Shop-Knopf im Handy-Menü dunkel da. Hier stehen die Grundwerte des Sets in derselben Stärke
   (0,2,1, lädt nach dem Kit); die Zustände des Sets (Hover, offen, deaktiviert; ab 0,3,0) gewinnen weiter. Nur Knöpfe
   mit Set-Klasse – Kasse, Zahlarten und Express-Buttons tragen keine und behalten das Kit. Werte wie Set. */
:where(.wy-v2) button:is(.wy-iconbtn, .wy-header-navlink, .wy-mmenu-row, .wy-faq-q, .wy-cartdrawer-remove, .wy-cartdrawer-coupon-toggle, .wy-buybox-thumb):is(:hover, :focus) {
    background-color: transparent;
    color: var(--wy-wald);
}
:where(.wy-v2) button.wy-footer-link:is(:hover, :focus) {
    background-color: transparent;
    color: var(--wy-minze);
}
:where(.wy-v2) button.wy-mmenu-close:is(:hover, :focus) { background-color: var(--wy-minze); }
:where(.wy-v2) button.wy-btn--stage:is(:hover, :focus) {
    background-color: var(--wy-minze);
    color: var(--wy-wald);
}
:where(.wy-v2) button:is(.wy-btn--secondary, .wy-btn--ghost):is(:hover, :focus) {
    border-style: solid;
    background-color: transparent;
}
:where(.wy-v2) button.wy-btn--secondary:is(:hover, :focus) { color: var(--wy-wald); }
:where(.wy-v2) button.wy-btn--ghost:is(:hover, :focus) { color: var(--wy-minze); }

/* ── Buttons: WooCommerce (außer Kasse) ── */
/* → Set: Button --primary. Wert wie Set (siehe Elementor-Button); Woo-Buttons dürfen umbrechen (Mindesthöhe statt Höhe). */
body.wy-v2:not(.woocommerce-checkout) :is(a, button, input).button,
body.wy-v2:not(.woocommerce-checkout) :is(a, button, input).button.alt,
body.wy-v2:not(.woocommerce-checkout) button.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 14px 24px;
    border: 0;
    border-radius: var(--wy-radius-pill);
    background-color: var(--wy-wald);
    color: var(--wy-kalk);
    font-family: var(--wy-font-text);
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
    text-shadow: none;
    transition: background-color var(--wy-t-color), color var(--wy-t-color);
}
body.wy-v2:not(.woocommerce-checkout) :is(a, button, input).button:hover,
body.wy-v2:not(.woocommerce-checkout) :is(a, button, input).button.alt:hover,
body.wy-v2:not(.woocommerce-checkout) button.single_add_to_cart_button:hover {
    background-color: var(--wy-salbei);
    color: var(--wy-kalk);
}
/* → Set: Button (deaktiviert: halbe Deckkraft) */
body.wy-v2:not(.woocommerce-checkout) :is(a, button, input).button:is(:disabled, .disabled),
body.wy-v2:not(.woocommerce-checkout) :is(a, button, input).button:is(:disabled, .disabled):hover {
    background-color: var(--wy-wald);
    color: var(--wy-kalk);
    opacity: .5;
    cursor: not-allowed;
}

/* ── Formularfelder: WordPress und WooCommerce (außer Kasse) ── */
/* → Set: Field .wy-input. WooCommerce-Formulare (Konto, Gutschein) über ihre Variablen: Rahmen 2 px salbei, Pill. */
body.wy-v2:not(.woocommerce-checkout) {
    --wc-form-border-color: var(--wy-salbei);
    --wc-form-border-width: 2px;
    --wc-form-border-radius: var(--wy-radius-pill);
    --wc-form-color-background: var(--wy-weiss);
    --wc-form-color-text: var(--wy-wald);
}
/* → Set: Field .wy-input (Wert wie Set: 48 hoch, Innenabstand 0 20, 16/20). Schwach: Kit gewinnt; Felder von
   Elementor-Widgets (Suche, Formular) und der Mengenwähler behalten ihre Widget-Gestaltung. */
:where(body.wy-v2:not(.woocommerce-checkout)) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"]:not(.qty, .wy-qty-num), input[type="date"], select):not([class*="elementor"], [class^="e-"], [class*=" e-"]) {
    min-height: 48px;
    padding: 0 20px;
    border: 2px solid var(--wy-salbei);
    border-radius: var(--wy-radius-pill);
    background-color: var(--wy-weiss);
    color: var(--wy-wald);
    font-family: var(--wy-font-text);
    font-size: 16px;
    line-height: 20px;
}
/* → Set: Field textarea.wy-input (Wert wie Set: Innenabstand 12 20, 16/24, Radius 24) */
:where(body.wy-v2:not(.woocommerce-checkout)) textarea:not([class*="elementor"], [class^="e-"], [class*=" e-"]) {
    padding: 12px 20px;
    border: 2px solid var(--wy-salbei);
    border-radius: var(--wy-radius-tile);
    background-color: var(--wy-weiss);
    color: var(--wy-wald);
    font-family: var(--wy-font-text);
    font-size: 16px;
    line-height: 24px;
}
/* Kit und WooCommerce setzen Pill auch auf textarea – außerhalb der Kasse Radius 24 (→ Set: Field textarea) */
body.wy-v2:not(.woocommerce-checkout) :is(textarea, textarea.input-text) { border-radius: var(--wy-radius-tile); }
/* → Set: Field (Platzhalter salbei, Fokus Rahmen wald) */
:where(body.wy-v2:not(.woocommerce-checkout)) :is(input, select, textarea):not([class*="elementor"], [class^="e-"], [class*=" e-"])::placeholder { color: var(--wy-salbei); opacity: 1; }
:where(body.wy-v2:not(.woocommerce-checkout)) :is(input, select, textarea):not([class*="elementor"], [class^="e-"], [class*=" e-"]):focus-visible { border-color: var(--wy-wald); outline-offset: 2px; }

/* ── Bewegung reduzieren ── */
/* → Set: Fokus und Bewegung (Pfeil im Elementor-Button ohne Versatz) */
@media (prefers-reduced-motion: reduce) {
    body.wy-v2 .elementor-button-icon svg { transform: none; }
}
