/* =========================================================
   hero-styles.css
   Path: bootscore-child/assets/css/hero-styles.css
   Scope: Waldhorn Home Hero (Startseite)
   ========================================================= */




/* =========================
   HERO WRAPPER
   ========================= */
.cls-home-hero-wrapper{
  --hero-h: clamp(520px, 55vw, 800px);
  --content-top: clamp(30px, 5vw, 90px);
  --content-shift: clamp(10px, 2vw, 60px);  /* content weiter rechts vom Container-Start */
  --content-maxw: min(560px, 42vw);

  position: relative;
  width: 100%;
  height: var(--hero-h);
  overflow: hidden;
}


 .container-xl {
  max-width: 2000px; /* dein Wunschwert */
}

/* =========================
   BACKGROUND (VIDEO/POSTER)
   ========================= */
.cls-home-hero-wrapper .hero-bg{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cls-home-hero-wrapper .hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  animation: heroKenBurns 18s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}

@keyframes heroKenBurns{
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }

}

/* Left “canvas” wash like the comp */
.cls-home-hero-wrapper .hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 2; /* still below frame/content because bg is z=1 */
  background: linear-gradient(
    90deg,
    rgba(239,232,234,.92) 0%,
    rgba(239,232,234,.78) 34%,
    rgba(239,232,234,0)   60%
  );
}

/* =========================
   FRAME OVERLAY (PNG)
   - max 50% width
   - crop bottom via overflow hidden
   ========================= */
.cls-home-hero-wrapper .hero-frame-wrap{
  position: absolute;
  inset: 0;
  z-index: 2;
  
  pointer-events: none;
}

.cls-home-hero-wrapper .hero-frame{
  display: block;
  width: min(65vw, 65%);
  height: 110%;
  object-fit: cover;
  object-position: center top;
}

/* =========================
   CONTENT OVERLAY (aligned to Bootstrap container)
   ========================= */
.cls-home-hero-wrapper .hero-content{
  position: absolute;
  inset: 0;
  z-index: 30;
}

.cls-home-hero-wrapper .hero-content .container,
.cls-home-hero-wrapper .hero-content .container-lg,
.cls-home-hero-wrapper .hero-content .container-xl,
.cls-home-hero-wrapper .hero-content .container-xxl{
  position: relative;
  height: 100%;
}

.cls-home-hero-wrapper .hero-content-inner{
  position: absolute;
  top: var(--content-top);
  left: var(--content-shift);
  max-width: var(--content-maxw);

  text-align: center;
  
  font-family: montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* generell etwas größer als Standard */
  font-size: 1.05rem;
  line-height: 1.25;
}
.hero-content-inner > *:not(.hero-hours){
  text-transform: uppercase;
}

/* =========================
   LOGO (approx +70% vs. previous)
   ========================= */
.cls-home-hero-wrapper .hero-logo{
  display: block;
  height: auto;
  max-width: clamp(150px, 20vw, 400px);
  margin: 0 auto 28px auto;
}

/* Optional caption (falls später genutzt) */
.cls-home-hero-wrapper .hero-caption{
  margin: 0 0 18px 0;
  color: var(--waldhorn-dark-grey);
  font-size: 1.15rem;
}

/* =========================
   BUTTONS (outline style)
   Recommended: move to main.css if you want global reuse.
   ========================= */
.btn.btn-outline-waldhorn{
  --btn-c: var(--waldhorn-dark-grey);

  color: var(--btn-c);
  border: 2px solid rgba(86,82,83,.55);
  background: transparent;
  border-radius: 0;

  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 200px;
justify-content: center;

  text-decoration: none;
}

.btn.btn-outline-waldhorn:hover,
.btn.btn-outline-waldhorn:focus{
  color: var(--waldhorn-pure-white);
  background: var(--waldhorn-dark-red);
  border-color: var(--waldhorn-dark-red);
  text-decoration: none;
}

.btn.btn-outline-waldhorn:focus-visible{
  outline: 3px solid rgba(227,6,19,.35);
  outline-offset: 2px;
}

/* Inline SVG icon: color controllable via currentColor */
.cls-home-hero-wrapper .hero-icon{
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: currentColor;
}

/* Buttons layout */
.cls-home-hero-wrapper .hero-buttons{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px 0;
}

