/* ═══════════════════════════════════════
   DUXTEC – Virtuelle Smarthome-Führung
   Scroll-Driven Animation v2
   ═══════════════════════════════════════ */

html { scroll-behavior: smooth; }

/* ─── Fixed top progress bar ─── */
.guide-page-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 300;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.guide-page-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #06b6d4);
  width: 0%;
}

/* ─── Fixed step badge ─── */
.guide-step-badge {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--blue);
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  padding: .32rem .5rem .32rem .7rem;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.guide-step-badge.visible { opacity: 1; pointer-events: auto; }
.guide-step-badge__total { color: var(--text-muted); }

/* ─── Nav buttons inside badge ─── */
.guide-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  padding: .22rem .26rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: color .18s, background .18s;
  line-height: 1;
}
.guide-nav-btn svg { width: 15px; height: 15px; display: block; }
.guide-nav-btn:hover { color: #06b6d4; background: rgba(59,130,246,.1); }
.guide-nav-btn:disabled { opacity: .25; cursor: default; }
.guide-nav-btn:disabled:hover { color: var(--blue); background: none; }

/* ─── Hero ─── */
.guide-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(59,130,246,.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: 0;
}
.guide-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.guide-hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.6rem;
}
.guide-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.guide-hero__title .text-gradient {
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.guide-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 2.8rem;
  font-weight: 400;
}
.guide-hero__scroll-hint {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: guide-bounce 2.4s ease-in-out infinite;
}
.guide-hero__scroll-hint svg { width: 22px; height: 22px; color: var(--blue); }
@keyframes guide-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── Stage section ─── */
.guide-stage {
  height: 100vh;
  display: grid;
  grid-template-columns: 54% 46%;
  overflow: hidden;
  position: relative;
}

/* Even stages: visual right, text left */
.guide-stage--alt {
  grid-template-columns: 46% 54%;
}
.guide-stage--alt .guide-stage__visual { order: 2; }
.guide-stage--alt .guide-stage__text   { order: 1; }

/* ─── Visual panel ─── */
.guide-stage__visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  overflow: hidden;
}

/* subtle edge vignette */
.guide-stage__visual::before,
.guide-stage__visual::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 100px;
  z-index: 1;
  pointer-events: none;
}
.guide-stage__visual::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-alt) 0%, transparent 100%);
}
.guide-stage__visual::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-alt) 0%, transparent 100%);
}

.guide-svg-wrap {
  width: 78%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
  transform-origin: center center;
}
.guide-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(59,130,246,.18));
}

/* ─── Text panel ─── */
.guide-stage__text {
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  padding: 0 clamp(2rem, 5vw, 5rem);
}

/* separator */
.guide-stage:not(.guide-stage--alt) .guide-stage__text::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-blue), transparent);
}
.guide-stage--alt .guide-stage__text::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-blue), transparent);
}

.guide-text-block {
  max-width: 440px;
  will-change: transform, opacity;
}

/* counter */
.guide-info-counter {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.guide-info-counter__num { color: var(--blue); }

/* progress bar */
.guide-info-bar {
  width: 100%;
  max-width: 260px;
  height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2.2rem;
}
.guide-info-bar__fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}

/* typography */
.guide-info-location {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.guide-info-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.guide-info-desc {
  font-size: 1.05rem;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ─── CTA ─── */
.guide-cta {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.guide-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(59,130,246,.09) 0%, transparent 65%);
}
.guide-cta__inner { position: relative; z-index: 1; max-width: 660px; }
.guide-cta__eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.guide-cta__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.guide-cta__sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 2.6rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .guide-stage,
  .guide-stage--alt {
    grid-template-columns: 1fr;
    grid-template-rows: 48vh auto;
    height: auto;
    min-height: 100vh;
  }
  .guide-stage--alt .guide-stage__visual { order: 1; }
  .guide-stage--alt .guide-stage__text   { order: 2; }
  .guide-stage__visual { height: 48vh; }
  .guide-stage__text {
    height: auto;
    padding: 2.5rem 1.8rem 3rem;
  }
  .guide-stage:not(.guide-stage--alt) .guide-stage__text::before,
  .guide-stage--alt .guide-stage__text::after { display: none; }
  .guide-info-bar { max-width: 100%; }
  .guide-step-badge { bottom: 1rem; right: 1rem; }
}
@media (max-width: 560px) {
  .guide-hero__title { font-size: 2rem; }
  .guide-info-title  { font-size: 1.5rem; }
}
