/* ============================================================
   FIRECONTROL360 — Shared Stylesheet for subpages
   Tokens, reset, layout, nav, footer, buttons, utilities
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@700;800;900&family=Saira:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* TOKENS -------------------------------------------------- */
:root {
  --c-void:        #0c0e13;
  --c-slate:       #161920;
  --c-steel:       #1d2028;
  --c-ink:         #090b0f;
  --c-ash:         #6b7280;
  --c-mist:        #9ca3af;
  --c-smoke:       #e0e0e0;
  --c-snow:        #f5f5f5;
  --c-white:       #FFFFFF;
  --c-petrol:      #003B4A;
  --c-ember:       #E1E723;
  --c-ember-dark:  #C4CA09;
  --c-ember-700:   #9DA20E;
  --c-ember-glow:  rgba(225,231,35,0.20);
  --c-ember-dim:   rgba(225,231,35,0.12);

  --f-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --f-body:    'Saira', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;     --sp-24: 6rem;
  --sp-32: 8rem;

  --r-sm:   4px;  --r-md:   8px;  --r-lg:  16px;
  --r-xl:  24px;  --r-full: 9999px;

  --sh-sm:    0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --sh-md:    0 4px 16px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --sh-lg:    0 20px 48px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.10);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:  150ms; --t-base: 250ms; --t-slow: 400ms;
}

/* RESET --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); font-size: 1rem; line-height: 1.6;
  color: var(--c-void); background: var(--c-white);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--c-void); color: var(--c-white);
  padding: var(--sp-2) var(--sp-4); z-index: 9999;
  font-family: var(--f-body); font-size: 0.875rem;
  border-radius: 0 0 var(--r-sm) 0; transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--c-ember); outline-offset: 3px; border-radius: var(--r-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* LAYOUT -------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-8); } }

/* TYPOGRAPHY UTILITIES ------------------------------------ */
.label {
  display: inline-block;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-ember-700);
  padding: 4px 10px; border-radius: var(--r-full);
  border: 1px solid var(--c-ember-dim);
  background: var(--c-ember-dim); margin-bottom: var(--sp-5);
}
.label.on-dark { color: var(--c-ember); border-color: rgba(225,231,35,0.20); background: rgba(225,231,35,0.08); }

.section-heading {
  font-family: var(--f-display); font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800; letter-spacing: -0.01em; line-height: 1.05;
  text-transform: uppercase; color: var(--c-void);
  margin-bottom: var(--sp-5);
}
.section-heading.on-dark { color: var(--c-white); }
.section-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7; color: var(--c-ash); max-width: 60ch;
  margin-bottom: var(--sp-12);
}
.section-sub.on-dark { color: rgba(255,255,255,0.72); }

/* BUTTONS ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--f-display); font-size: 1rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background var(--t-base);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--c-ember); color: var(--c-void);
  border-color: var(--c-ember);
}
.btn-primary:hover {
  background: var(--c-ember-dark); border-color: var(--c-ember-dark);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(225,231,35,0.28);
}
.btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--c-white);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--c-void);
  border-color: var(--c-smoke);
}
.btn-outline:hover {
  background: var(--c-snow); border-color: var(--c-void);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--c-void); color: var(--c-white);
  border-color: var(--c-void);
}
.btn-dark:hover { background: var(--c-slate); transform: translateY(-2px); box-shadow: var(--sh-md); }

/* NAV ----------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--sp-4) 0;
  transition: background var(--t-base), box-shadow var(--t-base), padding var(--t-base);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-8);
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  padding: var(--sp-3) 0;
}
.nav__brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; flex-shrink: 0;
}
.nav__logomark { width: 26px; height: auto; }
.nav__wordmark {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-white);
  line-height: 1;
}
.nav__wordmark em { font-style: normal; color: var(--c-ember); }
.nav.scrolled .nav__wordmark { color: var(--c-void); }
.nav.scrolled .nav__wordmark em { color: var(--c-ember-700); }
/* For subpages with light hero, the nav wordmark should be dark from the start */
.nav--light .nav__wordmark { color: var(--c-void); }
.nav--light .nav__wordmark em { color: var(--c-ember-700); }
.nav--light .nav__link { color: var(--c-ash); }
.nav--light .nav__link:hover { color: var(--c-void); }
.nav__links {
  display: none; align-items: center; gap: var(--sp-8);
  list-style: none;
}
@media (min-width: 768px) { .nav__links { display: flex; } }
.nav__link {
  font-family: var(--f-body); font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.72); letter-spacing: 0.02em;
  transition: color var(--t-fast);
}
.nav__link:hover { color: var(--c-white); }
.nav.scrolled .nav__link { color: var(--c-ash); }
.nav.scrolled .nav__link:hover { color: var(--c-void); }
/* Actions wrapper (Start + Demo buttons) */
.nav__actions {
  display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0;
}

