/* BG AI – Landing + Dashboard (einheitlich, voll responsiv) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('./fire365-theme.css');

:root {
  /* Einheitlich Blau (Fire365 / health365 AC) */
  --bgai-ink: #0c1222;
  --bgai-text: #0f172a;
  --bgai-muted: #64748b;
  --bgai-border: #e2e8f0;
  --bgai-surface: #f0f4ff;
  --bgai-elevated: #ffffff;
  --bgai-accent: #2563eb;
  --bgai-accent-deep: #1d4ed8;
  --bgai-accent-soft: #dbeafe;
  --bgai-hero: linear-gradient(118deg, #172554 0%, #2563eb 48%, #1e40af 100%);
  --bgai-navy-bar: #0f172a;
  --bgai-warn: #ea580c;
  --bgai-success-bg: #ecfdf5;
  --bgai-success-border: #6ee7b7;
  --bgai-sidebar: #f8fafc;
  --bgai-radius: 12px;
  --bgai-sidebar-w: min(272px, 86vw);
  --bgai-pad-x: clamp(16px, 4.5vw, 24px);
  --bgai-pad-section: clamp(36px, 6vw, 56px);
  --bgai-header-h: 56px;
  --bgai-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bgai-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --bgai-shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --bgai-shadow-hero: 0 24px 48px rgba(37, 99, 235, 0.22);
}

body.bgai-landing,
body.bgai-dashboard {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--bgai-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

/* Überschriften: ausgewogene Zeilen, keine willkürlichen Einzelwörter wo möglich */
body.bgai-landing h1,
body.bgai-landing h2,
body.bgai-landing h3,
body.bgai-dashboard h2,
body.bgai-dashboard h3 {
  text-wrap: balance;
}

/* ========== Landing ========== */
.bgai-lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bgai-border);
}

.bgai-lp-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px var(--bgai-pad-x);
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'brand nav cta';
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.bgai-lp-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.bgai-lp-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.bgai-lp-brand-text {
  min-width: 0;
}

.bgai-lp-brand-text strong {
  display: block;
  font-size: clamp(15px, 2.5vw, 17px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bgai-lp-brand-text small {
  color: var(--bgai-muted);
  font-size: 12px;
  font-weight: 600;
}

.bgai-lp-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.bgai-lp-nav::-webkit-scrollbar {
  height: 4px;
}

.bgai-lp-nav a {
  color: var(--bgai-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bgai-lp-nav a:hover {
  color: var(--bgai-accent);
  background: #f1f5f9;
}

.bgai-lp-header-cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.bgai-lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 clamp(14px, 3vw, 18px);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.bgai-lp-btn-block {
  width: 100%;
  box-sizing: border-box;
}

.bgai-lp-btn-ghost {
  background: #fff;
  color: var(--bgai-accent);
  border: 1px solid #bfdbfe;
}

.bgai-lp-btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.38);
}

@media (max-width: 900px) {
  .bgai-lp-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand cta'
      'nav nav';
  }

  .bgai-lp-nav {
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .bgai-lp-header-cta .bgai-lp-btn {
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 13px;
    min-height: 38px;
  }
}

@media (max-width: 420px) {
  .bgai-lp-header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'cta'
      'nav';
  }

  .bgai-lp-header-cta {
    grid-area: cta;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .bgai-lp-header-cta .bgai-lp-btn {
    width: 100%;
    justify-content: center;
  }
}

.bgai-lp-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bgai-muted);
  letter-spacing: 0.02em;
}

