/**
 * Offline / Wartungsseite
 */

/* ── Layout ──────────────────────────────────────── */
.offline-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background-color: var(--nwa-blue-900);
  background-image: url('../images/background.webp');
  background-size: cover;
  background-position: center 65%;
  position: relative;
}

/* Overlay */
.offline-body::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 27, 42, 0.92) 0%,
    rgba(13, 27, 42, 0.80) 50%,
    rgba(13, 27, 42, 0.92) 100%
  );
  z-index: 0;
}

/* ── Glow-Dekorationen ───────────────────────────── */
.offline-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.offline-glow--1 {
  width: 600px; height: 600px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 65%);
  filter: blur(2px);
  animation: offlineGlow 9s ease-in-out infinite;
}
.offline-glow--2 {
  width: 400px; height: 400px;
  bottom: -80px; left: 5%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 65%);
  filter: blur(2px);
  animation: offlineGlow 12s ease-in-out infinite 3s reverse;
}

@keyframes offlineGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.08); }
}

/* ── Zentrierung ─────────────────────────────────── */
.offline-main {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
}

/* ── Logo ────────────────────────────────────────── */
.offline-logo {
  height: 44px;
  margin-bottom: var(--space-2xl);
}

/* ── Karte ───────────────────────────────────────── */
.offline-card {
  width: 100%;
  background: var(--nwa-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ── Status-Badge ────────────────────────────────── */
.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nwa-cyan-600);
  background: #ECFEFF;
  border: 1px solid var(--nwa-cyan-100);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  margin-bottom: var(--space-lg);
}
.offline-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nwa-cyan-500);
  animation: offlineDotPulse 2s ease-in-out infinite;
}

@keyframes offlineDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

/* ── Texte ───────────────────────────────────────── */
.offline-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--nwa-text-900);
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
}

.offline-msg {
  font-size: var(--fs-sm);
  color: var(--nwa-text-500);
  line-height: 1.7;
  margin: 0 0 var(--space-2xl);
}

/* ── Joomla-Systemmeldungen ──────────────────────── */
.offline-main .alert {
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.offline-main .alert-error,
.offline-main .alert-danger {
  background: var(--nwa-error-bg);
  color: var(--nwa-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.offline-main .alert-success {
  background: var(--nwa-success-bg);
  color: var(--nwa-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

/* ── Trennlinie vor Login ─────────────────────────── */
.offline-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--nwa-text-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.offline-divider::before,
.offline-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--nwa-border);
}

/* ── Formular ────────────────────────────────────── */
.offline-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ── Hilfslink (z. B. Passwort vergessen) ─────────── */
.offline-sublink {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
}
.offline-sublink a {
  color: var(--nwa-cyan-600);
  text-decoration: none;
}
.offline-sublink a:hover { text-decoration: underline; }

/* ── Footer-Hinweis ──────────────────────────────── */
.offline-footer {
  margin-top: var(--space-xl);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ── Schließen-Button (Login-Seite) ──────────────── */
.offline-close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  z-index: 10;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.offline-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.offline-close svg { width: 18px; height: 18px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
  .offline-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
  }
  .offline-logo { height: 36px; }
}
