/* ==========================================
   BB SOLAR – Stylesheet
   Farben: Orange #f7941d, Dunkel #1a1a2e, Hellgrau #f5f5f5
   ========================================== */

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

:root {
  --orange:  #f7941d;
  --dark:    #1a1a2e;
  --mid:     #2d3561;
  --light:   #f5f7fa;
  --white:   #ffffff;
  --text:    #333333;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(0,0,0,0.10);
  --trans:   0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  text-decoration: none;
}
.btn-primary:hover { background: #e07f0a; transform: translateY(-2px); text-decoration: none; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark  { background: var(--dark); color: var(--white); }
.section-dark a { color: var(--orange); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-dark .section-title { color: var(--white); }

.section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.05rem;
}
.section-dark .section-sub { color: #aaa; }

/* ==========================================
   NAVIGATION
   ========================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img { height: 48px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--trans);
  text-decoration: none;
}
.nav-links a:hover { color: var(--orange); }

.btn-nav {
  background: var(--orange);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.btn-nav:hover { background: #e07f0a; color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(26,26,46,0.55) 100%);
}

.hero-content {
  position: relative;
  color: var(--white);
  max-width: 700px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.9;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-pills span {
  background: rgba(247,148,29,0.18);
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================
   LEISTUNGEN
   ========================================== */
.leistungen-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.leistung-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.leistung-card.reverse { direction: rtl; }
.leistung-card.reverse > * { direction: ltr; }

.leistung-img {
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.leistung-body {
  padding: 36px;
}

.leistung-body h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 14px;
  font-weight: 700;
}

.leistung-body p { margin-bottom: 14px; color: #555; }

.leistung-body ul {
  list-style: none;
  padding: 0;
}
.leistung-body ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  color: #555;
  font-size: 0.95rem;
}
.leistung-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ==========================================
   ÜBER UNS
   ========================================== */
.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
}

.about-img-wrap {
  text-align: center;
}
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.about-name {
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 600;
}

.about-text p {
  margin-bottom: 16px;
  color: #ccc;
}
.about-text strong { color: var(--white); }

/* ==========================================
   PARTNER
   ========================================== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px;
  align-items: center;
}

.partner-grid img {
  max-height: 80px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--trans), transform var(--trans);
}
.partner-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.06);
}

/* ==========================================
   REFERENZEN (Galerie)
   ========================================== */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.galerie-grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.galerie-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--trans);
}
.galerie-grid a:hover img { transform: scale(1.05); }

/* ==========================================
   KONTAKT
   ========================================== */
.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.kontakt-daten h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 18px;
  font-weight: 700;
}
.kontakt-daten p { margin-bottom: 16px; color: #555; }
.kontakt-daten a { color: var(--orange); }

.kontakt-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: #444; }

.form-row input,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--trans);
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-row textarea { resize: vertical; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--dark);
  color: #aaa;
  padding: 36px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo { height: 48px; width: auto; }

.footer-copy { font-size: 0.85rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #aaa; font-size: 0.85rem; }
.footer-links a:hover { color: var(--orange); }

/* ==========================================
   IMPRESSUM / DATENSCHUTZ (Unterseiten)
   ========================================== */
.subpage-header {
  background: var(--dark);
  color: var(--white);
  padding: 110px 0 50px;
  text-align: center;
}
.subpage-header h1 { font-size: 2rem; }

.subpage-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}
.subpage-content h2 { margin: 28px 0 10px; color: var(--dark); font-size: 1.2rem; }
.subpage-content p  { margin-bottom: 14px; color: #555; }
.subpage-content a  { color: var(--orange); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .leistung-card,
  .leistung-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .leistung-img { height: 220px; }

  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-img-wrap img { max-width: 260px; margin: 0 auto 12px; }

  .kontakt-inner { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .section-title { font-size: 1.6rem; }
  .section { padding: 60px 0; }

  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}