/* =========================
   ADDRESS + PHONE
   ========================= */
.cls-home-hero-wrapper .hero-adress,
.cls-home-hero-wrapper .hero-phone{
  margin: 0;
  color: var(--waldhorn-dark-grey);
  font-size: 1.05rem;
}

.cls-home-hero-wrapper .hero-phone{
  font-weight: 700;
}




.hero-phone,
.hero-phone a {
  color: var(--waldhorn-dark-grey);
}

.hero-phone a {
  text-decoration: none;
}
/* =========================
   BOTTOM SEPARATOR
   (Adapted from your original, but using Waldhorn vars)
   ========================= */
.cls-home-hero-wrapper .hero-separator{
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  z-index: 20;
  pointer-events: none;

  filter: drop-shadow(10px -7px 5px rgba(0,0,0,.08));
  animation: heroPulseShadow 5s infinite ease-in-out;
}

@keyframes heroPulseShadow{
  0%   { filter: drop-shadow(10px -2px  5px rgba(0,0,0,.07)); }
  50%  { filter: drop-shadow(10px -7px 5px rgba(0,0,0,.10)); }
  100% { filter: drop-shadow(10px -2px  5px rgba(0,0,0,.07)); }
}

.cls-home-hero-wrapper .hero-separator .separator-element-r{
  position: absolute;
  display: none;
  left: 0;
  bottom: -2px;
  width: 200vw;
  height: 300px;
  rotate: -15deg;
  background: var(--waldhorn-light-grey);
}

.cls-home-hero-wrapper .hero-separator .separator-element-l{
  position: absolute;
  left: -00%;
  bottom: 00px;
  width: 110vw;
  height: 180px;
  rotate: 0deg;
  background: var(--waldhorn-pure-white);
  border-top:10px solid var(--waldhorn-light-grey);
}

/* =========================
   RESPONSIVE
   ========================= */

/* Slightly tighter on smaller desktops */
@media (max-width: 1200px){
  .cls-home-hero-wrapper{
    --content-maxw: min(520px, 46vw);
  }
}

/* =========================================================
   MOBILE-/TABLET-HERO
   Separates Layout unter 992px
   ========================================================= */

.mobile-home-hero {
  display: none;
}

