/*
 * Custom PHP Framework
 * Ergänzende Styles zur Bootstrap-Basis.
 *
 * Grundsatz:
 * Bootstrap zuerst verwenden.
 * Eigenes CSS nur ergänzend und gezielt einsetzen.
 *
 * Eigene Design-Tokens werden unter --app-* definiert.
 * Bootstrap-spezifische Anpassungen erfolgen gezielt hier
 * oder später in einer separaten Theme-/Bootstrap-Anpassungsschicht.
 */

.status-page {
    --status-page-accent: #f5aa2a;
    --status-page-accent-strong: #e69312;
    --status-page-background: #ffc52f;
    --status-page-background-deep: #ffb21c;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    color: var(--app-text);
    background: linear-gradient(135deg, var(--status-page-background) 0%, var(--status-page-background-deep) 100%);
}

.status-page::before {
    position: absolute;
    z-index: -1;
    top: -48%;
    left: 50%;
    width: max(76rem, 150vw);
    height: 120%;
    content: "";
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--app-background);
}

.status-page-container {
    max-width: var(--app-content-max-width);
}

.status-page-navbar {
    position: relative;
    z-index: 1;
}

.status-page-brand {
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.status-page-brand:hover,
.status-page-brand:focus {
    color: var(--app-text);
}

.status-page-brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    color: #ffffff;
    border-radius: 50%;
    background: var(--status-page-accent);
    box-shadow: 0 0.4rem 1rem rgb(245 170 42 / 28%);
}

.status-page-status {
    padding: 0.45rem 0.75rem;
    color: var(--app-text-muted);
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: rgb(255 255 255 / 75%);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-page-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--status-page-accent);
    box-shadow: 0 0 0 0.2rem rgb(245 170 42 / 18%);
}

.status-page-hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 4.5rem);
    padding-top: clamp(2.5rem, 8vh, 6.5rem);
}

.status-page-copy {
    width: min(100%, 52rem);
}

.status-page-eyebrow {
    color: var(--status-page-accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.status-page-title {
    color: var(--status-page-accent);
    font-size: clamp(2.35rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.95;
    text-wrap: balance;
}

.status-page-description {
    max-width: 42rem;
    margin-inline: auto;
    color: var(--app-text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    text-wrap: balance;
}

.status-page-note,
.status-page-action {
    padding: 0.7rem 1rem;
    color: var(--app-text);
    border: 1px solid rgb(245 170 42 / 35%);
    border-radius: 999px;
    background: rgb(255 255 255 / 82%);
    box-shadow: 0 0.75rem 2rem rgb(65 48 18 / 8%);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-page-note .bi,
.status-page-action .bi {
    color: var(--status-page-accent-strong);
}

.status-page-action:hover,
.status-page-action:focus-visible {
    color: #ffffff;
    border-color: var(--status-page-accent-strong);
    background: var(--status-page-accent-strong);
}

.status-page-action:hover .bi,
.status-page-action:focus-visible .bi {
    color: #ffffff;
}

.status-page-illustration-slot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: min(100%, 62rem);
    min-height: clamp(10rem, 28vh, 20rem);
}

.status-page-illustration {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(16rem, 38vh, 28rem);
    object-fit: contain;
    object-position: center bottom;
}

.status-page:not(.status-page--construction) .status-page-hero {
    transform: translateY(clamp(5rem, 10vh, 7rem));
}

@media (max-width: 575.98px) {
    .status-page::before {
        top: -29%;
        width: 215vw;
        height: 94%;
    }

    .status-page-brand {
        max-width: 65%;
        font-size: 0.9rem;
    }

    .status-page-status {
        padding-inline: 0.6rem;
        font-size: 0.65rem;
    }

    .status-page-hero {
        min-height: calc(100vh - 4.25rem);
        padding-top: clamp(2rem, 7vh, 4rem);
    }

    .status-page-note,
    .status-page-action {
        max-width: 18rem;
        border-radius: 1rem;
    }

    .status-page-illustration-slot {
        min-height: clamp(11rem, 27vh, 16rem);
    }

    .status-page-illustration {
        height: clamp(13rem, 31vh, 18rem);
    }

    .status-page:not(.status-page--construction) .status-page-hero {
        transform: translateY(clamp(3rem, 8vh, 4.5rem));
    }
}

@media (prefers-reduced-motion: no-preference) {
    .status-page-status-dot {
        animation: status-page-status-pulse 2.4s ease-out infinite;
    }
}

@keyframes status-page-status-pulse {
    0%,
    45% {
        box-shadow: 0 0 0 0.2rem rgb(245 170 42 / 18%);
    }

    70%,
    100% {
        box-shadow: 0 0 0 0.65rem rgb(245 170 42 / 0%);
    }
}
