﻿
:root {
    --ux-nav-indicator: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    --ux-nav-glow: rgba(24, 131, 41, 0.15);
    --ux-shimmer: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
    --ux-ripple: rgba(24, 131, 41, 0.25);
    /* --ux-card-glow: entfernt */
    --ux-transition-snappy: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ux-transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ux-transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


@media (min-width: 1200px) {
    /* Basis-Reset */
    .navbar-nav .nav-link {
        position: relative;
        z-index: 1;
        transition: color 0.3s ease !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: var(--primary-dark) !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .navbar-nav .nav-link.active {
        color: #ffffff !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    /* Morphing Pill Background */
    .navbar-nav .nav-link::before {
        content: '' !important;
        display: block !important;
        position: absolute;
        inset: 4px 8px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        opacity: 0;
        transform: scaleX(0.3) scaleY(0.6);
        transition:
            opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: -1;
    }

    .navbar-nav .nav-link:hover::before {
        opacity: 0.1;
        transform: scaleX(1) scaleY(1);
    }

    .navbar-nav .nav-link.active::before {
        opacity: 1;
        transform: scaleX(1) scaleY(1);
        box-shadow: 0 2px 8px rgba(24, 131, 41, 0.15);
    }

    /* Kleiner Punkt-Indikator unter dem Hover-Link */
    .navbar-nav .nav-link::after {
        content: '' !important;
        display: block !important;
        position: absolute;
        bottom: 0px;
        left: 50%;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--primary-color);
        transform: translateX(-50%) scale(0);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .navbar-nav .nav-link:hover::after {
        transform: translateX(-50%) scale(1);
    }

    /* Active hat keinen Punkt — die Pill reicht */
    .navbar-nav .nav-link.active::after {
        transform: translateX(-50%) scale(0);
    }

    /* Dropdown-Pfeil */
    .navbar-nav .nav-link.dropdown-toggle::after {
        display: inline-block !important;
        border: none !important;
        content: '▾' !important;
        font-size: 0.7em;
        vertical-align: middle;
        margin-left: 0.35em;
        transition: transform 0.35s ease;
        width: auto;
        height: auto;
        background: none !important;
        position: static;
        border-radius: 0;
    }

    .nav-item.dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

@media (min-width: 1200px) {
    .navbar .dropdown-menu-premium {
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        border-radius: 14px !important;
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04) !important;
        padding: 0.65rem !important;
        min-width: 300px;
        transform-origin: top center;
        animation: uxDropdownIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes uxDropdownIn {
        from { opacity: 0; transform: translateY(-8px) scale(0.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* Header-Label */
    .dropdown-header-label {
        padding: 0.5rem 0.85rem 0.35rem;
    }
    .dropdown-header-label small {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        color: #9ca3af !important;
    }

    /* Rich Dropdown Item */
    .dropdown-item-rich {
        display: flex !important;
        align-items: center;
        padding: 0.75rem 1.1rem !important;
        border-radius: 10px !important;
        transition: all 0.2s ease !important;
        border: none !important;
        background: transparent !important;
        text-decoration: none !important;
        color: inherit !important;
        border-left: 3px solid transparent !important;
    }

    .dropdown-item-rich:hover,
    .dropdown-item-rich:focus {
        background: rgba(24, 131, 41, 0.04) !important;
        border: none !important;
        border-left: 3px solid var(--primary-color) !important;
        transform: none !important;
    }

    /* Separator line between items */
    .dropdown-menu-premium li + li {
        border-top: 1px solid #f0f0f0;
        margin-top: 2px;
        padding-top: 2px;
    }

    /* Text Content */
    .dropdown-item-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        min-width: 0;
    }

    .dropdown-item-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: #1f2937;
        line-height: 1.3;
        transition: color 0.2s ease;
    }

    .dropdown-item-rich:hover .dropdown-item-title {
        color: var(--primary-color);
    }

    .dropdown-item-desc {
        font-size: 0.80rem;
        color: #9ca3af;
        line-height: 1.3;
        margin-top: 3px;
    }

    /* Staggered entrance for li children */
    .dropdown-menu-premium li {
        opacity: 0;
        animation: uxDropItemIn 0.3s ease forwards;
    }
    .dropdown-menu-premium li:nth-child(1) { animation-delay: 0.03s; }
    .dropdown-menu-premium li:nth-child(2) { animation-delay: 0.06s; }
    .dropdown-menu-premium li:nth-child(3) { animation-delay: 0.09s; }
    .dropdown-menu-premium li:nth-child(4) { animation-delay: 0.12s; }
    .dropdown-menu-premium li:nth-child(5) { animation-delay: 0.15s; }

    @keyframes uxDropItemIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Reset old styles for premium dropdowns */
    .navbar .dropdown-menu-premium .dropdown-item {
        opacity: 1 !important;
        transform: none !important;
        border-left: none !important;
    }
}

/* Mobile: Dropdown-Item-Rich base styles (below 1200px) */
@media (max-width: 1199.98px) {
    .dropdown-item-rich {
        display: flex !important;
        align-items: center;
        padding: 0.65rem 0.9rem !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    .dropdown-item-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    .dropdown-item-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: #1f2937;
    }
    .dropdown-item-desc {
        font-size: 0.78rem;
        color: #9ca3af;
    }
}

.odenwald-ui .btn-primary,
.odenwald-ui .btn-outline-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.odenwald-ui .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ux-shimmer);
    transition: left 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.odenwald-ui .btn-primary:hover::before {
    left: 100%;
}

/* Button-Hover → dezenter Schatten */
.odenwald-ui .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(24, 131, 41, 0.15) !important;
}

.odenwald-ui .btn-outline-primary:hover {
    box-shadow: 0 4px 10px rgba(24, 131, 41, 0.1) !important;
}

/* Ripple-Effekt (per JS gesteuert) */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--ux-ripple);
    transform: scale(0);
    animation: ux-ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 3;
}

@keyframes ux-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* CTA-Pulse Button (Pflegeboxen) – Erweitert */
.cta-pulse {
    position: relative;
}

.cta-pulse::after {
    content: '' !important;
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: transparent;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: ux-cta-ring 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ux-cta-ring {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.06); }
}

