/*
Theme Name: ATA Elektrotechnik
Theme URI: https://example.com/
Author: (generated)
Author URI: https://example.com/
Description: Schlankes Elementor-Theme mit Header & Footer passend zum Design "ATA Elektrotechnik".
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ata-elektrotechnik
Tags: custom-logo, one-column, elementor, dark
*/

/* =========================================================
   Design-Variablen (an Design-PDF angelehnt)
   ========================================================= */
:root{
  --ata-bg: #0b0b0b;
  --ata-bg-2: #101010;
  --ata-text: #ffffff;
  --ata-muted: #7f7f7f;
  --ata-muted-2: #6e6e6e;
  --ata-line: #2a2a2a;
  --ata-accent: #83C32E;
  --ata-accent-2: #6aae27;
  --ata-radius-pill: 999px;
  --ata-shadow-soft: 0 10px 30px rgba(0,0,0,.35);
  --ata-container: 1240px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 55%),
              linear-gradient(180deg, #0b0b0b 0%, #080808 100%);
  color: var(--ata-text);
  font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.ata-container{
  width: min(var(--ata-container), calc(100% - 48px));
  margin-inline: auto;
}

.site-content{ padding: 0; }

/* =========================================================
   Header (Logo links, Menü mittig, CTA rechts)
   ========================================================= */
.site-header{
  position: relative;
  z-index: 50;
  padding: 26px 0 18px;
}

.ata-header-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.ata-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.ata-brand .custom-logo-link img{ height: 54px; width: auto; display:block; }
.ata-brand .site-title{ margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .2px; }

.ata-nav{ justify-self: center; }
.ata-menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.ata-menu a{
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}
/* Underline (active + hover) */
.ata-menu a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.ata-menu li:hover > a::after,
.ata-menu .current-menu-item > a::after,
.ata-menu .current_page_item > a::after,
.ata-menu .current-menu-ancestor > a::after {
  transform: scaleX(1);
}
.ata-menu li:hover > a{ color: #fff; }

/* CTA Button rechts */
.ata-header-cta{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ata-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: var(--ata-radius-pill);
  background: var(--ata-accent);
  color: #0b0b0b;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--ata-shadow-soft);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.ata-btn:hover{
  background: #92d43a;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.ata-btn:active{ transform: translateY(0); }

/* Burger (mobile) */
.ata-burger{
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.ata-burger:focus-visible{ outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.ata-burger-lines{
  width: 26px;
  height: 2px;
  background: rgba(255,255,255,.9);
  position: relative;
  display: block;
}
.ata-burger-lines::before,
.ata-burger-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: rgba(255,255,255,.9);
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.ata-burger-lines::before{ top: -8px; }
.ata-burger-lines::after{ top: 8px; }

/* Mobile Nav Drawer */
.ata-mobile-nav{
  display: none;
  margin-top: 12px;
  padding: 18px 0 10px;
}
.ata-mobile-panel{
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
}
.ata-menu-mobile{
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.ata-menu-mobile a{ font-size: 18px; padding: 12px 0; }
.ata-btn--mobile{ width: 100%; height: 48px; margin-top: 10px; }

/* =========================================================
   Footer (3 Zeilen wie im Design)
   ========================================================= */
.site-footer{
  margin-top: 0;
  padding: 64px 0 38px;
  background: radial-gradient(900px 600px at 70% 10%, rgba(255,255,255,.05), rgba(255,255,255,0) 60%),
              linear-gradient(180deg, #070707 0%, #040404 100%);
}
.ata-footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ata-footer-top .custom-logo-link img{ height: 54px; width:auto; display:block; }
.ata-footer-top .ata-footer-menu .ata-menu a{ font-size: 17px; }
.ata-footer-divider{
  margin: 30px 0 44px;
  height: 1px;
  background: var(--ata-line);
  opacity: .9;
}

.ata-footer-mid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.ata-footer-address{
  color: var(--ata-muted);
  font-size: 18px;
  line-height: 1.7;
}
.ata-footer-contact{
  font-size: 18px;
  line-height: 1.7;
}
.ata-footer-contact .ata-phone{
  font-weight: 900;
  font-size: 20px;
}
.ata-footer-contact .ata-email a{
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(255,255,255,.55);
  color: rgba(255,255,255,.88);
}
.ata-footer-cta{
  text-align: right;
}
.ata-footer-cta .ata-cta-small{
  color: var(--ata-muted);
  font-size: 18px;
  margin-bottom: 8px;
}
.ata-footer-cta .ata-cta-big a{
  font-weight: 900;
  font-size: 20px;
  color: #fff;
}
.ata-footer-cta .ata-cta-big a:hover{ color: rgba(255,255,255,.9); }

.ata-footer-bottom{
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ata-muted-2);
  font-size: 15px;
}
.ata-social{
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.ata-social a{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #393837;
  transition: transform .15s ease, background .15s ease;
}
.ata-social a:hover{ transform: translateY(-1px); background: #4a4a4a; }
.ata-social svg{ width: 18px; height: 18px; fill: #fff; }

/* =========================================================
   Scroll-to-top Floating Button
   ========================================================= */
.ata-scroll-top{
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--ata-accent);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ata-shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
  z-index: 999;
}
.ata-scroll-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ata-scroll-top:hover{ background: #92d43a; transform: translateY(-1px); }
.ata-scroll-top svg{ width: 18px; height: 18px; fill: #0b0b0b; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px){
  .ata-menu{ gap: 22px; }
}
@media (max-width: 980px){
  .site-header{ padding: 18px 0 12px; }
  .ata-header-grid{ grid-template-columns: 1fr auto; }
  .ata-nav{ display:none; }
  .ata-burger{ display: inline-flex; }
  .ata-btn{ display: none; } /* CTA wird im Mobile Drawer gezeigt */
  .ata-mobile-nav{ display:block; }
  body.ata-nav-open .ata-mobile-nav{ display:block; }
  body.ata-nav-open .ata-mobile-panel{ display:block; }
  .ata-mobile-panel{ display:none; }
  /* Burger to X */
  body.ata-nav-open .ata-burger-lines{ background: transparent; }
  body.ata-nav-open .ata-burger-lines::before{ top: 0; transform: rotate(45deg); }
  body.ata-nav-open .ata-burger-lines::after{ top: 0; transform: rotate(-45deg); }
}
@media (max-width: 860px){
  .ata-footer-mid{ grid-template-columns: 1fr; text-align:left; }
  .ata-footer-cta{ text-align:left; }
  .ata-footer-top{ flex-direction: column; align-items:flex-start; }
  .ata-footer-top .ata-footer-menu .ata-menu{ flex-wrap: wrap; gap: 16px 22px; }
  .ata-footer-bottom{ flex-direction: column; align-items:flex-start; }
}
@media (max-width: 520px){
  .ata-container{ width: calc(100% - 32px); }
  .ata-scroll-top{ right: 16px; bottom: 16px; }
}
