/* --- WINTT ARTIKEL Tabellen DESIGN (Stand 2026 / Joomla 6) --- */

:root {
    --wintt-primary: #1a73e8;
    --wintt-light-blue: #f1f7fe;
    --wintt-title-bg: #f8f9fa;
    --wintt-border: #e0e0e0;
    --wintt-text-dark: #3c4043;
    --wintt-text-light: #70757a;
    /* System-Fonts: Sicher, schnell und DSGVO-konform */
    --wintt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 1. Tabellen-Struktur (.wintt-table) */
.wintt-table {
    font-family: var(--wintt-font);
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wintt-border);
    margin: 20px 0;
    color: var(--wintt-text-dark);
}

.wintt-table thead {
    background-color: #f1f3f4;
}

.wintt-table th {
    padding: 18px 15px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--wintt-primary);
    border-bottom: 2px solid var(--wintt-border);
}

.wintt-table td {
    padding: 15px;
    border-bottom: 1px solid var(--wintt-border);
    vertical-align: top;
}

/* Erste Spalte (Titel-Index) auf Desktop */
.wintt-table td:first-child {
    background-color: var(--wintt-title-bg);
    font-weight: 600;
    border-right: 1px solid var(--wintt-border);
    width: 25%;
}

/* Hover-Effekt für Tabellenzeilen */
.wintt-table tbody tr:hover {
    background-color: var(--wintt-light-blue);
    transition: background-color 0.2s ease;
}

.wintt-feature-title {
    color: var(--wintt-primary);
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.wintt-small-info {
    display: block;
    font-size: 0.8rem;
    color: var(--wintt-text-light);
    margin-top: 4px;
    line-height: 1.3;
    font-weight: normal;
}

/* --- WINTT FAQ DESIGN (Finaler Stand 2026) --- */

.wintt-faq-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1000px;
    margin: 40px auto;
}

.wintt-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    /* Transition auf 0.3s erhöht für weicheren Schriftfarben-Wechsel */
    transition: all 0.3s ease; 
}

/* Interaktiver Hover-Zustand */
.wintt-faq-item:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
    cursor: pointer;
}

/* FRAGE: Standard & Hover */
.wintt-faq-question {
    background-color: #f8f9fa;
    padding: 12px 18px; /* Leicht optimiertes Padding für S21 Ultra */
    font-weight: 600;
    color: #1a73e8; /* Wintt-Blau */
    transition: all 0.3s ease;
}

.wintt-faq-item:hover .wintt-faq-question {
    color: #0045a1; /* Dunkleres Blau bei Hover */
    background-color: #f1f7fe; /* Dezenter blauer Schimmer */
}

/* ANTWORT: Standard & Hover */
.wintt-faq-answer {
    padding: 12px 18px;
    color: #5f6368; /* Standard Grau */
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.wintt-faq-item:hover .wintt-faq-answer {
    color: #000000; /* Sattes Schwarz für maximalen Lesekontrast */
}
/* 3. Mobile Ansicht (Break bei 600px für S21 Ultra Querformat-Support) */
@media screen and (max-width: 600px) {
    .wintt-table, .wintt-table thead, .wintt-table tbody, .wintt-table th, .wintt-table td, .wintt-table tr {
        display: block;
    }

    .wintt-table thead {
        display: none; /* Versteckt Kopfzeile auf Mobile */
    }

    .wintt-table tr {
        margin-bottom: 20px;
        border: 2px solid var(--wintt-border);
        border-radius: 12px;
        overflow: hidden;
    }

    /* Erste Spalte wird zum blauen Karten-Header */
    .wintt-table td:first-child {
        background-color: var(--wintt-primary);
        color: white;
        width: auto;
        text-align: center;
        border-right: none;
        padding: 12px;
    }

    .wintt-table td:first-child .wintt-feature-title {
        color: white;
    }

    .wintt-table td:first-child .wintt-small-info {
        color: rgba(255, 255, 255, 0.8);
    }

    /* Andere Zellen mit data-label Beschriftung */
    .wintt-table td:not(:first-child) {
        text-align: right;
        padding-left: 45%;
        position: relative;
        background-color: white;
    }

    .wintt-table td:not(:first-child)::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        text-align: left;
        color: var(--wintt-primary);
        font-size: 0.85rem;
    }
}

/* Schwarzen marker (Punkt) unterhalb des Artikels entfernen  */
/* FAQ-Schema Feld komplett verstecken (nur für Google sichtbar) */
.field-entry.seo-faq-schema {
    display: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Optional: Den gesamten Container verstecken, falls er nur dieses Feld enthält */
.astroid-article-events .fields-container {
    list-style-type: none !important;
}

/* Versteckt den leeren Bereich am Ende des Artikels, falls nur das SEO-Feld vorhanden ist */
.astroid-article-events:empty {
    display: none;
}
