.scroll-section {
  position: relative;
  height: 100vh; /* 🔥 FIX: klare Höhe */
}

.scroll-section-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.sticky {
  position: relative; /* ❗ wichtig: nicht sticky! GSAP macht das */
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
}

/* Texte */
.main-text {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.main-text h1,
.main-text h2,
.main-text h3 {
  position: absolute;
  opacity: 0;
  transform: translateY(40px);
  max-width: 40%;
}

/* Layout */
.left-text { left: 8%; top: 30%; }
.left-text-sub { left: 8%; top: 33%; }
.right-text { right: 8%; top: 30%; text-align: right; }
.right-text-sub { right: 8%; top: 34%; text-align: right; }
.center-text {
  left: 50%;
  top: 25%;
  transform: translateX(-50%);
  text-align: center;
}


/* =========================
   TEXT DESIGN
========================= */

.headline1,
.headline2,
.headline3,
.headline4,
.headline5,
.sub1,
.sub2,
.sub3,
.sub4,
.sub5 {
  background: #fff;
  color: #000;
  padding: 0.5em 1em;
  border-radius: 14px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* =========================
   IMAGE SYSTEM (FIXED!)
========================= */

.image-stage {
  position: absolute;
  width: 100%;
  height: 100%;
}

.img {
  position: absolute;
  top: 50%;
  width: 60%;
  max-width: 700px;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

/* Varianten */
.right-img {
  left: auto;
  right: 8%;
  transform: translateY(-50%);
}

.left-img {
  left: 8%;
  transform: translateY(-50%);
}

.center-img {
  left: 50%;
  transform: translate(-50%, -50%);
}

.scroll-hint {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  font-size: 16px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,100% { transform: translate(-50%,0); }
  50% { transform: translate(-50%,10px); }
}


/* =========================
   BACKGROUND TRANSITION
========================= */

.scroll-section {
  background: #ffffff;
  transition: background 0.8s ease;
}

.scroll-section.dark {
  background: #0f172a;
}


/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {

  .main-text h1,
  .main-text h2,
  .main-text h3 {
    max-width: 90%;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    text-align: center !important;
    top: 12%;
  }

  .img {
    width: 90%;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%);
    top: 65%;
  }
}





.subtext {
  opacity: 0;
  transform: translateY(20px);
}


.demo-screen * {
  pointer-events: none;
}



.scroll-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


.img.active {
  opacity: 1;
}

/* Klick Punkt */
.click-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #00ffcc;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: scale(0.5);
  box-shadow: 0 0 20px #00ffcc;
  transition: all 0.4s ease;
}

.click-dot.active {
  animation: clickPulse 0.6s ease;
}

@keyframes clickPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}


.hero-new {
  padding: 120px 0;
  background: radial-gradient(circle at 70% 30%, #eef2ff, #f8fafc);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-demo {
  flex: 1;
  position: relative;
}

.demo-screen {
  aspect-ratio: 16 / 10;
  background: #f8fafc;
}

.demo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}



.demo-img.active {
  opacity: 1;
}

.status {
  opacity: 0;
  transform: translateY(10px);
}

.statusB {
  opacity: 0;
  transform: translateY(10px);
}

/* Cursor */



/* Klick Effekt */
.click-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #4f46e5;
  border-radius: 50%;
  top: 60%;
  left: 40%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* Status */
.status {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #22c55e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
}

.statusB {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #22c55e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
}

.hint {
  position: absolute;
  border: 2px dashed #ff5722; /* auffällige Farbe */
  border-radius: 8px;
  pointer-events: none; /* Klicks durchlassen */
  opacity: 0;
  transition: all 0.4s ease;
}

/* optional Animation beim Einblenden */
.hint.active {
  opacity: 1;
  transform: scale(1.1);
}

.hint-1 {
  left: 2%;
  top: 34%;
  width: 20%;
  height: 10%;
}

.hint-2 {
  left: 57%;
  top: 45%;
  width: 35%;
  height: 35%;
}

#demo-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

#demo-lightbox.active {
  display: flex;
}

.demo-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
}

.demo-screen.large {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  color: #fff;
  z-index: 100000;
  cursor: pointer;
}

/* Neue Section */

.dashboard-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.clock-box {
    font-size: 24px;
    font-weight: bold;
}

/* BUTTON PULSE */
#checkinBtn {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    70% { box-shadow: 0 0 0 18px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.click-hint {
    font-size: 14px;
    margin-top: 8px;
    color: #666;
    animation: bounceHint 1.5s infinite;
}

@keyframes bounceHint {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* AUTO BOX (MITTE, NICHT UNTEN!) */
.auto-checkin-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #111;
    color: #fff;
    padding: 25px 35px;
    border-radius: 14px;
    font-size: 18px;
    text-align: center;
    z-index: 99999;
    opacity: 0;
}

.dashboard-box {
    transform: scale(1.05);
}

.dashboard-box {
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border: 1px solid #eee;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Abstand zwischen Text und Demo */
    padding: 60px 40px;
}

.hero-text {
    flex: 1; /* nimmt den verfügbaren Platz links */
}

.hero-demo {
    display: flex;
    justify-content: center; /* mittig in der Spalte */
}

.time-demo {
    max-width: 430px;  /* kleiner als der Textbereich */
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

@media (max-width: 992px) {
    .hero-demo .dashboard-box {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding-left: 10px;  /* optional, etwas Innenabstand */
        padding-right: 10px; /* optional, etwas Innenabstand */
    }

    /* Optional: Uhr + letzte Buchung nebeneinander behalten */
    .clock-box {
        flex-direction: column; /* wenn zu eng, ansonsten row lassen */
        align-items: flex-start;
    }
}
