/* Kontaktbereich Styles mit animierter Welle */

.contact-section {
    position: relative;
    padding: 120px 0;
    background-color: #e0f2fe !important;
    overflow: hidden;
}

/* Welle oben */
.contact-section .wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 100px;
    transform: rotate(180deg);
}

.contact-section .wave-top .wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    overflow: hidden;
}

.contact-section .wave-top .single-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200,0V46.29c-47.79,22.2-103.59,32.17-158,28-70.36-5.37-136.33-33.31-206.8-37.5C761.36,32.43,687.66,53.67,617,72.05c-69.27,18-138.3,24.88-209.4,13.08-36.15-6-69.85-17.84-104.45-29.34C210.51,25,87,14.29,0,52.47V0Z' fill='%23e0f2fe'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100px;
    animation: wave-animation 25s linear infinite;
    opacity: 1;
}

/* Inhalt des Kontaktbereichs */
.contact-content {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.contact-section h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-section .section-description {
    color: #555;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(78, 110, 242, 0.1);
}

/* Subtiler Farbverlauf Hintergrund */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 110, 242, 0.03) 0%, rgba(255, 255, 255, 0) 50%, rgba(14, 165, 233, 0.03) 100%);
    z-index: 0;
}

/* Interaktiver Hover-Effekt */
.contact-form:hover {
    box-shadow: 0 15px 35px rgba(78, 110, 242, 0.1);
    transform: translateY(-5px);
}

/* Dekorative Elemente */
.contact-form::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 110, 242, 0.05) 0%, rgba(78, 110, 242, 0) 70%);
    z-index: -1;
    transition: all 0.5s ease;
}

.contact-form:hover::after {
    transform: scale(1.5);
}

.contact-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, color 0.3s;
}

.contact-form .form-group:hover label {
    color: #4e6ef2;
    transform: translateX(5px);
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
}

.contact-form .form-control:focus {
    border-color: #4e6ef2;
    box-shadow: 0 0 0 3px rgba(78, 110, 242, 0.1);
    transform: translateX(3px);
    background-color: #fff;
}

/* Pulsierender Effekt für Platzhalter */
@keyframes pulsePlaceholder {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

.contact-form .form-control::placeholder {
    color: #a0aec0;
    animation: pulsePlaceholder 2s infinite;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary {
    background-color: #4e6ef2;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Button Hover-Effekt mit Wellen */
.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-form .btn-primary:hover {
    background-color: #3a5ae0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(78, 110, 242, 0.2);
}

.contact-form .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Sanfte Animation beim Laden */
@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-form {
    animation: formFadeIn 1s forwards;
}

/* Animation für das Kontaktformular */
.contact-form .form-group {
    opacity: 0;
    transform: translateY(0);
}

/* Responsive Anpassungen */
@media (max-width: 767px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-section .section-description {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}