/**
 * Zusätzliche Stile für den verbesserten Service-Bereich
 */

/* Service-Karten Animationen */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Pulsierender Effekt für Icons in Service-Karten */
.service-card .card-img-top i {
    animation: pulse 2s infinite;
}

/* Service-Karten Hover-Effekt mit Schatten und Farbe */
.service-card:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Zusätzliche Animation für Service-Info-Card */
.service-info-card {
    position: relative;
    overflow: hidden;
}

.service-info-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

/* Verbesserte Service-Einleitung */
.service-intro {
    position: relative;
    z-index: 1;
}

.service-intro::before,
.service-intro::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.service-intro::before {
    top: -50px;
    left: -50px;
    animation: float 7s ease-in-out infinite;
}

.service-intro::after {
    bottom: -50px;
    right: -50px;
    animation: float 9s ease-in-out infinite;
}

/* Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .service-intro {
        padding: 20px;
    }
    
    .service-info-card .card-body {
        padding: 20px;
    }
    
    .service-info-card h2 {
        font-size: 1.4rem;
    }
}

/* Hervorgehobener Service-Button in der Navigation */
.navbar-nav .nav-item:has(.highlight-service) {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav .highlight-service {
    background-color: #FF6600;
    color: white !important;
    padding: 8px 15px !important;
    margin: 0 10px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: rotate(-10deg);
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.25);
    display: inline-block;
    z-index: 2;
}

.navbar-nav .highlight-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 1;
}

.navbar-nav .highlight-service:hover {
    background-color: #e65c00;
    transform: rotate(-10deg) translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.navbar-nav .highlight-service:hover::before {
    left: 100%;
}

.navbar-nav .highlight-service:active,
.navbar-nav .highlight-service:focus {
    background-color: #d45500;
}

/* Aktiver Zustand */
.navbar-nav .highlight-service.active {
    background-color: #d45500;
}

/* Zusätzlicher Effekt beim Scrollen für den Service-Button */
.header-scrolled .navbar-nav .highlight-service {
    padding: 6px 15px !important;
}

/* Mobile Anpassungen für den Service-Button */
@media (max-width: 991px) {
    .navbar-nav .highlight-service {
        transform: rotate(0deg);
        margin: 5px 0;
    }
    
    .navbar-nav .highlight-service:hover {
        transform: rotate(0deg) translateY(-3px);
    }
}

/* Fade-Out Animation für Benachrichtigungen */
#contactFormAlert {
    transition: opacity 0.5s ease-out;
}

#contactFormAlert.fade-out {
    opacity: 0;
}

/* Zusätzliche Stilanpassungen für das Kontaktformular */
.contact-form {
    position: relative;
}

.contact-form .alert {
    margin-bottom: 1.5rem;
}

/* News-Popup Stile */
.news-popup-content {
    animation: fadeInDown 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    border-radius: 8px;
}

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

#news-popup {
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

#news-popup-backdrop {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#close-news-popup-x {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10002;
    opacity: 1 !important;
}

#close-news-popup-x:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
}

#close-news-popup {
    transition: all 0.2s ease;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer !important;
    z-index: 10001;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#close-news-popup:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#close-news-popup:active {
    transform: scale(0.98);
}

/* Zusätzliche Stile für bessere Touch-Unterstützung */
@media (hover: none) and (pointer: coarse) {
    #close-news-popup {
        padding: 15px 25px; /* Größerer Button auf Touch-Geräten */
        font-size: 1.2rem;
        margin-top: 15px;
    }
    
    .news-popup-content .text-end {
        padding: 15px 0;
    }
    
    #close-news-popup-x {
        width: 40px;
        height: 40px;
    }
    
    .btn-close {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .news-popup-content {
        max-width: 95% !important;
        margin: 0 10px;
        padding: 15px !important;
    }
    
    .news-popup-content h3 {
        font-size: 1.4rem;
    }
    
    #close-news-popup {
        width: 100%;
        padding: 15px;
    }
} 