/* ============================================================
   STG Security GmbH — gemeinsames Stylesheet
   Dunkles, seriöses Design. Akzent: gedämpftes Messing.
   Signatur: "gesicherter Rahmen" (Eckwinkel) + Scan-Linie.
   ============================================================ */

:root{
  --ink:        #0E1116;   /* Basis, fast schwarz */
  --ink-2:      #141A21;   /* Panels */
  --ink-3:      #1B232C;   /* Karten / erhöht */
  --line:       #29323D;   /* Haarlinien */
  --line-soft:  #1F2730;
  --fog:        #8893A1;   /* gedämpfter Text */
  --mist:       #B9C2CD;   /* Sekundärtext */
  --snow:       #EDF1F6;   /* Überschriften / Primärtext */
  --brass:      #C7A24C;   /* Akzent (Messing) */
  --brass-dim:  #9A7C38;
  --brass-glow: rgba(199,162,76,.16);

  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-label: "Saira Condensed", "Inter", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--ink);
  color:var(--mist);
  font-family:var(--f-body);
  font-size:clamp(.98rem, .55vw + .9rem, 1.06rem);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* subtiles Perimeter-Raster im Hintergrund */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(900px 500px at 78% -8%, var(--brass-glow), transparent 60%),
    linear-gradient(transparent 0, transparent calc(100% - 1px), var(--line-soft) 100%) 0 0 / 100% 46px,
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--line-soft) 100%) 0 0 / 46px 100%;
  opacity:.5;
  pointer-events:none;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* ---------- Typografie ---------- */
h1,h2,h3,h4{
  font-family:var(--f-display);
  color:var(--snow);
  line-height:1.04;
  letter-spacing:-.02em;
  font-weight:800;
  margin:0 0 .5em;
}
h1{ font-size:clamp(2.3rem, 5.2vw, 4rem); }
h2{ font-size:clamp(1.8rem, 3.6vw, 2.8rem); }
h3{ font-size:clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing:-.01em; }
p{ margin:0 0 1rem; }
strong{ color:var(--snow); font-weight:600; }

.eyebrow{
  font-family:var(--f-label);
  text-transform:uppercase;
  letter-spacing:.32em;
  font-size:.78rem;
  font-weight:600;
  color:var(--brass);
  display:inline-flex; align-items:center; gap:.7rem;
  margin:0 0 1.1rem;
}
.eyebrow::before{
  content:""; width:26px; height:1px; background:var(--brass); opacity:.7;
}

.lead{ font-size:clamp(1.05rem,1.3vw,1.22rem); color:var(--mist); max-width:60ch; }

/* ---------- Layout ---------- */
.wrap{ width:min(var(--maxw), 92vw); margin-inline:auto; }
.section{ padding:clamp(3.5rem, 8vw, 7rem) 0; position:relative; }
.section--tight{ padding:clamp(2.5rem,5vw,4rem) 0; }
.divider{ height:1px; background:var(--line); border:0; margin:0; }

