/* CyberLex Wartungsseite */
:root {
    --w-bg: #050a14;
    --w-bg2: #0b1525;
    --w-blue: #2563eb;
    --w-blue-light: #60a5fa;
    --w-blue-glow: rgba(37, 99, 235, 0.45);
    --w-text: #f1f5f9;
    --w-muted: #94a3b8;
    --w-border: rgba(148, 163, 184, 0.14);
    --w-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.wartung-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--w-font);
    color: var(--w-text);
    background: var(--w-bg);
    overflow-x: hidden;
}

.wartung-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wartung-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(5, 10, 20, 0.95) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5, 10, 20, 0.3) 0%, rgba(5, 10, 20, 0.85) 100%);
}

.wartung-scanline {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.012) 2px,
        rgba(255, 255, 255, 0.012) 4px
    );
    animation: wartungScan 8s linear infinite;
}

@keyframes wartungScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.wartung-grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.wartung-main {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Header */
.wartung-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: wartungFadeDown 0.8s ease both;
}

.wartung-logo {
    display: inline-flex;
    align-items: center;
}

.wartung-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 14px rgba(37, 99, 235, 0.45));
}

.wartung-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
    backdrop-filter: blur(8px);
}

.wartung-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    animation: wartungPulse 1.8s ease-in-out infinite;
}

@keyframes wartungPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Hero */
.wartung-hero {
    text-align: center;
    margin-bottom: 56px;
}

.wartung-shield-stage {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
    animation: wartungFadeUp 0.9s ease 0.1s both;
}

.wartung-shield {
    position: absolute;
    inset: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    z-index: 4;
    animation: wartungShieldFloat 4s ease-in-out infinite;
}

.wartung-shield-path {
    animation: wartungShieldPulse 3s ease-in-out infinite;
}

.wartung-shield-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: wartungCheckDraw 1.2s ease 0.6s forwards, wartungCheckGlow 2.5s ease 1.8s infinite;
}

@keyframes wartungCheckDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes wartungCheckGlow {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.6)); }
    50% { opacity: 0.75; filter: drop-shadow(0 0 12px rgba(147, 197, 253, 1)); }
}

@keyframes wartungShieldFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes wartungShieldPulse {
    0%, 100% { fill: rgba(37, 99, 235, 0.1); }
    50% { fill: rgba(37, 99, 235, 0.2); }
}

.wartung-shield-glow {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
    animation: wartungGlowBreath 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes wartungGlowBreath {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.wartung-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.2);
    z-index: 2;
}

.wartung-ring--1 { animation: wartungRingExpand 3s ease-out infinite; }
.wartung-ring--2 { animation: wartungRingExpand 3s ease-out 1s infinite; }
.wartung-ring--3 { animation: wartungRingExpand 3s ease-out 2s infinite; }

@keyframes wartungRingExpand {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wartung-radar {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    opacity: 0.5;
}

.wartung-radar::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(37, 99, 235, 0.35) 40deg, transparent 80deg);
    animation: wartungRadar 4s linear infinite;
}

@keyframes wartungRadar {
    to { transform: rotate(360deg); }
}

.wartung-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(96, 165, 250, 0.15);
    z-index: 2;
}

.wartung-orbit--a { animation: wartungOrbit 12s linear infinite; }
.wartung-orbit--b { animation: wartungOrbit 18s linear infinite reverse; }

.wartung-orbit span {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--w-blue-light);
    box-shadow: 0 0 12px var(--w-blue-glow);
}

@keyframes wartungOrbit {
    to { transform: rotate(360deg); }
}

.wartung-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--w-muted);
    animation: wartungFadeUp 0.8s ease 0.2s both;
}

.wartung-title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    animation: wartungFadeUp 0.8s ease 0.3s both;
}

.wartung-title-line { display: block; }

.wartung-title-line--accent {
    color: var(--w-blue-light);
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.35);
}

.wartung-tagline {
    margin: 0 0 16px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--w-blue-light);
    animation: wartungFadeUp 0.8s ease 0.35s both;
}

.wartung-lead {
    margin: 0 auto 20px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--w-muted);
    animation: wartungFadeUp 0.8s ease 0.4s both;
}

.wartung-lead strong { color: #e2e8f0; }

.wartung-launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(30, 58, 138, 0.5));
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
    animation: wartungFadeUp 0.8s ease 0.45s both, wartungBadgeGlow 3s ease-in-out infinite;
}

@keyframes wartungBadgeGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25); }
    50% { box-shadow: 0 8px 48px rgba(37, 99, 235, 0.45); }
}

/* Countdown */
.wartung-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
    animation: wartungFadeUp 0.8s ease 0.5s both;
}

