/* style.css — Elektro Maier GmbH */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --navy:       #0F172A;
  --navy-2:     #1E293B;
  --navy-3:     #334155;
  --blue:       #1D4ED8;
  --blue-hover: #1E40AF;
  --blue-pale:  #EFF6FF;
  --orange:     #F97316;
  --orange-dk:  #EA580C;
  --text:       #0F172A;
  --muted:      #64748B;
  --light:      #94A3B8;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --border:     rgba(0,0,0,0.08);
  --r:          12px;
  --r-sm:       8px;
  --shadow:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
  --nav-h:      72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ── */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}
.section-head { text-align: center; max-width: 580px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.section-head p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dk); border-color: var(--orange-dk); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.6); }

/* ────────────────────────────────────────
   NAVBAR
──────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text { font-family: 'Oswald', sans-serif; }
.nav-logo-text strong { display: block; font-size: 1rem; font-weight: 700; color: var(--white); letter-spacing: 0.04em; }
.nav-logo-text span { font-size: 0.65rem; color: var(--light); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}
.nav-phone-icon {
  width: 28px;
  height: 28px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-cta {
  background: var(--orange);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.nav-cta:hover { background: var(--orange-dk); transform: translateY(-1px); }

/* ────────────────────────────────────────
   HERO
──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1621905251189-08b45249ff53?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
}
.hero-content { position: relative; z-index: 1; padding: 80px 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
  margin-top: 16px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero-chip svg { color: var(--orange); flex-shrink: 0; }

/* ────────────────────────────────────────
   TRUST BAR
──────────────────────────────────────── */
.trust-bar {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 32px;
  height: 32px;
  background: rgba(249,115,22,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-text strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--white); }
.trust-text span { font-size: 0.7rem; color: var(--light); }

/* ────────────────────────────────────────
   LEISTUNGEN
──────────────────────────────────────── */
.leistungen { padding: 96px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}
.service-card:hover {
  border-color: rgba(29,78,216,0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
  transition: background 0.2s;
}
.service-card:hover .service-icon { background: var(--blue); color: var(--white); }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.service-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.service-card:hover .service-link { opacity: 1; transform: none; }

/* ────────────────────────────────────────
   ÜBER UNS
──────────────────────────────────────── */
.ueber-uns { padding: 96px 0; background: var(--blue-pale); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.about-text h2 span { color: var(--orange); }
.about-text p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.about-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px;
  text-align: center;
}
.about-stat-n {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.about-stat-l { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }

/* ────────────────────────────────────────
   STATS BAND
──────────────────────────────────────── */
.stats-band {
  background: var(--navy-2);
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-item {
  text-align: center;
  padding: 20px 0;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-item:last-child { border-right: none; }
.stats-n {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  display: block;
}
.stats-l { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); display: block; margin-top: 6px; }

/* ────────────────────────────────────────
   REFERENZEN
──────────────────────────────────────── */
.referenzen { padding: 96px 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--white); letter-spacing: 0.04em; text-transform: uppercase; }

/* ────────────────────────────────────────
   VORTEILE
──────────────────────────────────────── */
.vorteile { padding: 96px 0; background: var(--blue-pale); }
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vorteil-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  text-align: center;
}
.vorteil-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue-pale);
  -webkit-text-stroke: 2px var(--blue);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.vorteil-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.vorteil-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ────────────────────────────────────────
   TESTIMONIALS
──────────────────────────────────────── */
.testimonials { padding: 96px 0; background: var(--white); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-stars svg { color: #F59E0B; }
.testi-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.testi-name { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.testi-loc { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ────────────────────────────────────────
   KONTAKT
──────────────────────────────────────── */
.kontakt { padding: 96px 0; background: var(--bg); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.kontakt-hours h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 10px 0; font-size: 0.85rem; }
.hours-table td:first-child { color: var(--text); font-weight: 500; }
.hours-table td:last-child { color: var(--muted); text-align: right; }
.hours-table tr.closed td { color: var(--light) !important; }
.hours-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  line-height: 1.5;
}
.notfall-banner {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.notfall-banner svg { color: var(--orange); flex-shrink: 0; }
.notfall-banner strong { font-size: 0.85rem; color: var(--navy); display: block; }
.notfall-banner span { font-size: 0.78rem; color: var(--muted); }
.kontakt-cards { display: flex; flex-direction: column; gap: 14px; }
.kontakt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.kontakt-card:hover { border-color: rgba(29,78,216,0.25); box-shadow: var(--shadow); transform: translateX(4px); }
.kontakt-card-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.kontakt-card strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.kontakt-card span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ────────────────────────────────────────
   CTA BAND
──────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.cta-inner h2 span { color: var(--orange); }
.cta-inner p { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-wko {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid,
  .gallery-grid,
  .vorteile-grid,
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 24px; }
  .stats-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stats-item:last-child, .stats-item:nth-last-child(2) { border-bottom: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid,
  .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
}

@media (max-width: 480px) {
  .services-grid,
  .gallery-grid,
  .vorteile-grid,
  .testi-grid,
  .footer-main { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; gap: 0; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 16px 24px; width: 100%; }
  .trust-item:last-child { border-bottom: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-chips .hero-chip:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card, .gallery-item img, .kontakt-card, .btn { transition: none !important; }
}