/* gesicherter Rahmen: Eckwinkel */
.frame{ position:relative; }
.frame::before,.frame::after{
  content:""; position:absolute; width:18px; height:18px; pointer-events:none;
  border:1px solid var(--brass); opacity:.85;
}
.frame::before{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.frame::after{ bottom:-1px; right:-1px; border-left:0; border-top:0; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(14,17,22,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled{ background:rgba(14,17,22,.94); border-color:var(--line); }
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:1.5rem; min-height:74px;
}
.brand{ display:flex; align-items:center; gap:.7rem; font-family:var(--f-display); }
.brand-logo{ height:54px; width:auto; display:block; }
.site-footer .brand-logo{ height:60px; }
@media (max-width:760px){ .brand-logo{ height:46px; } }
.brand .mark{ width:34px; height:34px; flex:0 0 auto; }
.brand .name{ color:var(--snow); font-weight:800; letter-spacing:.02em; font-size:1.18rem; line-height:1; }
.brand .name b{ color:var(--brass); font-weight:800; }
.brand .sub{ display:block; font-family:var(--f-label); font-size:.62rem; letter-spacing:.32em;
  text-transform:uppercase; color:var(--fog); margin-top:.28rem; }

.nav-links{ display:flex; align-items:center; gap:.35rem; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-family:var(--f-label); text-transform:uppercase; letter-spacing:.12em;
  font-size:.86rem; font-weight:600; color:var(--mist);
  padding:.55rem .8rem; border-radius:3px; transition:color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover{ color:var(--snow); background:var(--ink-3); }
.nav-links a.active{ color:var(--brass); }

.nav-cta{ display:inline-flex; }
.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:4px;
  width:44px; height:40px; cursor:pointer; color:var(--snow); align-items:center; justify-content:center;
}
.nav-toggle svg{ width:22px; height:22px; }

/* ---------- Buttons ---------- */
.btn{
  --bg:var(--brass); --fg:#0E1116;
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--f-label); text-transform:uppercase; letter-spacing:.14em;
  font-weight:600; font-size:.9rem;
  padding:.85rem 1.5rem; border:1px solid var(--bg); border-radius:4px;
  background:var(--bg); color:var(--fg); cursor:pointer;
  transition:transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 10px 30px -12px var(--brass-glow); }
.btn--ghost{ --bg:transparent; --fg:var(--snow); border-color:var(--line); }
.btn--ghost:hover{ border-color:var(--brass); color:var(--brass); box-shadow:none; }
.btn svg{ width:17px; height:17px; }

/* ---------- Hero ---------- */
.hero{ position:relative; padding:clamp(3.5rem,8vw,7rem) 0 clamp(3rem,7vw,6rem); overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.hero h1{ margin-bottom:1.1rem; }
.hero h1 .accent{ color:var(--brass); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-top:1.8rem; }
.hero-meta{ display:flex; flex-wrap:wrap; gap:1.6rem 2.4rem; margin-top:2.6rem; padding-top:1.8rem; border-top:1px solid var(--line); }
.hero-meta .item{ display:flex; align-items:center; gap:.7rem; font-family:var(--f-label);
  text-transform:uppercase; letter-spacing:.1em; font-size:.84rem; color:var(--mist); }
.hero-meta .item svg{ width:20px; height:20px; color:var(--brass); flex:0 0 auto; }

.hero-media{ position:relative; }
.hero-media .photo{
  position:relative; aspect-ratio:4/5; border:1px solid var(--line);
  background:var(--ink-2) center/cover no-repeat; overflow:hidden;
}
.hero-media .photo img{ width:100%; height:100%; object-fit:cover; filter:saturate(1.05); }
.hero-media .photo::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(14,17,22,.55) 100%),
             linear-gradient(90deg, rgba(14,17,22,.35), transparent 40%);
}
.scanline{
  position:absolute; left:0; right:0; height:2px; top:0;
  background:linear-gradient(90deg, transparent, var(--brass), transparent);
  box-shadow:0 0 16px 2px var(--brass-glow);
  animation:scan 6.5s var(--ease) infinite; opacity:.9; z-index:2;
}
@keyframes scan{ 0%{ top:4%; opacity:0 } 12%{ opacity:.9 } 88%{ opacity:.9 } 100%{ top:96%; opacity:0 } }
.hero-tag{
  position:absolute; left:14px; bottom:14px; z-index:3;
  font-family:var(--f-label); text-transform:uppercase; letter-spacing:.18em; font-size:.72rem;
  color:var(--snow); background:rgba(14,17,22,.7); border:1px solid var(--line);
  padding:.4rem .7rem; backdrop-filter:blur(4px);
}

/* ---------- Leistungs-Karten ---------- */
.section-head{ max-width:62ch; margin-bottom:clamp(2rem,4vw,3rem); }
.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1.1rem; }
.card{
  position:relative; background:var(--ink-2); border:1px solid var(--line);
  padding:1.7rem 1.6rem 1.8rem; transition:transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  display:flex; flex-direction:column; min-height:100%;
}
.card:hover{ transform:translateY(-4px); border-color:var(--brass-dim); background:var(--ink-3); }
.card .ico{ width:46px; height:46px; color:var(--brass); margin-bottom:1.1rem; }
.card .ico svg{ width:100%; height:100%; }
.card h3{ margin-bottom:.5rem; }
.card p{ color:var(--fog); font-size:.96rem; margin-bottom:1.1rem; }
.card .more{
  margin-top:auto; font-family:var(--f-label); text-transform:uppercase; letter-spacing:.14em;
  font-size:.82rem; font-weight:600; color:var(--mist); display:inline-flex; align-items:center; gap:.5rem;
}
.card:hover .more{ color:var(--brass); }
.card .more svg{ width:15px; height:15px; transition:transform .2s var(--ease); }
.card:hover .more svg{ transform:translateX(4px); }
.card .idx{
  position:absolute; top:1.3rem; right:1.4rem; font-family:var(--f-label);
  font-size:.78rem; letter-spacing:.1em; color:var(--line); font-weight:600;
}

