/* ===== GLOBALE STILE ===== */
body {
    font-family: 'Amiri', Arial, sans-serif; /* 'Amiri' für arabische Schrift, Arial als Fallback */
    background-color: #8ac1dd;
    color: black;
    line-height: 1.6; /* Bessere Lesbarkeit */
    margin: 0;
    padding: 0;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px; /* Breiter für bessere Nutzung auf Desktops */
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    background-color: rgb(237, 100, 194);
    color: whitesmoke;
    padding: 15px 20px; /* Innenabstand für bessere Optik */
}

.nav-section {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%; /* Volle Breite für die Navigation */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Leichter Schatten für Abgrenzung */
}

/* Navigationslinks stylen (falls vorhanden) */
#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#main-nav ul li {
    margin: 8px 0;
}

#main-nav ul li a {
    color: whitesmoke;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.2s;
}

#main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Hover-Effekt */
}

/* ===== TABELLEN ===== */
.vokabeltabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Amiri', Arial, sans-serif;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); /* Leichter Schatten für Tiefe */
}

.vokabeltabelle th,
.vokabeltabelle td {
    border: 1px solid #ddd; /* Dezentere Border-Farbe */
    padding: 10px 8px; /* Mehr vertikaler Platz für arabische Schrift */
    text-align: center;
}

.vokabeltabelle th {
    background-color: #d3d3d3;
    font-weight: 600;
}

.vokabeltabelle tr:nth-child(even) {
    background-color: #f8f9fa; /* Dezentere Farbe */
}

.vokabeltabelle tr:nth-child(odd) {
    background-color: #ffffff;
}

.vokabeltabelle tr:hover {
    background-color: #e9ecef; /* Hover-Effekt für bessere Interaktivität */
}

/* ===== BOXEN (z. B. für Kategorien) ===== */
.box {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
    height: 150px;
    background-color: #0f9b1b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Amiri', Arial, sans-serif;
    font-size: 18px;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    color: white; /* Weißer Text für besseren Kontrast */
    transition: transform 0.2s; /* Sanfte Animation */
}

.box:hover {
    transform: translateY(-3px); /* Leichter "Hebeeffekt" beim Hovern */
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .vokabeltabelle {
        font-size: 14px;
    }

    .vokabeltabelle th,
    .vokabeltabelle td {
        padding: 8px 6px;
    }

    .box {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .box {
        flex: 1 1 100%;
    }

    body {
        font-size: 16px; /* Bessere Lesbarkeit auf kleinen Bildschirmen */
    }
}
