/**
 * ═══════════════════════════════════════════════════════════════════════════
 * ⚠️⚠️⚠️ SAMPLE CSS-DATEI - DIESE DATEI IST FEDERFÜHREND! ⚠️⚠️⚠️
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * DIESE SAMPLE-DATEI IST DIE ABSOLUTE REFERENZ FÜR ALLE CSS-DATEIEN!
 * 
 * ABSOLUT VERBOTEN:
 * - Hartcodierte Farben (z.B. #f39324, rgb(255,0,0))
 * - Hartcodierte Schriften (z.B. Arial, Helvetica)
 * - CSS-Regeln duplizieren die bereits in base.css, widgets-*.css existieren
 * - Globale Selektoren (body, html, a, div) überschreiben
 * 
 * PFLICHT: NUR CSS Custom Properties verwenden!
 * - Farben: var(--primary-color), var(--secondary-color), var(--text-color)
 * - Schriften: var(--font-family-base), var(--font-size-body)
 * - Spacing: var(--spacing-small), var(--spacing-medium)
 * 
 * WARUM:
 * - Zentrale Theme-Verwaltung
 * - Konsistenz über alle Screens
 * - Einfache Anpassung des gesamten Designs an einer Stelle
 * 
 * INHALT:
 * - NUR screen-spezifische CSS-Regeln
 * - Keine Wiederholung von Basis-CSS
 * - Kann auch leer sein wenn keine spezifischen Styles nötig sind
 * 
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ SCREEN-SPEZIFISCHE TABELLEN-OPTIMIERUNG FÜR SSR-VERGLEICH
   ═══════════════════════════════════════════════════════════════════════ */

/* Tabellen-Container mit modernem Design */
.wiki-table {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: var(--background-color);
    border: 1px solid var(--border-color);
}

/* Tabellen-Header mit professionellem Design */
.wiki-table-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    font-family: var(--font-family-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.wiki-table-header .wiki-table-cell {
    padding: 1rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-table-header .wiki-table-cell:last-child {
    border-right: none;
}

/* Tabellen-Zeilen mit modernem Hover-Effekt */
.wiki-table-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--background-color);
}

.wiki-table-row:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wiki-table-row:last-child {
    border-bottom: none;
}

/* Zebra-Striping für bessere Lesbarkeit */
.wiki-table-row:nth-child(even) {
    background: var(--zebra-color);
}

.wiki-table-row:nth-child(even):hover {
    background: var(--hover-color);
}

/* Tabellen-Zellen mit professionellem Styling */
.wiki-table-cell {
    padding: 1rem 1.5rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    color: var(--text-color);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.wiki-table-cell:last-child {
    border-right: none;
}

/* Spezielle Styling für verschiedene Werte */
.wiki-table-cell:contains("Sehr hoch"),
.wiki-table-cell:contains("Very High") {
    color: var(--success-color);
    font-weight: 600;
}

.wiki-table-cell:contains("Hoch"),
.wiki-table-cell:contains("High") {
    color: var(--primary-color);
    font-weight: 600;
}

.wiki-table-cell:contains("Mittel"),
.wiki-table-cell:contains("Medium") {
    color: var(--warning-color);
    font-weight: 600;
}

.wiki-table-cell:contains("Niedrig"),
.wiki-table-cell:contains("Low") {
    color: var(--error-color);
    font-weight: 600;
}

.wiki-table-cell:contains("Ja"),
.wiki-table-cell:contains("Yes") {
    color: var(--success-color);
    font-weight: 600;
}

.wiki-table-cell:contains("Nein"),
.wiki-table-cell:contains("No") {
    color: var(--error-color);
    font-weight: 600;
}

/* Responsive Design für mobile Geräte */
@media (max-width: 768px) {
    .wiki-table {
        margin: 1rem 0;
        border-radius: 4px;
    }
    
    .wiki-table-header,
    .wiki-table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .wiki-table-header .wiki-table-cell,
    .wiki-table-cell {
        padding: 0.75rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        justify-content: flex-start;
    }
    
    .wiki-table-header .wiki-table-cell:last-child,
    .wiki-table-cell:last-child {
        border-bottom: none;
    }
    
    /* Mobile: Zeige Spalten-Header vor jedem Wert */
    .wiki-table-row .wiki-table-cell::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--primary-color);
        margin-right: 0.5rem;
    }
}

/* Tablet-Optimierung */
@media (min-width: 769px) and (max-width: 1024px) {
    .wiki-table-header .wiki-table-cell,
    .wiki-table-cell {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Desktop-Optimierung */
@media (min-width: 1025px) {
    .wiki-table {
        margin: 2.5rem 0;
    }
    
    .wiki-table-header .wiki-table-cell,
    .wiki-table-cell {
        padding: 1.25rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ WICHTIG: Oft reichen die Basis-CSS-Dateien aus!
   Diese Datei enthält nur screen-spezifische Tabellen-Anpassungen.
   ═══════════════════════════════════════════════════════════════════════ */
