body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #0077cc;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
}


.header-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: white;
    padding: 1rem 0;
    text-transform: uppercase;
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #005fa3;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 2rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #0077cc;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-spacer {
    height: 50px; /* Gleiche Höhe wie der Footer */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
    text-align: left;
    background-color: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75rem;
}

th {
    background-color: #0077cc;
    color: white;
    font-weight: bold;
}

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

tr:hover {
    background-color: #e0f7ff;
}

caption {
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: left;
}

@media screen and (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* Allgemeiner Container für die Geräteauswahl */
.device-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

/* Einzelnes Gerät */
.device {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f4f4f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 120px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.device:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Symbole (Font Awesome Icons) */
.device i {
    font-size: 2.5rem;
    color: #0077cc;
    margin-bottom: 0.5rem;
}

/* Text unter den Icons */
.device p {
    font-size: 1rem;
    margin: 0;
    color: #333;
}







/* Stil für die Fehler-seite */
.error-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.error-item {
    background-color: #f4f4f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.error-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.error-item h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #0077cc;
}

.error-item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}







/* Stil für die Geschichte des Speedtests */
.history-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.history-item {
    background-color: #f9f9fc;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.history-item h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #005fa3;
}

.history-item ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.history-item ul li {
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.5;
}

.history-item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}





/* Allgemeines Menü */
.menu-container {
    position: relative;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #005fa3;
    flex-wrap: nowrap;
}

.menu > li {
    position: relative;
    margin: 0 1rem;
}

.menu > li > a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    display: block;
}

/* Dropdown-Untermenü */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0077cc;
    padding: 0;
    margin: 0;
    display: none;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.submenu li {
    width: 150px;
}

.submenu li a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    text-align: left;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #005fa3;
    border-radius: 5px;
}

.dropdown:hover .submenu {
    display: block;
}

/* Hamburger-Menü Icon */
.hamburger-menu {
    display: none; /* Standardmäßig nicht sichtbar */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Menü für Mobilgeräte */
@media screen and (max-width: 768px) {
    .menu {
        display: none; /* Standardmäßig ausgeblendet */
        flex-direction: column;
        background-color: #005fa3;
        position: absolute;
        top: 60px; /* Höhe des Headers */
        right: 0;
        width: 100%;
        padding: 1rem 0;
        z-index: 1000;
    }

    .menu.active {
        display: flex; /* Aktiviert bei Klick auf Hamburger */
    }

    .menu > li {
        margin: 0;
        text-align: center;
    }

    .hamburger-menu {
        display: flex; /* Hamburger-Menü sichtbar */
    }
}

