/* Allgemeiner Footer Hintergrund */
.footer {
    background-color: #504f4f;
    width: 100%;
    min-height: 200px;
    padding: 20px 0;
    color: white;
}

/* Hauptcontainer für den Inhalt */
.footercontent {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap; /* Erlaubt Umbruch bei Platzmangel */
}



.footer1, .footer2, .footer3, .footer4, .footer5 {
    flex: 1 1 180px; /* Jede Box bekommt min. 180px, waechst aber bei Platz */
}
/* Typografie & Links */
.footerh1 {
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    margin-block-start: 0;
}

.footer h1 {
    margin-block-start: 0; /* Entfernt den Abstand oben */
    margin-block-end: 12px; /* Dein gewünschter Abstand nach unten */
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.8;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Logo und Adressbereich */
/* Stil für die Box, die das Logo enthält */
.footer4 {
    display: flex;
    justify-content: center; /* Zentriert das Logo innerhalb der Box */
    align-items: center;
    margin-bottom: 10px;
}

/* Die Anweisung für das Bild selbst */
.footer4 img {
    max-width: 150px; /* Passe diesen Wert an, um das Logo zu vergrößern (z.B. 150px, 200px) */
    height: auto;     /* Sorgt dafür, dass das Seitenverhältnis erhalten bleibt */
    display: block;
}

#footertext {
    font-weight: bold;
}

.footer5 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Schiebt Inhalt nach unten */
    height: 100%;             /* Nutzt die volle Box-Hoehe */
    font-size: 13px;
    color: #cccccc;
    line-height: 1.4;
}

/* Container für das Icon */
.linkedin-icon {
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.2s ease; /* Ein sanfter Effekt beim Drüberfahren */
}

/* Farbe des Icons im Normalzustand */
.linkedin-icon svg {
    fill: #BBBBBB; /* Dein Standard-Grau aus dem HTML */
    transition: fill 0.2s ease;
}

/* Farbe beim Drüberfahren (Hover) */
.linkedin-icon:hover svg {
    fill: #ffffff; /* Weiß beim Drüberfahren */
}

/* Optional: Ein leichter Zoom-Effekt beim Drüberfahren */
.linkedin-icon:hover {
    transform: scale(1.1);
}

/* Responsive Anpassungen */

@media (max-width: 768px) {
    .footer {
        padding: 20px 10px; /* Außenabstand des Footers verkleinern */
    }

    .footercontent {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px; /* Reduziert von 30px auf 20px */
    }
    
    /* Boxen-Abstände minimieren */
    .footer1, .footer2, .footer3, .footer4, .footer5 {
        flex: 1 1; /* Flex-Basis auf auto setzen */
        width: 100%;
        margin-bottom: 0;
    }

    /* Überschriften-Abstand verringern */
    .footer h1 {
        margin-block-end: 8px; /* Kleinerer Abstand unter der Überschrift */
    }
}