/* "Jetzt starten" ghost button */
.nav__start {
  display: none;
  align-items: center;
  padding: 9px 18px; border-radius: var(--r-full);
  font-family: var(--f-body); font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.80);
  border: 1.5px solid rgba(255,255,255,0.22);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  white-space: nowrap; text-decoration: none;
}
@media (min-width: 640px) { .nav__start { display: inline-flex; } }
.nav__start:hover {
  color: var(--c-white); border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06); transform: translateY(-1px);
}
.nav.scrolled .nav__start,
.nav--light .nav__start {
  color: var(--c-ash); border-color: var(--c-smoke); background: transparent;
}
.nav.scrolled .nav__start:hover,
.nav--light .nav__start:hover {
  color: var(--c-void); border-color: var(--c-ash);
  background: var(--c-snow); transform: translateY(-1px);
}

.nav__cta {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r-full);
  background: var(--c-ember); color: var(--c-void) !important;
  font-family: var(--f-display); font-size: 0.875rem;
  font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap; text-decoration: none; flex-shrink: 0;
}
.nav__cta:hover { background: var(--c-ember-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(225,231,35,0.28); }
.nav__cta:active { transform: translateY(0); }
@media (max-width: 480px) { .nav__cta-text { display: none; } .nav__cta { padding: 10px 12px; } }

/* ── MOBILE HAMBURGER ──────────────────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
@media (max-width: 767px) { .nav__burger { display: flex; } }
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s, width 0.2s;
  transform-origin: center;
}
.nav.scrolled .nav__burger span { background: var(--c-void); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV PANEL ──────────────────────────────────────────── */
.nav-mobile {
  position: fixed; inset: 0; z-index: 998;
  pointer-events: none;
}
.nav-mobile.is-open { pointer-events: all; }
.nav-mobile__backdrop {
  position: absolute; inset: 0;
  background: rgba(12,14,19,0.55);
  opacity: 0; transition: opacity 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-mobile.is-open .nav-mobile__backdrop { opacity: 1; }
.nav-mobile__panel {
  position: absolute; top: 0; right: 0;
  width: min(300px, 82vw); height: 100%;
  background: var(--c-void);
  border-left: 1px solid rgba(255,255,255,0.07);
  padding: 72px 28px 40px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
}
.nav-mobile.is-open .nav-mobile__panel { transform: translateX(0); }
.nav-mobile__list {
  list-style: none; padding: 0; margin: 0 0 auto;
  display: flex; flex-direction: column;
}
.nav-mobile__link {
  display: block; padding: 13px 0;
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; transition: color 0.2s;
}
.nav-mobile__link:hover,
.nav-mobile__link[aria-current="page"] { color: var(--c-ember); }
.nav-mobile__actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
}
.nav-mobile__login {
  display: flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.72);
  font-family: var(--f-body); font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-mobile__login:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.38); color: var(--c-white);
}
.nav-mobile__demo {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: var(--r-full);
  background: var(--c-ember); color: var(--c-void);
  font-family: var(--f-body); font-size: 0.9rem; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-mobile__demo:hover {
  background: var(--c-ember-dark); transform: translateY(-1px);
}

/* Active nav link */
.nav__link[aria-current="page"] {
  color: var(--c-ember) !important; font-weight: 600;
}
.nav.scrolled .nav__link[aria-current="page"],
.nav--light .nav__link[aria-current="page"] {
  color: var(--c-ember-700) !important; font-weight: 600;
}
/* Start app link in nav */
.nav__link--app {
  color: var(--c-ember) !important; font-weight: 600;
}
.nav.scrolled .nav__link--app,
.nav--light .nav__link--app {
  color: var(--c-ember-700) !important;
}

/* FOOTER -------------------------------------------------- */
.footer {
  background: var(--c-ink);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer__inner {
  display: grid; grid-template-columns: 1fr;
  gap: var(--sp-10); margin-bottom: var(--sp-12);
}
@media (min-width: 640px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand-name {
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--c-white); margin-bottom: var(--sp-3);
}
.footer__brand-name em { font-style: normal; color: var(--c-ember); }
.footer__brand-desc { font-size: 0.875rem; color: var(--c-mist); line-height: 1.6; }
.footer__col-title {
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); margin-bottom: var(--sp-4);
}
.footer__nav { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__nav a {
  font-size: 0.875rem; color: var(--c-mist);
  transition: color var(--t-fast);
}
.footer__nav a:hover { color: var(--c-white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  align-items: center; text-align: center;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer__copy { font-family: var(--f-mono); font-size: 0.68rem; color: rgba(255,255,255,0.65); letter-spacing: 0.05em; }
.footer__legal { display: flex; gap: var(--sp-6); }
.footer__legal a { font-family: var(--f-mono); font-size: 0.68rem; color: rgba(255,255,255,0.65); letter-spacing: 0.05em; transition: color var(--t-fast); }
.footer__legal a:hover { color: var(--c-white); }

/* SCROLL REVEAL ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s; } .d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.19s; } .d4 { transition-delay: 0.26s; }

/* PAGE HERO (for inner pages) ----------------------------- */
.page-hero {
  padding: calc(80px + var(--sp-24)) 0 var(--sp-20);
  background: var(--c-snow);
  border-bottom: 1px solid var(--c-smoke);
}
.page-hero__label { margin-bottom: var(--sp-4); }
.page-hero__heading {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.0;
  color: var(--c-void); margin-bottom: var(--sp-5);
}
.page-hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.75; color: var(--c-ash); max-width: 56ch;
}

/* CTA STRIP (shared) -------------------------------------- */
.cta-strip { padding: var(--sp-20) 0 var(--sp-24); background: var(--c-snow); text-align: center; }
.cta-strip__heading {
  font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; text-transform: uppercase; color: var(--c-void);
  margin-bottom: var(--sp-5); line-height: 1.0;
}
.cta-strip__sub { color: var(--c-ash); max-width: 50ch; margin: 0 auto var(--sp-10); line-height: 1.7; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }

/* PROSE (for legal pages) --------------------------------- */
.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--f-display); font-size: 1.5rem;
  font-weight: 800; text-transform: uppercase;
  color: var(--c-void); margin: var(--sp-10) 0 var(--sp-3);
}
.prose h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--c-void); margin: var(--sp-6) 0 var(--sp-2);
}
.prose p { color: var(--c-ash); margin-bottom: var(--sp-4); line-height: 1.75; }
.prose a { color: var(--c-petrol); text-decoration: underline; }
.prose ul { list-style: disc; padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
.prose ul li { color: var(--c-ash); margin-bottom: var(--sp-1); line-height: 1.7; }
.prose strong { color: var(--c-void); font-weight: 600; }

/* SHARED JS INIT (copy into each subpage script block) ---- */
/* Nav scroll + scroll reveal handled per-page             */

/* ============================================================
   LIGHTBOX
============================================================ */
.lb {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1),
              visibility 0.35s;
}
.lb--open { opacity: 1; visibility: visible; }

.lb__backdrop {
  position: absolute; inset: 0;
  background: rgba(12,14,19,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb__frame {
  position: relative; z-index: 1;
  max-width: min(92vw, 1280px);
  max-height: 90vh;
  transform: scale(0.88) translateY(12px);
  transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.lb--open .lb__frame { transform: scale(1) translateY(0); }

.lb__img {
  display: block;
  max-width: 92vw;
  max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
}

.lb__close {
  position: fixed; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.18s, transform 0.18s;
}
.lb__close:hover { background: rgba(255,255,255,0.22); transform: scale(1.08); }
.lb__close:focus-visible { outline: 2px solid #E1E723; outline-offset: 3px; }
