@font-face {
    font-family: 'Poppins';
    src: url('../schriften/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../schriften/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
}

body {
    font-family: Poppins, sans-serif;
    background-image: url('../images/hintergrund_final.jpg');
    background-size: cover;
    background-position: top;
    /* Hintergrund zentrieren */
    background-repeat: repeat;
    overflow-x: hidden;
    position: relative;
}


/* STARTSEITE INKL. Logo und PFEIL */

.startseite {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 50vw;
    align-items: center;
}

.container_total {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 5px;
    padding-top: 8%;
    width: 100%;

}

.total {
    display: flex;
    flex-direction: row;
    align-items: baseline;

}

#total_passanten_h1,
#total_freie_parkplaetze_h1 {
    display: flex;
    justify-content: flex-end;
    width: 80%;
    /* Nutzt 70% des verfügbaren Platzes */
    text-align: right;
    /* Links bündig */
}

.total p {
    width: 20%;
    /* Nutzt 30% des verfügbaren Platzes */
    text-align: left;
    /* Rechts bündig */
}


.container_logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Bilder rechtsbündig ausrichten */
    justify-content: space-between;
    /* Pfeil nach unten ausrichten */
    width: 25%;
    margin-top: 15px;
    margin-right: 15px;
    height: 100%;
    /* Höhe des Containers auf 100% des Viewports */
}


.logo_cityflow {
    width: 100%;
    /* Volle Breite des Containers nutzen */
    height: auto;
    /* Seitenverhältnis beibehalten */
}

.pfeil {
    width: 50%;
    /* Gleiche Breite wie das Logo */
    height: auto;
    /* Seitenverhältnis beibehalten */
    cursor: pointer;
    animation: bounce 0.8s infinite;
    /* Wendet die bounce-Animation an */
}

/* Definition der bounce-Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        /* Start- und Endposition */
    }

    50% {
        transform: translateY(-5px);
        /* Höchster Punkt der Animation */
    }
}



/* AB HIER ALLGEMEINES*/


main {
    position: relative;
    /* Macht den Main-Container zum Bezugspunkt für das Häuser-Bild */
    min-height: 100vh;
    /* Stellt sicher, dass der Inhalt mindestens die Höhe des Bildschirms hat */
}

.container {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

h1 {
    color: #FFFC22;
    font-size: 20vw;
    letter-spacing: 1.5vw;
    line-height: 1;

}

h2 {
    /* TITEL LEGENDE */
    color: #FFFC22;
    font-size: 5vw;
    letter-spacing: 2vw;
    font-weight: bold;
}

.vergleich,
#total_parkplaetze_schluss,
#total_passanten_schluss,
h3 {
    /* Grössere Wörter in p Text */
    color: #FFFC22;
    font-size: 2vw;
    letter-spacing: 1vw;
    font-weight: bold;

}

p {
    color: #FFFC22;
    font-size: 1.5vw;
    letter-spacing: 0.2vw;
}


/* AB HIER LEGENDE */
.container_legende {
    display: flex;
    margin-top: 20%;
    width: 100%;
    background-image: url('../images/rechteck_violett.png');
    background-size: contain;
    /* Das Bild skaliert, um in den Container zu passen, ohne es zu verzerren */
    background-position: center;
    /* Zentriert das Bild */
    flex-direction: row;
    padding-left: 4%;
    padding-right: 4%;
    padding-top: 6%;
    padding-bottom: 6%;
    align-content: center;
}

#text_legende {
    writing-mode: vertical-rl;
    /* Textfluss von oben nach unten, von rechts nach links */
    transform: rotate(180deg);
    width: 10%;
}

.bilder_legenden {
    display: flex;
    width: 42.5%;
    height: 100%;
    flex-direction: column;
    margin-top: 5%;
    margin-bottom: 5%;
    justify-content: space-between;

}

.legende_titel {
    font-weight: bold;
    letter-spacing: 0.4vw;

}

.legende_untertitel {
    font-weight: normal;
    font-size: 0.9vw;

}

#legende_parkhaeuser,
#legende_passanten {
    width: 80%;
    /* Gleiche Breite für beide Bilder */
    height: auto;
    /* Seitenverhältnis beibehalten */
}

.text_erklaehrung {
    display: flex;
    width: 42.5%;
    /* Breite des Textcontainers */
    text-align: right;
    /* Text rechtsbündig ausrichten */
    flex-direction: column;
    justify-content: space-between;
    margin-top: 7%;
    margin-bottom: 7%;

}

/* AB HIER KARTE ST:GALLEN INKL. PARKHÄUSER / PASSANTENBILDER */

.karte {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 10vh;
    margin-bottom: 5vh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

}

