/* ============================================================
   Das Bar Kollektiv — Luxury CSS
   Dark editorial, Art Deco meets contemporary minimalism
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --bg:      #080704;
  --surface: #141210;
  --cream:   #f2ede4;
  --gold:    #b8924a;
  --muted:   #6b6056;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Karla', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-med: 0.5s var(--ease-out);
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* --- Utility ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.gold-text {
  color: var(--gold);
}

.muted {
  color: var(--muted);
}

/* --- Scroll Animations ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* --- Navigation ------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out),
              border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 7, 4, 0.97);
  padding: 1rem 0;
  border-color: rgba(184, 146, 74, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--gold);
  opacity: 1;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1569529465841-dfecdab7503b?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  transform: scale(1.03);
  transition: transform 8s var(--ease-out);
}

.hero__bg.loaded {
  transform: scale(1);
}

/* Film grain overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

/* Vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8,7,4,0.65) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeDown 1s var(--ease-out) 0.3s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.05em;
  color: var(--cream);
  animation: heroReveal 1.4s var(--ease-out) 0.5s both;
}

.hero__slogan {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 1.5rem;
  animation: fadeUp 1s var(--ease-out) 1.1s both;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s var(--ease-out) 1.8s both;
}

.hero__scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Gold Divider ----------------------------------------- */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gold-divider__line {
  height: 1px;
  background: var(--gold);
  width: 0;
  transition: width 1.2s var(--ease-out);
  flex: 0 0 auto;
}

.gold-divider.visible .gold-divider__line {
  width: 60px;
}

.gold-divider__ornament {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- Section Base ----------------------------------------- */
section {
  padding: 7rem 0;
}

.section__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 2rem;
}

.section__title em {
  font-style: italic;
  color: var(--gold);
}

/* --- Philosophie ------------------------------------------ */
.philosophie {
  background: var(--surface);
}

.philosophie__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.philosophie__text p {
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.philosophie__text p:last-of-type {
  margin-bottom: 0;
}

.philosophie__image-wrap {
  position: relative;
}

.philosophie__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: brightness(0.75) sepia(0.2);
}

.philosophie__image-wrap::before {
  content: '';
  position: absolute;
  inset: -1.5rem 1.5rem 1.5rem -1.5rem;
  border: 1px solid rgba(184, 146, 74, 0.25);
  z-index: -1;
}

/* --- Unsere Welt ------------------------------------------ */
.unsere-welt {
  background: var(--bg);
}

.unsere-welt__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4rem;
}

.welt-card {
  background: var(--surface);
  padding: 3rem 2.5rem 3.5rem;
  border-top: 1px solid rgba(184, 146, 74, 0.2);
  transition: border-color 0.3s;
}

.welt-card:hover {
  border-color: var(--gold);
}

.welt-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(184, 146, 74, 0.2);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.welt-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.welt-card__text {
  font-size: 0.9rem;
  color: #9e9188;
  line-height: 1.85;
}

/* --- Tastings --------------------------------------------- */
.tastings {
  position: relative;
  overflow: hidden;
  padding: 10rem 0;
}

.tastings__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.25) sepia(0.3);
}

.tastings__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(8, 7, 4, 0.9) 0%,
    rgba(8, 7, 4, 0.6) 50%,
    rgba(8, 7, 4, 0.85) 100%);
}

.tastings__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.tastings__quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.tastings__quote strong {
  font-weight: 600;
  color: var(--gold);
  font-style: normal;
}

.tastings__body {
  font-size: 0.95rem;
  color: rgba(242, 237, 228, 0.9);
  line-height: 1.9;
  max-width: 560px;
}

/* --- Mitgliedschaft --------------------------------------- */
.mitgliedschaft {
  background: var(--surface);
  text-align: center;
}

.mitgliedschaft__inner {
  max-width: 680px;
  margin-inline: auto;
}

.mitgliedschaft__statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(184, 146, 74, 0.2);
}

.mitgliedschaft__body {
  font-size: 0.95rem;
  color: #9e9188;
  line-height: 1.95;
  margin-bottom: 2rem;
}

.mitgliedschaft__note {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(184, 146, 74, 0.85);
  letter-spacing: 0.05em;
}

/* Gold divider centred */
.mitgliedschaft .gold-divider {
  justify-content: center;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--bg);
  padding: 4rem 0;
  border-top: 1px solid rgba(184, 146, 74, 0.1);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.75rem;
}

.footer__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: #9e9188;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 2rem;
}

.footer__line {
  width: 40px;
  height: 1px;
  background: rgba(184, 146, 74, 0.3);
  margin-inline: auto;
  margin-bottom: 2rem;
}

.footer__copy {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(107, 96, 86, 0.75);
}

/* --- Keyframes -------------------------------------------- */
@keyframes heroReveal {
  from {
    opacity: 0;
    letter-spacing: 0.25em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.05em;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .philosophie__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .philosophie__image-wrap {
    order: -1;
  }

  .philosophie__image {
    aspect-ratio: 16 / 9;
  }

  .philosophie__image-wrap::before {
    display: none;
  }

  .unsere-welt__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 660px) {
  section {
    padding: 5rem 0;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 7, 4, 0.98);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(184, 146, 74, 0.15);
    border-bottom: 1px solid rgba(184, 146, 74, 0.15);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li a {
    display: block;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(184, 146, 74, 0.08);
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .tastings {
    padding: 6rem 0;
  }

  .welt-card {
    padding: 2.5rem 1.75rem;
  }
}
