body {
    background-color: #fff;
    font-family: sans-serif;
    font-size: 12pt;
    display: grid;
    grid-template-columns: 250px auto;
    grid-template-rows: 300px auto;
    min-height: 100vh;
    margin: 0px;
}

header {
    grid-column: 2/3;
    grid-row: 1/2;

    display: flex;
    align-items: end;
    justify-content: center;

    background-color: #848075;
    background-image: url('/images/neueburg.jpg');
    background-size: cover;
    /*background-repeat: no-repeat;*/
    background-position: 50% 12%;

    text-align: center;
    text-shadow: 0px 0px 5px #000;
    color: #eee;

    font-size: 1.5em;
    padding-bottom: 10px;
}

header h1 {
    font-size: 2.5em;
    font-weight: 400;
    margin: 0px;
}

header hr {
    margin: 20px auto;
    border: none;
    border-top: 4px solid #f66;
    max-width: 30em;
}

header a {
    text-decoration: none;
    color: inherit;
}

nav {
    grid-column: 1/2;
    grid-row: 1/3;
    background-color: rgb(232, 232, 243);
    padding: 20px;
}

nav h2,
nav h2 a {
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: center;
    color: rgb(34, 34, 48);
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding-left: 5px;
    display: inline;
}

nav li {
    margin-bottom: 10px;
}

nav li a {
    text-decoration: none;
    color: rgb(34, 34, 48);
}

nav li.selected {
    text-shadow: #33f 0px 0px 5px;
}


main {
    grid-column: 2/3;
    grid-row: 2/3;
    padding: 3em;
    text-align: justify;
}

main #logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3em;
    margin: 3em 0;
}

main #logos img {
    height: 4em;
}

main #logos a {
    display: block;
    text-decoration: none;
    border: 0;
}

.termine {
    list-style: none;
    padding: 0;
    max-width: 400px;
    /* Breite nach Bedarf anpassen */
}

.termine li {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.termine li::after {
    content: "";
    flex-grow: 1;
    order: 2;
    border-bottom: 2px dotted #aaa;
    /* Die Punkte */
    margin: 0 10px;
    position: relative;
    /*bottom: 4px;*/
    /* Feinjustierung der vertikalen Position */
}

.termine .termin {
    order: 1;
    white-space: nowrap;
}

.termine .datum {
    order: 3;
    font-weight: bold;
}

.highlighting {
    color: #1B5393;
    font-weight: 600;
}

/*
footer {
    grid-column: 1/3;
    grid-row: 3/4;
    text-align: center;
}
    */

@media (max-width: 800px) {
    body {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 200px 4em auto;
    }

    header {
        grid-column: 1/2;
        grid-row: 1/2;
    }

    nav {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    nav h2 {
        display: none;
    }

    nav li {
        display: inline-block;
        margin: 10px;
    }

    main {
        grid-column: 1/2;
        grid-row: 3/4;
    }

    /*
    footer {
        grid-column: 1/2;
        grid-row: 4/5;
    }
        */
}

@media (max-width: 650px) {
    body {
        grid-template-rows: 200px 9em auto;
    }

    header {
        font-size: 1.2em;
    }

    header h1 {
        font-size: 1.5em;
    }
}