#karte_stgallen {
    width: 100%;
    height: auto;

}

.bilder_parkhaeuser {
    width: 4%;
    position: absolute;
    /* Ermöglicht das freie Positionieren */
    transform: translate(-50%, -50%);
    /* Zentriert das Bild an den angegebenen Koordinaten */
}

#parkhaus_p21 {
    top: 22%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 65%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
    z-index: 1;
}

#parkhaus_p22 {
    top: 1.5%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 64%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
}

#parkhaus_p23 {
    top: 3.5%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 71%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
}

#parkhaus_p24 {
    top: 18%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 40%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
}

#parkhaus_p25 {
    top: 49%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 8%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
}

#parkhaus_p31 {
    top: 22%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 86%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
}

#parkhaus_p32 {
    top: 48%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 78%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
}

#parkhaus_p33 {
    top: 32%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 85%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
    z-index: 1;
}

.bilder_passanten {

    width: 18%;
    position: absolute;
    /* Ermöglicht das freie Positionieren */
    transform: translate(-50%, -50%);
    /* Zentriert das Bild an den angegebenen Koordinaten */
    top: 52%;
    /* Vertikale Positionierung (Anpassen nach Bedarf) */
    left: 50%;
    /* Horizontale Positionierung (Anpassen nach Bedarf) */
}


/*BILDER und AUSWERTUNG AM WEBSEITEN ENDE */

/* AUSWERTUNGSTEXT - JOURNALISTISCHER BEITRAG*/
.container_schluss {
    display: flex;
    flex-direction: row;
    width: 90%;
    margin-top: 7%;
    height: auto;
}

.container_mann {
    display: flex;
    align-items: flex-start;
    height: 100%;
    width: 45%;
}

#bild_mann {
    width: 70%;
    height: auto;

}

.auswertung_frau {
    display: flex;
    flex-direction: column;
    width: 55%;

}

.auswertung_text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 50%;
    justify-content: space-between;

}

.container_frau {
    display: flex;
    align-items: flex-end;
    height: 50%;
    justify-content: center;
}

#bild_frau {
    width: 30%;
    height: auto;
}

/*SLIDER ZEIT UND KALENDER*/

.container_datum_uhrzeit {
    display: flex;
    width: 90%;
    flex-direction: column;
    align-items: center;
    /* Zentriert den Inhalt horizontal */
    justify-content: center;
    /* Zentriert den Inhalt vertikal, falls erforderlich */
    margin: 0 auto;
    /* Zentriert den Container selbst */
}

.slider {
    width: 100%;
    /* Gesamtbreite minus 50px links und rechts */
    height: 3vw;
    /* Höhe des Sliders */
    background-color: #FFFC22;
    /* Hintergrundfarbe */
    border-radius: 30px;
    /* Runde Ecken des Sliders */
    position: relative;
    /* Setzt den Slider relativ für die Positionierung des Handles */
}

