/* Box-Sizing global setzen für bessere Kontrolle */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /* Body als flex Container in Spaltenrichtung */
    display: flex;
    flex-direction: column;
}

/* Navigation nimmt nur so viel Höhe ein wie nötig */
nav {
    background-color: #008c95;
    padding: 1rem;
    text-align: center;
    flex: 0 0 auto;
}

nav a {
    margin: 0 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
}

nav a:hover {
    text-decoration: underline;
}

/* Hauptbereich füllt den restlichen Raum */
main {
    flex: 1 1 auto;
    overflow-y: auto;
    color: #f8f8f8;
    background-color: #444;

    /* Zentrierung der Inhalte */
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

h1 {
    padding: 0;
    margin: 0 0 2rem;
    font-size: 2.0rem;
}

p {
    margin: 0.5rem 0;
}

.content a {
    color: #008c95;
    text-decoration: none;
}

.content a:hover {
    color: #0099a1;
    text-decoration: underline;
}

/* Content Bereich mit fixer Breite und ohne unteren Margin-Überschuss */
.content {
    text-align: left;
    font-size: 1.1rem;
    min-width: 360px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0.3rem;
}

/* Letztes p-Element keinen unteren Abstand */
.content p:last-child {
    margin-bottom: 0;
}

.page-header {
    margin-top: 0;
}

.news {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #555;
}