/* ================================================================
   Box wählen – Premium Hero-CTA Button
   ================================================================ */
.cta-box-waehlen {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #105e1e 0%, #188329 45%, #1ea335 100%);
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: none;
    padding: 0.55rem 1.55rem !important;
    border-radius: 50px !important;
    box-shadow:
        0 4px 16px rgba(24, 131, 41, 0.50),
        0 1px 4px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.22s ease,
        background 0.25s ease;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
}

/* Shimmer-Sweep  */
.cta-box-waehlen::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -80%;
    width: 55%;
    height: 120%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 100%
    );
    transform: skewX(-18deg);
    animation: cta-shimmer-sweep 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cta-shimmer-sweep {
    0%    { left: -80%;  opacity: 0; }
    8%    { opacity: 1; }
    48%   { left: 130%;  opacity: 1; }
    50%   { opacity: 0; }
    100%  { left: 130%;  opacity: 0; }
}

/* Outer Glow-Ring */
.cta-box-waehlen::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: transparent;
    border: 2px solid rgba(24, 163, 53, 0.55);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

/* Hover-State */
.cta-box-waehlen:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 28px rgba(24, 131, 41, 0.62),
        0 2px 8px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #fff !important;
    background: linear-gradient(135deg, #126a20 0%, #188329 45%, #1fb53a 100%);
    text-decoration: none !important;
}

.cta-box-waehlen:hover::after {
    opacity: 1;
    transform: scale(1.04);
}

/* Active/Press */
.cta-box-waehlen:active {
    transform: translateY(0) scale(0.97);
    box-shadow:
        0 2px 10px rgba(24, 131, 41, 0.38),
        inset 0 2px 4px rgba(0, 0, 0, 0.08);
    transition-duration: 0.1s;
}

