/* footer.css */

/* Allgemeine Body-Einstellungen (für den "Nach oben"-Link und Layout-Test) */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif; /* Oder deine bevorzugte Schriftart */
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

/* Container für zentrale Ausrichtung und maximale Breite */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MAIN FOOTER STYLES */
.main-footer {
    background-color: #2c3e50; /* Dunkles Anthrazit / Marineblau als Basis */
    color: #ecf0f1; /* Helles Grau für den Text */
    padding: 20px 0 20px; /* Mehr Innenabstand oben und unten */
    position: relative; /* Für Pseudo-Elemente und absolute Positionierung */
    overflow: hidden; /* Verhindert Scrollbalken bei transformierten Elementen */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2); /* Leichter Schatten nach oben */
}

/* OBERER RAND / TRENNLINIE (Optional: Für einen einzigartigen Übergang) */
.main-footer::before {
    content: '';
    position: absolute;
    top: -50px; /* Schiebt das Element leicht in den Bereich oberhalb des Footers */
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #2c3e50; /* Gleiche Farbe wie Footer */
    transform: skewY(-2deg); /* Erzeugt einen leichten Schrägeffekt */
    transform-origin: top left;
    z-index: -1; /* Stellt sicher, dass das Element hinter dem Inhalt liegt */
}

/* FOOTER GRID LAYOUT */
.footer-grid {
    display: grid;
    /* Angepasstes Grid für mehr Flexibilität und Responsivität */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; /* Abstand zwischen den Grid-Elementen */
    padding-bottom: 50px; /* Platz über dem Kontakt-/Social-Bereich */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Dezente Trennlinie */
    margin-bottom: 30px; /* Abstand zur nächsten Sektion */
}

/* FOOTER COLUMN STYLES */
.footer-col {
    padding: 10px 0;
}

/* Logo-Spalte speziell stylen */
.footer-col.logo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.tuev-logo {
    max-width: 180px; /* Größe des Logos anpassen */
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.4)); /* Leichter Schatten für das Logo */
}

.logo-description {
    font-size: 0.9em;
    color: rgba(236, 240, 241, 0.8);
    line-height: 1.4;
}

/* HEADINGS IN FOOTER */
.footer-col h4 {
    font-family: 'Montserrat', sans-serif; /* Eine mutigere Schriftart für Überschriften */
    font-size: 1.6em; /* Etwas größer für mehr Präsenz */
    color: #1abc9c; /* Eine frische Akzentfarbe (Türkis) */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px; /* Platz für den Unterstrich */
    text-transform: uppercase; /* Alle Großbuchstaben */
    letter-spacing: 1px;
}

/* Dekorativer Unterstrich für Überschriften */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px; /* Länge des Unterstrichs */
    height: 3px;
    background-color: #f39c12; /* Eine warme Akzentfarbe (Orange) */
    border-radius: 5px;
}

/* FOOTER LISTS (NAVIGATION LINKS) */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ecf0f1; /* Heller Text */
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease; /* Sanfter Übergang */
    display: inline-block; /* Für Transform-Effekt */
}

.footer-col ul li a:hover {
    color: #f39c12; /* Akzentfarbe beim Hover */
    transform: translateX(5px); /* Leichte Bewegung nach rechts */
}

/* ADDRESS STYLES */
address {
    font-style: normal; /* Standard-Schriftstil für Adresse */
    margin-bottom: 20px;
    color: rgba(236, 240, 241, 0.9);
}

address p {
    margin-bottom: 5px;
}

/* CALL-TO-ACTION BUTTON */
.cta-text {
    font-size: 1.1em;
    color: #ecf0f1;
    margin-bottom: 10px;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background-color: #e74c3c; /* Eine auffällige Call-to-Action-Farbe (Rot) */
    color: #fff;
    padding: 14px 30px;
    border-radius: 8px; /* Leicht abgerundete Ecken */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Schatten für Tiefe */
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #c0392b; /* Dunklere Farbe beim Hover */
    transform: translateY(-3px); /* Leichter "Pop"-Effekt */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* KONTAKT- UND SOZIALE LINKS SEKTION */
.footer-contact-social {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleineren Bildschirmen */
    justify-content: space-between; /* Elemente an den Rändern verteilen */
    align-items: center;
    padding-top: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Trennlinie */
    margin-bottom: 20px;
}

.contact-info-direct {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Abstand, wenn umgebrochen */
}

.contact-link {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1em;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.contact-link img {
    width: 25px; /* Größe der Icons im direkten Kontaktbereich */
    height: 25px;
    margin-right: 10px;
    filter: invert(1); /* Macht die Icons weiß, wenn sie schwarz sind */
}

.contact-link:hover {
    color: #1abc9c; /* Akzentfarbe beim Hover */
}


/* SOCIAL LINKS ICONS */
.social-links {
    display: flex;
    gap: 20px; /* Abstand zwischen den Icons */
}

.social-links a img {
    width: 45px; /* Deutlich sichtbare Größe der Social Icons */
    height: 45px;
    transition: transform 0.3s ease, filter 0.3s ease; /* Sanfte Animation */
    filter: brightness(0.8) grayscale(100%); /* Startet etwas dunkler und grau */
    border-radius: 50%; /* Rundliche Form für Icons */
    padding: 5px; /* Innenabstand für Hintergrundeffekt */
    background-color: rgba(255, 255, 255, 0.05); /* Leichter Hintergrund */
}

.social-links a:hover img {
    transform: scale(1.15) rotate(5deg); /* Zoom- und leichter Rotations-Effekt */
    filter: brightness(1) grayscale(0%); /* Vollfarbig und heller beim Hover */
    background-color: rgba(255, 255, 255, 0.15); /* Hellerer Hintergrund */
}

/* COPYRIGHT SECTION */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Für Responsivität */
    padding-top: 15px;
    font-size: 0.9em;
    color: rgba(236, 240, 241, 0.7);
}

.footer-bottom p {
    margin: 5px 0;
}

.back-to-top {
    color: rgba(236, 240, 241, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #f39c12; /* Akzentfarbe beim Hover */
}

/* RESPONSIVE ANPASSUNGEN */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* Unterstrich zentrieren */
    }

    .footer-col.logo-col {
        align-items: center; /* Logo und Text zentrieren */
    }

    .footer-contact-social {
        flex-direction: column; /* Stapelt die Elemente vertikal */
        align-items: center;
    }

    .contact-info-direct {
        align-items: center;
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center; /* Social Icons zentrieren */
        width: 100%; /* Icons nutzen volle Breite, wenn gestapelt */
    }

    .footer-bottom {
        flex-direction: column; /* Copyright und "Nach oben" stapeln */
        text-align: center;
    }

    .footer-bottom p,
    .footer-bottom .back-to-top {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 40px 0 20px;
    }

    .footer-col h4 {
        font-size: 1.4em;
    }

    .social-links a img {
        width: 40px; /* Etwas kleinere Icons auf sehr kleinen Bildschirmen */
        height: 40px;
    }
}