/* ==========================================================
   Timeless – Startseite: links Shisha Bar, rechts Restaurant
   ========================================================== */

.gate {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ---------- Kopf ---------- */

.gate__brand {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: calc(28px + env(safe-area-inset-top)) 16px 80px;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 9, 8, 0.85) 0%, rgba(6, 9, 8, 0) 100%);
}
.gate__logo { margin: 0; width: min(56vw, 300px); }
.gate__logo path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
body.is-ready .gate__logo path { animation: draw 1.5s var(--ease-in-out) forwards; }
body.is-ready .gate__logo path:nth-child(2) { animation-delay: 0.06s; }
body.is-ready .gate__logo path:nth-child(3) { animation-delay: 0.12s; }
body.is-ready .gate__logo path:nth-child(4) { animation-delay: 0.18s; }
body.is-ready .gate__logo path:nth-child(5) { animation-delay: 0.24s; }
body.is-ready .gate__logo path:nth-child(6) { animation-delay: 0.3s; }
body.is-ready .gate__logo path:nth-child(7) { animation-delay: 0.36s; }
body.is-ready .gate__logo path:nth-child(8) { animation-delay: 0.42s; }
.gate__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 1s 0.8s var(--ease-out);
}
body.is-ready .gate__sub { opacity: 1; }

/* ---------- Die beiden Hälften ---------- */

.gate__split {
  display: flex;
  height: 100%;
}
.gate__side {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  transition: flex-grow 0.9s var(--ease-out);
}
.gate__side--shisha::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--neon-glow) 30%, var(--neon-glow) 70%, transparent);
  box-shadow: 0 0 12px var(--neon-glow);
  opacity: 0.7;
}
.gate__poster,
.gate__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out), filter 0.9s var(--ease-out);
}
.gate__side--shisha .gate__poster,
.gate__side--shisha .gate__video { object-position: 30% 40%; }
.gate__video { opacity: 0; transition: opacity 1s ease, transform 1.6s var(--ease-out), filter 0.9s var(--ease-out); }
.gate__video.is-playing { opacity: 1; }
body.is-ready .gate__poster,
body.is-ready .gate__video { transform: scale(1); }

.gate__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(6, 9, 8, 0.92) 0%, rgba(6, 9, 8, 0.35) 45%, rgba(6, 9, 8, 0.25) 70%, rgba(6, 9, 8, 0.6) 100%);
  transition: background-color 0.9s var(--ease-out);
}

.gate__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 24px clamp(150px, 20vh, 200px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s 0.6s var(--ease-out), transform 1.1s 0.6s var(--ease-out);
}
body.is-ready .gate__label { opacity: 1; transform: none; }
body.is-ready .gate__side--restaurant .gate__label { transition-delay: 0.75s; }
.gate__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.gate__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5.4vw, 84px);
  line-height: 1;
  color: var(--text);
  transition: color 0.5s, text-shadow 0.5s;
}
.gate__desc {
  max-width: 340px;
  font-size: 15px;
  color: var(--text-soft);
}
.gate__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(6, 9, 8, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.gate__cta svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }

/* Hover: gewählte Seite wird grösser und heller, die andere tritt zurück */
@media (hover: hover) {
  .gate__split:hover .gate__side { flex-grow: 0.75; }
  .gate__split .gate__side:hover { flex-grow: 1.25; }
  .gate__split:hover .gate__side:not(:hover) .gate__poster,
  .gate__split:hover .gate__side:not(:hover) .gate__video { filter: brightness(0.45) saturate(0.6); }
  .gate__side:hover .gate__poster,
  .gate__side:hover .gate__video { transform: scale(1.04); }
  .gate__side:hover .gate__title { color: var(--neon); text-shadow: 0 0 22px rgba(62, 240, 165, 0.5); }
  .gate__side:hover .gate__cta {
    background: var(--neon);
    border-color: var(--neon);
    color: #03140c;
    box-shadow: 0 10px 40px -10px rgba(62, 240, 165, 0.6);
  }
  .gate__side:hover .gate__cta svg { transform: translateX(4px); }
}
.gate__side:focus-visible { outline-offset: -6px; }

/* ---------- Fuss ---------- */

.gate__foot {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 40px 16px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(6, 9, 8, 0.9) 0%, rgba(6, 9, 8, 0) 100%);
  opacity: 0;
  transition: opacity 1s 1s var(--ease-out);
}
body.is-ready .gate__foot { opacity: 1; }
.gate__order { min-height: 46px; padding: 0 22px; font-size: 12px; }
.gate__address { font-size: 13px; color: var(--text-soft); }
.gate__socials .social { width: 40px; height: 40px; }

/* ---------- Handy ---------- */

@media (max-width: 767px) {
  .gate__label { gap: 8px; padding: 0 10px 168px; }
  .gate__kicker { font-size: 9px; letter-spacing: 0.22em; }
  .gate__title { font-size: clamp(26px, 8.4vw, 40px); }
  .gate__desc { display: none; }
  .gate__cta { padding: 10px 16px; font-size: 10px; letter-spacing: 0.14em; }
  .gate__address { order: 3; width: 100%; text-align: center; font-size: 12px; }
  .gate__socials { display: none; }
}