/* Icon-Wobble */
.cta-box-waehlen .cta-icon {
    display: inline-block;
    animation: cta-icon-wobble 3.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes cta-icon-wobble {
    0%,  90%, 100% { transform: rotate(0deg)   scale(1); }
    93%            { transform: rotate(-12deg)  scale(1.12); }
    96%            { transform: rotate(8deg)    scale(1.08); }
    99%            { transform: rotate(-4deg)   scale(1.04); }
}

/* Mobile: etwas kompakter */
@media (max-width: 575.98px) {
    .cta-box-waehlen {
        font-size: 0.88rem;
        padding: 0.48rem 1.2rem !important;
    }
}

.odenwald-ui .site-footer a.footer-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.odenwald-ui .site-footer a.footer-link::before {
    content: '→';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-weight: 700;
    color: var(--primary-color);
    transition: left 0.3s ease, opacity 0.3s ease;
    font-size: 0.85em;
}

.odenwald-ui .site-footer a.footer-link:hover {
    padding-left: 18px;
    color: #ffffff;
    transform: none;
}

.odenwald-ui .site-footer a.footer-link:hover::before {
    left: 0;
    opacity: 1;
}

/* Social Icons: Branded Colors */
.odenwald-ui .site-footer .social-btn:nth-child(1):hover { background: #1877f2; } /* Facebook */
.odenwald-ui .site-footer .social-btn:nth-child(2):hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } /* Instagram */
.odenwald-ui .site-footer .social-btn:nth-child(3):hover { background: #1da1f2; } /* Twitter */
.odenwald-ui .site-footer .social-btn:nth-child(4):hover { background: #0a66c2; } /* LinkedIn */

.odenwald-ui .site-footer .social-btn {
    transition: all 0.3s ease;
}

.odenwald-ui .site-footer .social-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Footer-Heading underline Animation */
.odenwald-ui .site-footer .footer-heading::after {
    transition: width 0.4s ease;
    width: 30px;
}

.odenwald-ui .site-footer .footer-heading:hover::after {
    width: 60px;
}

/* Footer Contact Items – Icon Bounce */
.odenwald-ui .site-footer .footer-contact-item .footer-contact-icon {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.odenwald-ui .site-footer .footer-contact-item:hover .footer-contact-icon {
    transform: none;
}

.odenwald-ui .contact-fab__btn {
    animation: ux-fab-breathe 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.odenwald-ui .contact-fab__btn:hover {
    animation-play-state: paused;
    box-shadow: 0 6px 18px rgba(24, 131, 41, 0.2) !important;
}

@keyframes ux-fab-breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(24, 131, 41, 0.12); }
    50% { transform: scale(1.03); box-shadow: 0 6px 18px rgba(24, 131, 41, 0.18); }
}

/* FAB Menu Items – Staggered Entrance */
.contact-fab.is-open .contact-fab__item:nth-child(1) { transition-delay: 0.05s; }
.contact-fab.is-open .contact-fab__item:nth-child(2) { transition-delay: 0.12s; }
.contact-fab.is-open .contact-fab__item:nth-child(3) { transition-delay: 0.19s; }

.contact-fab__item {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, box-shadow 0.3s ease !important;
}

.contact-fab__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.odenwald-ui .form-control,
.odenwald-ui .form-select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.odenwald-ui .form-control:focus,
.odenwald-ui .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 131, 41, 0.08), 0 0 0 1px var(--primary-color);
}

/* Floating Label verbessert */
.odenwald-ui .form-floating > label {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.odenwald-ui .accordion-item {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.odenwald-ui .accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.odenwald-ui .accordion-button::after {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.odenwald-ui .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg) scale(1.1);
}

.badge.bg-danger {
    animation: ux-badge-pulse 2.5s ease-in-out infinite;
}

@keyframes ux-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 74, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(232, 93, 74, 0); }
}

/* Warenkorb-Badge Mini-Bounce bei Update */
.badge-bounce {
    animation: ux-badge-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ux-badge-bounce {
    0% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -50%) scale(1.4); }
    100% { transform: translate(-50%, -50%) scale(1); }
}