@media (max-width: 991.98px) {

  /* =========================================================
     GESAMTER MOBILER HERO
     ========================================================= */

  .mobile-home-hero {
    display: block;

    width: 100%;

    font-family:
      montserrat,
      system-ui,
      -apple-system,
      "Segoe UI",
      Roboto,
      Arial,
      sans-serif;

    color: var(--waldhorn-dark-grey);
    overflow: hidden;
  }

  /* =========================================================
     OBERER BEREICH
     Wandtextur
     ========================================================= */

  .mobile-home-hero__top {
    position: relative;

    display: flex;
    align-items: center;

    min-height: clamp(480px, 76vw, 650px);

    padding:
      clamp(42px, 7vw, 72px)
      0
      clamp(44px, 7vw, 72px);

    background-image:
      url("../img/hero/hero_top_element_mobile2.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  .mobile-home-hero__top > .container {
    width: 100%;
  }

  /* =========================================================
     LOGO, BUTTONS UND ADRESSE
     Normaler Dokumentfluss, keine absolute Positionierung
     ========================================================= */

  .mobile-home-hero__content {
    position: static;

    width: min(100%, 620px);
    max-width: none;

    margin: 0 auto;
    padding: 0 clamp(4px, 2vw, 16px);

    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
  }

  .mobile-home-hero__logo {
    display: block;

    width: clamp(190px, 38vw, 310px);
    max-width: 100%;
    height: auto;

    margin:
      0
      auto
      clamp(30px, 5vw, 46px);
  }

  .mobile-home-hero__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: min(100%, 510px);

    gap: clamp(10px, 2vw, 16px);
    margin: 0 auto 24px;
  }

  .mobile-home-hero__buttons .btn.btn-outline-waldhorn {
    width: 100%;
    min-height: 46px;

    padding: 9px 12px;

    gap: 8px;

    font-size: clamp(.78rem, 1.8vw, .9rem);
    line-height: 1.1;
  }

  .mobile-home-hero__buttons .hero-icon {
    width: 21px;
    height: 21px;
  }

  .mobile-home-hero__address,
  .mobile-home-hero__phone {
    margin: 0;

    color: var(--waldhorn-dark-grey);

    font-size: clamp(.9rem, 2.2vw, 1.05rem);
    line-height: 1.45;

    text-transform: uppercase;
  }

  .mobile-home-hero__phone {
    font-weight: 700;
  }

  /* =========================================================
     UNTERER BEREICH
     Restaurantfoto
     ========================================================= */

@media (max-width: 991.98px) {

  .mobile-home-hero__bottom {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: clamp(560px, 85vw, 760px);

    padding:
      clamp(56px, 8vw, 88px)
      0;

    /*
     * Hintergrund liegt jetzt auf ::before,
     * damit er unabhängig animiert werden kann.
     */
    background: none;
  }

  .mobile-home-hero__bottom::before {
    content: "";

    position: absolute;
    inset: -5%;

    z-index: -2;

    background:
      url("../img/hero/Waldhorn_eingang_e.png")
      62% center / cover
      no-repeat;

    transform: scale(1);
    transform-origin: 62% center;

    animation:
      mobileHeroKenBurns
      18s
      ease-in-out
      infinite
      alternate;

    will-change: transform;
  }

  /*
   * Leichte Abdunklung über dem Foto,
   * aber unterhalb der Öffnungszeitenkarte.
   */
  .mobile-home-hero__bottom::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background:
      linear-gradient(
        rgba(0, 0, 0, .03),
        rgba(0, 0, 0, .14)
      );

    pointer-events: none;
  }

  @keyframes mobileHeroKenBurns {
    0% {
      transform:
        scale(1)
        translate3d(0, 0, 0);
    }

    100% {
      transform:
        scale(1.1)
        translate3d(-1.5%, -1%, 0);
    }
  }
}

  /* =========================================================
     ÖFFNUNGSZEITENKARTE
     Ebenfalls normaler Dokumentfluss
     ========================================================= */

  .mobile-home-hero__hours.hero-hours {
    position: relative;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    width: min(100%, 590px);
    min-width: 0;
    min-height: 0;

    margin: 0 auto;
    padding:
      clamp(22px, 4vw, 34px)
      clamp(18px, 4vw, 34px)
      clamp(24px, 4vw, 36px);

    transform: none;

    z-index: 1;

    font-size: clamp(.86rem, 2vw, 1rem);
    line-height: 1.45;
  }

  .mobile-home-hero__hours .hours-header {
    display: block;

    width: clamp(170px, 38vw, 240px);
    max-width: 100%;
    height: auto;

    margin: 0 auto 18px;
  }

  .mobile-home-hero__hours .oeffnungszeiten-block {
    position: relative;
    z-index: 1;
  }

  .mobile-home-hero__hours .oeffnungszeiten-title {
    margin-bottom: 14px;

    font-size: 1rem;
    font-weight: 500;
  }

  .mobile-home-hero__hours .oeffnungszeiten-text p {
    margin: 0 0 4px;
  }

  .mobile-home-hero__hours .oeffnungszeiten-hinweis {
    margin-top: 10px;
    padding: 8px 0 0;
  }

  /* =========================================================
     DESKTOP-ELEMENTE
     ========================================================= */

  .cls-home-hero-wrapper {
    display: none;
  }
}

@media (max-width: 480px) {

  .mobile-home-hero__top {
    min-height: auto;

    padding:
      42px
      0
      46px;
  }

  .mobile-home-hero__content {
    padding-right: 4px;
    padding-left: 4px;
  }

  .mobile-home-hero__logo {
    width: min(64vw, 270px);
    margin-bottom: 30px;
  }

  .mobile-home-hero__buttons {
    grid-template-columns: 1fr;

    width: min(100%, 310px);
    gap: 10px;

    margin-bottom: 20px;
  }

  .mobile-home-hero__buttons .btn.btn-outline-waldhorn {
    min-height: 46px;
  }

  .mobile-home-hero__address,
  .mobile-home-hero__phone {
    font-size: .92rem;
  }

  .mobile-home-hero__bottom {
    min-height: 570px;

    padding:
      48px
      0;
  }

  .mobile-home-hero__bottom > .container {
    min-height: 474px;
  }

  .mobile-home-hero__hours.hero-hours {
    width: 100%;
    padding: 22px 15px 24px;
  }
}