/* ============================================================
   sections.css – Page-specific section styles
   ============================================================ */

/* ── HERO (Startseite) ───────────────────────────────────── */
.hero {
  position: relative;
  height: 75vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

@media (min-width: 1024px) {
  .hero { height: 100vh; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(70, 20, 10, 0.5);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem var(--container-pad);
  max-width: 760px;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--color-white);
  margin-bottom: 1.1rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(26,18,9,0.45);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── LEISTUNGSÜBERSICHT (index tiles) ────────────────────── */
.leistungen {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  background: var(--color-light);
}

/* ── SERVICE SECTIONS ────────────────────────────────────── */
.service-subsection {
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.service-subsection + .service-subsection {
  border-top: 1px solid var(--color-border);
}

.holzarten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

@media (min-width: 768px) {
  .holzarten-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ── KIRCHENAUSBAU ───────────────────────────────────────── */
.kirchen-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* ── KONTAKT PAGE ────────────────────────────────────────── */
.kontakt-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.kontakt-map-btn {
  margin-top: 1.5rem;
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.group-photo {
  width: 100%;
  height: auto;          /* natürliche Bildhöhe – kein Zuschnitt */
  max-height: none;      /* vorherige 420px-Beschränkung aufgehoben */
  object-fit: contain;   /* Querformat-Gruppenfotos vollständig anzeigen */
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.about-text-block {
  background: var(--color-accent);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.about-text-block p {
  color: var(--color-mid);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.about-text-block p:last-child { margin-bottom: 0; }

/* ── RESTAURIERUNG CARD ──────────────────────────────────── */
.restaurierung-card {
  background: var(--color-accent);
  border: 1px solid var(--color-accent-dark);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.restaurierung-card__icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.restaurierung-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}

.restaurierung-card__text {
  font-size: 0.93rem;
  color: var(--color-mid);
  margin: 0;
}

/* ── HANDWERKERVERBUND ───────────────────────────────────── */
.verbund-section {
  background: var(--color-light);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.verbund-section__title {
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
}

.verbund-section__text {
  font-size: 0.95rem;
  color: var(--color-mid);
  margin-bottom: 1rem;
}

/* ── ANIMATIONS / REVEAL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-group > *.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.40s; }

/* ── MOBILE OPTIMIERUNGEN ─────────────────────────────────── */

/* 1. Galerie-Bildunterschriften: auf kleinen Screens und Touch-Geräten immer sichtbar,
      da Hover auf Smartphones/Tablets nicht zuverlässig funktioniert */
@media (max-width: 768px), (hover: none) {
  .gallery-item__caption {
    opacity: 1;
    background: linear-gradient(to top, rgba(26,18,9,0.82) 0%, transparent 68%);
  }
  /* Kein Zoom/Opacity-Effekt beim "Hover" auf Touch */
  .gallery-item:hover img {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .gallery-item img {
    height: 240px;
  }
}

/* 2. Restaurierungs-Karte: vertikal stapeln auf Mobile */
@media (max-width: 620px) {
  .restaurierung-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
  .restaurierung-card__icon {
    font-size: 2.5rem;
  }
}

/* 3. Kleinere Bildhöhen auf sehr schmalen Screens */
@media (max-width: 480px) {
  .gallery-item img {
    height: 200px;
  }
  /* Holzarten: 2 Spalten statt 3 auf sehr engen Geräten */
  .holzarten-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
