/* Wartungsmodus: Sperrseite, Vollbild-Sperre, Vorwarnung, Admin-Hinweis, Login-Hinweis.
   Nur Bootstrap-Variablen und einfache Farbwerte (funktioniert in allen Themes und im Darkmode). */

:root {
  --wt-akzent: #f59f00;
  --wt-akzent-dunkel: #b35c00;
  --wt-akzent-hell: rgba(245, 159, 0, .14);
}

/* ---------- Karte (Sperrseite + Overlay) ---------- */
.wt-karte {
  width: min(560px, calc(100vw - 2rem));
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-top: 6px solid var(--wt-akzent);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}
.wt-icon {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wt-akzent-hell);
  color: var(--wt-akzent);
  font-size: 2.2rem;
}
.wt-icon--ok { background: rgba(25, 135, 84, .14); color: var(--bs-success, #198754); }
.wt-titel { font-size: 1.6rem; font-weight: 700; margin: 0 0 .5rem; }
.wt-lead { font-size: 1.02rem; margin: 0 0 1rem; }
.wt-text {
  text-align: left;
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-left: 4px solid var(--wt-akzent);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin: 0 0 1rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wt-hinweis { color: var(--bs-secondary-color, #6c757d); font-size: .9rem; margin: 0; }
.wt-aktionen { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------- eigenständige Sperrseite ---------- */
body.wt-seite {
  min-height: 100vh; margin: 0;
  display: grid; place-items: center;
  background: var(--bs-secondary-bg, #e9ecef);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Vollbild-Sperre in offenen Seiten ---------- */
html.wt-gesperrt, html.wt-gesperrt body { overflow: hidden !important; }
.wt-overlay {
  position: fixed; inset: 0;
  z-index: 200000;                 /* über Modals (1055) und SweetAlert (1060) */
  display: grid; place-items: center;
  background: rgba(15, 18, 24, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Vorwarnung (Vorlaufzeit) ---------- */
.wt-banner {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 199000;                 /* auch über geöffneten Editierfenstern sichtbar */
  width: min(760px, calc(100vw - 2rem));
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff8e6; color: #3d2a00;
  border: 1px solid #f5c26b; border-left: 6px solid var(--wt-akzent);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  padding: .8rem 1rem;
  font-size: .95rem;
}
.wt-banner-icon { font-size: 1.5rem; color: var(--wt-akzent-dunkel); line-height: 1; }
.wt-banner .wt-text { background: rgba(255, 255, 255, .6); margin: .5rem 0 0; padding: .45rem .7rem; }
[data-bs-theme="dark"] .wt-banner { background: #3a2c0c; color: #ffe8b3; border-color: #8a6416; }
[data-bs-theme="dark"] .wt-banner-icon { color: var(--wt-akzent); }
[data-bs-theme="dark"] .wt-banner .wt-text { background: rgba(0, 0, 0, .25); }
[data-wt-countdown] { font-variant-numeric: tabular-nums; }

/* ---------- Hinweis für Super-Admins ---------- */
.wt-admin-chip {
  position: fixed; left: 16px; bottom: 16px;
  z-index: 199000;
  display: inline-flex; gap: .5rem; align-items: center;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: var(--wt-akzent); color: #2b1d00 !important;
  font-weight: 600; font-size: .88rem;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.wt-admin-chip:hover { background: #ffb53d; }

/* ---------- Login-Seite ---------- */
.wt-login-banner {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 2000;
  width: min(620px, calc(100vw - 2rem));
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff4f0; color: #4a1606;
  border: 1px solid #f1a38a; border-left: 6px solid #e8590c;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  padding: .8rem 1rem;
  font-size: .95rem;
}
.wt-login-banner > i { font-size: 1.5rem; color: #e8590c; line-height: 1; }
.wt-login-banner--hinweis { background: #fff8e6; color: #3d2a00; border-color: #f5c26b; border-left-color: var(--wt-akzent); }
.wt-login-banner--hinweis > i { color: var(--wt-akzent-dunkel); }

/* ---------- Verwaltungsseite ---------- */
.wt-status {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
}
.wt-status--aus { background: rgba(25, 135, 84, .14); color: var(--bs-success-text-emphasis, #0a3622); }
.wt-status--angekuendigt { background: var(--wt-akzent-hell); color: var(--wt-akzent-dunkel); }
.wt-status--aktiv { background: rgba(220, 53, 69, .14); color: var(--bs-danger-text-emphasis, #58151c); }
[data-bs-theme="dark"] .wt-status--angekuendigt { color: #ffc861; }
.wt-vorschau { position: relative; border-radius: 12px; background: rgba(15, 18, 24, .55); padding: 1.5rem .75rem; display: grid; place-items: center; }
.wt-vorschau .wt-karte { width: 100%; max-width: 480px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); padding: 1.5rem 1.25rem 1.25rem; }
