section#social {
    margin-bottom: 0px;
    /* Entfernt den unteren Außenabstand des sozialen Medienbereichs */
    background-size: cover;
    /* Stellt sicher, dass das Hintergrundbild den gesamten Bereich abdeckt */
    background-position: center;
    /* Zentriert das Hintergrundbild */
    min-height: 20vh;
    /* Setzt eine minimale Höhe für den Bereich, basierend auf dem Viewport */
}

/* Zentriert die Überschrift "Soziale Medien" */
section#social h2 {
    margin: 0px;
    text-align: center;
    /* Zentriert den Text horizontal */
    padding: 0px;
    /* Entfernt den Innenabstand der Überschrift */
}

section#social ul {
    list-style: none;
    /* Entfernt die Listenpunkte */
    padding: 0px;
    /* Entfernt den Innenabstand der Liste */
    display: grid;
    /* Aktiviert das Grid-Layout für die Listenelemente */
    grid-template-columns: repeat(2, 1fr);
    /* Definiert zwei gleich große Spalten */
    grid-template-rows: repeat(4, auto);
    /* Erstellt vier Zeilen, deren Höhe sich dem Inhalt anpasst */
    gap: 20px;
    /* Setzt den Abstand zwischen den Grid-Elementen */
    justify-content: center;
    /* Zentriert die Inhalte innerhalb der Grid-Spalten */
}

section#social ul li {
    color: #ffffff;
    font-weight: Bold;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}

section#social ul li:hover {
    box-shadow: 0 0 20px #6fc5ff50;
    transform: scale(1.1);
}

section#social ul li:active {
    transition: all 0.25s;
    -webkit-transition: all 0.25s;
    box-shadow: none;
    transform: scale(0.98);
}

section#social a {
    text-decoration: none;
    /* Entfernt die Unterstreichung von Links */
    color: #333;
    /* Setzt die Textfarbe */
    background-color: var(--text-color);
    /* Heller Hintergrund für die Links */
    padding: 0.5rem 1rem;
    /* Definiert den Innenabstand der Links */
    border-radius: 5px;
    /* Rundet die Ecken der Links leicht ab */
    transition: background-color 0.3s;
    /* Weiche Übergänge für die Hintergrundfarbe */
    width: 100%;
    /* Links nehmen die volle Breite ihres Containers ein */
    text-align: center;
    /* Zentriert den Text innerhalb der Links */
}

/* Allgemeine Stile für den Bereich Soziale Medien */
section#social ul li {
    display: flex;
    /* Nutzt Flexbox für die Ausrichtung der Listenelemente */
    justify-content: center;
    /* Zentriert die Links horizontal im Listenelement */
}

#social ul li a {
    background-color: rgba(255, 255, 255, 0.8);
    /* Weißer Hintergrund mit leichter Transparenz */
    transition: background-color 0.3s ease;
    /* Weiche Übergänge für die Hintergrundfarbe */
    user-select: none;
}

#social ul li a:hover {
    background-color: rgba(255, 255, 255, 1);
    /* Erhöht die Deckkraft beim Hover */
}

section#social a:hover {
    background-color: #ddd;
    /* Dunklere Hintergrundfarbe beim Hover */
}

.snapchat-icon {
    position: relative;
    display: inline-block;
}

.snapchat-icon i {
    font-size: 16px;
    /* Adjust the size as needed */
    color: #FFFC00;
    /* Snapchat yellow color */
    position: relative;
    z-index: 1;
    /* Place the icon above the border */
    text-shadow:
        -1px -1px 0 black,
        /* top-left */
        1px -1px 0 black,
        /* top-right */
        -1px 1px 0 black,
        /* bottom-left */
        1px 1px 0 black,
        /* bottom-right */
        -1px 0 0 black,
        /* left */
        1px 0 0 black,
        /* right */
        0 -1px 0 black,
        /* top */
        0 1px 0 black;
    /* bottom */
}

@media only screen and (max-width: 768px) {
    section#social {
        padding-bottom: 88.8px;
        /* Fügt am unteren Rand zusätzlichen Innenabstand hinzu */
        min-height: 62.1vh;
        /* Erhöht die minimale Höhe auf kleineren Bildschirmen */
    }

    /* Anpassen der Reihenfolge der Links speziell für mobile Ansichten */
    section#social ul li:nth-child(1) {
        order: 1;
    }

    section#social ul li:nth-child(2) {
        order: 5;
    }

    section#social ul li:nth-child(3) {
        order: 3;
    }

    section#social ul li:nth-child(4) {
        order: 6;
    }

    section#social ul li:nth-child(5) {
        order: 2;
    }

    section#social ul li:nth-child(6) {
        order: 7;
    }

    section#social ul li:nth-child(7) {
        order: 4;
    }

    section#social ul li:nth-child(8) {
        order: 8;
    }

    /* Anpassungen für soziale Medien-Links */
    section#social ul {
        grid-template-columns: repeat(1, 1fr);
        /* Eine Spalte auf kleineren Bildschirmen */
        gap: 20px;
        /* Abstand zwischen den Grid-Elementen */
    }

    section#social ul li {
        color: #ffffff;
    }

    section#social ul li:hover {
        box-shadow: none;
        transform: none;
    }

    section#social ul li:active {
        transition: none;
        -webkit-transition: none;
        box-shadow: none;
        transform: none;
    }

    section#social a {
        padding: 10px 5px;
        /* Größere tappable Bereiche für Links */
    }
}

/* Gemeinsame Anpassungen für Safari und Chrome, falls notwendig */
@media screen and (max-width: 768px) {
    section#social ul {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
        /* Einheitliche Lücke für kleine Bildschirme */
    }
}


/* Anpassungen für Mobilgeräte */
@media only screen and (max-width: 932px) {
    section#social {
        padding-bottom: 88.8px;
        /* Fügt am unteren Rand zusätzlichen Innenabstand hinzu */
        min-height: 62.1vh;
        /* Erhöht die minimale Höhe auf kleineren Bildschirmen */
    }

    section#social ul li {
        color: #ffffff;
    }

    section#social ul li:hover {
        box-shadow: none;
        transform: none;
    }

    section#social ul li:active {
        transition: none;
        -webkit-transition: none;
        box-shadow: none;
        transform: none;
    }

    section#social a {
        padding: 10px 5px;
        /* Größere tappable Bereiche für Links */
    }
}