/* =================================================================
   Elektro Emir Engineering GmbH – Shared site stylesheet
   Used by every page (index, leistungen, galerie, ueber-uns,
   kontakt, impressum, datenschutz)
   ================================================================= */

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

/* ========== SAMSUNG INTERNET / FORCED COLORS PROTECTION ==========
   Mobile browsers (especially Samsung Internet) sometimes "auto-adjust"
   colors of large text and gradient/background blocks, which made the
   hero title appear red instead of orange and broke the German flag stripe.
   forced-color-adjust:none tells the browser to keep our colors as-is. */
*,*::before,*::after{ forced-color-adjust: none; -webkit-forced-color-adjust: none; }

:root{
  color-scheme: dark;
  --bg:#0a0a0a;
  --bg-2:#111111;
  --bg-3:#171717;
  --line:#262626;
  --text:#f5f5f5;
  --text-dim:#e5e5e5;
  --text-muted:#cfcfcf;
  --accent:#FFB800;
  --accent-2:#FF7A00;
  --brand-red:#DC2626;
  --brand-red-2:#E11D2E;
  --flag-black:#000000;
  --flag-red:#DD0000;
  --flag-gold:#FFCE00;
  --danger:#ef4444;
  --ok:#10b981;
}

html{ scroll-behavior:smooth; }
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
.mono{ font-family:'JetBrains Mono',monospace; }
.container{ max-width:1280px; margin:0 auto; padding:0 24px; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }

/* ========== BACKGROUND GRID ========== */
.grid-bg{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,184,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,184,0,0.03) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ========== TOP BAR ========== */
.topbar{
  background:#000; border-bottom:1px solid var(--line);
  font-size:13px; color:var(--text-dim);
}
.topbar-inner{
  display:flex; justify-content:space-between; align-items:center;
  height:40px; gap:16px; flex-wrap:wrap;
}
.topbar-left{ display:flex; gap:20px; align-items:center; }
.topbar-left span{ display:flex; align-items:center; gap:6px; }
.topbar-left svg{ width:14px; height:14px; color:var(--accent); }
.emergency{
  color:#ff4d4d; font-weight:600;
  display:flex; align-items:center; gap:6px;
}
.emergency a{ color:#ff6b6b; }
.emergency a:hover{ color:#fff; }
.pulse{
  width:8px; height:8px; background:#ff3b3b; border-radius:50%;
  animation:pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(220,38,38,0.7); }
  50%{ box-shadow:0 0 0 8px rgba(220,38,38,0); }
}

/* ========== HEADER / NAV ========== */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,10,10,0.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  min-height:120px; padding:12px 0; gap:24px;
}
.logo{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.logo-mark{
  height:96px; padding:10px 22px; border-radius:14px;
  background:#fff; display:inline-flex; align-items:center;
  box-shadow:0 0 0 1px rgba(255,255,255,0.08), 0 12px 32px rgba(220,38,38,0.22);
  flex-shrink:0;
}
.logo-mark img{ height:100%; width:auto; object-fit:contain; display:block; }
.logo-tagline{
  display:block;
  width:232px;              /* matches logo-mark exactly: 188px image + 44px padding */
  font-size:11px; font-weight:500; color:var(--accent);
  line-height:1.5;
  margin-top:4px;
  box-sizing:border-box;
  word-wrap:break-word;
  overflow-wrap:break-word;
}
@media(max-width:900px){
  .nav{ min-height:96px; }
  .logo-mark{ height:72px; padding:7px 16px; }
  .logo-tagline{ font-size:10px; width:175px; line-height:1.4; }
}
@media(max-width:640px){
  .nav{ min-height:80px; }
  .logo-mark{ height:58px; padding:5px 12px; }
  .logo-tagline{ display:none; }
}
nav ul{ list-style:none; display:flex; gap:32px; align-items:center; }
nav a{
  font-size:14px; font-weight:600; color:var(--text-dim);
  transition:color .2s; position:relative;
}
nav a::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px;
  height:2px; background:var(--accent); border-radius:2px;
  opacity:.75; transition:opacity .2s, height .2s;
}
nav a:hover{ color:var(--accent); }
nav a:hover::after{ opacity:1; }
nav a.active{ color:var(--accent) !important; font-weight:800; }
nav a.active::after{ opacity:1; height:3px; bottom:-7px; }
.mobile-menu a.active{ color:var(--accent) !important; font-weight:800; }

