@import url('https://fonts.googleapis.com/css2?family=Oswald&family=Roboto:ital,wght@0,100;0,300;1,100&display=swap');

body {
    font-family: Roboto;
    margin: 0;
    padding: 0;
    background-image: url("https://locastro.de/rsc/bg.jpg");
    background-attachment: fixed;
    background-size: cover;
}

.glass {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.aboutme {
    text-align: center;
    margin: 0;
    font-size: 26px;
}




.pfirmen {
    max-width: 100%;
    height: auto;
}



.limiter {
    width: 50%;
    text-align: center;
    margin: 0 auto;

}

.limiter .timesdiv {
    padding-bottom: 5em;
    padding-top: 5em;
    position: relative;
}

.limiter .timesdiv::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.5s ease-in-out, margin-left 0.5s ease-in-out; /* Hier wird die Transition für Breite und Position definiert */
    transform-origin: 50%;
}

/* Füge die Klasse "animate" hinzu, wenn das Element in den sichtbaren Bereich kommt */
.limiter .timesdiv.animate::after {
    width: 100%;
    margin-left: -50%; /* Setzt die Margin, um das Pseudo-Element zur Mitte zu verschieben */
}

/* Du kannst auch die Animation verzögern, um einen besser sichtbaren Effekt zu erzielen */
.limiter .timesdiv.animate::after {
    transition-delay: 0.2s; /* Beispiel für eine Verzögerung von 0.2 Sekunden */
}

/* Entferne die Border vom letzten .timesdiv */
.limiter .timesdiv.no-border::after {
    display: none;
}



.timesdiv {
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 0;
}

.timesdiv h1 {
    font-size: 1.5vw;
    white-space: nowrap;
}
.timesdiv p {
    text-align: center;
    min-width: 240px;
}

#sign {
    font-size: 1.5vw;
    white-space: nowrap;
    padding: 3px;
    width: max-content;
    border-radius: 5px;
}

.content ul li {
    padding-top: 10em;
}
.paragraph-spacing {
    margin-inline: 100px; /* Hier kannst du die Höhe des gewünschten Abstands einstellen */
}

.content p,
ul {
    font-size: 18px;
}

.content h1 {
    text-align: center;
}

.content {
    background-color: rgba(255, 255, 255, .97);
    text-align: center;
    opacity: 0;
    transform: translateX(-30%);
    transition: opacity 0.5s, transform 0.5s;
}


.content.loaded {
    opacity: 1;
    transform: translateX(0);
    transform: translateY(-15px);
}




.uppersegmend {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.header {
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #0e1c25;
    justify-content: center;
    margin: 0;
}

.header p {
    text-align: center;
    padding-inline: 2%;
    margin: 0;
    font-weight: bold;
    line-break: strict;
}

.header p a {
    color: darkgray;
    text-decoration: none;

}

nav {
    background-color: white;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

nav h1 {
    margin: 0;
    font-size: 22px;
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

nav ul li {
    padding-inline: 1em;
}

nav ul li a {
    color: #274054;
    text-decoration: none;
    display: block;
    padding: 0.5em;
    text-align: center;
    font-size: 22px;
    position: relative;
    transition: color 0.5s ease;
}

nav ul li a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: darkgrey;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out; /* Hier werden die Transitions für Breite und Position definiert */
    transform-origin: 50%;
}

nav ul li a:hover {
    color: darkgrey;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0; /* Beim Hover wird die Position auf 0 gesetzt (von der Mitte aus) */
}






#logodiv {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7em;
    overflow: hidden;
}

#logodiv img {
    max-width: 100%;
    min-width: 280px; /* Setze hier die gewünschte Mindestbreite */
    height: auto;
    opacity: 0;
    transform: translateX(-30%);
    transition: opacity 0.5s, transform 0.5s;
}

#logodiv img.loaded {
    opacity: 1;
    transform: translateX(0);
}







.icons-reverse,
.icons {
    width: auto;
    height: 12em;
    opacity: 0;
    transition: opacity 0.9s, transform 0.9s;
}

.icons-reverse {
    transform: translateX(-100px);
}

.icons {
    transform: translateX(100px);
}

.icons-animate {
    opacity: 1;
    transform: translateX(0);
}



footer {
    background-color: #0e1c25;
    margin-top: -1.1em;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    color: rgb(237, 237, 237);
}

.footerinfo {
    text-align: center;
    justify-content: center;
    margin: 0;
}

footer a {
    text-decoration: none;
    color: rgb(237, 237, 237);
}

footer a:hover {
    color: #274054;
}


.mobile-content {
    display: none;
}

.desktop-content {
    display: block;
}


.icons2 {
    height: 16px;
    width: auto;
}

@media (max-width: 1200px) {
    .timesdiv h1,
    #sign {
        font-size: 2vw;
    }

}

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        padding-inline: 0;
        margin-bottom: 0.5em;
    }

    .uppersegmend {
        display: grid;
        grid-template-columns: 1fr;
    }

    .timesdiv h1,
    #sign {
        font-size: 5vw;
    }


    footer {
        grid-template-columns: 1fr;
        color: rgb(237, 237, 237);
    }

    .mobile-content {
        display: flex;
        flex-direction: column;
        align-items: center; /* Zentriert die Elemente horizontal */
        text-align: center;
        margin-bottom: 2em; /* Füge einen Abstand zwischen den timesdiv-Elementen hinzu */
    }

    .desktop-content {
        display: none;
    }
    .limiter {
        max-width: 800px;
        margin: 0 auto;
    }

    .mobile-content .timesdiv {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2em;
        text-align: center;
    }


    .mobile-content .timesdiv.no-border::after {
        display: none;
    }



}

@media (max-width: 400px) {

    .content h1 {
        font-size: 24px;
    }

}


.popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    color: #0e1c25;
    text-align: center;
}

.close {
    color: darkgrey;
    font-size: 30px;
    cursor: pointer;
    height: min-content;
    width: min-content;
    padding-inline: 15px;
    display: flex;
    margin-left: auto;
    padding-bottom: 4px;

}
.close:hover {

    background-color: red;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 1); /* Fügt einen Schatten hinzu */

}


.content-popup {
    background-color: white;
    width: 100vh;
    margin: 100px auto auto;padding: 20px;border-radius: 20px; box-shadow: 1px 2px 4px rgba(0, 0, 0, 1);border: #0e1c25 3px solid
}