.bgai-lp-trial-teaser {
  margin-top: clamp(20px, 4vw, 28px);
  font-size: clamp(14px, 2.8vw, 15px);
  font-weight: 600;
  color: var(--bgai-accent);
  line-height: 1.5;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

/* —— Landing: Trial-Pille (Header) + Trial-Panel + Demo-Zeile —— */
.bgai-lp-trial-pill {
  display: none;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}

@media (min-width: 600px) {
  .bgai-lp-trial-pill {
    display: inline-flex;
  }
}

.bgai-lp-trial-pill--ended {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.bgai-lp-trial-panel {
  margin: 20px 0 22px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.bgai-lp-trial-panel--ended {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(254, 243, 199, 0.12);
}

.bgai-lp-trial-panel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.bgai-lp-trial-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}

.bgai-lp-trial-big {
  display: inline;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.bgai-lp-trial-unit {
  display: inline;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-left: 6px;
}

.bgai-lp-trial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

.bgai-lp-trial-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.bgai-lp-trial-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.bgai-lp-trial-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, #fff);
  transition: width 0.4s var(--bgai-ease);
}

.bgai-lp-trial-panel--ended .bgai-lp-trial-progress-fill {
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
}

.bgai-lp-trial-hint {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.bgai-lp-trial-status {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #fef3c7;
}

.bgai-lp-demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bgai-lp-demo-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  width: 100%;
  text-align: center;
}

@media (min-width: 560px) {
  .bgai-lp-demo-label {
    width: auto;
    text-align: left;
    margin-right: 4px;
  }

  .bgai-lp-demo-row {
    justify-content: center;
  }
}

.bgai-lp-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(180deg, #fff, #eff6ff);
  color: #1d4ed8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.bgai-lp-demo-btn:hover {
  filter: brightness(1.03);
}

.bgai-lp-demo-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.bgai-lp-demo-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Block „Trial & Demo“ unter dem Hero */
.bgai-lp-block-trial {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px) var(--bgai-pad-x) clamp(8px, 2vw, 16px);
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
}

.bgai-lp-block-trial h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.bgai-lp-block-trial > .bgai-lp-block-lead {
  margin: 0 0 22px;
  color: var(--bgai-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46rem;
}

.bgai-lp-trial-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.bgai-lp-info-card {
  border: 1px solid var(--bgai-border);
  border-radius: 16px;
  padding: 22px 20px;
  background: #fff;
  box-shadow: var(--bgai-shadow-sm);
}

.bgai-lp-info-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bgai-lp-info-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--bgai-muted);
  line-height: 1.55;
}

.bgai-lp-info-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
}

.bgai-lp-info-card li {
  margin-bottom: 6px;
}

.bgai-lp-info-card .bgai-lp-info-cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bgai-lp-info-card a.bgai-lp-mini-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: var(--bgai-accent-soft);
  color: var(--bgai-accent-deep);
  border: 1px solid #bfdbfe;
}

.bgai-lp-info-card a.bgai-lp-mini-btn:hover {
  background: #bfdbfe;
}

.bgai-lp-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--bgai-pad-section) var(--bgai-pad-x) clamp(36px, 6vw, 48px);
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
  text-align: center;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
  border-radius: 0 0 24px 24px;
}

.bgai-lp-hero h1 {
  margin: 0 auto 16px;
  max-width: 22rem;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.bgai-lp-hero p {
  margin: 0 auto 28px;
  max-width: 40rem;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--bgai-muted);
  line-height: 1.55;
}

.bgai-lp-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.bgai-lp-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(28px, 5vw, 36px);
}

.bgai-lp-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: clamp(12px, 2vw, 13px);
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.bgai-lp-section {
  padding: var(--bgai-pad-section) var(--bgai-pad-x);
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
  border-top: 1px solid var(--bgai-border);
}

.bgai-lp-section h2 {
  text-align: center;
  font-size: clamp(22px, 3.5vw, 26px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bgai-lp-section .bgai-lp-lead {
  text-align: center;
  color: var(--bgai-muted);
  max-width: 40rem;
  margin: 0 auto 36px;
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.55;
}

.bgai-lp-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.bgai-lp-card {
  border: 1px solid var(--bgai-border);
  border-radius: var(--bgai-radius);
  padding: clamp(18px, 3vw, 22px);
  background: var(--bgai-elevated);
  box-shadow: var(--bgai-shadow-sm);
  min-width: 0;
  transition: border-color 0.2s var(--bgai-ease), box-shadow 0.2s var(--bgai-ease);
}

@media (hover: hover) and (pointer: fine) {
  .bgai-lp-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--bgai-shadow-md);
  }
}

.bgai-lp-card h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 2.2vw, 17px);
  font-weight: 700;
  line-height: 1.25;
}

.bgai-lp-card p {
  margin: 0;
  font-size: 14px;
  color: var(--bgai-muted);
  line-height: 1.55;
}

.bgai-lp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.bgai-lp-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bgai-accent-soft);
  color: var(--bgai-accent-deep);
}

.bgai-lp-pricing {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.bgai-lp-price-card {
  border: 1px solid var(--bgai-border);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 28px);
  background: #fff;
  min-width: 0;
}

.bgai-lp-price-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.bgai-lp-price-card .price {
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 800;
  color: var(--bgai-accent);
  margin-bottom: 12px;
  line-height: 1.2;
}

.bgai-lp-price-sub {
  color: var(--bgai-muted);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.45;
}

.bgai-lp-price-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--bgai-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bgai-lp-outro {
  text-align: center;
  padding-bottom: clamp(48px, 10vw, 64px);
}

