/* Leuchteffekt im Hauptmenü (2026-11-17) – nur Desktop mit Maus */
@media (hover: hover) and (min-width: 768px) {
    nav a.border-b-2 {
        position: relative;
        border-bottom-color: transparent !important;
        transition: color 0.25s ease, text-shadow 0.25s ease;
    }
    nav a.border-b-2::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, rgba(252,211,77,0), rgb(252,211,77) 20%, rgb(245,158,11) 50%, rgb(252,211,77) 80%, rgba(252,211,77,0));
        box-shadow: 0 0 8px rgba(245,158,11,0.9), 0 0 18px rgba(245,158,11,0.55);
        transform: scaleX(0);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    nav a.border-b-2.border-brand::after { transform: scaleX(1); }
    nav a.border-b-2:hover,
    nav a.border-b-2:focus-visible,
    nav .group:hover > a.border-b-2 {
        color: #fff;
        text-shadow: 0 0 10px rgba(252,211,77,0.85), 0 0 22px rgba(245,158,11,0.5);
    }
    nav a.border-b-2:hover::after,
    nav a.border-b-2:focus-visible::after,
    nav .group:hover > a.border-b-2::after { transform: scaleX(1); }
    /* Untermenüs (weiße Box) */
    nav .group a.block {
        transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
    }
    nav .group a.block:hover,
    nav .group a.block:focus-visible {
        background: linear-gradient(90deg, rgba(245,158,11,0.18), rgba(245,158,11,0.04));
        box-shadow: inset 0 0 0 1px rgba(245,158,11,0.35), 0 0 16px rgba(245,158,11,0.3);
        border-radius: 8px;
        transform: translateX(3px);
    }
}
@media (prefers-reduced-motion: reduce) {
    nav a.border-b-2::after { transition: none; }
    nav .group a.block, nav .group a.block:hover { transition: none; transform: none; }
}

/* =====================================================
   BUTTONS MIT GLOW (2026-11-17)
   Glanzlicht folgt dem Mauszeiger (--cx/--cy aus js/cta.js), Lichtstreifen beim
   Überfahren, Leuchtring in der Button-Farbe. Nur Maus; reduced-motion ohne Animation.
   ===================================================== */