.slider-handle {
    width: 3vw;
    /* Breite des Handles */
    height: 3vw;
    /* Höhe des Handles */
    background: linear-gradient(to bottom right, #9181A0 10%, #29034F 50%) bottom right / 51% 51% no-repeat, linear-gradient(to bottom left, #9181A0 10%, #29034F 50%) bottom left / 51% 51% no-repeat, linear-gradient(to top left, #9181A0 10%, #29034F 50%) top left / 51% 51% no-repeat, linear-gradient(to top right, #9181A0 10%, #29034F 50%) top right / 51% 51% no-repeat;
    border-radius: 50%;
    /* Runde Form für den Handle */
    position: absolute;
    top: 0;
    /* Positioniert den Handle vertikal auf der Oberkante des Sliders */
    left: calc(100% - 50px);
    /* Positioniert den Handle ganz rechts und stellt sicher, dass er nicht über den Slider hinausragt */
    cursor: pointer;
    z-index: 1;

}

.time {
    font-size: 1.5vw;
    text-align: center;
    /* Zentriert den Text in der Zeit */
    font-weight: bold;
    color: #FFFC22;
    position: relative;
    /* Damit die Zeit relativ zum Container bleibt */
    flex-grow: 1;
    /* Damit die Zeit gleichmäßig verteilt wird */
    text-align: center;
    /* Zentriert den Text */
    padding-right: 10%;
}


/* Styling des Datumseingabefeldes */
.calendar-input {
    padding: 0.5vw;
    font-size: 1.2vw;
    border-radius: 2vw;
    cursor: pointer;
    outline: none;
    background-color: #FFFC22;
    font-family: Poppins, sans-serif;
    color: black;
    /* Textfarbe für besseren Kontrast */
    width: 100%;
    max-width: 200px;
    text-align: center;
    border: none;
}


.calendar-container {
    margin-right: auto;
    /* Lässt den Kalender linksbündig */
}

.timecalendar {
    display: flex;
    /* Flexbox für die Zeit- und Datumsauswahl */
    align-items: center;
    /* Zentriert die Items in der Zeit- und Datumsauswahl */
    width: 100%;
    /* Nimmt die volle Breite ein */
    margin-top: 1vw;
    /* Abstand zwischen Slider und Zeitkalender */
}

.logo_short {
    display: none;
    /* Versteckt das Datumseingabefeld */
}




/*** Handy  ***/
@media screen and (max-width: 576px) {

    body {

        background-size: 220%;
    }

    /* Wechsel von Logos*/
    .logo_cityflow {
        display: none;
        /* Das Desktop-Logo verstecken */
    }

    .logo_short {
        display: block;
        width: 7%;
        /* Breite des Logos anpassen, falls nötig */
        margin: 10% auto 4%;
        /* Zentriert das Bild horizontal */
    }

    /* ALLGEMEINES */

    h1 {
        font-size: 35vw;
        /* Grösse des Titels anpassen */
        letter-spacing: 0.5vw;
        /* Abstand zwischen den Buchstaben anpassen */
    }

    h2 {
        display: none;
    }

    .vergleich,
    #total_parkplaetze_schluss,
    #total_passanten_schluss,
    h3 {
        font-size: 7vw;
    }

    p {
        font-size: 6vw;
    }

    br {
        display: none;
    }

    /* STARTSEITE */

    .startseite {
        flex-direction: column;
        height: 75vh;
    }

    .container_total {
        height: 90vh;

    }

    .total {
        flex-direction: column;
        margin-bottom: 10%;
    }

    #total_passanten_h1,
    #total_freie_parkplaetze_h1 {
        justify-content: center;
        width: 100%;
    }

    .total p {
        width: 100%;
        /* Nutzt 30% des verfügbaren Platzes */
        text-align: center;
        /* Rechts bündig */
    }

    .container_logo {
        margin-top: 5px;
        margin-right: 5px;
    }

    .pfeil {
        width: 100%;
    }



    /* AB HIER INFO ZUR KARTE*/

    .container_legende {
        height: 80vh;
        background-size: cover;
        padding-right: 0;
        position: relative;

    }

    #text_legende,
    .bilder_legenden {
        display: none;
        width: 0%;
    }


    .text_erklaehrung {
        width: 94%;
        text-align: center;
        margin-top: 2%;
        margin-bottom: 2%;
        justify-content: center;
        align-content: center;

    }


    /* AB HIER KARTE UND TIME/DATE */

    .karte {
        margin-top: 5vh;
        margin-bottom: 2vh;
    }

    @media screen and (max-width: 576px) {
        .timecalendar {
            flex-direction: column-reverse;
            /* Elemente in Spalte anordnen */
        }

        .calendar-container {
            display: flex;
            justify-content: center;
            /* Kalender innerhalb des Containers zentrieren */
            width: 100%;
            /* Sicherstellen, dass der Container die volle Breite hat */
        }

        .calendar-input {
            max-width: 25vw;
            /* Maximalbreite, damit es nicht zu breit wird */
            border-radius: 2.5vw;
            box-sizing: border-box;
            /* Damit Padding und Border in der Breite enthalten sind */
            margin: 0;
            /* Sicherstellen, dass es keinen zusätzlichen Rand hat */
            margin-top: 1vw;
            font-size: 3vw;

        }

        .time {
            padding-right: 0;
            font-size: 4vw;
        }
    }





    /* AB HIER JOURNALISTISCHER BEITRAG + BILDER */


    /* Container für den Abschluss */
    .container_schluss {
        flex-direction: column-reverse;
        width: 100%;
        margin-top: 15%;
    }

    /* Container für den Mann */
    .container_mann {
        width: 70%;
        /* Bilder nebeneinander, halbe Breite für den Mann */
        height: auto;
        /* Höhe automatisch */
        position: relative;
        bottom: 0;
        margin-top: 20%;
    }


    /* Textcontainer */
    .auswertung_frau {
        width: 90%;
        /* Nimmt die volle Breite für den Text ein */
        text-align: center;
        /* Text zentrieren */
        align-self: center;
    }


    /* Setze die beiden Bild-Container nebeneinander am unteren Ende */
    .container_frau {
        width: 95%;
        /* Teile den Platz auf */
        position: absolute;
        /* Damit die Bilder nebeneinander bleiben */
        justify-content: flex-end;
        bottom: 0;
        /* An den unteren Rand setzen */
    }

    .auswertung_text {
        height: 65vh;

    }

}