/* ===== HERO CONTAINER ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a; /* Fallback */
}

/* ===== HINTERGRUND ===== */
.hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== VORHANG CONTAINER ===== */
.hero__curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  will-change: transform;
  cursor: grab;
  /* Startzustand: 85% offen (Normalzustand eines Brandschutzvorhangs) */
  transform: translateY(-85%);
  touch-action: none; /* Verhindert Browser-Scroll bei Touch-Drag */
}
.hero__curtain:active {
  cursor: grabbing;
}

/* ===== VORHANG-BILD ===== */
.curtain__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none; /* Durchklicken zum Container fuer Drag */
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== STEUERELEMENTE ===== */
.hero__controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero__btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.hero__btn:hover,
.hero__btn:focus-visible {
  background: rgba(232, 83, 30, 0.8); /* accent */
  border-color: #E8531E;
  outline: none;
}
.hero__btn--reset {
  border-color: rgba(232, 83, 30, 0.7);
}
.hero__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hero__btn--cancel {
  border-color: rgba(255, 200, 50, 0.7);
  background: rgba(80, 60, 0, 0.6);
}
.hero__btn--cancel:hover,
.hero__btn--cancel:focus-visible {
  background: rgba(200, 150, 30, 0.8);
  border-color: #c89620;
}

/* ===== HERO LOGO (zentriert, ueber dem Vorhang) ===== */
.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3; /* IMMER ueber Vorhang (z-index: 2) */
  pointer-events: none;
}
.hero__logo svg {
  max-width: 320px;
  width: 80vw;
  height: auto;
  filter: drop-shadow(0 2px 20px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(0,0,0,0.3));
}

/* Logo-Text: Standard dunkelgrau, mit sanftem Übergang */
.logo-text {
  fill: #2b2b27;
  transition: fill 0.4s ease;
}

/* Invertiert: weiße Schrift wenn Vorhang hinter dem Logo */
.hero__logo--inverted .logo-text {
  fill: #ffffff;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero__curtain {
    transition: none !important;
  }
}