.nav-right{ display:flex; align-items:center; gap:16px; }
.lang-switch{
  display:flex; gap:0; background:var(--bg-2); border:1px solid var(--line);
  border-radius:6px; overflow:hidden;
}
.lang-switch button{
  padding:8px 10px; font-size:11px; font-weight:700;
  color:var(--text-dim); letter-spacing:0.05em;
  transition:all .2s; border-right:1px solid var(--line);
}
.lang-switch button:last-child{ border-right:none; }
.lang-switch button:hover{ color:var(--text); background:var(--bg-3); }
.lang-switch button.active{ color:#000; background:var(--accent); }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 22px; font-size:14px; font-weight:600;
  border-radius:4px; transition:all .2s;
  border:1px solid transparent; white-space:nowrap;
}
.btn-primary{
  background:var(--accent); color:#000;
  box-shadow:0 0 0 1px rgba(255,184,0,0.4);
}
.btn-primary:hover{
  background:#fff; transform:translateY(-1px);
  box-shadow:0 8px 24px rgba(255,184,0,0.25);
}
.btn-outline{ border-color:var(--line); color:var(--text); }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); }

.burger{ display:none; width:40px; height:40px; position:relative; }
.burger span{
  display:block; position:absolute; left:10px; height:2px; width:20px;
  background:var(--text); transition:.2s;
}
.burger span:nth-child(1){ top:14px; }
.burger span:nth-child(2){ top:19px; }
.burger span:nth-child(3){ top:24px; }
.burger.open span:nth-child(1){ top:19px; transform:rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ top:19px; transform:rotate(-45deg); }
.mobile-menu{
  position:fixed; top:80px; left:0; right:0; bottom:0;
  background:var(--bg); padding:24px;
  transform:translateX(100%); transition:transform .3s;
  z-index:99; overflow-y:auto;
}
.mobile-menu.open{ transform:translateX(0); }
.mobile-menu ul{ list-style:none; }
.mobile-menu li{ border-bottom:1px solid var(--line); }
.mobile-menu a{ display:block; padding:18px 0; font-size:18px; font-weight:600; }
.mobile-menu .btn{ margin-top:20px; width:100%; justify-content:center; }

/* ========== SECTION BASE ========== */
section{ padding:100px 0; position:relative; }
.section-tag{
  display:inline-flex; align-items:center; gap:10px;
  font-family:'JetBrains Mono',monospace;
  font-size:12px; font-weight:600; color:var(--accent);
  letter-spacing:0.15em; text-transform:uppercase;
  margin-bottom:16px;
}
.section-tag::before{ content:''; width:24px; height:2px; background:var(--accent); }
h2.section-title{
  font-size:clamp(32px,4.5vw,52px); font-weight:800;
  letter-spacing:-0.02em; line-height:1.1;
  max-width:700px; margin-bottom:20px;
}
.section-sub{
  font-size:17px; color:var(--text-dim); max-width:640px;
  margin-bottom:64px;
}

/* ========== PAGE HERO (used on inner pages) ========== */
.page-hero{
  padding:80px 0 60px; border-bottom:1px solid var(--line);
  position:relative; overflow:hidden;
}
.page-hero::before{
  content:''; position:absolute; top:-160px; right:-160px;
  width:480px; height:480px;
  background:radial-gradient(circle, rgba(255,184,0,0.10), transparent 70%);
  pointer-events:none;
}
.page-hero-inner{ position:relative; max-width:880px; }
.page-tag{
  font-family:'JetBrains Mono',monospace; font-size:12px;
  color:var(--accent); letter-spacing:0.15em; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:10px; margin-bottom:16px;
}
.page-tag::before{ content:''; width:24px; height:2px; background:var(--accent); }
h1.page-title{
  font-size:clamp(36px,5.5vw,64px); font-weight:900;
  letter-spacing:-0.02em; line-height:1.05; margin-bottom:20px;
}
.page-lead{
  font-size:18px; color:var(--text-dim); max-width:680px;
  line-height:1.6;
}

