﻿/**
 * SOMMER MOBILE HERO COPY
 * Rollback: SOMMER_MOBILE_HERO_COPY = false
 */
.sommer-mobile-hero-copy { display: none; }

@media only screen and (max-width: 980px) {
  .et_pb_section.et_pb_fullwidth_section:first-of-type,
  .et_pb_fullwidth_section.et_pb_section_1 {
    position: relative !important;
  }

  .sommer-mobile-hero-copy {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    box-sizing: border-box;
    font-family: Catamaran, "Barlow SemiBold Lokal", Helvetica, Arial, sans-serif;
    color: #ffffff;
  }

  .sommer-mobile-hero-copy * { box-sizing: border-box; }

  .smhc-top {
    position: absolute;
    left: 50%;
    top: calc(14% + 20px);
    transform: translateX(-50%);
    width: min(86vw, 340px);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.35);
    animation: smhc-in .7s ease both;
  }

  .smhc-kicker {
    margin: 0 0 .35rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
  }

  .smhc-line {
    margin: 0;
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.12;
  }

  .smhc-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3.5rem 1.25rem 1.35rem;
    background: linear-gradient(180deg, rgba(10,0,0,0) 0%, rgba(10,0,0,.55) 38%, rgba(10,0,0,.82) 100%);
    text-align: center;
    animation: smhc-in-bottom .85s ease .12s both;
  }

  .smhc-claim {
    margin: 0 auto 1rem;
    max-width: 22rem;
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
  }

  .smhc-claim strong {
    font-weight: 800;
    color: #EE7A30;
    white-space: nowrap;
  }

  .smhc-cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.4rem;
    background: #EE7A30;
    color: #fff !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 0;
    border-radius: 0;
    transition: background-color .2s ease;
  }

  .smhc-cta:hover,
  .smhc-cta:focus {
    background: #347B5B;
    color: #fff !important;
    outline: none;
  }

  .smhc-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
}

@keyframes smhc-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes smhc-in-bottom {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .smhc-top, .smhc-bottom { animation: none !important; }
}

/* no-cta */
@media only screen and (max-width: 980px) {
  .smhc-bottom:not(:has(.smhc-cta)) {
    padding-bottom: 1.75rem;
  }
}
