/* ============================================
   MH DESIGN ENHANCEMENTS v1.0
   Moderne Verbesserungen fuer Muckenhaupt GbR
   ============================================ */

/* ============================================
   1. STICKY HEADER
   Header bleibt beim Scrollen oben fixiert
   mit Glaseffekt und sanftem Schatten
   ============================================ */

header.elementor-location-header {
    position: sticky !important;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Glaseffekt wenn gescrollt */
header.elementor-location-header.mh-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Admin-Bar Korrektur */
.admin-bar header.elementor-location-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header.elementor-location-header {
        top: 46px;
    }
}

/* ============================================
   2. HOVER-EFFEKTE - Service-Karten
   Sanftes Anheben und Schatten bei Hover
   ============================================ */

/* Image-Box Widgets (Leistungs-Karten) */
.elementor-widget-image-box {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.elementor-widget-image-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(1, 50, 93, 0.12);
}

/* Icon-Box Widgets */
.elementor-widget-icon-box {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.elementor-widget-icon-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(1, 50, 93, 0.12);
}

/* ============================================
   3. BUTTON-VERBESSERUNGEN
   Sanftere Hover-Transitions und Schatten
   ============================================ */

.elementor-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 50, 93, 0.25);
}

/* CTA Section Buttons */
.elementor-widget-call-to-action .elementor-cta__button {
    transition: all 0.3s ease !important;
}

.elementor-widget-call-to-action .elementor-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 50, 93, 0.25);
}

/* ============================================
   4. BILD-HOVER-EFFEKTE
   Sanfter Zoom bei Bildern
   ============================================ */

.elementor-widget-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.elementor-widget-image:hover img {
    transform: scale(1.03);
}

/* Bilder in Containern mit overflow hidden */
.elementor-widget-image {
    overflow: hidden;
    border-radius: 8px;
}

/* Image Carousel Bilder */
.elementor-image-carousel .swiper-slide img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s ease;
}

.elementor-image-carousel .swiper-slide:hover img {
    transform: scale(1.05);
}

/* ============================================
   5. PARTNER-LOGOS
   Dezent grau, bei Hover farbig
   ============================================ */

.elementor-image-carousel .swiper-slide img,
.elementor-widget-image-carousel .swiper-slide img {
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.5s ease;
}

.elementor-image-carousel .swiper-slide:hover img,
.elementor-widget-image-carousel .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   6. TESTIMONIAL-KARTEN
   Hover-Effekt und bessere Optik
   ============================================ */

.elementor-widget-testimonial {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.elementor-widget-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(1, 50, 93, 0.1);
}

/* ============================================
   7. SCROLL-ANIMATIONEN
   Elemente blenden beim Scrollen sanft ein
   ============================================ */

.mh-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-animate.mh-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gestaffelte Animation fuer nebeneinander liegende Elemente */
.mh-animate-delay-1 { transition-delay: 0.1s; }
.mh-animate-delay-2 { transition-delay: 0.2s; }
.mh-animate-delay-3 { transition-delay: 0.3s; }

/* ============================================
   8. NAVIGATION - Aktiver Link Unterstreichung
   ============================================ */

.elementor-nav-menu a {
    transition: color 0.3s ease !important;
}

/* ============================================
   9. TRENNLINIEN / SEKTIONS-UEBERGAENGE
   Sanftere visuelle Uebergaenge zwischen Sektionen
   ============================================ */

.e-con {
    transition: background-color 0.3s ease;
}

/* ============================================
   10. SOCIAL ICONS - Hover
   ============================================ */

.elementor-social-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.elementor-social-icon:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   11. MOBILE CTA BUTTON
   Fester Anruf-Button am unteren Bildschirmrand
   ============================================ */

.mh-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 10px 16px;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mh-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #01325D;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mh-mobile-cta a:hover {
    background: #1E1D7C;
}

@media (max-width: 767px) {
    .mh-mobile-cta {
        display: block;
    }

    /* Footer etwas Padding unten damit Mobile-CTA nichts verdeckt */
    .elementor-location-footer {
        padding-bottom: 70px !important;
    }
}

/* Admin-Bar: Mobile CTA nicht anzeigen */
.admin-bar .mh-mobile-cta {
    bottom: 0;
}

/* ============================================
   12. ALLGEMEINE VERFEINERUNGEN
   ============================================ */

/* Sanftere Schrift-Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Links mit sanftem Uebergang */
a {
    transition: color 0.3s ease;
}

/* Bilder laden sanft ein */
img {
    transition: opacity 0.4s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].mh-loaded,
img.mh-loaded {
    opacity: 1;
}

/* ============================================
   13. HERO SECTION OVERLAY-VERBESSERUNG
   Leichter Gradient fuer bessere Textlesbarkeit
   ============================================ */

/* Hero-Container - dezenter Gradient-Overlay */
.elementor-element-511dedfc::before {
    background: linear-gradient(
        180deg,
        rgba(1, 50, 93, 0.15) 0%,
        rgba(1, 50, 93, 0.05) 50%,
        transparent 100%
    ) !important;
}

/* ============================================
   14. ICON-LIST HOVER (Kontakt-Bereich)
   ============================================ */

.elementor-icon-list-item {
    transition: transform 0.3s ease;
}

.elementor-icon-list-item:hover {
    transform: translateX(4px);
}

/* ============================================
   15. CALL-TO-ACTION WIDGET
   ============================================ */

.elementor-widget-call-to-action {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.elementor-widget-call-to-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(1, 50, 93, 0.15);
}
