/* ============================================
   EnergieWissen GBR - Website Stylesheet
   Schulungen für Energieberater & Gebäudetechniker
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  color: #1a7a3a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #145c2c;
  text-decoration: underline;
}

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

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

/* --- Header --- */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.header-logo img {
  height: 55px;
  width: auto;
}

.header-company {
  text-align: right;
}

.header-company h1 {
  font-size: 1.5rem;
  color: #1a7a3a;
  font-weight: 700;
  margin-bottom: 2px;
}

.header-company .tagline {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* --- Navigation --- */
.main-nav {
  background-color: #1a7a3a;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  background-color: #145c2c;
  text-decoration: none;
}

/* Dropdown */
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #145c2c;
  min-width: 260px;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.main-nav li:hover .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-nav .dropdown-menu a:hover {
  background-color: #0e4a22;
  text-decoration: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 12px 18px;
}

/* --- Hero / Key Visual --- */
.hero {
  position: relative;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #1a7a3a;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,122,58,0.7), rgba(20,92,44,0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 700px;
}

.hero h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* --- Page Title Banner --- */
.page-title-banner {
  background-color: #1a7a3a;
  color: #fff;
  padding: 45px 20px;
  text-align: center;
}

.page-title-banner h2 {
  font-size: 2rem;
  font-weight: 600;
}

.page-title-banner p {
  font-size: 1rem;
  margin-top: 8px;
  opacity: 0.9;
}

/* --- CTA Buttons --- */
.btn-cta {
  display: inline-block;
  background-color: #e67e22;
  color: #fff;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 20px;
}

.btn-cta:hover {
  background-color: #d35400;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background-color: #1a7a3a;
}

.btn-secondary:hover {
  background-color: #145c2c;
}

/* --- Content Sections --- */
.content-section {
  padding: 50px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.8rem;
  color: #1a7a3a;
  margin-bottom: 20px;
  font-weight: 600;
}

.content-section h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.content-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* --- Separator --- */
.separator {
  height: 2px;
  background: linear-gradient(to right, transparent, #1a7a3a, transparent);
  margin: 20px auto 30px;
  max-width: 200px;
}

/* --- Three Pillars (Home) --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 0;
}

.pillar-card {
  background: #fff;
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid #1a7a3a;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.pillar-card h3 {
  color: #1a7a3a;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.pillar-card p {
  font-size: 0.92rem;
  color: #555;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a7a3a;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* --- Course Cards --- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding: 20px 0;
}

.course-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #1a7a3a;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.course-card-body {
  padding: 25px;
}

.course-card-body h3 {
  font-size: 1.15rem;
  color: #1a7a3a;
  margin-bottom: 12px;
}

.course-card-body p {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 8px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.course-meta span {
  font-size: 0.82rem;
  color: #666;
  background: #f0f7f2;
  padding: 4px 10px;
  border-radius: 12px;
}

.course-meta .price {
  font-weight: 700;
  color: #1a7a3a;
  background: #e8f5ec;
}

/* --- Course Detail --- */
.course-detail {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.course-detail h2 {
  margin-bottom: 15px;
}

.course-detail ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.course-detail ul li {
  padding: 6px 0;
  font-size: 0.95rem;
}

.course-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 25px 0;
  padding: 20px;
  background: #f0f7f2;
  border-radius: 6px;
}

.course-info-item {
  font-size: 0.92rem;
}

.course-info-item .label {
  font-weight: 700;
  color: #1a7a3a;
  display: block;
  margin-bottom: 3px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.92rem;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1a7a3a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,122,58,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
}

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 20px 0;
}

.team-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-card h3 {
  color: #1a7a3a;
  margin-bottom: 5px;
}

.team-card .role {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.92rem;
  color: #555;
}

.team-card a {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #1a7a3a;
  color: #fff;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 20px;
}

/* --- Footer --- */
.site-footer {
  background-color: #1e3a1e;
  color: #ccc;
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid #2d4d2d;
  font-size: 0.85rem;
  color: #888;
}

.footer-bottom a {
  color: #aaa;
  margin: 0 10px;
}

/* --- Social Icons --- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.social-links a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
  }

  .main-nav ul.open {
    display: flex;
  }

  .main-nav .dropdown-menu {
    position: static;
    box-shadow: none;
  }

  .hero {
    height: 320px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .pillars-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .course-info-grid {
    grid-template-columns: 1fr;
  }

  .header-top {
    flex-direction: column;
    text-align: center;
  }

  .header-company {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.4rem;
  }

  .content-section {
    padding: 30px 15px;
  }
}