.bgai-lp-outro-h {
  margin-bottom: 16px;
}

.bgai-lp-outro-lead {
  margin-bottom: 24px !important;
}

.bgai-lp-footer {
  padding: clamp(32px, 6vw, 40px) var(--bgai-pad-x);
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  background: #f8fafc;
  border-top: 1px solid var(--bgai-border);
  text-align: center;
  font-size: 13px;
  color: var(--bgai-muted);
  line-height: 1.5;
}

.bgai-lp-footer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

.bgai-lp-footer a {
  color: var(--bgai-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bgai-lp-footer a:hover {
  text-decoration: underline;
}

/* ========== Dashboard ========== */
.bgai-d-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--bgai-ease), visibility 0.22s var(--bgai-ease);
}

.bgai-d-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 901px) {
  .bgai-d-backdrop {
    display: none !important;
  }
}

.bgai-d-root {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bgai-surface);
}

.bgai-d-sidebar {
  width: var(--bgai-sidebar-w);
  max-width: 100%;
  flex-shrink: 0;
  background: var(--bgai-sidebar);
  border-right: 1px solid var(--bgai-border);
  display: flex;
  flex-direction: column;
  z-index: 200;
}

.bgai-d-side-head {
  padding: 18px 16px;
  border-bottom: 1px solid var(--bgai-border);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  box-sizing: border-box;
}

.bgai-d-side-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.bgai-d-side-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bgai-d-side-sub {
  font-size: 12px;
  color: var(--bgai-muted);
  font-weight: 600;
  line-height: 1.3;
}

.bgai-d-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px 20px;
  -webkit-overflow-scrolling: touch;
}

.bgai-d-nav-section {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 16px 10px 8px;
}

.bgai-d-nav-section:first-child {
  margin-top: 4px;
}

.bgai-d-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  min-width: 0;
}

.bgai-d-nav a:hover {
  background: #e2e8f0;
}

.bgai-d-nav a.is-active {
  background: var(--bgai-accent-soft);
  color: var(--bgai-accent-deep);
  box-shadow: inset 3px 0 0 0 var(--bgai-accent);
}

.bgai-d-nav .ic {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.bgai-d-side-foot {
  padding: 16px;
  border-top: 1px solid var(--bgai-border);
  font-size: 13px;
}

.bgai-d-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 12px;
}

.bgai-d-online::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.bgai-d-user {
  font-weight: 700;
  color: var(--bgai-text);
  margin-bottom: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bgai-d-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bgai-muted);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}

.bgai-d-logout:hover {
  color: var(--bgai-accent);
}

.bgai-d-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bgai-d-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.bgai-d-menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.bgai-d-menu-ic {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  vertical-align: middle;
}

.bgai-d-bar-navy {
  background: var(--bgai-navy-bar);
  color: #e2e8f0;
  padding: 10px max(var(--bgai-pad-x), env(safe-area-inset-right));
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 48px;
  box-sizing: border-box;
}

.bgai-d-bar-navy-titles {
  flex: 1;
  min-width: 0;
}

.bgai-d-bar-navy strong {
  color: #fff;
  font-size: clamp(14px, 2.5vw, 15px);
  font-weight: 700;
}

.bgai-d-bar-navy span {
  font-size: clamp(12px, 2.2vw, 13px);
  opacity: 0.85;
}

.bgai-d-strip-orange {
  background: var(--bgai-warn);
  color: #fff;
  text-align: center;
  padding: 10px max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
  font-size: clamp(12px, 2.6vw, 13px);
  font-weight: 700;
  line-height: 1.45;
}

