/* SolarQuartier — Hauptstylesheet */

/* ===== CSS-Variablen ===== */
:root {
  --orange:      #E8820A;
  --orange-dark: #C46E08;
  --gold:        #F5A623;
  --cream:       #FDF6EE;
  --light-gray:  #EFEFEF;
  --border:      #DCDCDC;
  --text:        #1A1A1A;
  --text-light:  #444444;
  --white:       #FFFFFF;
  --footer-bg:   #1A1A1A;
  --nav-height:  76px;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --transition:  0.2s ease;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

/* ===== Typografie ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; background: var(--white); }
section.bg-alt { background: var(--light-gray); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream);
  color: var(--orange-dark);
}
.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.nav-transparent {
  background: transparent;
  box-shadow: none;
}
.nav.nav-transparent .nav-links a {
  color: rgba(255,255,255,0.88);
}
.nav.nav-transparent .nav-links a:hover,
.nav.nav-transparent .nav-links a.active {
  color: var(--gold);
}
.nav.nav-transparent .nav-toggle span {
  background: var(--white);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 64px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 1rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(232,130,10,0.18) 0%, transparent 70%);
  pointer-events: none;
}
/* Wasserzeichen im Hero */
.hero::after {
  content: '';
  position: absolute;
  top: var(--nav-height); right: 0; bottom: 0;
  width: 50%;
  background: url('../Logo-transparent.png') no-repeat center right/contain;
  opacity: 0.10;
  pointer-events: none;
}
.hero-content { max-width: 660px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero für Unterseiten */
.hero-sub {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-sub::after {
  content: '';
  position: absolute;
  top: var(--nav-height); right: 0; bottom: 0;
  width: 40%;
  background: url('../Logo-transparent.png') no-repeat center right/contain;
  opacity: 0.10;
  pointer-events: none;
}
.hero-sub .container { position: relative; z-index: 1; }
.hero-sub h1 { color: var(--white); margin-bottom: 0.75rem; }
.hero-sub h1 span { color: var(--gold); }
.hero-sub p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin: 0; }

/* ===== Abschnitts-Header ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; color: var(--text); }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; color: var(--text-light); }
.section-label {
  display: inline-block;
  background: var(--cream);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(232,130,10,0.2);
}
/* Section-Label auf dunklem Hintergrund */
.hero .section-label,
.hero-sub .section-label {
  background: rgba(232,130,10,0.2);
  color: var(--gold);
  border-color: rgba(245,166,35,0.3);
}

/* ===== Karten ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--cream);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  border: 1px solid rgba(232,130,10,0.15);
}
.card h3 { margin-bottom: 0.5rem; color: var(--text); }
.card p { color: var(--text-light); }

/* Leistungs-Karte */
.service-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: all var(--transition);
  color: var(--text);
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232,130,10,0.15);
  color: var(--text);
}
.service-card .service-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; color: var(--text); }
.service-card p { color: var(--text-light); }
.service-card .link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--orange); font-weight: 600; margin-top: 1.25rem;
}

/* ===== USP-Leiste ===== */
.usp-bar {
  background: var(--orange);
  padding: 2.5rem 0;
}
.usp-items {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}
.usp-item {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--white); font-weight: 600; font-size: 1rem;
}
.usp-item .check {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0;
  color: var(--white);
}

/* ===== Prozess-Schritte ===== */
.steps { display: flex; flex-direction: column; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--orange); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.step-content h3 { margin-bottom: 0.25rem; color: var(--text); }
.step-content p { color: var(--text-light); margin: 0; }

/* ===== Modell-Karten ===== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.model-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.model-card.highlight { border-color: var(--orange); }
.model-card h4 {
  color: var(--orange); font-size: 1rem;
  margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.model-card p { font-size: 0.875rem; color: var(--text-light); }

/* ===== Vergleichstabelle ===== */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th { background: var(--orange); color: var(--white); padding: 1rem; text-align: left; font-weight: 700; }
.compare-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-light); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #F9F9F9; }
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.tag-yes { color: #2E7D32; font-weight: 700; }
.tag-no  { color: #B71C1C; font-weight: 700; }

/* ===== Highlight-Box ===== */
.highlight-box {
  background: var(--cream);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  color: var(--text-light);
}
.highlight-box strong { color: var(--orange); }

/* ===== Kombiangebot-Banner ===== */
.combo-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.combo-banner h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.5rem; }
.combo-banner p { color: rgba(255,255,255,0.92); margin: 0; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.faq-question {
  width: 100%; text-align: left;
  padding: 1.25rem 1.5rem;
  background: none; border: none;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--cream); }
.faq-question .faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--orange);
  border-radius: 50%;
  position: relative;
  transition: transform var(--transition);
  font-size: 0;
}
.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--white);
  border-radius: 1px;
}
.faq-question .faq-icon::before {
  width: 12px; height: 2px;
  transform: translate(-50%, -50%);
}
.faq-question .faq-icon::after {
  width: 2px; height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }
.faq-category { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin: 2.5rem 0 1rem; }
.faq-category:first-child { margin-top: 0; }

/* ===== Kontakt-Formular ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.5rem; margin-bottom: 1.5rem;
}
.form-note { font-size: 0.825rem; color: var(--text-light); margin-top: 0.75rem; }

/* ===== QR-Seite ===== */
.qr-hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: var(--orange);
  color: var(--white);
  text-align: center;
}
.qr-hero h1 { color: var(--white); }
.qr-hero p { color: rgba(255,255,255,0.92); font-size: 1.1rem; }
.stoerung-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  box-shadow: var(--shadow);
}
.stoerung-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--orange); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.stoerung-list { display: flex; flex-direction: column; gap: 1rem; }

/* ===== CTA-Sektion ===== */
.cta-section {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%) !important;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 40%;
  background: url('../Logo-transparent.png') no-repeat center left/contain;
  opacity: 0.07;
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.82); margin-bottom: 2rem; font-size: 1.05rem; }

/* ===== Footer ===== */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2rem;
}
.footer-brand img { height: 56px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); object-fit: contain; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===== Rechtliche Seiten ===== */
.legal-content { max-width: 800px; margin: 0 auto; padding: 5rem 1.5rem; }
.legal-content h1 { color: var(--text); }
.legal-content h2 { margin: 2rem 0 0.75rem; color: var(--text); font-size: 1.2rem; }
.legal-content h3 { margin: 1.5rem 0 0.5rem; color: var(--text); }
.legal-content p { color: var(--text-light); }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.3rem; color: var(--text-light); }
.legal-content a { color: var(--orange); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-content table th { background: var(--light-gray); padding: 0.75rem; text-align: left; font-weight: 600; color: var(--text); }
.legal-content table td { padding: 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-light); }

/* ===== Scroll-Animationen ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.scroll-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 1rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text); font-size: 1rem; padding: 0.25rem 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .combo-banner { flex-direction: column; }
  .hero-buttons { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .hero::after, .hero-sub::after { width: 35%; opacity: 0.07; }
}
@media (max-width: 480px) {
  section { padding: 3rem 0; }
  .model-grid { grid-template-columns: 1fr; }
  .usp-items { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero::after, .hero-sub::after { display: none; }
}
