/* ====================================================================
   MYHEIZTEC — WARTUNGSSEITE (eigenständig, unabhängig von der Hauptseite)
   ====================================================================
   1. DESIGN SYSTEM
   2. HINTERGRUND-ANIMATIONEN (Lavalampe + Fräse)
   3. KARTE / INHALT
   4. COUNTDOWN
   5. LADELEISTE
   6. KONTAKT
   7. RESPONSIVE
   8. REDUCED MOTION
   ==================================================================== */

/* ====================================================================
   1. DESIGN SYSTEM
   ==================================================================== */
:root {
    --color-black: #0a0a0b;
    --color-anthracite: #16171b;
    --color-anthracite-2: #1e2024;
    --color-orange: #ff5a1f;
    --color-orange-light: #ff8145;
    --color-white: #ffffff;
    --color-text-muted: #a9abb1;
    --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    background: radial-gradient(ellipse at top, #1c1d21 0%, var(--color-black) 65%);
    color: var(--color-white);
    font-family: var(--font-body);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ====================================================================
   2. HINTERGRUND-ANIMATIONEN
   ==================================================================== */

/* -- Lavalampe: verschwommene, langsam driftende Glow-Kreise -- */
.lava {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.lava__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    background: radial-gradient(circle, rgba(255, 90, 31, 0.9) 0%, rgba(255, 90, 31, 0) 70%);
    will-change: transform;
}
.lava__blob--1 { width: 420px; height: 420px; top: -12%; left: -10%; animation: lava-drift-1 24s ease-in-out infinite alternate; }
.lava__blob--2 { width: 320px; height: 320px; top: 58%; left: 74%; animation: lava-drift-2 28s ease-in-out infinite alternate; animation-delay: -6s; }
.lava__blob--3 { width: 280px; height: 280px; top: 6%; left: 62%; opacity: 0.4; animation: lava-drift-3 20s ease-in-out infinite alternate; animation-delay: -3s; }
.lava__blob--4 { width: 360px; height: 360px; top: 72%; left: 2%; animation: lava-drift-4 26s ease-in-out infinite alternate; animation-delay: -11s; }

@keyframes lava-drift-1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(130px, 90px) scale(1.18); } }
@keyframes lava-drift-2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-110px, -80px) scale(0.88); } }
@keyframes lava-drift-3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 110px) scale(1.12); } }
@keyframes lava-drift-4 { from { transform: translate(0, 0) scale(1); } to { transform: translate(100px, -70px) scale(0.92); } }

/* -- Fräse, die endlos eine Schlangenlinie entlangfährt -- */
.mill-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.28;
    pointer-events: none;
}
.mill-bg__path {
    fill: none;
    stroke: var(--color-orange);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 16 12;
    animation: mill-dash-flow 1.4s linear infinite;
}
@keyframes mill-dash-flow { to { stroke-dashoffset: -56; } }

.mill-bg__head {
    fill: var(--color-black);
    stroke: var(--color-orange);
    stroke-width: 3;
    offset-path: path("M -80 130 H 260 a34 34 0 0 1 34 34 V 330 a34 34 0 0 0 34 34 H 640 a34 34 0 0 1 34 34 V 560 a34 34 0 0 0 34 34 H 900 a34 34 0 0 1 34 34 V 760 a34 34 0 0 0 34 34 H 1300");
    animation: mill-travel 16s linear infinite;
}
.mill-bg__head circle { fill: var(--color-orange); stroke: none; }
.mill-bg__chips { stroke: var(--color-orange-light); stroke-width: 2; stroke-linecap: round; }
.mill-bg__chips path { opacity: 0; animation: mill-chip-flicker 0.5s ease-in-out infinite; }
.mill-bg__chips path:nth-child(2) { animation-delay: 0.15s; }
.mill-bg__chips path:nth-child(3) { animation-delay: 0.3s; }

@keyframes mill-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes mill-chip-flicker { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ====================================================================
   3. KARTE / INHALT
   ==================================================================== */
.maintenance {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.maintenance__card {
    width: 100%;
    max-width: 640px;
    background: rgba(22, 23, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.maintenance__logo { height: 46px; width: auto; margin: 0 auto 1.75rem; }

.maintenance__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 0.9rem;
}
.maintenance__eyebrow::before,
.maintenance__eyebrow::after { content: ''; width: 20px; height: 1.5px; background: var(--color-orange); opacity: 0.6; }

.maintenance__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}
.maintenance__title span { color: var(--color-orange); }

.maintenance__text {
    color: var(--color-text-muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.65;
    max-width: 42ch;
    margin: 0 auto 2.25rem;
}

/* ====================================================================
   4. COUNTDOWN
   ==================================================================== */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.1rem);
    margin-bottom: 1.75rem;
}
.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 3.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 0.4rem;
}
.countdown__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-variant-numeric: tabular-nums;
    color: var(--color-white);
    line-height: 1;
}
.countdown__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}
.countdown__sep {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--color-orange);
    opacity: 0.6;
    margin-top: -1.2rem;
}

/* ====================================================================
   5. LADELEISTE
   ==================================================================== */
.progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}
.progress__bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-orange-light), var(--color-orange));
    position: relative;
    transition: width 1s linear;
}
.progress__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    width: 60px;
    animation: progress-shimmer 1.8s ease-in-out infinite;
}
@keyframes progress-shimmer {
    0% { transform: translateX(-80px); }
    100% { transform: translateX(220px); }
}
.progress__label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0 0 2.25rem;
}

/* ====================================================================
   6. KONTAKT
   ==================================================================== */
.contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact__item:hover,
.contact__item:focus-visible {
    background: rgba(255, 90, 31, 0.12);
    border-color: rgba(255, 90, 31, 0.4);
    transform: translateY(-2px);
}
.contact__icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact__icon svg { width: 16px; height: 16px; color: var(--color-white); }
.contact__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: nowrap;
}
.contact__text strong {
    font-family: var(--font-display);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-weight: 700;
}

a:focus-visible,
[role="progressbar"]:focus-visible {
    outline: 2.5px solid var(--color-orange);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ====================================================================
   7. RESPONSIVE
   ==================================================================== */
@media (max-width: 560px) {
    .maintenance__card { padding: 2rem 1.25rem; border-radius: 22px; }
    .countdown { gap: 0.4rem; }
    .countdown__item { min-width: 3rem; padding: 0.6rem 0.3rem; }
    .countdown__sep { margin-top: -0.9rem; }
    .contact { flex-direction: column; align-items: stretch; }
    .contact__item { justify-content: flex-start; }
}

/* ====================================================================
   8. REDUCED MOTION
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
    .lava__blob,
    .mill-bg__path,
    .mill-bg__head,
    .mill-bg__chips path,
    .progress__bar::after {
        animation: none !important;
    }
}
