/**
 * Hansl Hof – projektspezifische Anpassungen
 */

/* Unterseiten: Platz für den fixen Header */
.tj-inner-page-banner,
.contact-hero {
  padding-top: 80px;
}

/* Impressum & Datenschutz: Überschriften auf normale Lesegröße */
.tj-legal-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}

.tj-legal-content h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Logo-Bild immer auf Container-Breite beschränken */
.site_logo .logo img,
.hh-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Phone-Button in Header: Icon + Text vertikal zentriert */
#hh-inner-header .hh-header-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

#hh-inner-header .hh-header-btn i {
  font-size: 1em;
  line-height: 1;
  position: static;
  vertical-align: middle;
  flex-shrink: 0;
}
.vbox-grab .vbox-child img {
  border-radius: 0 !important;
}

/* Hofladen-Status-Button */
.hof-status-open::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fcf6f;
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(111,207,111,.35);
  animation: hof-pulse 2s ease-in-out infinite;
}

.hof-status-closed::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  margin-right: 7px;
  vertical-align: middle;
}

@keyframes hof-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(111,207,111,.35); }
  50%       { box-shadow: 0 0 0 5px rgba(111,207,111,.0); }
}

@media (max-width: 991px) {
  /* Hero-Video: Höhe auf Mobile (aktuell −20 %) */
  .hero-video-only.h10-hero {
    padding-top: 15px;
  }

  .hero-video-only .h10-hero-banner {
    margin-top: 0;
    height: auto;
  }

  .hero-video-only .h10-hero-banner-video {
    aspect-ratio: auto !important;
    min-height: min(62vh, 544px) !important;
  }

  /* Logo + Text unter dem Header sichtbar halten */
  .hero-video-only .hero-video-caption {
    justify-content: center;
    padding-top: calc(82px + env(safe-area-inset-top, 0px));
    padding-bottom: 24px;
  }

  .hero-video-only .hero-video-caption__logo {
    display: block;
    max-width: 120px;
    width: auto;
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
  }

  /* Header-Höhe: weniger Padding + kleinerer Burger-Button */
  .h10-header-over-video.header-area.header-absolute {
    top: 15px;
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .h10-header-over-video .header-wrapper {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .h10-header-over-video .menu_bar.mobile_menu_bar {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  /* Sticky-Duplicate-Header beim Scrollen auf Mobile ausblenden */
  .header-area.header-duplicate.header-sticky.sticky {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Unterseiten: fixierter Header */
  #hh-inner-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  #hh-inner-header .hh-inner-header-wrap {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #hh-inner-header .hh-logo img {
    height: 42px;
  }
}

@media (min-width: 992px) {
  /* Desktop: Header-Logo etwas tiefer */
  .h10-header-over-video .site_logo {
    padding-top: 14px;
  }

  /* Desktop: Header transparent über dem Video, scrollt mit */
  .h10-header-over-video.header-area.header-absolute {
    position: absolute;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  /* Nav-Pille exakt mittig: header-wrapper als Positionierungs-Anker */
  .h10-header-over-video .header-wrapper {
    position: relative;
  }

  .h10-header-over-video .menu-area {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }

  /* Hero-Video: kein zusätzliches Padding nötig */
  .hero-video-only.tj-banner-section-2.h10-hero {
    padding-top: 0;
  }

  /* Duplikat-Sticky-Header auf Desktop ausblenden */
  .header-area.header-duplicate.header-sticky,
  .header-area.header-duplicate.header-sticky.sticky {
    display: none !important;
  }
}

@media (max-width: 991px) {
  /* CTA-Bereich: Abstand nach unten zur nächsten Section */
  .startseite-cta-parallax.tj-cta-section {
    margin-bottom: 80px;
  }
}
