* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: auto /* Reibungsloses Scrollen auf iOS */
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #2D2D2D;
    background-color: #F9F9F9;
    line-height: 1.6;
}

/* Logo und Navigation */
#logo, nav {
    display: block; /* Für Safari besser verständlich */
    width: 100%;
}

#logo img {
    display: block; /* Safari-Fix */
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    height: 100%;
}

nav {
    width: 100%; /* Navigation auf die volle Breite beschränken */
    overflow-x: hidden; /* Überschreitungen verhindern */
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Zeilenumbruch erzwingen */
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

nav ul li a {
    text-decoration: none;
    color: #2D2D2D;
    font-weight: bold;
    padding: 8px 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease; /* Safari */
}

nav ul li a:hover {
    background-color: #2D2D2D;
    color: #FFFFFF;
    border-radius: 4px;
}


/* Hauptüberschriften */
main h1 {
    font-size: 2rem;
    color: #1D3C34;
    margin-top: 50px;
    text-align: center;
}

/* Tabellenstyling */
table {
    width: 80%;
    margin: 30px auto;
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #B0CCC2;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #E6F0EC;
    color: #1D3C34;
}

table tr:nth-child(even) {
    background-color: #F9F9F9;
}

table tr:hover {
    background-color: #E6F0EC;
}

/* Footer Styling */
footer {
    background-color: #2D2D2D;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Für Safari */
}

footer h5 {
    color: #B0CCC2;
}

footer p {
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Google Fonts Einbindung */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

header {
    background-color: #2D2D2D;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

header img {
    max-height: 50px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
header nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
    padding: 8px 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover {
    background-color: #FFFFFF;
    color: #2D2D2D;
    border-radius: 4px;
}

/* Mobile Geräte */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }
    nav {
        width: 100%;
        overflow-x: hidden;
    }
    #logo, nav {
        display: block;
        width: 100%;
        text-align: center;
    }
    #logo img {
        max-height: 150px;
    }
    section {
        width: 100%;
    }
    header, footer {
        width: 100%;
        padding: 10px 15px;
        box-sizing: border-box;
    }
}