/* DUNKEL — Bar in Lüneburg
 * Cinematic Dark · Three.js Bierglas · Annotated Zoom-Storytelling
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: #08070A;
  color: #E8DDC9;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }

/* Subtle ambient mesh */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(at 30% 30%, rgba(196,165,123,0.08) 0%, transparent 50%),
    radial-gradient(at 70% 70%, rgba(212,118,82,0.06) 0%, transparent 50%);
  filter: blur(60px);
  z-index: -1;
}

/* ─── 3D BACKGROUND CANVAS ─── */
#beer-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* SVG Overlay für Annotation-Lines (zwischen Canvas und Content) */
#annotations-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}
#annotations-svg.is-active { opacity: 1; }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 100;
  background: rgba(232,221,201,0.05);
}
.scroll-progress::after {
  content: '';
  display: block; height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, #C4A57B, #D47652);
  transition: width 60ms linear;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: difference;
}
.nav .brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 1.5rem; letter-spacing: 0.005em; color: #FFF;
}
.nav nav { display: flex; gap: 2rem; }
.nav nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #FFF;
  position: relative; padding: 0.5rem 0;
}
.nav nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: #C4A57B;
  transition: width 300ms cubic-bezier(.2,.7,.2,1);
}
.nav nav a:hover::after { width: 100%; }

main, .nav, .scroll-progress { position: relative; z-index: 10; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 2.5rem;
  position: relative;
  z-index: 10;
}
.hero-content {
  max-width: 1300px; margin: 0 auto; width: 100%;
  text-align: center;
}
.hero .label {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: #C4A57B;
  margin-bottom: 2rem;
}
.hero .label::before, .hero .label::after {
  content: ''; width: 40px; height: 1px;
  background: #C4A57B; opacity: 0.5;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.95; letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.hero h1 em {
  font-style: italic;
  color: #C4A57B;
  font-weight: 500;
}
.hero .lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  max-width: 580px;
  color: rgba(232,221,201,0.7);
  margin: 0 auto 3rem;
  line-height: 1.5;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.8rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), background 300ms;
}
.btn-primary {
  background: #C4A57B; color: #08070A;
  box-shadow: 0 12px 40px rgba(196,165,123,0.25);
}
.btn-primary:hover { transform: translateY(-3px); background: #DBBC92; box-shadow: 0 16px 50px rgba(196,165,123,0.4); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,221,201,0.2);
  color: #E8DDC9;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }

.scroll-cue {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(232,221,201,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-cue .line {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, transparent, #C4A57B);
  animation: cueLine 2s ease-in-out infinite;
}
@keyframes cueLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ─── ANNOTATED-SECTION (Sticky + Glas zoomt rein) ─── */
.annotated-stage {
  height: 500vh; /* 5 viewports — Glas zoomt + 4 Annotations werden eingefadet */
  position: relative;
  z-index: 10;
}
.annotated-pin {
  position: sticky; top: 0;
  height: 100vh;
  width: 100%;
}

/* Annotation Boxes */
.annotation {
  position: absolute;
  z-index: 12;
  width: 280px;
  padding: 1.2rem 1.4rem;
  background: rgba(15,12,10,0.78);
  border: 1px solid rgba(196,165,123,0.3);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.annotation.is-visible { opacity: 1; transform: none; }
.annotation .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #C4A57B; margin-bottom: 0.6rem;
}
.annotation h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 1.4rem; line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #FFF;
}
.annotation p {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem; line-height: 1.55;
  color: rgba(232,221,201,0.75);
}

/* Annotation positioning — abhängig von Bildschirm-Position */
.annotation.a1 { top: 10%; left: 6%; }
.annotation.a2 { top: 12%; right: 6%; text-align: right; }
.annotation.a3 { bottom: 16%; right: 6%; text-align: right; }
.annotation.a4 { bottom: 14%; left: 6%; }

@media (max-width: 800px) {
  .annotation { width: 220px; padding: 1rem; }
  .annotation.a1 { top: 8%; left: 4%; }
  .annotation.a2 { top: 8%; right: 4%; }
  .annotation.a3 { bottom: 8%; right: 4%; }
  .annotation.a4 { bottom: 8%; left: 4%; }
}

/* ─── SECTION ─── */
.sec {
  position: relative; z-index: 10;
  padding: clamp(5rem, 10vw, 8rem) 2.5rem;
  max-width: 1300px; margin: 0 auto;
}
.sec-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: #C4A57B;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.sec-tag::before { content: ''; width: 32px; height: 1px; background: #C4A57B; }
.sec h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}
.sec h2 em { font-style: italic; color: #C4A57B; font-weight: 500; }
.sec .sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem; color: rgba(232,221,201,0.65);
  max-width: 580px; margin-bottom: 4rem;
}

/* ─── TAP-LIST ─── */
.taps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(196,165,123,0.15);
  border: 1px solid rgba(196,165,123,0.15);
  max-width: 1100px; margin: 0 auto;
}
.tap {
  background: rgba(15,12,10,0.85);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  transition: background 300ms;
}
.tap:hover { background: rgba(20,16,12,0.95); }
.tap .name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 1.6rem;
  color: #FFF;
}
.tap .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #C4A57B;
  letter-spacing: 0.05em;
}
.tap .desc {
  grid-column: 1 / -1;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.88rem; line-height: 1.6;
  color: rgba(232,221,201,0.65);
}
@media (max-width: 700px) { .taps { grid-template-columns: 1fr; } }

/* ─── HOURS ─── */
.hours-block {
  background: rgba(15,12,10,0.75);
  border: 1px solid rgba(196,165,123,0.18);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px; margin: 0 auto;
}
.hours-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 500;
  font-size: 2rem; color: #C4A57B;
  margin-bottom: 1rem;
}
.hours-block p {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  color: rgba(232,221,201,0.7);
  line-height: 1.7;
}
.hours-list { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; }
.hours-list .row {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(196,165,123,0.15);
}
.hours-list .row:last-child { border-bottom: 0; }
.hours-list .day { letter-spacing: 0.1em; color: #FFF; }
.hours-list .time { color: #C4A57B; }
@media (max-width: 700px) {
  .hours-block { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
}

/* ─── CTA ─── */
.cta-final {
  position: relative; z-index: 10;
  text-align: center;
  padding: 8rem 2.5rem;
}
.cta-final h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.98; letter-spacing: -0.005em;
  margin-bottom: 2rem;
}
.cta-final h2 em {
  font-style: italic;
  color: #C4A57B;
  font-weight: 500;
}
.cta-final p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(232,221,201,0.7);
  max-width: 540px; margin: 0 auto 3rem;
}

/* ─── FOOTER ─── */
.foot {
  position: relative; z-index: 10;
  padding: 3rem 2.5rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(232,221,201,0.4);
  border-top: 1px solid rgba(196,165,123,0.08);
  background: rgba(8,7,10,0.7);
  backdrop-filter: blur(10px);
}
.foot a { color: #C4A57B; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
