/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* full screen */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* text on the right */
  color: #fff;
  overflow: hidden;

  /* Base gradient background (used when no images present) */
  background: linear-gradient(var(--color1), var(--color5));
}

/* Optional: you can keep this class to be explicit, but the base gradient already covers it */
.hero--no-images {
  /* nothing extra needed; base gradient already applies */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Gradient overlay always visible (on top of images or base gradient) */
  background: linear-gradient(var(--color1), var(--color5));
  opacity: 0.5;
  /* adjust transparency */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  /* above overlay */
  max-width: 50%;
  padding: 2rem 5rem 2rem 2rem;
  text-align: right;
}

/* Typography */
.hero h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #a9c0bb;
}

.hero-link {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: underline;
  color: #fff;
  transition: color 0.3s ease;
}

.hero-link:hover {
  color: #e0e0e0;
}

.hero-link .arrow {
  margin-left: 0.5rem;
  font-size: 1.2rem;
  text-decoration: none;
}



.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}


.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* start hidden */
  transition: opacity 3s ease;
  /* 3s fade as requested */
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--color1), var(--color5));
  opacity: .5;
  z-index: 2;
}

.hero {
  background: linear-gradient(var(--color1), var(--color5));
  /* fallback when no images */
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Powered by badge */
.hero-poweredby {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    display: flex
;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    pointer-events: none;
    opacity: 0.5;
}

.hero-poweredby__text {
  display:none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.hero-poweredby__logo {
  max-width: 120px;
  /* small logo */
  height: auto;
  opacity: .5;
  /* requested transparency */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
  user-select: none;
  -webkit-user-drag: none;
}

.hero-poweredby__logo__swissofferten {
  min-width: 410px;
  /* small logo */
  height: auto;
  opacity: 1;
  /* requested transparency */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
  padding-left: 5px;
  padding-right: 5px;
  z-index: 5;
}

@media (max-width: 560px) {
  .hero-poweredby__logo {
    max-width: 90px;
  }

  .hero-poweredby__text {
    font-size: .75rem;
  }
}

/* ===== Partner logos: equal height, one row on every screen ===== */
.hero-poweredby {
  --logo-h: 52px;
  gap: 12px;
  flex-wrap: nowrap;
}
.hero-poweredby__logo,
.hero-poweredby__logo__swissofferten {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  object-fit: contain;
}
.hero-poweredby__link {
  display: block;
  pointer-events: auto;   /* container has pointer-events:none; keep the badge clickable */
}

@media (max-width: 560px) {
  .hero-poweredby {
    --logo-h: 40px;
    left: 12px;
    right: 12px;
    bottom: 14px;
    justify-content: center;
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .hero-poweredby { --logo-h: 34px; gap: 6px; }
}

/* ===== Hero copy readability + CTAs ===== */
.hero-content {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.hero p {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 0 1.25rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.hero-btn:active { transform: translateY(1px); }

.hero-btn--primary {
  background: #fff;
  color: var(--color5, #1D6E93);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}
.hero-btn--primary .arrow { transition: transform .2s ease; }
.hero-btn--primary:hover .arrow { transform: translateX(4px); }

.hero-btn--ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.hero-btn--ghost:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
}

.hero-btn:focus-visible,
.hero-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hero-link {
  font-size: 1rem;
  opacity: .9;
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    padding: 1.5rem 20px 110px;  /* bottom room for the partner-logo row */
    text-align: left;
  }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); line-height: 1.1; }
  .hero p { font-size: 1.1rem; }
  .hero-actions { justify-content: flex-start; }
  .hero-btn { flex: 1 1 100%; justify-content: center; padding: 15px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn, .hero-btn .arrow { transition: none; }
}