/* ---------- Stats ---------- */
.stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.stat{ background:var(--ink); padding:2rem 1.6rem; }
.stat .num{ font-family:var(--f-label); font-weight:700; font-size:clamp(2.4rem,4.5vw,3.4rem);
  color:var(--snow); line-height:1; letter-spacing:.01em; }
.stat .num b{ color:var(--brass); font-weight:700; }
.stat .lbl{ font-family:var(--f-label); text-transform:uppercase; letter-spacing:.16em;
  font-size:.78rem; color:var(--fog); margin-top:.6rem; }

/* ---------- Detail-Reihen (Leistungen) ---------- */
.detail{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.8rem,4vw,3.5rem); align-items:center; }
.detail--flip .detail-media{ order:2; }
.detail + .detail{ margin-top:clamp(3rem,6vw,5rem); }
.detail-media{ position:relative; aspect-ratio:5/4; border:1px solid var(--line); overflow:hidden; background:var(--ink-2); }
.detail-media img{ width:100%; height:100%; object-fit:cover; filter:saturate(1.05); transition:transform .6s var(--ease), filter .4s var(--ease); }
.detail:hover .detail-media img{ transform:scale(1.03); }
.detail-media::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(14,17,22,.5)); }
.detail .ico{ width:44px; height:44px; color:var(--brass); margin-bottom:1rem; }
.detail ul{ list-style:none; padding:0; margin:1.2rem 0 0; display:grid; gap:.7rem; }
.detail li{ position:relative; padding-left:1.7rem; color:var(--mist); }
.detail li::before{ content:""; position:absolute; left:0; top:.62em; width:9px; height:9px;
  border:1px solid var(--brass); transform:rotate(45deg); }

