/*
Theme Name: Stoiber Group
Theme URI: https://stoiber-photovoltaik.de/
Author: Wastl Media
Description: Eigenes WordPress-Theme für die Stoiber Group. Technisch, modern, klar strukturiert für Energieprojekte, Photovoltaik, Speicher, Trafostationen, EMS, Ladeinfrastruktur und Service.
Version: 1.0.0
Text Domain: stoiber-group
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
*/

:root {
  --sg-font: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sg-green: #8bc53f;
  --sg-green-dark: #527a20;
  --sg-yellow: #f7c600;
  --sg-dark: #111827;
  --sg-ink: #1f2937;
  --sg-muted: #6b7280;
  --sg-light: #f5f7f2;
  --sg-white: #ffffff;
  --sg-border: rgba(17,24,39,.12);
  --sg-radius: 8px;
  --sg-shadow: 0 18px 45px rgba(17,24,39,.10);
  --sg-max: 1320px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sg-font);
  color: var(--sg-ink);
  background: var(--sg-white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin-top: 0; }
.container { width: min(var(--sg-max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-divider {
  width: 80px;
  height: 4px;
  background: var(--sg-green);
  border-radius: 999px;
  margin-bottom: 24px;
}
.section-soft { background: var(--sg-light); }
.eyebrow {
  color: var(--sg-green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  margin-bottom: 12px;
}
h1, h2, h3 { color: var(--sg-dark); line-height: 1.08; margin: 0 0 18px; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: #374151; max-width: 760px; }
.small { font-size: .94rem; color: var(--sg-muted); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sg-border);
}
.header-inner {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
}
.logo,
.logo a,
.custom-logo-link { display: flex; align-items: center; gap: 12px; }
.custom-logo { max-height: 115px; width: auto; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--sg-green), var(--sg-yellow));
  display: grid; place-items: center; color: var(--sg-dark); font-weight: 950;
}
.primary-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;

  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 0;

  color: var(--sg-dark);

  font-size: .96rem;
  font-weight: 700;

  transition: .2s ease;
}
.primary-nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;

  background: var(--sg-green);

  transition: .25s ease;
}

.primary-nav a:hover::after,
.current-menu-item a::after {
  width: 100%;
}
.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo {
  width: 100%;
  justify-content: center;
}

.custom-logo-link {
  justify-content: center;
}

.primary-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 8px; font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(17,24,39,.18); }
.btn-primary { background: var(--sg-dark); color: var(--sg-white); box-shadow: 0 12px 30px rgba(17,24,39,.18); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--sg-green); color: var(--sg-dark); }
.btn-ghost { border-color: var(--sg-border); color: var(--sg-dark); background: #fff; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(139,197,63,.30), transparent 28%),
    linear-gradient(135deg, #f7faf2 0%, #ffffff 54%, #eff7e8 100%);
  padding: 120px 0 90px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 56px; align-items: center;
}
.hero-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: calc(var(--sg-radius) + 10px);
  box-shadow: var(--sg-shadow);
  padding: 26px;
}
.energy-panel {
  min-height: 460px; border-radius: 14px; overflow: hidden;
  background: url('assets/img/projektbild.png') center/cover no-repeat;
  display: flex; align-items: end; padding: 26px; color: white;
}
.hero-actions { display:flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 46px;
}
.stat {
  background: #fff; border: 1px solid var(--sg-border); border-radius: 18px;
  padding: 20px; box-shadow: 0 8px 24px rgba(17,24,39,.05);
}
.stat strong { display: block; color: var(--sg-dark); font-size: 1.45rem; line-height: 1; }
.stat span { color: var(--sg-muted); font-size: .92rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
  transition: .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(17,24,39,.12);
}

.card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--sg-light);
  display: grid; place-items: center;
  color: var(--sg-green-dark); font-weight: 950; font-size: 1.25rem;
  margin-bottom: 22px;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sg-shadow); }
.service-card { transition: .2s ease; min-height: 260px; }
.service-card a { color: var(--sg-green-dark); font-weight: 900; }

.split {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
}
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 700; }
.check-list li:before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--sg-green); color: var(--sg-dark);
  display: grid; place-items: center; font-size: .78rem; font-weight: 950;
}

.cta-band {
  background: var(--sg-dark); color: #fff; border-radius: 14px; padding: 54px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
  overflow: hidden; position: relative;
}
.cta-band:after {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(139,197,63,.22);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.site-footer {
  background: #0b1020; color: rgba(255,255,255,.74); padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display:flex; justify-content:space-between; gap: 20px; flex-wrap: wrap; }

.page-hero { padding: 72px 0; background: var(--sg-light); }
.content-area { padding: 72px 0; }
.wp-content { max-width: 820px; }
.wp-content h2, .wp-content h3 { margin-top: 42px; }

.mobile-toggle { display:none; }

@media (max-width: 980px) {
  .hero-grid, .split, .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { justify-content: flex-start; }
  .primary-nav { display:none; }
  .mobile-toggle { display:inline-flex; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--sg-max)); }
  .section { padding: 58px 0; }
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .energy-panel { min-height: 320px; }
  .cta-band { padding: 32px; border-radius: 24px; }
}


.mobile-toggle {
  display: none;
}

@media (max-width: 980px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav.is-open {
    display: block;
    width: 100%;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 14px;
  }
}