.bgai-d-banner-trial {
  background: linear-gradient(92deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 12px max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(13px, 2.4vw, 14px);
  font-weight: 600;
  line-height: 1.45;
}

.bgai-d-banner-trial-text {
  flex: 1 1 220px;
  min-width: 0;
}

.bgai-d-banner-trial-cta {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.bgai-d-banner-trial-cta:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bgai-d-banner-green {
  background: var(--bgai-success-bg);
  border-bottom: 1px solid var(--bgai-success-border);
  padding: 12px max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
  font-size: clamp(13px, 2.4vw, 14px);
  font-weight: 600;
  color: #065f46;
  line-height: 1.45;
}

.bgai-d-content {
  padding: 20px var(--bgai-pad-x) max(28px, env(safe-area-inset-bottom));
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
  flex: 1;
  max-width: 100%;
  box-sizing: border-box;
}

.bgai-d-hero {
  border-radius: 16px;
  background: var(--bgai-hero);
  color: #fff;
  padding: clamp(20px, 4vw, 28px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 3vw, 24px);
  align-items: start;
  box-shadow: var(--bgai-shadow-hero);
  margin-bottom: 28px;
  min-width: 0;
}

.bgai-d-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bgai-d-hero p {
  margin: 0 0 16px;
  opacity: 0.92;
  font-size: clamp(14px, 2.2vw, 15px);
  line-height: 1.45;
}

.bgai-d-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: clamp(12px, 2vw, 13px);
  font-weight: 600;
  max-width: 100%;
  box-sizing: border-box;
}

.bgai-d-stats {
  display: flex;
  gap: clamp(16px, 3vw, 24px);
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.bgai-d-stat {
  min-width: min(120px, 100%);
}

.bgai-d-stat .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 4px;
  line-height: 1.2;
}

.bgai-d-stat .val {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 800;
  line-height: 1.1;
}

.bgai-d-quick-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bgai-d-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bgai-d-card {
  background: #fff;
  border: 1px solid var(--bgai-border);
  border-radius: var(--bgai-radius);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s var(--bgai-ease), transform 0.2s var(--bgai-ease);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .bgai-d-card:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
  }
}

.bgai-d-card-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bgai-accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 18px;
  flex-shrink: 0;
}

.bgai-d-card .cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
  line-height: 1.2;
}

.bgai-d-card .title {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
}

.bgai-d-muted-num {
  color: var(--bgai-muted);
  font-weight: 700;
}

.bgai-d-card .arrow {
  margin-top: 12px;
  color: var(--bgai-accent);
  font-size: 18px;
  font-weight: 700;
}

.bgai-d-footnote {
  margin-top: 28px;
  font-size: 13px;
  color: var(--bgai-muted);
  text-align: center;
  line-height: 1.55;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.bgai-d-footnote a {
  color: var(--bgai-accent);
  font-weight: 700;
  text-decoration: none;
}

.bgai-d-footnote a:hover {
  text-decoration: underline;
}

/* Dashboard: Tablet */
@media (max-width: 1100px) {
  .bgai-d-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Dashboard: Mobile + Sidebar Off-Canvas */
@media (max-width: 900px) {
  .bgai-d-menu-btn {
    display: inline-flex;
  }

  .bgai-d-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: none;
    transform: translateX(-102%);
    transition: transform 0.28s var(--bgai-ease);
    box-shadow: none;
    border-right: 1px solid var(--bgai-border);
    padding-top: env(safe-area-inset-top);
  }

  .bgai-d-sidebar.bgai-d-sidebar-open {
    transform: translateX(0);
    box-shadow: 16px 0 48px rgba(15, 23, 42, 0.18);
  }

  .bgai-d-root {
    flex-direction: column;
  }

  .bgai-d-main {
    width: 100%;
  }

  .bgai-d-hero {
    grid-template-columns: 1fr;
  }

  .bgai-d-stats {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .bgai-d-stat {
    text-align: center;
    flex: 1 1 100px;
  }

  .bgai-d-banner-trial {
    flex-direction: column;
    align-items: stretch;
  }

  .bgai-d-banner-trial-cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 560px) {
  .bgai-d-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== Startseite (Fire365-blau, Kacheln + große Buttons) ========== */
body.bgai-fw-app {
  background: var(--f365-page-bg, linear-gradient(180deg, #e8eef9 0%, #f1f5f9 35%, #f8fafc 100%));
  min-height: 100vh;
  min-height: 100dvh;
}

.bgai-fw-app .bgai-lp-header {
  background: var(--f365-header, linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%));
  border-bottom: 3px solid #2563eb;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
}

.bgai-fw-app .bgai-lp-header-inner {
  grid-template-columns: auto 1fr auto;
}

.bgai-fw-app .bgai-lp-brand {
  color: #fff;
}

.bgai-fw-app .bgai-lp-logo {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  font-size: 22px;
}

.bgai-fw-app .bgai-lp-brand-text small {
  color: #94a3b8;
}

.bgai-fw-app .bgai-lp-nav a {
  color: #cbd5e1;
}

.bgai-fw-app .bgai-lp-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.bgai-fw-app .bgai-lp-btn-ghost {
  background: transparent;
  color: #bfdbfe;
  border: 1px solid rgba(147, 197, 253, 0.45);
}

.bgai-fw-app .bgai-lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.bgai-fw-app .bgai-lp-btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
}

.bgai-fw-app .bgai-lp-btn-primary:hover {
  filter: brightness(1.05);
}

/* Hero-Band Feuerwehr */
.bgai-fw-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px) var(--bgai-pad-x) clamp(24px, 4vw, 36px);
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
}

.bgai-fw-hero-inner {
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px) clamp(20px, 3vw, 32px);
  background: linear-gradient(125deg, #0f172a 0%, #1e3a5f 38%, #1e40af 70%, #312e81 100%);
  color: #f8fafc;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.bgai-fw-hero-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 55%);
  pointer-events: none;
}

.bgai-fw-hero-inner > * {
  position: relative;
  z-index: 1;
}

.bgai-fw-hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

.bgai-fw-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.bgai-fw-hero-lead {
  margin: 0 0 22px;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.5;
  color: #e2e8f0;
  max-width: 42rem;
}

.bgai-fw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bgai-fw-btn-xl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s var(--bgai-ease), box-shadow 0.18s var(--bgai-ease), filter 0.18s;
}

