:root {
    --font-black: #333;
    --white: #f7f6f2
}

body {
    background-image: url(../bilder/Hintergrund_Textur.jpg);
    background-size: cover;
    background-attachment: scroll;
    background-position: center;
    background-repeat: repeat;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Flex Layout für den Hauptcontainer */
#inhalt {
    width: 1400px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-column-gap: 20px;
    margin: 10px auto;
    background-size: 100%;
    background-attachment: scroll;
    background-position: top;
    background-repeat: no-repeat;
}

h3 {
    grid-column: span 12;
    font-size: 1.5em;
    color: var(--font-black);
    margin: 0;
    padding: 0;
    font-family: "familjen-grotesk", sans-serif;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    text-align: left;
    line-height: 1;
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Datum und Uhrzeit nebeneinander */
h1 {
    font-family: "ff-typestar-ocr-web-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 7em;
    color: var(--font-black);
    margin: 0;
    padding: 0;
    line-height: 1;
    margin-block-start: 0;
    margin-block-end: 0;
}

h1#datum {
    grid-column: span 8;
    text-align: left;
}

h1#uhrzeit {
    grid-column: 9 / span 4;
    text-align: right;
}

#anzahlMenschen {
    grid-column: span 12;
    display: flex;
}

/* Passanten-Anzahl über die gesamte Breite */
h2 {
    font-family: "familjen-grotesk", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 5em;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: var(--white);
    background-color: #8f9acc;
    border-radius: 8px;
    padding: 2px 10px;
    font-style: normal;
}

#trapez {
    grid-row: 4;
    grid-column: span 12;
    height: 250px;
    clip-path: polygon(40% 0, 60% 0, 100% 100%, 0% 100%);
    /* background-color: #e0e0e0;  */
    position: relative;
    overflow: hidden;
    margin-top: 500px;
}

.point {
    width: 16px;
    height: 8px;
    background-color: var(--white);
    border-radius: 50%;
    position: absolute;
}

#abstand {
    height: 200px;
}

/* Text über 6 Spalten */
#fliesstext {
    width: 1400px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 12 Spalten */
    grid-column-gap: 20px;
    /* Abstand zwischen den Grid-Elementen */
    margin: 10px auto;
    padding: 0;
    margin-bottom: 15vh;
    line-height: 1.2;
}

/* Text über 12 Spalten */
p {
    grid-column: 3/ span 8;
    font-size: 3em;
    color: var(--font-black);
    font-family: "familjen-grotesk", sans-serif;
    font-weight: 500;
    font-style: normal;
}

var {
    color: var(--white);
    background-color: #8f9acc;
    border-radius: 8px;
    padding: 2px 10px;
    font-style: normal;
}

/* Diagramm über 12 Spalten */
#divDiagramm {
    grid-column: span 12;
    padding: 20px;
    border-radius: 10px;
}

h4 {
    font-family: "familjen-grotesk", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--font-black);
    margin: 0;
    padding: 0;
}

/* Footer über 12 Spalten */
footer {
    grid-column: span 12;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
}

#hystreet {
    text-align: right;
}

/* Medienabfrage für kleinere Bildschirme */
@media (max-width: 600px) {
    #inhalt {
        width: 95%;
        background-position: bottom;
    }

    h3 {
        font-size: 1.5em;
    }

    h1 {
        font-size: 3em;
    }

    h2 {
        margin-top: 5px;
        font-size: 1.5em;
    }

    h1#datum,
    h1#uhrzeit {
        grid-column: span 12;
        text-align: left;
    }

    #trapez {
        grid-row: 5;
        height: 70px;
        margin-top: 200px;
    }

    .point {
        width: 8px;
        height: 4px;
    }

    #abstand {
        height: 25px;
    }

    #fliesstext {
        width: 95%;
        grid-template-columns: repeat(6, 1fr);
        margin-top: 50px;
        margin-bottom: 100px;
    }

    p {
        font-size: 1.3em;
        grid-column: span 6;
    }

    footer {
        padding: 10px;
    }

    h4 {
        font-size: 0.7em;
    }

}