/* ============================================
   ProjektIQ UG - Website Stylesheet
   Energieberatung für Trier und Umgebung
   ============================================ */

/* --- 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: #f5f5f0;
}

a {
  color: #2a6496;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1a4a6e;
  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: 10px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

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

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

.header-company h1 {
  font-size: 1.4rem;
  color: #2a6496;
  font-weight: 600;
  margin-bottom: 2px;
}

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

/* --- Navigation --- */
.main-nav {
  background-color: #2a6496;
}

.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: #1e4f77;
  text-decoration: none;
}

/* Dropdown */
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1e4f77;
  min-width: 220px;
  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: #163d5c;
  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: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}

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

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

.hero p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* --- Page Title Banner --- */
.page-title-banner {
  background-color: #2a6496;
  color: #fff;
  padding: 40px 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;
}

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

.content-section h2 {
  font-size: 1.8rem;
  color: #2a6496;
  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;
}

/* Welcome Section */
.welcome-section {
  background-color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.welcome-section .container {
  max-width: 800px;
}

.welcome-section h2 {
  font-size: 2rem;
  color: #2a6496;
  margin-bottom: 20px;
}

/* --- Slideshow --- */
.slideshow {
  position: relative;
  max-width: 700px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slideshow img {
  width: 100%;
  display: none;
  transition: opacity 0.8s ease;
}

.slideshow img.active {
  display: block;
}

/* --- CTA Button --- */
.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: #2a6496;
}

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

/* --- Service Cards (Leistungsfelder) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.service-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 20px;
}

.service-card-body h3 {
  font-size: 1.15rem;
  color: #2a6496;
  margin-bottom: 10px;
}

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

.service-card-body .label {
  font-weight: 600;
  color: #333;
}

/* --- Numbered List (Beratungsfelder) --- */
.numbered-list {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.numbered-list li {
  counter-increment: item;
  padding: 14px 0 14px 50px;
  position: relative;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #2a6496;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Pricing Section --- */
.pricing-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.6rem;
  color: #2a6496;
  margin-bottom: 8px;
}

.pricing-card .subtitle {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 700;
  font-size: 1.1rem;
}

.pricing-card .price-info {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
}

/* --- Architektur Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.gallery img {
  border-radius: 4px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* --- References / Logos --- */
.references-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}

.references-grid img {
  max-height: 80px;
  filter: grayscale(30%);
  transition: filter 0.3s;
}

.references-grid img:hover {
  filter: grayscale(0%);
}

/* --- 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: #2a6496;
  outline: none;
  box-shadow: 0 0 0 3px rgba(42,100,150,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.1);
}

/* --- Links Section (Publikationen) --- */
.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.links-list a {
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.links-list a::before {
  content: '→';
  color: #e67e22;
  font-weight: 700;
}

/* --- News Cards --- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #2a6496;
}

.news-card h3 {
  color: #2a6496;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.news-card p {
  color: #555;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background-color: #2c3e50;
  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 #3d5166;
  font-size: 0.85rem;
  color: #888;
}

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

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

/* --- 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: 280px;
  }

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

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

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

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

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

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

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

  .page-title-banner h2 {
    font-size: 1.5rem;
  }
}

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

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

  .pricing-card {
    padding: 25px;
  }
}
