@charset "utf-8";
/* CSS Document */

/* --------- Struktur & Layout --------- */
.container-fluid.p-0 { padding: 0; }

/* Overlay-Box: full width container, Inhalt max 1200px zentriert */
.overlay-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px; /* deine gewünschte Breite */
  margin: 0 auto;    /* horizontal zentrieren */
  height: 500px;     /* anpassbar */
  background: #000;
}

/* Hintergrundbild (cover) */
.overlay-box .bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
}

/* Goldene Vorder-Abdeckung (Rolladen) */
.gold-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #c9a34f;
  opacity: 0.75;
  transition: transform 0.9s cubic-bezier(.60,.04,.18,1), opacity .4s ease;
  z-index: 6; /* ganz oben vor Inhalt */
  cursor: pointer;
}
.overlay-box:hover .gold-overlay { opacity: 0.45; }

/* Hintergrund-Fade (nach dem Öffnen fährt von oben nach unten) */
.bg-color-fade {
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  /* Verlauf: oben transparent → unten stark gold */
  background: linear-gradient(to bottom,
    rgba(201,163,79,0) 0%,
    rgba(201,163,79,0.55) 60%,
    rgba(201,163,79,0.95) 100%);
  filter: blur(6px);
  opacity: 0;
  transition: top 2.2s ease, opacity 2.2s ease;
  z-index: 2; /* unter dem Inhalt, über dem Bild */
}

/* Content Wrapper: Fullarea, zentriert (innerer Bereich max 1200px) */
.content-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* damit Klicks an overlay gelangen */
  z-index: 5; /* über bg-color-fade, unter gold-overlay */
  text-align: center;
}

/* Innerer Content (dieser Bereich kann pointer-events erhalten) */
.content-inner {
  pointer-events: auto; /* Buttons sind klickbar */
  width: 90%;
  max-width: 1100px;
  color: #ffffff;
  height: 20px; /* gewünschte Höhe */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: opacity 1.2s ease;
  opacity: 0; /* wird sichtbar nach Animation */
}

/* Wenn geöffnet: Vorderrolladen weg, BackFade fährt runter, Text sichtbar */
.overlay-box.open .gold-overlay {
  transform: translateY(-100%);
  opacity: 0;
}
.overlay-box.open .bg-color-fade {
  top: 0;
  opacity: 0.9;
}
.overlay-box.open .content-inner {
  opacity: 1;
  transition-delay: 1.1s; /* Text erscheint nach dem Back-Fade begint */
}

/* Button-Style */
#actionBtn {
  margin-top: 12px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .overlay-box { height: 360px; }
  .content-inner { height: 160px; width: 94%; }
}
@media (max-width: 480px) {
  .overlay-box { height: 300px; }
  .content-inner { height: 140px; }
}