/* ============================================================
   error.css — Error Page
   ============================================================ */

/* BEGIN LAYOUT */
.error-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px 16px;
}
/* END LAYOUT */

/* BEGIN BACKGROUND */
.error-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
/* END BACKGROUND */

/* BEGIN PANEL-DELTA */
/* Delta auf .panel.panel-solid — nur was davon abweicht */
.error-panel {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: 48px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    border-radius: var(--radius-lg);
    animation: scaleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.error-panel .btn-group {
    width: 100%;
}
/* END PANEL-DELTA */

/* BEGIN ERROR-CODE */
.error-code-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(80px, 18vw, 120px);
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 1;
    color: var(--accent);
    position: relative;
    z-index: 2;
}

.error-code-glow {
    position: absolute;
    inset: 0 -30px -30px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: errorGlowPulse 3s ease-in-out infinite;
}
/* END ERROR-CODE */

/* BEGIN CONTENT */
.error-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
}

.error-title {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.error-message {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.error-meta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    opacity: 0.7;
    margin-top: var(--space-1);
}

.error-meta:empty {
    display: none;
}
/* END CONTENT */

/* BEGIN RESPONSIVE */
@media (max-width: 900px)
{
    .error-panel {
        padding: 36px;
    }
}

@media (max-width: 640px)
{
    .error-panel {
        padding: 24px;
    }

    .error-panel .btn-group .btn {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 420px)
{
    .error-panel {
        padding: 20px;
    }
}
/* END RESPONSIVE */