.bgai-fw-btn-xl--ff {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
}

.bgai-fw-btn-xl--ff:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.bgai-fw-btn-xl--ohs {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.4);
}

.bgai-fw-btn-xl--ohs:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.bgai-fw-btn-xl--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.bgai-fw-btn-xl--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.bgai-fw-trial {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #bfdbfe;
}

/* Kachel-Raster */
.bgai-fw-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--bgai-pad-x) clamp(40px, 8vw, 64px);
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
}

.bgai-fw-block {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.bgai-fw-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.bgai-fw-block-title .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #bfdbfe, #93c5fd);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.bgai-fw-block-title--ohs .ic {
  background: linear-gradient(145deg, #dbeafe, #93c5fd);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.bgai-fw-block-lead {
  margin: 0 0 20px;
  color: var(--bgai-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 48rem;
}

.bgai-fw-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.bgai-fw-tile {
  display: flex;
  flex-direction: column;
  background: var(--bgai-elevated);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 0;
  transition: transform 0.2s var(--bgai-ease), box-shadow 0.2s var(--bgai-ease), border-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .bgai-fw-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
  }

  .bgai-fw-tile--ohs:hover {
    border-color: rgba(37, 99, 235, 0.45);
  }
}

.bgai-fw-tile-bar {
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.bgai-fw-tile-bar--ohs {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.bgai-fw-tile-bar--neutral {
  background: linear-gradient(90deg, #475569, #64748b);
}

.bgai-fw-tile-in {
  padding: 20px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bgai-fw-tile-ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bgai-fw-tile--ohs .bgai-fw-tile-ic {
  background: linear-gradient(145deg, #eff6ff, #bfdbfe);
}

.bgai-fw-tile--neutral .bgai-fw-tile-ic {
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.bgai-fw-tile-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
}

.bgai-fw-tile h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.bgai-fw-tile p {
  margin: 0;
  font-size: 14px;
  color: var(--bgai-muted);
  line-height: 1.45;
  flex: 1;
}

.bgai-fw-tile-footer {
  padding: 0 20px 20px;
}

.bgai-fw-tile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.bgai-fw-tile-btn--red {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.bgai-fw-tile-btn--red:hover {
  filter: brightness(1.05);
}

.bgai-fw-tile-btn--teal {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
}

.bgai-fw-tile-btn--teal:hover {
  filter: brightness(1.05);
}

.bgai-fw-tile-btn--outline {
  background: #fff;
  color: #1d4ed8;
  border: 2px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bgai-fw-tile-btn--outline:hover {
  border-color: #60a5fa;
  background: #eff6ff;
}

.bgai-fw-tile-btn--slate {
  background: linear-gradient(180deg, #64748b, #475569);
  color: #fff;
  box-shadow: 0 6px 18px rgba(71, 85, 105, 0.35);
}

.bgai-fw-app .bgai-lp-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #334155;
}

.bgai-fw-app .bgai-lp-footer a {
  color: #93c5fd;
}

.bgai-fw-app .bgai-lp-footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .bgai-fw-app .bgai-lp-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand cta'
      'nav nav';
  }
}

/* ========== health365 AC Dashboard (Referenz: Sidebar + Topbar + KPI + Panels) ========== */
body.bgai-dashboard.bgai-d-h365 {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  background: #f8f9fa;
}

.bgai-h365-root {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8f9fa;
}

.bgai-h365-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #1a2b4b;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  z-index: 200;
  min-height: 100vh;
  min-height: 100dvh;
  box-shadow: 4px 0 24px rgba(26, 43, 75, 0.12);
}

.bgai-h365-brand {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bgai-h365-logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.bgai-h365-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 12px 8px;
  padding: 12px 12px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  width: calc(100% - 24px);
  box-sizing: border-box;
}

.bgai-h365-context-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bgai-h365-context-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.bgai-h365-context-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.bgai-h365-context-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  margin-top: -4px;
  flex-shrink: 0;
  opacity: 0.85;
}

.bgai-h365-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 20px;
  -webkit-overflow-scrolling: touch;
}

.bgai-h365-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 4px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.bgai-h365-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.bgai-h365-nav a.is-active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.bgai-h365-nav-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.95;
}

.bgai-h365-nav-ic svg {
  display: block;
}

.bgai-h365-side-foot {
  padding: 14px 16px 18px;
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bgai-h365-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
}

.bgai-h365-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 56px;
  padding: 10px max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.bgai-h365-crumb {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.bgai-h365-topbar-fill {
  flex: 1;
  min-width: 8px;
}

.bgai-h365-trial-wrap {
  display: flex;
  align-items: center;
}

.bgai-h365-trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}

.bgai-h365-trial-ic {
  display: flex;
  color: #2563eb;
}

.bgai-h365-trial-ic svg {
  display: block;
}

.bgai-h365-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bgai-h365-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  cursor: pointer;
}

.bgai-h365-bell:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.bgai-h365-bell-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.bgai-h365-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 6px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.bgai-h365-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a2b4b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.bgai-h365-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bgai-h365-logout-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #64748b;
}

