/* =========================
   Allgemeine Einstellungen
   ========================= */

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding-top: 70px;
    font-family: Arial, sans-serif;
}


/* =========================
   Navigation
   ========================= */

.main-navigation {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    background: #068d70;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    z-index: 1000;
}


/* =========================
   Navigation Container
   ========================= */

.nav-container {
    max-width: 1200px;

    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;

    gap: 25px;

    box-sizing: border-box;
}


/* =========================
   Logo
   ========================= */

.nav-logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.nav-logo img {
    display: block;

    width: 100px;
    height: 50px;
}


/* =========================
   Menü
   ========================= */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 10px;

    flex: 1;
}


/* =========================
   Navigations-Buttons
   ========================= */

.nav-button {
    flex: 1;

    min-width: 100px;

    box-sizing: border-box;

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

    height: 44px;

    padding: 0 20px;

    color: #fff;
    background: #165749;

    text-decoration: none;

    border-radius: 6px;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.nav-button:hover {
    background: #97f0b1;
    color: #212522;
}


/* =========================
   Kategorie Select
   ========================= */

.nav-select {
    flex: 1;

    min-width: 130px;

    box-sizing: border-box;

    height: 44px;

    padding: 0 15px;

    color: #fff;
    background: #165749;

    border: none;
    border-radius: 6px;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;

    text-align: center;

    cursor: pointer;

    appearance: auto;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.nav-select:hover {
    background: #97f0b1;
    color: #212522;
}

.nav-select:focus {
    outline: 2px solid #577219;
}

.nav-select option {
    color: #00aa55;
}


/* =========================
   Hamburger
   ========================= */

.nav-toggle {
    display: none;

    margin-left: auto;

    width: 45px;
    height: 40px;

    padding: 7px;

    background: transparent;

    border: 0;

    cursor: pointer;
}

.nav-toggle span {
    display: block;

    width: 100%;
    height: 3px;

    margin: 5px 0;

    background: #fff;

    border-radius: 3px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.nav-button:has(.nav-icon) {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   Tabellen
   ========================= */

table {
    width: 100%;

    border-collapse: collapse;

    margin-top: 20px;
}

th,
td {
    border: 1px solid #ccc;

    padding: 12px;

    text-align: left;
}

th {
    background-color: #f2f2f2;

    font-weight: bold;
}

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

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


/* =========================
   Redewendungen
   ========================= */

.redewendung {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =========================
   Artikel
   ========================= */

.artikel {
    display: flex;

    align-items: flex-start;

    gap: 10px;
}

.artikel p {
    font-family: Arial, sans-serif;

    font-weight: 700;

    font-size: 18px;
}

.artikel img {
    width: 24px;
    height: 24px;

    margin-top: 5px;
}

.artikel article {
    flex: 1;
}

.artikel h2 {
    margin-top: 0;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 700px) {

    /*
       Die Navigation darf auf dem Handy
       höher werden, wenn das Menü geöffnet wird.
    */

    body {
        padding-top: 70px;
    }


    /* -------------------------
       Container
       ------------------------- */

    .nav-container {
        width: 100%;

        flex-wrap: wrap;

        padding: 10px 15px;

        gap: 0;
    }


    /* -------------------------
       Hamburger anzeigen
       ------------------------- */

    .nav-toggle {
        display: block;

        margin-left: auto;
    }


    /* -------------------------
       Menü geschlossen
       ------------------------- */

    .nav-menu {
        display: none;

        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 5px;

        padding-top: 10px;
    }


    /* -------------------------
       Menü geöffnet
       ------------------------- */

    .nav-menu.active {
        display: flex;
    }


    /* -------------------------
       Buttons auf Handy
       ------------------------- */

    .nav-button {
        width: 100%;

        min-width: 0;

        height: 44px;

        box-sizing: border-box;

        text-align: center;
    }


    /* -------------------------
       Select auf Handy
       ------------------------- */

    .nav-select {
        width: 100%;

        min-width: 0;

        height: 44px;

        box-sizing: border-box;
    }
}