body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #000;
}
.body-startseite {
    background-color: white;
    padding-top: 88px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 40px;
    width: calc(100% - 67px);
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    z-index: 1000;
    padding-top: 20px;
}

.top-bar a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    border: 1px solid rgb(0, 0, 0);
    padding: 5px 10px;
    border-radius: 500px;
    font-size: 22px;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

.top-icons {
    margin-left: auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.pfeil-links {
    width: 8px;
    height: 16px;
}

.pfeil-rechts {
    width: 8px;
    height: 16px;
}


.pfeil-links-container {
    display: flex;
    align-items: center;
    height: 50px;
}

.pfeil-rechts-container-sprache {
    padding: 0 14px;
}

.top-icons-container {
    height: 50px;
    display: flex;
    align-items: center;
}

.sprache {
    font-size: 22px;
}

.projektordner {
    width: 21.5%; /* Ordner kleiner machen, z. B. 20% der Breite - mehr Abstand */
    position: relative;
    margin-top: 9vw; /* Passe den vertikalen Abstand bei Bedarf an */
    text-align: center;
}


.projektordner a {
    font-family: 'Arial', sans-serif; /* Gleiche Schrift wie oben */
    font-size: 22px; /* Passe die Größe an, falls nötig */
    color: #000; /* Textfarbe */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

.projektordner a:hover {
    text-decoration: none; /* Auch bei Hover keine Unterstreichung */
}

.projektordner-container {
    display: flex;
    flex-wrap: wrap; /* Zeilenumbruch aktivieren */
    justify-content: space-between; /* Ordner gleichmäßig verteilen mit Abstand */
    padding: 0 40px; /* Zusätzlicher Abstand links und rechts zur Containerwand */
    gap: 5px; /* Optionaler Abstand zwischen den Reihen */
    margin-bottom: 38px;
}

.projektordner:hover .ordner-bild {
    transform: translateY(-90%);
    transition: 0.4s;
}
.ordner-container {
    position: relative;
    margin-bottom: 2vw;
}
.ordner-bild {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    transition: 0.8s;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.ordner-vorderseite {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}
.ordner-jahr {
    width: 100%;
}

/* Ordner Jahr (hinterer Ordner) */
.ordner-jahr {
    width: 100%;
    z-index: 1;
}

/* Bild in der Mitte des Ordners */
.ordner-bild {
    position: absolute;
    width: 100%; /* Bild so breit wie der Ordner */
    padding: 2px;
    left: 0;
    bottom: 0;
    z-index: 2; /* Bild über der Rückseite, aber unter der Vorderseite */
}

/* Vorderseite des Ordners */
.ordner-vorderseite {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 3; /* Vorderseite ist der höchste Layer */
}


@media (max-width: 768px) {
    .portfoliotitel {
        display: none;
    }
    .projektordner {
        width: 31%; /* Weniger breite Ordner auf kleinen Bildschirmen */
        position: relative;
        margin-top: 16vw; /* Passe den vertikalen Abstand bei Bedarf an */
        
    }

    .projektordner-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Ordner gleichmäßig verteilen mit Abstand */
        margin-top: 0px;
        margin-bottom: 38px;
    }
    .top-bar a {
        font-size: 18px; /* Schrift verkleinern */
        padding: 4px 8px; /* Abstand anpassen */
    }

    .sprache {
        font-size: 18px; /* Kleinere Schriftgröße für Sprache */
    }

    .top-icons-container {
        gap: 15px; /* Weniger Abstand zwischen den Icons */
    }
}

/* Anpassungen für sehr kleine Bildschirme (max. 480px) */
@media (max-width: 480px) {
    .projektordner {
        width: 48%;
    }
    .top-bar a {
        font-size: 12px; /* Noch kleinere Schriftgröße */
        padding: 3px 6px; /* Noch engerer Abstand */
    }

    .sprache {
        font-size: 16px;
    }

    .top-icons-container {
        gap: 10px; /* Geringerer Abstand zwischen Icons */
    }
}