/* ========== CTA STRIP (shared across pages) ========== */
.cta-strip{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#000; padding:80px 0; position:relative; overflow:hidden;
}
.cta-strip::before{
  content:''; position:absolute; inset:0;
  background-image:repeating-linear-gradient(
    -45deg, transparent, transparent 20px,
    rgba(0,0,0,0.04) 20px, rgba(0,0,0,0.04) 40px
  );
}
.cta-inner{
  position:relative; display:flex; justify-content:space-between;
  align-items:center; gap:40px; flex-wrap:wrap;
}
.cta-inner h2{
  font-size:clamp(28px,3.5vw,42px); font-weight:900;
  letter-spacing:-0.02em; max-width:640px;
}
.cta-inner .btn{
  background:#000; color:var(--accent); border-color:#000;
}
.cta-inner .btn:hover{ background:#fff; color:#000; }

/* ========== FOOTER ========== */
footer{
  background:#000; border-top:1px solid var(--line);
  padding:60px 0 30px;
}
.footer-grid{
  display:grid; grid-template-columns:1.1fr 0.8fr 2fr 0.8fr; gap:28px;
  margin-bottom:40px;
}
.footer-col h4{
  font-size:12px; color:var(--accent); letter-spacing:0.12em;
  text-transform:uppercase; margin-bottom:16px; font-weight:800;
  position:relative; padding-bottom:10px;
  width:max-content; max-width:100%;
}
.footer-col h4::after{
  content:''; position:absolute; left:0; bottom:0;
  width:100%; height:2px; background:var(--accent);
  border-radius:1px;
}
.footer-col ul{ list-style:none; }
.footer-col li{ margin-bottom:10px; }
.footer-col a{
  font-size:14px; color:var(--text-dim); transition:color .2s;
  display:block;
}
.footer-col a:hover{ color:var(--accent); }
/* Leistungen-Spalte: jeder Punkt einzeilig wie auf der Visitenkarte */
.footer-col:nth-child(3) a{
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.footer-brand p{
  font-size:14px; color:var(--text-dim); margin-top:16px;
  line-height:1.7; max-width:360px;
}
.socials{ display:flex; gap:10px; margin-top:20px; }
.socials a{
  width:38px; height:38px; border:1px solid var(--line);
  border-radius:6px; display:grid; place-items:center;
  transition:all .2s;
}
.socials a:hover{ border-color:var(--accent); color:var(--accent); }
.socials svg{ width:16px; height:16px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px; border-top:1px solid var(--line);
  font-size:13px; color:var(--text-muted); flex-wrap:wrap; gap:16px;
}
.footer-bottom a{ color:var(--text-muted); }
.footer-bottom a:hover{ color:var(--accent); }
.footer-legal{ display:flex; align-items:center; gap:10px; }
.footer-legal a{ text-decoration:none; }
.footer-legal .sep{ opacity:0.5; }

/* ========== REVEAL ANIMATION ========== */
.reveal{
  opacity:0; transform:translateY(30px);
  transition:opacity .7s, transform .7s;
}
.reveal.visible{ opacity:1; transform:translateY(0); }

/* ========== A11Y ========== */
.skip{
  position:absolute; left:-9999px; top:0;
  padding:10px 16px; background:var(--accent); color:#000;
  font-weight:600; border-radius:4px;
}
.skip:focus{ left:16px; top:16px; z-index:1000; }

/* ========== RESPONSIVE BASE ========== */
@media(max-width:1024px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-col:nth-child(3) a{
    white-space:normal; overflow:visible; text-overflow:clip;
    font-size:14px;
  }
}
@media(max-width:768px){
  .container{ padding:0 20px; }
  nav ul, .nav-right .btn{ display:none; }
  .burger{ display:block; }
  section{ padding:70px 0; }
  .footer-grid{ grid-template-columns:1fr; }
  .topbar-inner{ justify-content:center; }
  .topbar-left{ flex-direction:column; gap:4px; }
}