.wartung-count-box {
    min-width: 72px;
    padding: 14px 10px 10px;
    border-radius: 14px;
    background: rgba(15, 27, 51, 0.85);
    border: 1px solid var(--w-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wartung-count-num {
    display: block;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    transition: transform 0.25s ease, color 0.25s ease;
}

.wartung-count-num.is-tick {
    animation: wartungCountTick 0.35s ease;
}

@keyframes wartungCountTick {
    0% { transform: scale(1.15); color: var(--w-blue-light); }
    100% { transform: scale(1); color: #fff; }
}

.wartung-count-label {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--w-muted);
}

.wartung-count-sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(96, 165, 250, 0.45);
    padding-bottom: 18px;
    animation: wartungSepBlink 1s step-end infinite;
}

@keyframes wartungSepBlink {
    50% { opacity: 0.2; }
}

.wartung-count-box--sec .wartung-count-num {
    color: var(--w-blue-light);
}

/* Progress */
.wartung-progress-wrap {
    max-width: 420px;
    margin: 0 auto;
    animation: wartungFadeUp 0.8s ease 0.55s both;
}

.wartung-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--w-muted);
}

.wartung-progress-head span:last-child {
    color: var(--w-blue-light);
    font-variant-numeric: tabular-nums;
}

.wartung-progress-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid var(--w-border);
}

.wartung-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa, #2563eb);
    background-size: 200% 100%;
    animation: wartungProgressShimmer 2s linear infinite;
    transition: width 0.8s ease;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
}

@keyframes wartungProgressShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.wartung-progress-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: wartungShine 2.5s ease-in-out infinite;
}

@keyframes wartungShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.wartung-progress-hint {
    margin: 10px 0 0;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.75);
    font-family: ui-monospace, "Cascadia Code", monospace;
    min-height: 1.4em;
}

/* Teaser */
.wartung-teaser {
    margin-bottom: 40px;
    animation: wartungFadeUp 0.9s ease 0.65s both;
}

.wartung-teaser-title {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 800;
    text-align: center;
}

.wartung-teaser-sub {
    margin: 0 auto 28px;
    max-width: 520px;
    text-align: center;
    font-size: 14px;
    color: var(--w-muted);
    line-height: 1.6;
}

.wartung-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wartung-feature {
    position: relative;
    padding: 22px 20px 20px;
    border-radius: 16px;
    background: rgba(15, 27, 51, 0.65);
    border: 1px solid var(--w-border);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    animation: wartungFeatureIn 0.7s ease both;
}

.wartung-feature:nth-child(1) { animation-delay: 0.7s; }
.wartung-feature:nth-child(2) { animation-delay: 0.8s; }
.wartung-feature:nth-child(3) { animation-delay: 0.9s; }
.wartung-feature:nth-child(4) { animation-delay: 1s; }

@keyframes wartungFeatureIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.wartung-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.85;
}

.wartung-feature--blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.wartung-feature--green::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.wartung-feature--red::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.wartung-feature--purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

.wartung-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.wartung-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.wartung-feature--blue .wartung-feature-icon { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.wartung-feature--green .wartung-feature-icon { background: rgba(22, 163, 74, 0.2); color: #4ade80; }
.wartung-feature--red .wartung-feature-icon { background: rgba(220, 38, 38, 0.2); color: #f87171; }
.wartung-feature--purple .wartung-feature-icon { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }

.wartung-feature h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.wartung-feature p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--w-muted);
}

.wartung-feature-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wartung-feature--blue .wartung-feature-tag { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
.wartung-feature--green .wartung-feature-tag { background: rgba(22, 163, 74, 0.2); color: #86efac; }
.wartung-feature--red .wartung-feature-tag { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }
.wartung-feature--purple .wartung-feature-tag { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }

/* Ticker */
.wartung-ticker-wrap {
    overflow: hidden;
    margin-bottom: 36px;
    padding: 12px 0;
    border-block: 1px solid var(--w-border);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.wartung-ticker {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: wartungTicker 40s linear infinite;
}

.wartung-ticker span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.65);
    white-space: nowrap;
}

.wartung-ticker span::before {
    content: '◆';
    margin-right: 10px;
    color: rgba(37, 99, 235, 0.5);
    font-size: 8px;
}

@keyframes wartungTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.wartung-footer {
    text-align: center;
    font-size: 13px;
    color: var(--w-muted);
    animation: wartungFadeUp 0.8s ease 1.1s both;
}

.wartung-footer p { margin: 0 0 6px; }

.wartung-footer-note a {
    color: var(--w-blue-light);
    text-decoration: none;
    font-weight: 600;
}

.wartung-footer-note a:hover { text-decoration: underline; }

@keyframes wartungFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wartungFadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .wartung-countdown { gap: 4px; }
    .wartung-count-box { min-width: 58px; padding: 10px 6px 8px; }
    .wartung-count-sep { padding-bottom: 14px; font-size: 1.1rem; }
    .wartung-features { grid-template-columns: 1fr; }
    .wartung-shield-stage { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .wartung-canvas { display: none; }
}
