/**
 * ═══════════════════════════════════════════════════════════════════════════
 * ⚠️⚠️⚠️ 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 TABLE SYSTEM - MODERN DIV-BASED LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

/* Main table container */
.wiki-table {
    margin: var(--spacing-large) 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);
}

/* Table header - professional styling */
.wiki-table-header {
    background: linear-gradient(135deg, var(--primary-color), #e67e22);
    color: var(--text-light);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-small);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table rows - alternating colors and hover effects */
.wiki-table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--background-color);
}

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

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

/* Table cells - proper spacing and alignment */
.wiki-table-cell {
    padding: var(--spacing-medium);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: var(--font-size-body);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Header cells - special styling */
.wiki-table-header .wiki-table-cell {
    font-weight: 700;
    font-size: var(--font-size-small);
    text-align: center;
    padding: var(--spacing-medium) var(--spacing-small);
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ WIKI CONTENT ELEMENTS - PROFESSIONAL INFO BOXES
   ═══════════════════════════════════════════════════════════════════════ */

/* Statistics box - highlighted information */
.wiki-statistics-box {
    background: linear-gradient(135deg, var(--secondary-color), #2c5f5f);
    color: var(--text-light);
    padding: var(--spacing-large);
    border-radius: 12px;
    margin: var(--spacing-large) 0;
    box-shadow: 0 6px 12px rgba(26, 119, 123, 0.2);
    border-left: 4px solid var(--primary-color);
}

.wiki-statistics-box h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-medium);
    font-size: var(--font-size-h4);
    font-weight: 600;
}

.wiki-statistics-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-statistics-box li {
    padding: var(--spacing-small) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.wiki-statistics-box li:last-child {
    border-bottom: none;
}

/* Workflow diagram - process steps */
.wiki-workflow-diagram {
    background: var(--background-light);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: var(--spacing-large);
    margin: var(--spacing-large) 0;
    position: relative;
}

.wiki-workflow-diagram::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    z-index: -1;
}

.wiki-workflow-diagram h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-medium);
    font-size: var(--font-size-h4);
    font-weight: 600;
}

.wiki-workflow-diagram ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-workflow-diagram li {
    counter-increment: step-counter;
    padding: var(--spacing-medium) 0 var(--spacing-medium) 3rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.wiki-workflow-diagram li:last-child {
    border-bottom: none;
}

.wiki-workflow-diagram li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-small);
}

/* Checklist - checkmark lists */
.wiki-checklist {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-large);
    margin: var(--spacing-large) 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wiki-checklist h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-medium);
    font-size: var(--font-size-h4);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.wiki-checklist h4::before {
    content: '✅';
    margin-right: var(--spacing-small);
    font-size: var(--font-size-h4);
}

.wiki-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-checklist li {
    padding: var(--spacing-small) 0 var(--spacing-small) 2rem;
    position: relative;
    font-weight: 500;
    color: var(--text-color);
}

.wiki-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: var(--success-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-small);
}

/* Warning box - important notices */
.wiki-warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: var(--spacing-large);
    margin: var(--spacing-large) 0;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
    position: relative;
}

.wiki-warning-box h4 {
    color: #856404;
    margin-bottom: var(--spacing-medium);
    font-size: var(--font-size-h4);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.wiki-warning-box h4::before {
    content: '⚠️';
    margin-right: var(--spacing-small);
    font-size: var(--font-size-h4);
}

.wiki-warning-box p {
    color: #856404;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ RESPONSIVE DESIGN - MOBILE-FIRST APPROACH
   ═══════════════════════════════════════════════════════════════════════ */

/* Mobile: Stack columns vertically */
@media (max-width: 768px) {
    .wiki-table-header,
    .wiki-table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .wiki-table-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: var(--spacing-small) var(--spacing-medium);
    }
    
    .wiki-table-cell:last-child {
        border-bottom: none;
    }
    
    .wiki-table-header .wiki-table-cell {
        background: var(--primary-color);
        font-weight: 600;
        text-align: left;
    }
    
    .wiki-table-row:hover {
        transform: none;
    }
}

/* Tablet: Optimized layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .wiki-table-cell {
        padding: var(--spacing-small);
        font-size: var(--font-size-small);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ ACCESSIBILITY IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════ */

/* Focus states for keyboard navigation */
.wiki-table-row:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wiki-table {
        border: 2px solid var(--text-color);
    }
    
    .wiki-table-header {
        background: var(--text-color);
        color: var(--background-color);
    }
    
    .wiki-table-row:hover {
        background: var(--text-color);
        color: var(--background-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wiki-table-row {
        transition: none;
    }
    
    .wiki-table-row:hover {
        transform: none;
    }
}
