/* ========== GRUNDSTIL ========== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fafafa;
  color: #333;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.logo img {
  height: 42px;
  background: white;
  padding: 4px;
  border-radius: 6px;
  position: absolute;
  left: 20px;
}

.menu-toggle {
  display: none;
  font-size: 2.8rem;
  background: none;
  border: none;
  color: #fff;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00bfff;
}

/* ========== HERO ========== */
.hero {
  margin-top: 70px;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(to bottom, #e0f0ff, #fafafa);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  width: 240px;
  height: auto;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ========== BUTTONS ========== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: linear-gradient(to bottom right, #4caf50, #45a049);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #43a047;
}

.btn-secondary {
  background: linear-gradient(to bottom right, #0078d7, #0062b3);
  color: #fff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #005ea3;
}

/* ========== SECTIONS ========== */
.services,
.about,
.contact-section {
  padding: 60px 20px;
  text-align: center;
}

h2 {
  color: #0078d7;
  font-size: 2rem;
  margin-bottom: 30px;
}

/* ========== SERVICE GRID ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h3 {
  color: #0078d7;
  margin: 15px 0 10px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Schwarzer Titel für Erneuerbare Energien */
.black-title {
  color: #000 !important;
}

/* ========== INFO-KACHELN ========== */
.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}

.info-card h2 {
  color: #0078d7;
  margin-bottom: 20px;
}

.info-card p {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #ccc;
  margin-top: 40px;
}

.site-footer a {
  color: #00bfff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .navbar {
    height: 70px;
    background: rgba(0, 0, 0, 0.95);
  }

  .logo img {
    height: 36px;
    top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    right: 10px;
    top: 75px;
    padding: 15px 20px;
    border-radius: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    height: 45vh;
    padding: 20px;
  }

  .hero-logo {
    width: 180px;
  }

  .info-card,
  .solar-card {
    padding: 40px 20px;
  }

  .solar-content h2 {
    font-size: 1.6rem;
  }
}
