body {
    margin: 0px;
    padding: 0px;
    border: 0px;
    background-image: url(img/hintergrund.webp);
    background-size: cover;
    background-position: center;
}

h1 {
    font-size: 65px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    padding: 50px;
    padding-top: 100px;
    margin-top: 0px;
    padding-bottom: 0px;
    height: 20px;
}

h2 {
    font-size: 51px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-weight: lighter;
    padding-right: 50px;
    padding-top: 0px;
    height: 20px;
}

h3 {
    font-size: 20px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
}

p {
    font-size: 20px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

nav {
    background-image: url(img/NavBar.jpeg);
    background-size: cover;
    text-align: right;
    background-position: center;
    height: 800px;
}

.einleitung {
    background-color: #2C73A1;
    padding: 40px;
}

.zweiteilung {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
}

.zweiteilung p,
.zweiteilung h3,
.schlusswort p,
.schlusswort h3,
.legende p {
    color: black;
    margin-left: 40px;
    margin-right: 40px;
}

.zweiteilung h3,
.schlusswort h3 {
    margin-top: 50px;
}

.tabelleContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabelleContainer img {
    max-width: 90%;
    height: auto;
}

.legende {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.legende img {
    width: 100px;
    height: 5px;
    padding: 10px;
}

footer {
    background-color: #2C73A1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 170px;
}

footer p {
    font-weight: lighter;
}

.schlusswort {
    margin-bottom: 150px;
}

.auflistung {
    display: flex;
    flex-direction: row;
}

.auflistung p {
    margin-top: 5px;
}

#chart-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
    margin: 40px auto;
}

.chart-wrapper {
    flex: 1 1 calc(50% - 20px);
    margin-bottom: 40px;
    max-width: 50%;
}

canvas {
    width: 100% !important;
    height: auto !important;
    padding-left: 40px;
    padding-right: 40px;
}


.chart-buttons {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
}

button {
  background-color: #2C73A1;
  color: white;
  border: none;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #1E5F8B;
}

button:active {
  background-color: #1A4A6E;
}


@media (max-width: 1095px) {
    h1 {
        height: 90px;
    }
}

@media (max-width: 893px) {
    h2 {
        height: 70px;
    }

    #chart-container {
        flex-direction: column;
    }

    .chart-wrapper {
        max-width: 100%;
    }

    .tabelleContainer {
        margin-top: 40px;
    }

    .auflistung {
        flex-direction: column;
    }
}

/* Media Queries für mobile Geräte */
@media (max-width: 768px) {

    h1 {
        font-size: 45px;
        padding: 30px;
        padding-top: 60px;
        height: 40px;
    }

    h2 {
        font-size: 35px;
        padding-right: 30px;
        height: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 18px;
    }

    nav {
        height: 500px;
        background-position: center;
    }

    .zweiteilung {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        margin-top: 20px;

    }

    .tabelleContainer {
        margin-top: 20px;
    }

    .tabelleContainer img {
        justify-self: center;
    }

    .legende img {
        width: 80px;
        height: 4px;
    }

    footer {
        height: 120px;
        padding: 20px;
    }

    .schlusswort {
        margin-bottom: 70px;
    }
}

/* Media Queries für sehr kleine Bildschirme */
@media (max-width: 613px) {
    h1 {
        font-size: 35px;
        padding: 20px;
        padding-top: 40px;
    }

    h2 {
        font-size: 28px;
        padding-right: 20px;
        height: 40px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 16px;
    }

    nav {
        height: 300px;
        background-position: center;
    }

    .einleitung {
        padding: 20px;
    }

    .zweiteilung p, .zweiteilung h3, .schlusswort p, .schlusswort h3, .legende p {
        margin-left: 20px;
        margin-right: 20px;
    }

    .legende img {
        width: 60px;
        height: 3px;
    }

    footer {
        height: 100px;
        padding: 10px;
    }

    .schlusswort {
        margin-bottom: 50px;
    }
}
