/* ================================================
   HERO.CSS — Fullscreen Hero mit Hintergrundbild
   ================================================ */

#hero {
  position: relative;
  min-height: 100vh;          /* Volle Bildschirmhöhe */
  display: flex;
  align-items: center;        /* Inhalt vertikal zentrieren */
  overflow: hidden;
}

/* --- HINTERGRUNDBILD ---
   Separates Element damit wir es unabhängig
   skalieren und positionieren können */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: top center; /* NEU — war: center */
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 8s ease-out forwards;
}

/* Sanftes Hereinzoomen beim Laden */
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0);  }
}

/* --- OVERLAY ---
   Dunkler Gradient damit Text lesbar ist */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.80) 0%,
    rgba(15, 23, 42, 0.50) 60%,
    rgba(14, 165, 233, 0.20) 100%
  );
}

/* --- INHALT ---
   Liegt über Bild und Overlay (z-index) */
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;          /* Platz für die fixe Navbar */
  padding-bottom: var(--space-2xl);
  max-width: 700px;           /* Text nicht zu breit */
}

/* --- BADGE --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14, 165, 233, 0.20);
  border: 1px solid rgba(14, 165, 233, 0.40);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
  
  /* Einblend-Animation */
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

/* --- TITEL --- */
.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero-title span {
  color: var(--color-accent); /* "Klima & Kältetechnik" in Blau */
}

/* --- SUBTITLE --- */
.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.80);
  max-width: 520px;
  margin-bottom: var(--space-lg);
  
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

/* --- BUTTONS --- */
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-base);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-base);
  border: 1px solid rgba(255, 255, 255, 0.30);
  transition: background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* --- TRUST BADGES --- */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 1s;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.trust-item span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.2rem;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
}

/* --- FADE UP ANIMATION --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}