html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sorgt dafür, dass die Seite immer mindestens so hoch ist wie der Bildschirm */
}

.HintergrundbildHeader {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.HintergrundbildHeader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    position: relative;
    z-index: 1;
}

.Header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.Header h1,
.Header h2 {
    margin: 0;
    padding: 0;
}

.Menü {
    display: left;
    background-color: #333;
    padding: 0;
    margin-top: 0;
}

.Menü a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: white !important;
    font-weight: bold;
    height: 100%;
}

.Menü a.active {
    background-color: #8c8c8c;
    color: white !important;
    pointer-events: none;
}

.Seiteninhalt {
    padding: 30px 40px;
}

.Seiteninhalt h2 {
    margin-top: 0;
}

table {
    align-self: center;
    width: 100%;
    border-collapse: collapse;
    margin: 10px auto;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.Footer {
    margin-top: auto; /* Drückt den Footer an den unteren Rand */
    width: 100%;
    background-color: #e6e6e6;
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    border-top: 1px solid #ccc;
}
@media (max-width: 768px) {

    .Menü {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .Menü a {
        width: 100%;
        padding: 12px;
        text-align: center;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {

    .HintergrundbildHeader {
        height: 180px;
    }

    .Header h1 {
        font-size: 1.4rem;
    }

    .Header h2 {
        font-size: 1rem;
    }
}
.Menü {
    display: flex;
    justify-content: flex-start; /* sorgt für linksbündige Ausrichtung */
    background-color: #333;
    padding: 0;
    margin-top: 0;
}

.Seiteninhalt {
    padding: 30px 40px;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .Header h1 {
        font-size: 1.5em;
    }
    .Header h2 {
        font-size: 1em;
    }

    .Menü {
        flex-direction: column;
        align-items: stretch;
    }
    .Menü a {
        padding: 12px;
        text-align: center;
    }

    .Seiteninhalt {
        padding: 15px;
    }

    table, th, td {
        font-size: 0.9em;
    }

    .HintergrundbildHeader {
        height: 200px;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 480px) {
    .Header h1 {
        font-size: 1.2em;
    }
    .Header h2 {
        font-size: 0.9em;
    }
    .Menü a {
        padding: 10px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* zwingt die Tabelle, sich zusammenzuquetschen */
}

td, th {
    word-wrap: break-word;   /* bricht lange Wörter */
    overflow-wrap: break-word;
    white-space: normal;     /* erlaubt Zeilenumbruch */
}

/* Desktop */
.Header h1 {
    font-size: 3rem;
}
.Header h2 {
    font-size: 1.6rem;
}

/* Tablets */
@media (max-width: 768px) {
    .Header h1 {
        font-size: 2.4rem;
    }
    .Header h2 {
        font-size: 1.4rem;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .Header h1 {
        font-size: 2rem;
    }
    .Header h2 {
        font-size: 1.2rem;
    }
}
