/* ============================================================
   global.css – BAERLIM-USER-FRONTEND
   Basis-Styles für alle Seiten
   ============================================================ */

@font-face {
  font-family: "NeverMindBauhaus-Heavy";
  src: url("/static/fonts/NeverMindBauhaus-Heavy.ttf") format("truetype");
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: #0a0a0a;
  min-height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }

/* ── Logo-Schrift ── */
.baerlim {
  font-family: "NeverMindBauhaus-Heavy", Arial, sans-serif;
  color: #fff;
  letter-spacing: -0.5px;
}
.com {
  font-family: "NeverMindBauhaus-Heavy", Arial, sans-serif;
  color: #1EC11E;
}

/* ── Links ── */
a { color: #fff; text-decoration: none; transition: color 0.14s; }
a:hover { color: #1EC11E; }

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif !important;
  font-weight: 700;
}

/* ── Page Wrapper ── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Main Content ── */
.page-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 110px 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── Form Section ── */
.form-section {
  width: 100%;
  max-width: 840px;
  position: relative;
  z-index: 2;
}

.form-section--wide {
  max-width: 1060px;
}

/* ── Section Divider ── */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 28px 0;
}

/* ── Utility ── */
.text-muted { color: rgba(255,255,255,0.50); font-size: 13px; }
.text-green  { color: #1EC11E; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.20);
  border-top-color: #1EC11E;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,10,0.90);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14px; color: #fff;
  z-index: 9000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.toast--success { border-color: rgba(30,193,30,0.55); }
.toast--error   { border-color: rgba(239,68,68,0.55); color: #ffb3b3; }

/* ── Modal Overlay ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }

.modal-dialog {
  background: rgba(14,14,14,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 32px;
  width: 100%; max-width: 480px;
  backdrop-filter: blur(24px);
}
.modal-dialog h2 { font-size: 20px; margin-bottom: 12px; }
.modal-dialog p  { color: rgba(255,255,255,0.72); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

/* ── Step Indicator ── */
.step-indicator {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.step-indicator__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.40);
}
.step-indicator__item--active { color: #1EC11E; }
.step-indicator__num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.step-indicator__sep {
  flex: 1; height: 1px;
  background: rgba(255,255,255,0.12);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-content { padding: 90px 16px 60px; }
}

/* ── Light Mode via data-theme="light" ────────────────────────────────
   Setzt Helligkeit + Kontrast auf alle Seiten wenn Dark Mode aus ist  */
[data-theme="light"] body {
  filter: none;
}
[data-theme="light"] body::before {
  background: rgba(255,255,255,0.45) !important;
}
[data-theme="light"] .page-wrapper {
  background: rgba(255,255,255,0.08);
}
[data-theme="light"] .panel,
[data-theme="light"] .settings-card,
[data-theme="light"] .bl-form-card,
[data-theme="light"] .confirm-card,
[data-theme="light"] .activation-card,
[data-theme="light"] .start-card {
  background: rgba(255,255,255,0.55) !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #111;
}
[data-theme="light"] .panel *,
[data-theme="light"] .settings-card *,
[data-theme="light"] .bl-form-card * {
  color: #111;
}
[data-theme="light"] .slabel,
[data-theme="light"] .setting-row__label,
[data-theme="light"] .welcome-title,
[data-theme="light"] .form-title,
[data-theme="light"] .settings-title,
[data-theme="light"] h1, [data-theme="light"] h2 {
  color: #111 !important;
}
[data-theme="light"] .setting-row__sub,
[data-theme="light"] .form-subtitle,
[data-theme="light"] .settings-sub {
  color: rgba(0,0,0,0.55) !important;
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .sch-input {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.18) !important;
  color: #111 !important;
}
[data-theme="light"] .site-footer {
  background: rgba(255,255,255,0.75) !important;
  border-color: rgba(0,0,0,0.10) !important;
}
[data-theme="light"] .site-footer,
[data-theme="light"] .site-footer a {
  color: #333 !important;
}
[data-theme="light"] header {
  background: rgba(255,255,255,0.75) !important;
  border-color: rgba(0,0,0,0.10) !important;
}
[data-theme="light"] .nav-menu {
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(0,0,0,0.10) !important;
}
[data-theme="light"] .nav-col a { color: #333 !important; }
[data-theme="light"] .logo-text  { color: #111 !important; }
[data-theme="light"] .hamburger-btn span { background: #111 !important; }
