/* ===========================================
   FOOTER / KONTAKTSEKTION
=========================================== */

/* Footer-Layout */
footer {
    padding: 5% 5% 0 5%;
    position: relative;
    color: white;
    display: flex; /* Flexbox für zweispaltiges Layout */
    justify-content: space-between;
    align-items: flex-start;
    gap: 2%; /* Abstand zwischen den Spalten */
    overflow: hidden;
    flex-wrap: wrap; /* Für mobile Geräte */
}

/* Footer-Hintergrundbild */
footer .footer-image {
    position: relative;
    width: 48%; /* Bild nimmt etwa 50% der Breite ein */
    height: auto;
}

footer img {
    width: 48%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.5;
    pointer-events: none; /* Bild bleibt nicht klickbar */
    
    
}

/* Kontakt-Container */
.contact-container {
    position: relative;
    display: flex;
    flex-direction: column; /* Kontaktformularelemente vertikal anordnen */
    justify-content: space-between;
    align-items: flex-start;
    width: 48%; /* Der Kontaktbereich nimmt 50% der Breite ein */
    padding: 2%;
    background-color: rgba(61, 35, 111, 0.3); /* lila Hintergrund */
    border-radius: 12px;
    z-index: 1; /* Formular bleibt im Vordergrund */
}

/* Formularbereich */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 280px;
}

.contact-form h2 {
    margin-bottom: 10px;
}

/* Inputs und Textareas */
.contact-form input, 
.contact-form textarea {
    background-color: white;
    color: black;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
}

/* Kontaktinformationen */
.contact-info {
    text-align: left;
    font-size: 1rem;
    margin-top: 10px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover,
.contact-info a:focus {
    color: #8c52ff;
    outline: none;
}

/* Social-Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.social-icons img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: transform 0.2s;
}

.social-icons img:hover,
.social-icons img:focus {
    transform: scale(1.1);
    outline: 2px solid #ffffff;
}

/* ===========================================
   ABSCHLUSSBILD
=========================================== */
#mainend {
    width: 100%;
    height: auto;
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */
@media (max-width: 1024px) {
    footer {
        flex-direction: column; /* Auf mobilen Geräten wird der Footer einspaltig */
        align-items: center;
        width: 90%;
        padding: 5%;
    }

    .footer-image,
    .contact-container {
        width: 100%; /* Beide Bereiche nehmen die volle Breite ein */
        margin-bottom: 20px;
    }

    .contact-form, 
    .contact-info {
        width: 100%;
        margin-bottom: 20px;
    }

    .social-icons {
        justify-content: center;
    }

    footer img {
        width: 100%; /* Bild wird auf 100% auf mobilen Geräten gestreckt */
        height: auto;
        object-fit: cover; /* Bild füllt weiterhin den Bereich aus */
    }
}

@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .contact-info {
        font-size: 0.9rem;
    }

    .social-icons img {
        width: 40px;
        height: 40px;
    }
}

/* ===========================================
   BARriereFREIHEIT
=========================================== */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-info a:focus,
.social-icons img:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