.bgai-h365-logout-ic:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.bgai-h365-demo-strip {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  text-align: center;
}

.bgai-h365-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bgai-h365-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-left)) 40px;
  padding-right: max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
}

.bgai-h365-page-title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.bgai-h365-page-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.bgai-h365-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bgai-h365-kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bgai-h365-kpi-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bgai-h365-kpi-ic svg {
  display: block;
}

.bgai-h365-kpi-ic--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.bgai-h365-kpi-ic--slate {
  background: #f1f5f9;
  color: #475569;
}

.bgai-h365-kpi-ic--red {
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
}

.bgai-h365-kpi-ic--green {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
}

.bgai-h365-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bgai-h365-kpi-val {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}

.bgai-h365-kpi-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.bgai-h365-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: start;
}

.bgai-h365-panel {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 18px 18px 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bgai-h365-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.bgai-h365-panel-h {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.bgai-h365-panel-head .bgai-h365-panel-h {
  margin-bottom: 0;
}

.bgai-h365-badge-demo {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

.bgai-h365-quick {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.bgai-h365-quick li {
  border-bottom: 1px solid #f1f5f9;
}

.bgai-h365-quick li:last-child {
  border-bottom: none;
}

.bgai-h365-quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  margin: 0 -4px;
  transition: background 0.15s ease;
}

.bgai-h365-quick-row:hover {
  background: #f8fafc;
}

.bgai-h365-quick-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.bgai-h365-quick-ic--cyan {
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.bgai-h365-quick-ic--purple {
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
}

.bgai-h365-quick-ic--pink {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.bgai-h365-quick-txt {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.bgai-h365-quick-arr {
  color: #94a3b8;
  font-size: 18px;
  font-weight: 600;
}

.bgai-h365-activity {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.bgai-h365-activity li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.bgai-h365-activity li:last-child {
  border-bottom: none;
}

.bgai-h365-act-msg {
  color: #334155;
  font-weight: 500;
  line-height: 1.4;
}

.bgai-h365-act-time {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.bgai-h365-foot {
  margin-top: 28px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.55;
}

.bgai-h365-foot a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.bgai-h365-foot a:hover {
  text-decoration: underline;
}

/* Menü-Button: auf hellem Topbar lesbar */
body.bgai-d-h365 .bgai-d-menu-btn {
  display: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.bgai-d-h365 .bgai-d-menu-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.bgai-d-h365 .bgai-h365-menu-label {
  font-size: 14px;
}

@media (max-width: 1100px) {
  .bgai-h365-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgai-h365-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.bgai-d-h365 .bgai-d-menu-btn {
    display: inline-flex;
  }

  .bgai-h365-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    transform: translateX(-102%);
    transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none;
    padding-top: env(safe-area-inset-top);
  }

  .bgai-h365-sidebar.bgai-h365-sidebar-open {
    transform: translateX(0);
    box-shadow: 16px 0 48px rgba(15, 23, 42, 0.2);
  }

  .bgai-h365-root {
    flex-direction: column;
  }

  .bgai-h365-main {
    width: 100%;
  }

  .bgai-h365-crumb {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }

  .bgai-h365-trial-wrap {
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }

  .bgai-h365-topbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .bgai-h365-kpis {
    grid-template-columns: 1fr;
  }

  .bgai-h365-user-name {
    max-width: 90px;
  }
}

/* ========== Helle Startseite (bgai-lp-v2) + Feature-Seite ========== */
body.bgai-lp-v2.bgai-fw-app {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 100%);
}

body.bgai-lp-v2 .bgai-lp-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.bgai-lp-v2 .bgai-lp-brand {
  color: #0f172a;
}

body.bgai-lp-v2 .bgai-lp-brand-text small {
  color: #64748b;
}

body.bgai-lp-v2 .bgai-lp-nav a {
  color: #475569;
}

body.bgai-lp-v2 .bgai-lp-nav a:hover {
  color: #2563eb;
  background: #eff6ff;
}

body.bgai-lp-v2 .bgai-lp-btn-ghost {
  background: #fff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

body.bgai-lp-v2 .bgai-lp-btn-ghost:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

body.bgai-lp-v2 .bgai-fw-hero-inner {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.07);
}

body.bgai-lp-v2 .bgai-fw-hero-inner::after {
  background: radial-gradient(ellipse 90% 70% at 90% 0%, rgba(37, 99, 235, 0.07), transparent 55%);
}

body.bgai-lp-v2 .bgai-fw-hero-kicker {
  color: #2563eb;
}

body.bgai-lp-v2 .bgai-fw-hero-lead {
  color: #64748b;
}

body.bgai-lp-v2 .bgai-lp-trial-panel--light {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.bgai-lp-v2 .bgai-lp-trial-panel--light.bgai-lp-trial-panel--ended {
  background: #fffbeb;
  border-color: #fde68a;
}

body.bgai-lp-v2 .bgai-lp-trial-label {
  color: #64748b;
}

body.bgai-lp-v2 .bgai-lp-trial-big {
  color: #1d4ed8;
}

body.bgai-lp-v2 .bgai-lp-trial-unit {
  color: #334155;
}

body.bgai-lp-v2 .bgai-lp-trial-meta {
  color: #475569;
  text-align: right;
}

body.bgai-lp-v2 .bgai-lp-trial-sub {
  color: #64748b;
}

body.bgai-lp-v2 .bgai-lp-trial-progress {
  background: #e2e8f0;
}

body.bgai-lp-v2 .bgai-lp-trial-progress-fill {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

body.bgai-lp-v2 .bgai-lp-trial-hint {
  color: #64748b;
}

body.bgai-lp-v2 .bgai-lp-trial-hint code {
  font-size: 11px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

body.bgai-lp-v2 .bgai-lp-trial-status {
  color: #b45309;
}

body.bgai-lp-v2 .bgai-lp-demo-row {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

body.bgai-lp-v2 .bgai-lp-demo-label {
  color: #1d4ed8;
}

body.bgai-lp-v2 .bgai-lp-demo-btn--ghost {
  background: #fff;
  color: #2563eb;
  border: 1px solid #93c5fd;
}

body.bgai-lp-v2 .bgai-lp-demo-btn--ghost:hover {
  background: #eff6ff;
}

body.bgai-lp-v2 .bgai-fw-btn-xl--ghost {
  background: #fff;
  color: #2563eb;
  border: 2px solid #bfdbfe;
}

body.bgai-lp-v2 .bgai-fw-btn-xl--ghost:hover {
  background: #eff6ff;
}

/* Responsive: Startseite */
@media (max-width: 640px) {
  body.bgai-lp-v2 .bgai-fw-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  body.bgai-lp-v2 .bgai-fw-hero-actions .bgai-fw-btn-xl {
    width: 100%;
    justify-content: center;
  }

  body.bgai-lp-v2 .bgai-lp-demo-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.bgai-lp-v2 .bgai-lp-demo-btn,
  body.bgai-lp-v2 .bgai-lp-demo-btn--ghost {
    width: 100%;
    justify-content: center;
  }

  body.bgai-lp-v2 .bgai-lp-header-cta {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.bgai-lp-v2 .bgai-lp-trial-meta {
    text-align: left;
    width: 100%;
  }
}

/* Feature-Seite (fire365-ähnlicher Aufbau) */
body.bgai-fe {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 35%, #f1f5f9 100%);
  -webkit-font-smoothing: antialiased;
}

.bgai-fe-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--bgai-pad-x) 56px;
  padding-left: max(var(--bgai-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--bgai-pad-x), env(safe-area-inset-right));
}

.bgai-fe-hero {
  text-align: center;
  padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 32px);
}

.bgai-fe-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #0f172a;
}

.bgai-fe-hero .lead {
  margin: 0 auto 24px;
  max-width: 40rem;
  font-size: clamp(15px, 2.2vw, 18px);
  color: #64748b;
  line-height: 1.55;
}

.bgai-fe-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.bgai-fe-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bgai-fe-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: #2563eb;
}

.bgai-fe-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.bgai-fe-h2 {
  margin: clamp(36px, 6vw, 48px) 0 8px;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  scroll-margin-top: 88px;
}

.bgai-fe-h2 small {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
}

.bgai-fe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.bgai-fe-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bgai-fe-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
  }
}

.bgai-fe-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.bgai-fe-card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}

.bgai-fe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bgai-fe-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
}

.bgai-fe-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 20px;
}

.bgai-fe-price {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 22px;
  background: #fff;
}

.bgai-fe-price h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.bgai-fe-price .price-line {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 12px;
}

.bgai-fe-price ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.bgai-fe-outro {
  text-align: center;
  margin-top: 48px;
  padding: 32px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
  border: 1px solid #bfdbfe;
}

.bgai-fe-outro p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #334155;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .bgai-fe-stat {
    width: 100%;
    justify-content: center;
  }

  .bgai-fe-cta-row .bgai-lp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== smart@work Landing (Orientierung fire365.h365ac.de) ========== */
body.sw365-lp {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--f365-ink);
  background: var(--f365-page-bg);
  -webkit-font-smoothing: antialiased;
}