:is(a, button)[class*="bg-brand"][class*="text-white"][class*="px-"],
:is(a, button)[class~="bg-navy"][class*="text-white"][class*="px-"],
:is(a, button)[class*="border-white"][class*="text-white"][class*="px-"],
:is(a, button)[class*="border-gray-400"][class*="px-"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
    :is(a, button)[class*="bg-brand"][class*="text-white"][class*="px-"]::before,
    :is(a, button)[class~="bg-navy"][class*="text-white"][class*="px-"]::before,
    :is(a, button)[class*="border-white"][class*="text-white"][class*="px-"]::before,
    :is(a, button)[class*="border-gray-400"][class*="px-"]::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
        background:
            linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .42) 50%, transparent 70%) no-repeat,
            radial-gradient(90px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 255, 255, .28), transparent 70%);
        background-size: 250% 100%, 100% 100%;
        background-position: 150% 0, 0 0;
        opacity: 0;
        transition: opacity .3s ease;
    }
    :is(a, button)[class*="px-"]:hover::before {
        opacity: 1;
        animation: glow-btn-sheen 1.1s cubic-bezier(.4, 0, .2, 1) both;
    }
    :is(a, button)[class*="bg-brand"][class*="text-white"][class*="px-"]:hover {
        transform: translateY(-2px);
        box-shadow:
            0 0 0 4px rgba(245,158,11, .24),
            0 14px 30px -10px rgba(245,158,11, .8),
            0 0 46px rgba(252,190,60, .6);
    }
    :is(a, button)[class~="bg-navy"][class*="text-white"][class*="px-"]:hover {
        transform: translateY(-2px);
        box-shadow:
            0 0 0 4px rgba(, .16),
            0 14px 30px -10px rgba(, .75),
            0 0 42px rgba(90, 140, 230, .55);
    }
    :is(a, button)[class*="border-white"][class*="text-white"][class*="px-"]:hover,
    :is(a, button)[class*="border-gray-400"][class*="px-"]:hover {
        transform: translateY(-2px);
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, .12),
            0 0 28px rgba(255, 255, 255, .55),
            inset 0 0 16px rgba(255, 255, 255, .15);
    }
}
@keyframes glow-btn-sheen {
    from { background-position: 150% 0, 0 0; }
    to   { background-position: -60% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    :is(a, button)[class*="px-"]:hover::before { animation: none; }
    :is(a, button)[class*="px-"]:hover { transform: none !important; }
}

/* Nachtrag 2026-11-17 (Komplettprüfung): schwebender Anruf-Button, weißer Button auf Markenfarbe, Filter-/Zurück-Knöpfe */
html .es-call { isolation: isolate; overflow: hidden; }
:is(a, button)[class*="bg-white"][class*="text-brand"][class*="px-"],
.filter-btn, :is(a, button)[class*="border-gray-300"][class*="px-"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    --sheen: rgba(245,158,11, .18);
    --spot: rgba(245,158,11, .12);
}
@media (hover: hover) and (pointer: fine) {
    html .es-call::before,
    :is(a, button)[class*="bg-white"][class*="text-brand"][class*="px-"]::before,
    .filter-btn::before, :is(a, button)[class*="border-gray-300"][class*="px-"]::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
        background:
            linear-gradient(110deg, transparent 30%, var(--sheen, rgba(255, 255, 255, .42)) 50%, transparent 70%) no-repeat,
            radial-gradient(90px circle at var(--cx, 50%) var(--cy, 50%), var(--spot, rgba(255, 255, 255, .28)), transparent 70%);
        background-size: 250% 100%, 100% 100%;
        background-position: 150% 0, 0 0;
        opacity: 0;
        transition: opacity .3s ease;
    }
    html .es-call:hover::before, .filter-btn:hover::before {
        opacity: 1;
        animation: glow-btn-sheen 1.1s cubic-bezier(.4, 0, .2, 1) both;
    }
    html .es-call.show:hover, html .es-call:hover {
        box-shadow:
            0 0 0 4px rgba(245,158,11, .2),
            0 14px 32px -8px rgba(245,158,11, .8),
            0 0 46px rgba(252,190,60, .55);
    }
    :is(a, button)[class*="bg-white"][class*="text-brand"][class*="px-"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 0 28px rgba(255, 255, 255, .6), 0 0 60px rgba(255, 255, 255, .25);
    }
    .filter-btn:hover, :is(a, button)[class*="border-gray-300"][class*="px-"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 0 3px rgba(245,158,11, .14), 0 10px 24px -10px rgba(245,158,11, .6), 0 0 28px rgba(252,190,60, .4);
    }
}
@media (prefers-reduced-motion: reduce) {
    html .es-call:hover::before, .filter-btn:hover::before { animation: none; }
}

/* Untermenü wie Buttons (2026-11-17): Lichtstreifen, Glanzlicht unter dem Mauszeiger, kräftigerer Schein */
@media (hover: hover) and (min-width: 768px) {
    nav .group a.block {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        margin: 0 6px;
        border-radius: 10px;
        --sheen: rgba(245, 158, 11, .30);
        --spot: rgba(245, 158, 11, .20);
    }
    nav .group a.block::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
        background:
            linear-gradient(110deg, transparent 30%, var(--sheen) 50%, transparent 70%) no-repeat,
            radial-gradient(90px circle at var(--cx, 50%) var(--cy, 50%), var(--spot), transparent 70%);
        background-size: 250% 100%, 100% 100%;
        background-position: 150% 0, 0 0;
        opacity: 0;
        transition: opacity .3s ease;
    }
    nav .group a.block:hover::before { opacity: 1; animation: glow-btn-sheen 1.1s cubic-bezier(.4, 0, .2, 1) both; }
    nav .group a.block:hover,
    nav .group a.block:focus-visible {
        color: #b45309;
        background: linear-gradient(90deg, rgba(245, 158, 11, .22), rgba(252, 211, 77, .08));
        box-shadow:
            inset 0 0 0 1px rgba(245, 158, 11, .45),
            0 6px 18px -6px rgba(245, 158, 11, .6),
            0 0 24px rgba(252, 190, 60, .4);
    }
    nav .group > div > div {
        box-shadow: 0 20px 40px -12px rgba(30, 58, 98, .35), 0 0 0 1px rgba(245, 158, 11, .14), 0 0 32px rgba(245, 158, 11, .14);
    }
}
@media (prefers-reduced-motion: reduce) {
    nav .group a.block:hover::before { animation: none; }
}
