/*
Theme Name: Energiewerk Sachsen
Theme URI: https://energiewerk-sachsen.de
Author: Energiewerk Sachsen
Author URI: https://energiewerk-sachsen.de
Description: Professionelles Theme für Photovoltaik & Wärmepumpen Anbieter in Sachsen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energiewerk-sachsen
Tags: one-page, solar, energy, german
*/

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2d6a4f;
  --green-light: #40916c;
  --green-pale:  #d8f3dc;
  --green-dark:  #1b4332;
  --amber-dark:  #c9952a;
  --text:        #1a1a18;
  --text-muted:  #5a5a55;
  --text-light:  #8a8a82;
  --bg:          #fafaf8;
  --bg-alt:      #f2f2ee;
  --bg-dark:     #141410;
  --border:      #e0e0d8;
  --white:       #ffffff;
  --radius:      10px;
  --radius-lg:   18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

/* ─── NAVIGATION ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--green-light); }

.nav-menu {
  display: flex; gap: 2rem; list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--green); }

.nav-cta-btn {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  transition: background 0.2s !important;
}
.nav-cta-btn:hover { background: var(--green-dark) !important; }

.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px;
}
.mobile-menu-btn span {
  width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ─── HERO ─── */
.hero-section {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5% 4rem;
  position: relative; overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(45,106,79,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(64,145,108,0.15) 0%, transparent 55%),
    var(--bg-dark);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(45,106,79,0.25);
  border: 1px solid rgba(64,145,108,0.4);
  color: #74c69d;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 2rem; position: relative;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: #74c69d; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.85); }
}

.hero-content { position: relative; max-width: 700px; }

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.08; color: #f5f5f0;
  margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: #74c69d; }

.hero-sub {
  font-size: 1.05rem; color: #a0a09a;
  max-width: 520px; margin-bottom: 2.5rem; line-height: 1.7;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 4rem;
}

.btn-primary {
  background: var(--green); color: var(--white);
  padding: 0.85rem 1.8rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); color: var(--white); }

.btn-ghost {
  color: #a0a09a; text-decoration: none; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: #f5f5f0; }

.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2.5rem;
}
.hero-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; color: #f5f5f0; line-height: 1; margin-bottom: 0.25rem;
}
.hero-stat-label {
  font-size: 0.82rem; color: #6a6a64;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ─── SECTIONS ─── */
.site-section { padding: 6rem 5%; }
.site-section--alt { background: var(--bg-alt); }
.site-section--white { background: var(--white); }
.site-section--dark { background: var(--green-dark); }

.section-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--green); }
.section-title--light { color: var(--white); }
.section-desc {
  font-size: 1rem; color: var(--text-muted);
  max-width: 540px; line-height: 1.7;
}

/* ─── SERVICES ─── */
.services-intro { max-width: 600px; margin-bottom: 4rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-2px); }

.service-number {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--text-light);
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.service-icon {
  width: 48px; height: 48px; background: var(--green-pale);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.2rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--green); }

.service-card h3 {
  font-family: 'DM Serif Display', serif; font-size: 1.35rem;
  color: var(--text); margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.92rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 1.5rem; flex-grow: 1;
}
.service-features { list-style: none; margin-bottom: 1.8rem; }
.service-features li {
  font-size: 0.87rem; color: var(--text-muted);
  padding: 0.35rem 0; border-bottom: 1px solid var(--bg-alt);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.service-features li::before { content: '✓'; color: var(--green); font-weight: 600; flex-shrink: 0; }

.service-link {
  font-size: 0.88rem; font-weight: 500; color: var(--green);
  text-decoration: none; display: inline-flex; align-items: center;
  gap: 0.3rem; transition: gap 0.2s;
}
.service-link:hover { gap: 0.6rem; }

/* ─── CTA BAND ─── */
.cta-band { background: var(--green-dark); padding: 4rem 5%; text-align: center; }
.cta-band h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--white); margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-size: 0.95rem; }