/* ---------- Über uns / Werte ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4rem); align-items:start; }
.values{ display:grid; gap:1px; background:var(--line); border:1px solid var(--line); margin-top:1.5rem; }
.value{ background:var(--ink); padding:1.3rem 1.4rem; display:flex; gap:1rem; align-items:flex-start; }
.value svg{ width:26px; height:26px; color:var(--brass); flex:0 0 auto; margin-top:.15rem; }
.value h4{ font-family:var(--f-display); color:var(--snow); margin:0 0 .25rem; font-size:1.02rem; letter-spacing:-.01em; }
.value p{ margin:0; color:var(--fog); font-size:.93rem; }

.badges{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.4rem; }
.badge{ font-family:var(--f-label); text-transform:uppercase; letter-spacing:.1em; font-size:.78rem;
  color:var(--mist); border:1px solid var(--line); padding:.45rem .8rem; background:var(--ink-2); }

/* ---------- CTA-Band ---------- */
.cta-band{ background:var(--ink-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cta-band .inner{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem; }
.cta-band h2{ margin:0; max-width:18ch; }
.cta-band .sub{ color:var(--fog); margin:.6rem 0 0; }

/* ---------- Kontakt ---------- */
.contact{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4rem); }
.field{ display:flex; flex-direction:column; gap:.4rem; margin-bottom:1.1rem; }
.field label{ font-family:var(--f-label); text-transform:uppercase; letter-spacing:.14em; font-size:.76rem; color:var(--fog); }
.field input,.field textarea{
  background:var(--ink-2); border:1px solid var(--line); color:var(--snow);
  padding:.8rem .9rem; font-family:var(--f-body); font-size:.98rem; border-radius:3px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,.field textarea:focus{ outline:none; border-color:var(--brass); background:var(--ink-3); }
.field textarea{ resize:vertical; min-height:130px; }
.consent{ display:flex; gap:.7rem; align-items:flex-start; font-size:.85rem; color:var(--fog); margin:.2rem 0 1.2rem; }
.consent input{ margin-top:.25rem; accent-color:var(--brass); }
.note{ font-size:.82rem; color:var(--fog); border-left:2px solid var(--brass-dim); padding-left:.9rem; margin-top:1.2rem; }

.contact-info{ display:grid; gap:1rem; align-content:start; }
.info-row{ display:flex; gap:1rem; align-items:flex-start; padding:1.1rem 1.2rem; background:var(--ink-2); border:1px solid var(--line); }
.info-row svg{ width:24px; height:24px; color:var(--brass); flex:0 0 auto; margin-top:.15rem; }
.info-row .k{ font-family:var(--f-label); text-transform:uppercase; letter-spacing:.14em; font-size:.74rem; color:var(--fog); }
.info-row .v{ color:var(--snow); font-weight:500; }
.info-row a.v:hover{ color:var(--brass); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink-2); border-top:1px solid var(--line); padding:clamp(2.5rem,5vw,4rem) 0 1.6rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2rem; }
.footer-grid h4{ font-family:var(--f-label); text-transform:uppercase; letter-spacing:.18em;
  font-size:.78rem; color:var(--fog); font-weight:600; margin:0 0 1rem; }
.footer-grid a{ display:block; color:var(--mist); padding:.25rem 0; font-size:.94rem; }
.footer-grid a:hover{ color:var(--brass); }
.footer-brand p{ color:var(--fog); font-size:.92rem; max-width:34ch; margin-top:1rem; }
.footer-bottom{ display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center;
  margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid var(--line); font-size:.84rem; color:var(--fog); }
.footer-bottom .legal{ display:flex; gap:1.2rem; flex-wrap:wrap; }

/* ---------- Page-Header (Unterseiten) ---------- */
.page-head{ padding:clamp(2.6rem,6vw,4.5rem) 0 clamp(1.6rem,3vw,2.4rem); border-bottom:1px solid var(--line); }
.page-head h1{ font-size:clamp(2rem,4.4vw,3.2rem); margin-bottom:.6rem; }
.crumbs{ font-family:var(--f-label); text-transform:uppercase; letter-spacing:.16em; font-size:.76rem; color:var(--fog); margin-bottom:1rem; }
.crumbs a:hover{ color:var(--brass); }

/* ---------- Prosa (Impressum/Datenschutz) ---------- */
.prose{ max-width:74ch; }
.prose h2{ font-size:clamp(1.4rem,2.4vw,1.9rem); margin-top:2.2rem; }
.prose h3{ margin-top:1.6rem; color:var(--brass); }
.prose p,.prose li{ color:var(--mist); }
.prose a{ color:var(--brass); }
.prose ul{ padding-left:1.2rem; }

/* ---------- Reveal-Animation ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }


/* ---------- Zertifizierungen ---------- */
.certs{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.cert{ display:flex; gap:1.4rem; align-items:center; background:var(--ink-2);
  border:1px solid var(--line); padding:1.5rem 1.6rem; transition:border-color .25s var(--ease); }
.cert:hover{ border-color:var(--brass-dim); }
.cert img{ width:116px; height:116px; flex:0 0 auto; }
.cert h3{ margin:0 0 .45rem; }
.cert p{ margin:0; color:var(--fog); font-size:.94rem; }
@media (max-width:700px){ .certs{ grid-template-columns:1fr; } .cert{ flex-direction:column; text-align:center; gap:1rem; } }


/* ---------- Header-Zertifizierungszeile ---------- */
.header-certs{ border-top:1px solid var(--line-soft); }
.header-certs-inner{ display:flex; align-items:center; justify-content:flex-end; gap:1.4rem; min-height:38px; }
.hcert{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--f-label);
  text-transform:uppercase; letter-spacing:.08em; font-size:.72rem; color:var(--fog); white-space:nowrap; }
.hcert img{ width:22px; height:22px; flex:0 0 auto; }
.hcert b{ color:var(--mist); font-weight:600; letter-spacing:.06em; }
.hcert .hdesc{ font-style:normal; }
.hcert-sep{ width:1px; height:16px; background:var(--line); }
@media (max-width:760px){
  .header-certs-inner{ justify-content:center; gap:.9rem; min-height:34px; }
  .hcert{ font-size:.64rem; gap:.4rem; }
  .hcert img{ width:18px; height:18px; }
  .hcert-sep{ height:13px; }
}
@media (max-width:560px){
  .hcert .hdesc{ display:none; }
  .header-certs-inner{ gap:1rem; }
}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media{ max-width:440px; }
  .detail{ grid-template-columns:1fr; }
  .detail--flip .detail-media{ order:0; }
  .split,.contact{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:760px){
  .nav-links, .nav-cta{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .site-header.open .nav-links{
    display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch;
    gap:.2rem; background:var(--ink); border-bottom:1px solid var(--line); padding:.8rem 4vw 1.2rem;
  }
  .site-header.open .nav-links a{ padding:.8rem .6rem; }
  .site-header.open .nav-cta{ display:flex; padding:.4rem 4vw 1.2rem; background:var(--ink); }
  .site-header.open .nav-cta .btn{ width:100%; justify-content:center; }
  .cta-band .inner{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:480px){
  .footer-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
}
