/**
 * ═══════════════════════════════════════════════════════════════════════════
 * ⚠️⚠️⚠️ 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
 * 
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ PROFESSIONAL WIKI TABLES - MODERN DIV-BASED LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

/* Main table container */
.wiki-table {
    width: 100%;
    margin: var(--spacing-large) 0;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Table header row */
.wiki-table-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: linear-gradient(135deg, var(--primary-color), #e8821a);
    color: var(--text-light);
    font-family: var(--font-family-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-small);
}

/* Table data rows */
.wiki-table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--background-color);
}

/* Zebra striping */
.wiki-table-row:nth-child(even) {
    background: var(--background-light);
}

/* Hover effect */
.wiki-table-row:hover {
    background: var(--primary-color-light);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Individual cells */
.wiki-table-cell {
    padding: var(--spacing-medium);
    border-right: 1px solid var(--border-color);
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: 1.5;
    color: var(--text-color);
    display: flex;
    align-items: center;
    min-height: 50px;
}

/* Remove border from last cell in each row */
.wiki-table-cell:last-child {
    border-right: none;
}

/* Header cells */
.wiki-table-header .wiki-table-cell {
    padding: var(--spacing-medium);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Data cells */
.wiki-table-row .wiki-table-cell {
    text-align: left;
    word-wrap: break-word;
    hyphens: auto;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .wiki-table {
        margin: var(--spacing-medium) 0;
        border-radius: 4px;
    }
    
    .wiki-table-header,
    .wiki-table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .wiki-table-cell {
        padding: var(--spacing-small);
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: auto;
    }
    
    .wiki-table-cell:last-child {
        border-bottom: none;
    }
    
    /* Add labels for mobile view */
    .wiki-table-row .wiki-table-cell::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--primary-color);
        display: block;
        margin-bottom: 4px;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .wiki-table-header,
    .wiki-table-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .wiki-table-cell {
        padding: var(--spacing-small);
        font-size: var(--font-size-small);
    }
}

/* Desktop optimization */
@media (min-width: 1025px) {
    .wiki-table {
        margin: var(--spacing-large) 0;
    }
    
    .wiki-table-header,
    .wiki-table-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .wiki-table-cell {
        padding: var(--spacing-medium);
    }
}

/* Code blocks within tables */
.wiki-table-cell pre {
    background: var(--background-dark);
    color: var(--text-light);
    padding: var(--spacing-small);
    border-radius: 4px;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-small);
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
}

.wiki-table-cell code {
    background: var(--background-light);
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-small);
}

/* Strong text in cells */
.wiki-table-cell strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Links in cells */
.wiki-table-cell a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wiki-table-cell a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ WICHTIG: Oft reichen die Basis-CSS-Dateien aus!
   Wenn keine spezifischen Styles benötigt werden, kann diese Datei 
   fast leer sein (nur der Header-Kommentar bleibt).
   ═══════════════════════════════════════════════════════════════════════ */
