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

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ WIKI TABLES - Professionelle Div-basierte Tabellen
   ═══════════════════════════════════════════════════════════════════════ */

.wiki-table {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--background-color);
}

.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(auto-fit, minmax(150px, 1fr));
    gap: 1px;
}

.wiki-table-header .wiki-table-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--font-size-small);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

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

.wiki-table-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--font-size-body);
    color: var(--text-color);
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ PROCESS FLOW - Horizontale Prozess-Darstellung
   ═══════════════════════════════════════════════════════════════════════ */

.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--secondary-light));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
    position: relative;
}

.process-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-large);
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.process-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.process-description {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    line-height: 1.4;
}

.process-arrow {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ EMAIL TEMPLATES - Code-Block Styling
   ═══════════════════════════════════════════════════════════════════════ */

.email-template {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--background-color);
}

.email-template pre {
    margin: 0;
    padding: 2rem;
    background: var(--code-background);
    color: var(--code-text);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--font-size-small);
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.email-template code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ STATISTICS BOX - Metriken-Darstellung
   ═══════════════════════════════════════════════════════════════════════ */

.statistics-box {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.statistics-box h4 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-large);
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.statistics-box .stat-item {
    display: inline-block;
    margin: 0 2rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ CHECKLIST BOX - Checkliste mit Häkchen
   ═══════════════════════════════════════════════════════════════════════ */

.checklist-box {
    background: var(--success-light);
    border: 2px solid var(--success-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-box h4 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-medium);
    color: var(--success-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.checklist-box li {
    padding: 0.5rem 0;
    font-size: var(--font-size-body);
    color: var(--text-color);
    position: relative;
    padding-left: 2rem;
}

.checklist-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--success-color);
    font-weight: bold;
    font-size: var(--font-size-medium);
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ TIP BOX - Tipp-Box
   ═══════════════════════════════════════════════════════════════════════ */

.tip-box {
    background: var(--info-light);
    border-left: 4px solid var(--info-color);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tip-box h4 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-medium);
    color: var(--info-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tip-box p {
    margin: 0;
    font-size: var(--font-size-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ WARNING BOX - Warnung-Box
   ═══════════════════════════════════════════════════════════════════════ */

.warning-box {
    background: var(--warning-light);
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.warning-box h4 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-medium);
    color: var(--warning-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.warning-box p {
    margin: 0;
    font-size: var(--font-size-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   ⚠️ RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
        gap: 2rem;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .statistics-box .stat-item {
        display: block;
        margin: 1rem 0;
    }
    
    .wiki-table-header,
    .wiki-table-row {
        grid-template-columns: 1fr;
    }
    
    .wiki-table-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .wiki-table-cell:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .process-step {
        min-width: 100%;
    }
    
    .email-template pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}