.odenwald-ui .top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), var(--primary-dark));
    background-size: 200% 100%;
    animation: ux-topbar-gradient 12s ease infinite;
}

@keyframes ux-topbar-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ux-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ux-reveal.ux-visible {
    opacity: 1;
    transform: translateY(0);
}

.ux-reveal.ux-from-left {
    transform: translateX(-40px);
}

.ux-reveal.ux-from-right {
    transform: translateX(40px);
}

.ux-reveal.ux-from-left.ux-visible,
.ux-reveal.ux-from-right.ux-visible {
    transform: translateX(0);
}

.ux-reveal.ux-zoom {
    transform: scale(0.92);
}

.ux-reveal.ux-zoom.ux-visible {
    transform: scale(1);
}

/* Stagger für Kind-Elemente */
.ux-stagger > .ux-reveal:nth-child(1) { transition-delay: 0.05s; }
.ux-stagger > .ux-reveal:nth-child(2) { transition-delay: 0.10s; }
.ux-stagger > .ux-reveal:nth-child(3) { transition-delay: 0.15s; }
.ux-stagger > .ux-reveal:nth-child(4) { transition-delay: 0.20s; }
.ux-stagger > .ux-reveal:nth-child(5) { transition-delay: 0.25s; }
.ux-stagger > .ux-reveal:nth-child(6) { transition-delay: 0.30s; }

.odenwald-ui .list-group-item:hover {
    background-color: rgba(24, 131, 41, 0.05) !important;
    color: inherit !important;
    border-left-color: var(--primary-color);
}

.odenwald-ui .list-group-item {
    transition: background-color 0.25s ease, border-color 0.25s ease;
    border-left: 3px solid transparent;
}

.breadcrumb-item a {
    transition: color 0.2s ease;
    position: relative;
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

.offcanvas.offcanvas-end {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#cart-count:not(:empty) {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.odenwald-ui .step-circle {
    position: relative;
    transition: transform 0.3s ease;
}

.odenwald-ui .step-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(24, 131, 41, 0.15);
    animation: ux-step-ring 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ux-step-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0; }
}

.odenwald-ui .progress-bar {
    position: relative;
    overflow: hidden;
}

.odenwald-ui .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: ux-progress-shine 2s ease-in-out infinite;
}

@keyframes ux-progress-shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

.odenwald-ui .trust-badge {
    position: relative;
    overflow: hidden;
}

.odenwald-ui .trust-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transition: left 0.5s ease;
    pointer-events: none;
}

.odenwald-ui .trust-badge:hover::after {
    left: 50%;
}

@media (max-width: 1199.98px) {
    .mobile-menu-list-group .list-group-item {
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }

    .mobile-menu-list-group .list-group-item:active {
        background-color: rgba(24, 131, 41, 0.08);
        padding-left: 20px;
    }

    /* Mobile Offcanvas Slide → smoother */
    .offcanvas-start {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }
}

::selection {
    background: rgba(24, 131, 41, 0.2);
    color: var(--text-dark);
}

/* WCAG 2.1 – 2.4.7 Focus Visible (Level AA): sichtbarer Fokus-Ring für alle interaktiven Elemente */
*:focus-visible {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 3px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 0 5px rgba(24, 131, 41, 0.18) !important;
}
/* Bootstrap btn-check (visually hidden radios) – Fokus auf Label zeigen */
.btn-check:focus-visible + .btn {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(24, 131, 41, 0.18) !important;
}

.cursor-glow {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 131, 41, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    mix-blend-mode: multiply;
}

.cursor-glow.visible {
    opacity: 1;
}

.cursor-glow.hover-btn {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(24, 131, 41, 0.08), transparent 70%);
}

/* Nur auf Desktop mit Maus */
@media (hover: none) {
    .cursor-glow {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-glow {
        display: none !important;
    }

    .odenwald-ui .hero-image,
    .odenwald-ui .hero-image-inline {
        animation: none;
    }
}

/* Page Load Animation → entfernt */