.sw365-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--f365-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sw365-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sw365-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--f365-ink);
  font-weight: 800;
}

.sw365-brand small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--f365-muted);
}

.sw365-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.sw365-nav a {
  color: var(--f365-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.sw365-nav a:hover {
  color: var(--f365-accent);
  background: var(--f365-accent-soft);
}

.sw365-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sw365-btn--primary {
  background: linear-gradient(180deg, var(--f365-blue-600) 0%, var(--f365-blue-800) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.sw365-btn--primary:hover {
  filter: brightness(1.05);
}

.sw365-btn--ghost {
  background: #fff;
  color: var(--f365-blue-800);
  border: 1px solid var(--f365-border);
}

.sw365-hero {
  background: var(--f365-header);
  color: #fff;
  text-align: center;
  padding: clamp(36px, 8vw, 72px) 16px clamp(40px, 7vw, 64px);
}

.sw365-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.sw365-hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
  margin: 0 0 14px;
}

.sw365-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.sw365-hero-lead {
  margin: 0 auto 28px;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.55;
  opacity: 0.92;
  max-width: 38rem;
}

.sw365-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.sw365-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
}

.sw365-stat strong {
  font-size: 17px;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}

.sw365-main {
  padding: clamp(28px, 5vw, 48px) 0 56px;
}

.sw365-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.sw365-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.sw365-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--f365-ink);
  letter-spacing: -0.02em;
}

