/* ============================================================
   SECTIONS – Section-specific styles
   ============================================================ */

/* ---- #home – Hero ---------------------------------------- */

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--banner-height) - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1504148455328-c376907d081c?w=1600');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px var(--container-pad);
  max-width: 820px;
  width: 100%;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtext {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 44px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .hero-section {
    min-height: calc(75vh - var(--banner-height) - var(--header-height));
  }
}

/* ---- #leistungen – Leistungen ---------------------------- */

.leistungen-section {
  background: var(--color-light);
}

.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 480px) {
  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .leistungen-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Staggered reveal for leistung cards */
.leistungen-grid .reveal:nth-child(1) { transition-delay: 0ms;   }
.leistungen-grid .reveal:nth-child(2) { transition-delay: 80ms;  }
.leistungen-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.leistungen-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.leistungen-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.leistungen-grid .reveal:nth-child(6) { transition-delay: 400ms; }

/* ---- #referenzen – Referenzen / Galerie ------------------ */

.referenzen-section {
  background: var(--color-white);
}

.referenzen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .referenzen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .referenzen-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Staggered reveal for referenz cards */
.referenzen-grid .reveal:nth-child(1) { transition-delay: 0ms;   }
.referenzen-grid .reveal:nth-child(2) { transition-delay: 80ms;  }
.referenzen-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.referenzen-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.referenzen-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.referenzen-grid .reveal:nth-child(6) { transition-delay: 400ms; }

/* ---- #ueber-uns – Über uns ------------------------------- */

.ueber-uns-section {
  background: var(--color-light);
}

.ueber-uns-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

@media (min-width: 768px) {
  .ueber-uns-inner {
    grid-template-columns: 3fr 2fr;
  }
}

.ueber-uns-text h2 {
  margin-bottom: 20px;
}

.ueber-uns-text > p {
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 560px;
}

.ueber-uns-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ueber-uns-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 520px;
  display: block;
  transition: transform 0.6s ease;
}

.ueber-uns-image:hover img {
  transform: scale(1.02);
}

/* ---- #kontakt – Kontakt ---------------------------------- */

.kontakt-section {
  background: var(--color-white);
}

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

@media (min-width: 768px) {
  .kontakt-inner {
    grid-template-columns: 3fr 2fr;
  }
}

.kontakt-form h3,
.kontakt-info h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--color-dark);
}

.kontakt-info {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kontakt-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kontakt-item strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
}

.kontakt-item span {
  font-size: 0.9375rem;
  color: var(--color-mid);
  line-height: 1.5;
}

.kontakt-hinweis {
  font-size: 0.9375rem;
  color: var(--color-mid);
  line-height: 1.65;
}

/* Wood accent line for kontakt section */
.kontakt-section .section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-wood);
  border-radius: 2px;
  margin: 16px auto 0;
}
