/* ==========================================================================
   1. GRUNDGERÜST (Für alle Listen und Tabellen)
   ========================================================================== */

/* Container für das breite Lexikon (max 900px) */
.sprach-listen-container {
    display: grid;
    grid-template-columns: 1fr; /* Alles steht jetzt in EINER breiten Spalte */
    gap: 30px;
    max-width: 900px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Die Themen-Boxen (jetzt in voller Breite) */
.listen-box {
    background-color: #ffffff;
    border: 1px solid #d3c5a3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.listen-box h4 {
    background-color: #1c86ee; /* Dein Ägäis-Blau */
    color: white;
    margin: 0;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.0em;
    letter-spacing: 1px;
}

/* Die Zeilenaufteilung (Standard: 3 Bereiche nebeneinander) */
.listen-zeile {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Drei gleich große Spalten für Text */
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e0d8c3;
    font-size: 0.80em; /* Etwas größer und besser lesbar */
}

.listen-zeile:last-child {
    border-bottom: none;
}

/* Zebra-Musterung */
.listen-zeile:nth-child(even) {
    background-color: #f2f2f2;
}

.listen-zeile:hover {
    background-color: rgba(197,241,251,0.7); /* Dein helles Türkis */
}

/* Die 3 Text-Bereiche (Standard) */
.wort-deutsch {
    font-weight: bold;
    color: #333;
    text-align: left;
}

.wort-lautschrift {
    color: #666;
    font-style: italic;
    text-align: center;
}

.wort-griechisch {
    font-weight: bold;
    color: #1c86ee;
    text-align: right;
}

/* ==========================================================================
   2. SPEZIAL-KLASSEN (Speisekarte)
   ========================================================================== */

/* Zusatz für die Speisekarte (PC) */
@media (min-width: 768px) {
    .speise-karten-zeile {
        grid-template-columns: 1.2fr 1.2fr 2fr; /* Gibt der Beschreibung mehr Platz */
    }
}

.text-links { text-align: left !important; }
.text-normal { font-style: normal !important; color: #444; }

.notiz-text {
    text-align: left;
    font-size: 0.9em;
    line-height: 1.6;
    padding: 15px 20px;
    color: #555;
    background-color: #fdfbf7;
    border-top: 1px solid #e0d8c3;
}

/* Einleitungstexte linksbündig */
.einleitung {
    font-style: italic;
    color: #555;
    padding: 10px 0;
    text-align: left !important;
    display: block;
}

/* Den Hover-Effekt für die Einleitungs-Zeile abschalten */
.listen-zeile:has(.einleitung):hover {
    background-color: transparent;
}

/* ==========================================================================
   3. SPEZIAL-KLASSEN (Namenstage)
   ========================================================================== */

/* Zusatz für die Namenstage (PC) */
@media (min-width: 768px) {
    .namenstag-karten-zeile {
        grid-template-columns: 80px 1fr 1fr !important; /* 80px für das Datum, den Rest teilen sich die Namen */
    }
}

.datum-text {
    font-weight: bold;
    color: #555;
}

.name-griechisch-rechts {
    font-weight: bold;
    color: #1c86ee;
    text-align: left;
}

/* Die grauen Überschriften für die Monate */
.monat-trenner {
    background-color: #e9e5dc;
    color: #5c4a3d;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #d3c5a3;
}

/* Hinweis für bewegliche Feiertage (Ostern) */
.ostern-hinweis {
    padding: 15px 20px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
    background-color: #fcfbf9;
    font-style: italic;
    border-bottom: 1px solid #e0d8c3;
}

/* ==========================================================================
   4. RESPONSIVE ANPASSUNGEN (Handy)
   ========================================================================== */

/* Für Tablets und Handys (Namenstage) */
@media (max-width: 768px) {
    .namenstag-karten-zeile {
        /* 45px Platz für das Datum links, der Rest für die Namen rechts daneben */
        grid-template-columns: 45px 1fr !important;
        align-items: start; /* Richtet den Text oben an der Kante aus */
        gap: 4px;
        padding: 15px !important;
    }

    .datum-text {
        grid-row: 1 / span 2; /* Das Datum erstreckt sich nach unten über 2 Zeilen */
        padding-top: 2px; /* Minimaler Abstand, damit es exakt auf einer Linie mit dem Text liegt */
    }

    .wort-deutsch {
        text-align: left;
        line-height: 1.4;
    }

    .name-griechisch-rechts {
        grid-column: 2; /* Zwingt den griechischen Text in die rechte Spalte unter den deutschen Text */
        text-align: left !important; /* Linksbündig liest es sich auf dem Handy viel ruhiger */
        font-size: 0.95em;
    }
}