/* Hero video + overlay (Shortcode [staysafe_hero_video]…[/staysafe_hero_video]) */
.staysafe-hero-ref-wrap {
  position: relative;
  width: 100%;
  min-height: min(72vh, 640px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.staysafe-hero-ref__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.staysafe-hero-ref__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(11, 18, 32, 0.82) 0%,
    rgba(11, 18, 32, 0.42) 48%,
    rgba(11, 18, 32, 0.58) 100%
  );
}

.staysafe-hero-ref__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 32px);
}

@media (prefers-reduced-motion: reduce) {
  .staysafe-hero-ref__video {
    display: none;
  }

  .staysafe-hero-ref-wrap {
    background: radial-gradient(ellipse 120% 80% at 20% 10%, #1e293b 0%, #0b1220 55%);
  }
}

/* Hero (Elementor HTML block) — Referenz-Layout StaySafe Schweiz */
.staysafe-hero-ref {
  max-width: 720px;
}

/* Elementor: Text + Bild (.staysafe-hero-ref-row). Bild per .elementor-widget-image — nicht __media,
   Elementor macht aus Klassen mit __ oft nur einen Unterstrich (_media), daher Widget-Typ als Selektor. */
.staysafe-hero-ref-row .e-con-inner {
  align-items: stretch;
  width: 100%;
  gap: clamp(36px, 6vw, 96px);
}

.staysafe-hero-ref-row .elementor-widget-html {
  flex: 1 1 min(100%, 22rem);
  min-width: 0;
  display: flex;
  align-items: center;
}

.staysafe-hero-ref-row .staysafe-hero-ref {
  max-width: 100%;
}

.staysafe-hero-ref-row .elementor-widget-image {
  display: flex;
  flex: 0 1 min(640px, 52vw);
  max-width: min(640px, 52vw);
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
}

/* Platzhalter ohne Bild */
.staysafe-hero-ref-row .elementor-widget-image:not(:has(img)) .elementor-widget-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  margin-inline: auto;
}

.staysafe-hero-ref-row .elementor-widget-image:has(img) .elementor-widget-container {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  overflow: visible;
}

.staysafe-hero-ref-row .elementor-widget-image img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(88vh, 960px) !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  display: block;
  border: 0;
}

@media (max-width: 767px) {
  .staysafe-hero-ref-row .e-con-inner {
    gap: clamp(20px, 4vw, 36px);
  }

  .staysafe-hero-ref-row .elementor-widget-image {
    flex-basis: 100%;
    max-width: 100%;
    align-items: center;
  }

  .staysafe-hero-ref-row .elementor-widget-image img {
    max-height: min(58vh, 560px) !important;
  }
}

.staysafe-hero-ref__panel {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: clamp(20px, 4vw, 36px) clamp(20px, 4vw, 32px);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-transparency: reduce) {
  .staysafe-hero-ref__panel {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.staysafe-hero-ref__title {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.staysafe-hero-ref__title-line2 {
  display: block;
  margin-top: 0.12em;
}

.staysafe-hero-ref__subtitle {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  opacity: 0.95;
}

.staysafe-hero-ref__trust {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
}

.staysafe-hero-ref__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.staysafe-hero-ref__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.staysafe-hero-ref__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.staysafe-hero-ref__btn--primary {
  background: #d87027;
  color: #ffffff;
  border: 1px solid transparent;
}

.staysafe-hero-ref__btn--primary:hover,
.staysafe-hero-ref__btn--primary:focus {
  background: #c45f1f;
  color: #ffffff;
}

.staysafe-hero-ref__btn--secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.staysafe-hero-ref__btn--secondary:hover,
.staysafe-hero-ref__btn--secondary:focus {
  background: #ffffff;
  border-color: #94a3b8;
}

.staysafe-hero-ref__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 600px) {
  .staysafe-hero-ref__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .staysafe-hero-ref__btn {
    width: 100%;
  }
}
