/* =====================================================================================================================
   SAPOR Hover-Rundung für sapor.de (Theme Manon / WPBakery) – Gegenstück zu design/_hover-rund.scss im Shop (Neo 0.60.5)
   Im Ruhezustand bleibt alles eckig. Beim Überfahren (Maus), Ansteuern (Tastatur, :focus-visible) und Antippen
   (Handy, :active) wird es rund: Knöpfe → Pille, Bilder/Karten → weich (8 %, höchstens 40 px), 0,42 s.
   Regel aus dem Shop: gerundet wird immer das Element, das Fläche/Rahmen trägt – keine eckigen Reste.

   1.0.1 (25.11.2026, Durchsicht Luis „noch nicht ausgereift“):
   - Theme-Knöpfe .edgtf-btn-solid (EXPLORE, Kontaktformular „Senden“) NICHT mehr runden: ihr eigener Effekt blendet den
     schwarzen Kasten beim Überfahren aus und schiebt den Text herein – eine Rundung auf einen verschwindenden Kasten
     sah unfertig aus.
   - Übergänge nur noch ERGÄNZEN statt ersetzen: 1.0.0 setzte bei Bildern transform/opacity/filter-Übergänge, die das
     Theme dort nicht hat, und änderte beim SHOP-Knopf die Dauer des Farbwechsels (0,22 s → 0,2 s).
   ===================================================================================================================== */

:root {
    --sapor-rund-pille: 32px;
    --sapor-rund-bild: min(8%, 40px);
    --sapor-rund-dauer: 420ms;
    --sapor-rund-kurve: cubic-bezier(.22, 1, .36, 1);
}

@media (hover: none) {
    :root { --sapor-rund-dauer: 200ms; }
}

/* ---------- 1. Übergänge: Theme-Werte + Rundung (nichts sonst verändern) ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* SHOP-Knopf: Theme hat background-color/color 0,22 s */
    html body .sapor-header-shop {
        transition: background-color .22s ease, color .22s ease,
            border-radius var(--sapor-rund-dauer) var(--sapor-rund-kurve) !important;
    }

    /* Cookie-Knöpfe und alle Bildflächen hatten keinen Übergang – nur die Rundung bekommt einen */
    html body .cky-btn,
    html body .edgtf-pli-image img,
    html body .edgtf-ps-image img,
    html body .edgtf-post-image img,
    html body .edgtf-team-image,
    html body .edgtf-si-inner,
    html body .vc_single_image-wrapper img,
    html body .sapor-prinzip-steps li img,
    html body .wp-block-image img {
        transition: border-radius var(--sapor-rund-dauer) var(--sapor-rund-kurve) !important;
    }
}

/* ---------- 2. Knöpfe → Pille ---------- */
@media (hover: hover) {
    html body .sapor-header-shop:is(:hover, :focus-visible),
    html body .cky-btn:is(:hover, :focus-visible) {
        border-radius: var(--sapor-rund-pille) !important;
    }
}

@media (hover: none) {
    html body .sapor-header-shop:is(:active, :focus-visible),
    html body .cky-btn:is(:active, :focus-visible) {
        border-radius: var(--sapor-rund-pille) !important;
    }
}

/* ---------- 3. Bilder und Karten → weich ---------- */
/* Team: Foto samt dunkler Social-Ebene darüber – die Bildfläche schneidet beides zu */
html body .edgtf-team-image { overflow: hidden; }
/* Einzelbilder: Zuschnitt auch ohne Zoom-Verhalten, damit die Rundung das Bild schneidet */
html body .edgtf-si-inner { overflow: hidden; }

@media (hover: hover) {
    html body .edgtf-pl-item-inner:is(:hover, :focus-within) .edgtf-pli-image img,
    html body .edgtf-post-image:is(:hover, :focus-within) img,
    html body .edgtf-ps-image:is(:hover, :focus-within) img,
    html body .edgtf-team-inner:is(:hover, :focus-within) .edgtf-team-image,
    html body .edgtf-single-image-holder:is(:hover, :focus-within) .edgtf-si-inner,
    html body .vc_single_image-wrapper:hover img,
    html body .vc_single_image-wrapper:focus-within img,
    html body .sapor-prinzip-steps li img:hover,
    html body .wp-block-image:hover img {
        border-radius: var(--sapor-rund-bild) !important;
    }
}

@media (hover: none) {
    html body .edgtf-pl-item-inner:active .edgtf-pli-image img,
    html body .edgtf-post-image:active img,
    html body .edgtf-ps-image:active img,
    html body .edgtf-team-inner:active .edgtf-team-image,
    html body .edgtf-single-image-holder:active .edgtf-si-inner,
    html body .vc_single_image-wrapper:active img,
    html body .sapor-prinzip-steps li img:active,
    html body .wp-block-image:active img {
        border-radius: var(--sapor-rund-bild) !important;
    }
}
