/* ==========================================================================
   East-Side-Security – Design System
   Dunkel & modern mit Rot-Akzent
   ========================================================================== */

:root {
  --bg:          #181d25;
  --bg-alt:      #1f242e;
  --surface:     #262c38;
  --surface-2:   #2f3644;
  --border:      #3b4351;
  --text:        #e8ebf0;
  --text-muted:  #9aa3b2;
  --accent:      #9e141a;
  --accent-dark: #74100f;
  --accent-soft: rgba(158, 20, 26, 0.14);
  --radius:      14px;
  --radius-sm:   9px;
  --maxw:        1160px;
  --shadow:      0 18px 50px rgba(0, 0, 0, 0.45);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --on-accent:   #ffffff;
}

/* Mono-Variante: Pur Dunkel ohne Rot (kühles Stahlblau/Graphit) */
[data-theme="mono"] {
  --accent:      #7f8ea3;
  --accent-dark: #5d6b80;
  --accent-soft: rgba(127, 142, 163, 0.14);
  --on-accent:   #0c0e12;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.28rem; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.lead { color: var(--text-muted); font-size: 1.1rem; max-width: 620px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 1rem;
  box-shadow: 0 6px 20px var(--accent-soft);
}
.brand small { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu a {
  padding: 9px 15px; border-radius: 8px;
  font-size: 0.94rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.menu a:hover, .menu a.active { color: var(--text); background: var(--surface-2); }

.brand .logo-img { height: 40px; width: auto; display: block; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent) !important;
  padding: 11px 20px !important; border-radius: 9px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 22px var(--accent-soft);
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 10px;
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s, background 0.2s, border 0.2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 30px var(--accent-soft); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(158, 20, 26, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(158, 20, 26, 0.07), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px; opacity: 0.08; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 22px;
}
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 1.18rem; color: var(--text-muted); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 52px; }
.hero-badge { display: flex; align-items: center; gap: 11px; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.hero-badge .ico { color: var(--accent); display: grid; place-items: center; }
.hero-badge svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.06rem; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; text-align: center;
}
.stat .num { font-size: 2.6rem; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.stat .num span { color: var(--accent); }
.stat .lbl { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Cards / Services ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card .ico-box {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ico-box svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text); }
.feature-list .chk {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list .chk svg { width: 15px; height: 15px; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split .panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 20px; padding: 56px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.5;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 14px auto 28px; max-width: 560px; }
.cta-band .btn-white { background: #fff; color: var(--accent-dark); }
.cta-band .btn-white:hover { background: #0c0e12; color: #fff; }

/* ---------- Content pages ---------- */
.page-hero {
  padding: 68px 0 54px;
  background:
    radial-gradient(800px 380px at 85% -20%, rgba(158, 20, 26, 0.15), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; margin-bottom: 12px; }
.crumbs { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }

.prose { max-width: 780px; }
.prose p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.04rem; }
.prose h3 { color: #fff; margin: 34px 0 14px; }
.prose strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.info-item .ico svg { width: 22px; height: 22px; }
.info-item .k { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.info-item .v { font-weight: 600; font-size: 1.05rem; }
.info-item .v a:hover { color: var(--accent); }

form.card { padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 15px; color: var(--text);
  font-family: inherit; font-size: 0.98rem; transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid p { color: var(--text-muted); font-size: 0.96rem; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text); font-size: 0.96rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.86rem;
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Theme switcher ---------- */
.theme-switch {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; gap: 6px; padding: 6px;
  background: rgba(18, 21, 27, 0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow);
}
.theme-switch button {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.8rem;
  padding: 9px 15px; border-radius: 999px; color: var(--text-muted); background: transparent;
  transition: color 0.2s, background 0.2s;
}
.theme-switch button.active { color: var(--on-accent); background: var(--accent); }
.theme-switch .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.theme-switch .dot-red { background: #9e141a; }
.theme-switch .dot-mono { background: #7f8ea3; }
@media (max-width: 480px) { .theme-switch { bottom: 14px; right: 14px; } .theme-switch button { padding: 8px 11px; font-size: 0.74rem; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .burger { display: block; }
  .menu.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; gap: 4px;
  }
  .menu.open .nav-cta { justify-content: center; margin-top: 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 40px 26px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .hero-badges { gap: 16px; }
}
