/* public/assets/css/shared/error.css

/* ==========================================================================
 * Fehlerseitenstile und -komponenten
 * ========================================================================== */

/* ==========================================================================
 * INHALTSVERZEICHNIS:
 * 1. BASIS-LAYOUT & CONTAINER
 * 2. BILDER & VISUELLE ELEMENTE
 * 3. TYPOGRAFIE & TEXT
 * 4. BUTTONS & INTERAKTIONEN
 * 5. RESPONSIVE ANPASSUNGEN
 * 6. BARRIEREFREIHEIT & DARSTELLUNGSMODI
 * ========================================================================== */


/* ==========================================================================
 * 1. BASIS-LAYOUT & CONTAINER
 * ========================================================================== */

/* ---------- 1.1 Fehlerseiten-Bereich ---------- */
.error-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}


/* ==========================================================================
 * 2. BILDER & VISUELLE ELEMENTE
 * ========================================================================== */

/* ---------- 2.1 Fehlerbild ---------- */
.error-img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.error-img:hover {
    transform: scale(1.02);
}


/* ==========================================================================
 * 3. TYPOGRAFIE & TEXT
 * ========================================================================== */

/* ---------- 3.1 Überschriften & Text ---------- */
.error-section h1 {
    color: #212529;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.error-section .lead {
    color: #6c757d;
    font-weight: 400;
    line-height: 1.6;
}


/* ==========================================================================
 * 4. BUTTONS & INTERAKTIONEN
 * ========================================================================== */

/* ---------- 4.1 Button-Styling ---------- */
.error-section .btn {
    min-width: 180px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

.error-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.error-section .btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}


/* ==========================================================================
 * 5. RESPONSIVE ANPASSUNGEN
 * ========================================================================== */

/* ---------- 5.1 Tablet-Anpassungen ---------- */
@media (max-width: 768px) {
    .error-section {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .error-img {
        max-height: 320px;
        margin-bottom: 1.5rem;
    }
    
    .error-section .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .error-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .error-section .btn {
        min-width: 140px;
        margin-bottom: 0.75rem;
        display: block;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .error-section .btn:last-child {
        margin-bottom: 0;
    }
    
    .error-section .btn.me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }
}

/* ---------- 5.2 Mobile-Anpassungen ---------- */
@media (max-width: 480px) {
    .error-section {
        padding: 1rem 0;
    }
    
    .error-img {
        max-height: 250px;
    }
    
    .error-section .display-4 {
        font-size: 1.5rem;
    }
    
    .error-section p {
        font-size: 0.9rem;
    }
    
    .error-section .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
}


/* ==========================================================================
 * 6. BARRIEREFREIHEIT & DARSTELLUNGSMODI
 * ========================================================================== */

/* ---------- 6.1 Dark Mode ---------- */
@media (prefers-color-scheme: dark) {
    .error-section {
        background: linear-gradient(135deg, #343a40 0%, #495057 100%);
        color: #f8f9fa;
    }
    
    .error-section h1 {
        color: #f8f9fa;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .error-section .lead {
        color: #adb5bd;
    }
    
    .error-section .btn-primary {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }
    
    .error-section .btn-outline-primary {
        color: #6ea8fe;
        border-color: #6ea8fe;
    }
    
    .error-section .btn-outline-primary:hover {
        background-color: #6ea8fe;
        color: #000;
    }
}

/* ---------- 6.2 Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .error-img {
        transition: none;
    }
    
    .error-section .btn {
        transition: none;
    }
    
    .error-img:hover {
        transform: none;
    }
    
    .error-section .btn:hover {
        transform: none;
    }
}

/* ---------- 6.3 High Contrast Mode ---------- */
@media (prefers-contrast: high) {
    .error-section {
        background: #ffffff;
        color: #000000;
    }
    
    .error-section h1 {
        color: #000000;
        text-shadow: none;
    }
    
    .error-section .btn {
        border-width: 2px;
        box-shadow: none;
    }
}