.sw365-section-head p {
  margin: 0;
  color: var(--f365-muted);
  font-size: 16px;
  line-height: 1.5;
}

.sw365-trial-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--f365-border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: clamp(22px, 4vw, 32px);
  max-width: 560px;
  margin: 0 auto;
}

.sw365-trial-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--f365-ink);
}

.sw365-trial-card .sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--f365-muted);
  line-height: 1.45;
}

.sw365-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 560px) {
  .sw365-form-grid {
    grid-template-columns: 1fr;
  }
}

.sw365-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.sw365-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--f365-text);
}

.sw365-field input,
.sw365-field textarea {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--f365-border);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

.sw365-field textarea {
  min-height: 88px;
  resize: vertical;
}

.sw365-field--full {
  grid-column: 1 / -1;
}

.sw365-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--f365-muted);
  margin: 16px 0 18px;
  text-align: left;
}

.sw365-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sw365-trial-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.sw365-trial-msg--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.sw365-trial-msg--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.sw365-trial-msg[hidden] {
  display: none !important;
}

.sw365-footer {
  text-align: center;
  padding: 28px 16px 40px;
  color: var(--f365-muted);
  font-size: 14px;
  border-top: 1px solid var(--f365-border);
  background: rgba(255, 255, 255, 0.6);
}

.sw365-footer a {
  color: var(--f365-blue-700);
  text-decoration: none;
  font-weight: 600;
}

.sw365-footer a:hover {
  text-decoration: underline;
}

