/*
Theme Name:  AgencyPro Dark
Theme URI:   https://agencyname.de
Author:      AgencyName
Description: Premium Dark Agency Theme – Elementor-Ready
Version:     2.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:     GNU General Public License v2 or later
Text Domain: agencypro
*/

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --ac:    #b8ff00;
  --ac2:   #94cc00;
  --bg:    #0a0a0a;
  --bg2:   #0d0d0d;
  --bg3:   #111111;
  --bd:    #1e1e1e;
  --bd2:   rgba(184,255,0,.3);
  --t1:    #ffffff;
  --t2:    #aaaaaa;
  --t3:    #555555;
  --t4:    #333333;
  --fh:    'Syne', sans-serif;
  --fb:    'DM Sans', sans-serif;
  --r:     8px;
  --r-lg:  12px;
  --r-xl:  20px;
  --sh:    0 0 30px rgba(0,0,0,.4);
  --sh-ac: 0 0 20px rgba(184,255,0,.25);
}

[data-theme="light"] {
  --ac:  #5a8500;
  --ac2: #4a6e00;
  --bg:  #f5f5f2;
  --bg2: #ededea;
  --bg3: #ffffff;
  --bd:  #e0e0d8;
  --t1:  #0a0a0a;
  --t2:  #555555;
  --t3:  #888888;
  --t4:  #bbbbbb;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.7;
  color: var(--t1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--ac); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--ac); }
::selection { background: var(--ac); color: #000; }

/* ── ELEMENTOR: wichtig damit keine Layout-Brüche entstehen ── */
.elementor-section-stretched { max-width: 100% !important; left: 0 !important; }
.elementor-page { padding-top: 0 !important; }
.e-con { --padding-inline: 0; }

/* ── HEADER ────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 76px;
  display: flex; align-items: center;
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s, border-color .3s;
}
#site-header.scrolled {
  background: rgba(10,10,10,.97);
  border-bottom-color: var(--bd);
}
[data-theme="light"] #site-header {
  background: rgba(245,245,242,.92);
}
.header-inner {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--fh); font-size: 1.2rem; font-weight: 900;
  letter-spacing: -.03em; white-space: nowrap;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--ac); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #000; flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.site-nav a {
  font-size: .875rem; font-weight: 500; color: var(--t2);
  position: relative; padding-bottom: 2px;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--ac); transition: width .25s;
}
.site-nav a:hover { color: var(--t1); }
.site-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .875rem; flex-shrink: 0; }

/* Toggle */
.theme-toggle {
  width: 48px; height: 26px;
  position: relative; cursor: pointer; flex-shrink: 0;
  display: inline-block;
}
.theme-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--bg3); border: 1px solid var(--bd); border-radius: 99px;
  transition: background .25s, border-color .25s;
}
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--ac); border-radius: 50%;
  transition: transform .25s;
  pointer-events: none;
}
.theme-toggle input:checked ~ .toggle-knob { transform: translateX(22px); }
.toggle-labels {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5px; font-size: 10px; pointer-events: none; z-index: 1;
  color: var(--t3);
}

/* CTA btn */
.header-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--ac); color: #000 !important;
  font-family: var(--fb); font-size: .8125rem; font-weight: 700;
  padding: .55rem 1.25rem; border-radius: var(--r);
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--ac2); transform: translateY(-1px); color: #000 !important; }

/* Mobile burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 30px; background: none; border: none; cursor: pointer; padding: 0;
}
.burger span {
  display: block; height: 1.5px; background: var(--t1);
  border-radius: 2px; transition: all .25s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: rgba(5,5,5,.98); backdrop-filter: blur(20px);
  z-index: 9998; flex-direction: column;
  padding: 2rem 2rem 3rem; gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--fh); font-size: 2rem; font-weight: 900;
  color: var(--t3); padding: .75rem 0; border-bottom: 1px solid #111;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--ac); }
.mobile-nav .m-cta {
  margin-top: 1.5rem; background: var(--ac); color: #000 !important;
  text-align: center; padding: 1rem; border-radius: var(--r);
  border-bottom: none; font-size: 1rem;
}

/* ── MAIN CONTENT OFFSET ───────────────────────────────────── */
.site-main { padding-top: 76px; }
/* Elementor canvas pages: no offset (Elementor handles it) */
.elementor-page-template-canvas .site-main { padding-top: 0; }

/* ── FOOTER ────────────────────────────────────────────────── */
#site-footer {
  background: #050505;
  border-top: 1px solid #0d0d0d;
  font-family: var(--fb);
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
}
.footer-brand p { font-size: .875rem; color: #3a3a3a; line-height: 1.8; max-width: 250px; margin-top: 1rem; }
.footer-col h6 {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ac); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .875rem; color: #3a3a3a; transition: color .2s, padding-left .2s; }
.footer-col ul a:hover { color: var(--t1); padding-left: 3px; }
.footer-social { display: flex; gap: .625rem; margin-top: 1.5rem; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid #1a1a1a; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: #3a3a3a; transition: all .2s;
}
.footer-social a:hover { border-color: var(--ac); color: var(--ac); background: rgba(184,255,0,.06); }
.footer-glow { height: 1px; background: linear-gradient(90deg,transparent,var(--ac),transparent); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 1.25rem 2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .75rem; color: #2a2a2a;
}
.footer-bottom a { color: #2a2a2a; }
.footer-bottom a:hover { color: var(--t1); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}
