/* /public/assets/css/pages/home.css */

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  width: 100%;
  min-height: 420px;
  padding: 60px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-main);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(
      90deg,
      var(--card-bg) 25%,
      rgba(254, 254, 254, 0.85) 55%,
      rgba(254, 254, 254, 0) 90%
    ),
    url("/assets/img/home/parts.webp");
  background-size: cover;
  background-position: center right;
  pointer-events: none;
}
html[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(
      90deg,
      var(--card-bg) 25%,
      rgba(20, 22, 24, 0.85) 55%,
      rgba(20, 22, 24, 0) 90%
    ),
    url("/assets/img/home/parts.webp");
}
.hero-title,
.hero-subtitle,
.hero-text,
.hero .btn-group {
  position: relative;
  z-index: 2;
}
.hero-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  display: block;
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.95;
}
.hero-text {
  max-width: 620px;
  margin-bottom: 25px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Card Backgrounds ────────────────────────────── */
.bg-beratung::after {
  background-image: url("/assets/img/home/beratung.webp");
}
.bg-abholung::after {
  background-image: url("/assets/img/home/abholung.webp");
}
.bg-vin::after {
  background-image: url("/assets/img/home/vin.webp");
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 950px) {
  .hero {
    min-height: auto;
    padding: 35px 20px;
  }
  .hero::before {
    background-image:
      linear-gradient(
        180deg,
        var(--card-bg) 65%,
        rgba(254, 254, 254, 0.7) 100%
      ),
      url("/assets/img/home/parts.webp");
    background-position: center;
  }
  html[data-theme="dark"] .hero::before {
    background-image:
      linear-gradient(180deg, var(--card-bg) 65%, rgba(20, 22, 24, 0.7) 100%),
      url("/assets/img/home/parts.webp");
  }
}