.btn-primary-light {
  background: #74c69d; color: var(--green-dark);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  display: inline-block; transition: background 0.2s, transform 0.15s;
}
.btn-primary-light:hover { background: #95d5b2; transform: translateY(-1px); color: var(--green-dark); }

/* ─── RECHNER ─── */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; max-width: 960px;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 0.4rem;
}
.form-group select, .form-group input {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.92rem; color: var(--text);
  background: var(--bg); appearance: none; transition: border-color 0.2s;
}
.form-group select:focus, .form-group input:focus { outline: none; border-color: var(--green); }

.calc-result {
  background: var(--green-dark); border-radius: var(--radius-lg);
  padding: 2rem; color: var(--white); position: sticky; top: 80px;
}
.calc-result-label {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 0.3rem;
}
.calc-result-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem; color: #74c69d; line-height: 1; margin-bottom: 0.3rem;
}
.calc-result-sub {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.calc-result-row {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.calc-result-row span:first-child { color: rgba(255,255,255,0.6); }
.calc-result-row span:last-child { font-weight: 500; }
.calc-btn {
  display: block; width: 100%; background: #74c69d;
  color: var(--green-dark); border: none; padding: 0.85rem;
  border-radius: var(--radius); font-family: inherit;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  margin-top: 1.5rem; transition: background 0.2s;
}
.calc-btn:hover { background: #95d5b2; }

/* ─── STATS ─── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem; text-align: center;
}
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem; color: var(--green-dark); line-height: 1; margin-bottom: 0.4rem;
}
.stat-unit { font-size: 1.3rem; color: var(--green); }
.stat-label { font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.testimonial-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; color: var(--amber-dark); font-size: 0.9rem; }
.testimonial-text {
  font-size: 0.92rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 1.4rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; font-weight: 600;
  color: var(--green-dark); flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.testimonial-location { font-size: 0.78rem; color: var(--text-light); }

/* ─── FAQ ─── */
.faq-wrap { max-width: 720px; margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none;
  padding: 1.2rem 0; text-align: left; font-family: inherit;
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; transition: color 0.2s;
}
.faq-question:hover { color: var(--green); }
.faq-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1rem;
  color: var(--green); transition: transform 0.3s; line-height: 1;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding: 0 0 1.2rem; font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 400px; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; max-width: 960px;
}
.contact-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.contact-info p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 2rem; line-height: 1.7; }
.contact-detail {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.9rem; font-size: 0.9rem; color: var(--text-muted);
}
.contact-detail-icon {
  width: 36px; height: 36px; background: var(--green-pale);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; color: var(--green); }
.contact-detail a { color: var(--green); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.contact-form-wrap h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.form-full { margin-bottom: 0.75rem; }
.form-full label, .form-row .fg label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 0.35rem;
}
.form-full input, .form-full select, .form-full textarea, .form-row input, .form-row select {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--white); transition: border-color 0.2s; appearance: none;
}
.form-full textarea { min-height: 100px; resize: vertical; }
.form-full input:focus, .form-full select:focus, .form-full textarea:focus,
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--green); }
.form-submit {
  display: block; width: 100%; background: var(--green);
  color: var(--white); border: none; padding: 0.85rem;
  border-radius: var(--radius); font-family: inherit;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  margin-top: 0.5rem; transition: background 0.2s;
}
.form-submit:hover { background: var(--green-dark); }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 0.6rem; text-align: center; }
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success svg { width: 48px; height: 48px; color: var(--green); margin: 0 auto 1rem; display: block; }
.form-success h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.88rem; color: var(--text-muted); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.6);
  padding: 4rem 5% 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem;
}
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 0.75rem; }
.footer-logo span { color: #74c69d; }
.footer-about { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.9); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: #74c69d; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-menu.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border);
    gap: 1rem; z-index: 99;
  }
  .calc-wrap, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
}
