/* =====================================================================
   BLISS Bar Nürnberg — Website (multi-page)
   ---------------------------------------------------------------------
   Shared stylesheet. Every page links to this file.

   Design tokens (colours, fonts, spacing, radii, shadows) live in
   `colors_and_type.css` and are imported below. Edit colours / fonts
   there, not here.

   The site uses ZERO JavaScript — the mobile menu, marquee and all
   other behaviour are pure CSS. Looking for a knob to tweak?
     • Brand colours / fonts          → colors_and_type.css
     • Mobile menu breakpoint         → search "MOBILE NAV" below
     • Marquee speed                  → @keyframes marquee, .marquee-track
     • Hero photo overlay strength    → .hero-photo::after
   ===================================================================== */

@import url("./colors_and_type.css");

/* ---------------------------------------------------------------------
   1. RESET & BASE
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bliss-ink);
  color: var(--bliss-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--bliss-red); color: var(--bliss-paper); }

/* When the mobile menu is open, lock the page behind it. */
body:has(.nav-toggle:checked) { overflow: hidden; }


/* ---------------------------------------------------------------------
   2. LAYOUT PRIMITIVES
   --------------------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 140px) clamp(20px, 4vw, 56px); }
.container { max-width: 1320px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }

/* Background contexts. `.day` is cream-paper, `.ink` is night-mode. */
.day  { background: var(--bliss-cream); color: var(--bliss-ink); }
.ink  { background: var(--bliss-ink);   color: var(--bliss-paper); }
.blue { background: var(--bliss-blue);  color: var(--bliss-paper); }
.wine { background: var(--bliss-wine);  color: var(--bliss-paper); }


/* ---------------------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   --------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.red       { color: var(--bliss-red); }
.day .eyebrow      { color: var(--bliss-wine); }
.day .eyebrow.red  { color: var(--bliss-red); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* The brand's heavy italic display — the only "shouting" voice. */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 120%;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-wrap: balance;
}
.display-xl { font-size: clamp(72px, 12vw, 200px); letter-spacing: -0.07em; line-height: 0.78; }
.display-lg { font-size: clamp(56px, 8vw, 120px); }
.display-md { font-size: clamp(40px, 5vw, 72px); }
.display-sm { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 0.92; }

.lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  font-weight: 400;
  text-wrap: pretty;
  max-width: 56ch;
}

.body  { font-family: var(--font-body); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.small { font-family: var(--font-body); font-size: 13px; line-height: 1.5; }
.mono  { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }


/* ---------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-style: italic; font-weight: 800; font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.01em; font-size: 16px;
  padding: 16px 24px;
  cursor: pointer;
  transition: filter .18s cubic-bezier(.2,.7,.2,1), background-color .18s, color .18s, transform .12s, box-shadow .2s;
  white-space: nowrap;
  -webkit-appearance: none;
          appearance: none;
}
.btn .arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--bliss-red);
  color: var(--bliss-paper);
  box-shadow: 0 14px 40px rgba(219,58,53,.32);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 18px 56px rgba(219,58,53,.45); }

.btn-paper { background: var(--bliss-paper); color: var(--bliss-ink); }
.btn-paper:hover { background: var(--bliss-cream); }

.btn-ink { background: var(--bliss-ink); color: var(--bliss-paper); }
.btn-ink:hover { filter: brightness(1.4); }

.btn-ghost {
  background: transparent;
  color: var(--bliss-paper);
  box-shadow: inset 0 0 0 1.5px rgba(254,255,253,.5);
}
.btn-ghost:hover { color: var(--bliss-red); box-shadow: inset 0 0 0 1.5px var(--bliss-red); }
.day .btn-ghost { color: var(--bliss-ink); box-shadow: inset 0 0 0 1.5px rgba(14,14,16,.7); }
.day .btn-ghost:hover { background: var(--bliss-ink); color: var(--bliss-cream); }

.btn-sm { font-size: 13px; padding: 11px 18px; }


/* ---------------------------------------------------------------------
   5. NAV
   ---------------------------------------------------------------------
   Mobile-menu open/close is driven entirely by a hidden checkbox
   (`.nav-toggle`) and the `:has()` selector. No JavaScript involved.
   --------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,16,0.86);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 36px);
  max-width: 1480px; margin: 0 auto;
  gap: 16px;
}
.nav-logo     { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 26px; width: auto; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link  {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: .82;
  position: relative;
  padding: 4px 0;
  transition: opacity .18s, color .18s;
}
.nav-link:hover { color: var(--bliss-red); opacity: 1; }
.nav-link[aria-current="page"] {
  color: var(--bliss-red);
  opacity: 1;
}
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--bliss-red);
}
.nav-cta { padding: 10px 16px; font-size: 12px; }

/* The checkbox is always invisible — only used as menu state. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }


/* ---------- MOBILE NAV (< 720px) ---------- */
@media (max-width: 720px) {
  /* Solid bar on mobile so the burger never gets eaten by hero photo behind it.
     Backdrop-filter explicitly disabled here — sonst würde es einen neuen
     containing block für position:fixed schaffen und das geöffnete Drawer-
     Overlay auf die Nav-Höhe begrenzen. */
  .nav         { background: var(--bliss-ink);
                 -webkit-backdrop-filter: none;
                         backdrop-filter: none; }
  .nav-inner   { padding: 14px 18px; }
  .nav-logo img { height: 22px; }
  .nav-links   { display: none; }

  /* Burger = a <label> for the hidden checkbox. */
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; gap: 4px; flex-direction: column;
    background: rgba(254,255,253,0.06);
    border: 1px solid rgba(254,255,253,0.22);
    transition: background .18s, border-color .18s;
    position: relative; z-index: 60;
    cursor: pointer;
  }
  .nav-burger:hover { background: rgba(254,255,253,0.12); border-color: rgba(254,255,253,0.4); }
  .nav-burger span {
    display: block; width: 18px; height: 1.5px; background: var(--bliss-paper);
    transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .15s;
  }

  /* When checkbox is checked: morph burger -> X, show menu drawer. */
  .nav:has(.nav-toggle:checked) .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav:has(.nav-toggle:checked) .nav-burger span:nth-child(2) { opacity: 0; }
  .nav:has(.nav-toggle:checked) .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .nav:has(.nav-toggle:checked) .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    padding: 72px 24px 32px;
    background: var(--bliss-ink);
    align-items: stretch;
    z-index: 55;
    overflow-y: auto;
  }
  .nav:has(.nav-toggle:checked) .nav-link {
    font-family: var(--font-display);
    font-style: italic; font-weight: 700; font-stretch: 105%;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 22px;
    opacity: 0.92;
    padding: 8px 0;
    border-bottom: 1px solid rgba(254,255,253,0.08);
  }
  .nav:has(.nav-toggle:checked) .nav-link::after { display: none; }
  .nav:has(.nav-toggle:checked) .nav-link[aria-current="page"] { color: var(--bliss-red); }
  .nav:has(.nav-toggle:checked) .nav-cta {
    margin-top: 20px;
    align-self: flex-start;
    font-family: var(--font-display);
    font-style: italic; font-weight: 800;
    font-size: 16px;
    padding: 14px 22px;
  }
}


/* ---------------------------------------------------------------------
   6. HERO (full-bleed photo)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 940px);
  overflow: hidden;
  background: var(--bliss-ink);
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, transparent 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.55) 75%, rgba(14,14,16,0.95) 100%);
}
/* Very subtle film grain over the hero photo. */
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  padding: clamp(40px, 7vw, 100px) clamp(20px, 4vw, 56px) clamp(56px, 6vw, 96px);
  max-width: 1480px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: inherit;
}
.hero-meta {
  position: absolute; top: clamp(28px, 4vw, 48px); left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  z-index: 3;
}
.hero-meta .eyebrow      { color: var(--bliss-paper); opacity: 0.78; }
.hero-meta .eyebrow.red  { color: var(--bliss-red); opacity: 1; }


/* ---------------------------------------------------------------------
   7. DECORATIVE STARS — gentle drift loop (CSS-only)
   --------------------------------------------------------------------- */
@keyframes drift {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(4deg)  translateY(-8px); }
}
.star-drift { animation: drift 6s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .star-drift { animation: none; }
}

.decor-star {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}


/* ---------------------------------------------------------------------
   8. MARQUEE — slow scrolling banner, single CSS animation
   --------------------------------------------------------------------- */
.marquee {
  background: var(--bliss-red);
  color: var(--bliss-paper);
  border-block: 1px solid rgba(14,14,16,.18);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track > span {
  font-family: var(--font-display);
  font-style: italic; font-weight: 900; font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 56px;
  white-space: nowrap;
}
/* Stars in the marquee stay fixed (no rotation) — by brand request. */
.marquee-track img {
  height: 22px; width: auto; opacity: 0.95;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}


/* ---------------------------------------------------------------------
   9. TILE / IMAGE CARD
   --------------------------------------------------------------------- */
.tile {
  position: relative;
  overflow: hidden;
  background: #1a1a1d;
  border: 1px solid var(--border);
}
.day .tile { background: var(--bliss-paper); border: 1px solid var(--border-on-cream); }
.tile img.cover {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.tile:hover img.cover { transform: scale(1.04); }


/* ---------------------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------------------- */
.footer {
  background: var(--bliss-ink);
  color: var(--bliss-paper);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 56px) 32px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 14px; font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a, .footer-grid p { font-size: 14px; opacity: .82; margin: 0; line-height: 1.55; }
.footer-grid a:hover { color: var(--bliss-red); opacity: 1; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-style: italic; font-weight: 900; font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(120px, 22vw, 360px);
  letter-spacing: -0.07em;
  line-height: 0.82;
  margin: 56px 0 -10px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(254,255,253,0.18);
  user-select: none;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
}

/* Impressum — collapsed by default, expands on click. */
.footer-impressum {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.footer-impressum summary {
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 4px 0;
  display: inline-flex; align-items: center; gap: 10px;
  transition: color .18s;
}
.footer-impressum summary::-webkit-details-marker { display: none; }
.footer-impressum summary::after {
  content: "+";
  font-size: 14px;
  color: var(--bliss-red);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.footer-impressum[open] summary::after { transform: rotate(45deg); }
.footer-impressum summary:hover { color: var(--bliss-paper); }
.footer-impressum-body {
  padding: 20px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 880px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.55;
  color: rgba(254,255,253,0.7);
  text-transform: none;
}
.footer-impressum-body p { margin: 0; }
.footer-impressum-body strong {
  font-family: var(--font-display);
  font-style: italic; font-weight: 800; font-stretch: 110%;
  font-size: 16px; letter-spacing: 0.02em;
  color: var(--bliss-paper);
  display: block;
  margin-bottom: 4px;
}
.footer-impressum-body a { color: var(--bliss-paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-impressum-body a:hover { color: var(--bliss-red); }
@media (max-width: 760px) {
  .footer-impressum-body { grid-template-columns: 1fr; gap: 18px; }
}


/* ---------------------------------------------------------------------
   11. PAGE HEAD / BREADCRUMB
   --------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.page-head .container { position: relative; z-index: 2; }
.page-crumb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.page-crumb a:hover { color: var(--bliss-red); }
.page-crumb .sep    { opacity: 0.5; }


/* ---------------------------------------------------------------------
   12. IMAGE GRID
   --------------------------------------------------------------------- */
.img-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}


/* ---------------------------------------------------------------------
   13. FORM CONTROLS (used on Reservierung)
   --------------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bliss-ink);
  opacity: 0.6;
}
.form-input, .form-select, .form-textarea {
  font-family: var(--font-body);
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(14,14,16,0.32);
  padding: 12px 0;
  color: var(--bliss-ink);
  border-radius: 0;
  width: 100%;
  transition: border-color .18s, background .18s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-bottom-color: var(--bliss-red);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(14,14,16,0.36); }
.form-textarea { resize: vertical; min-height: 120px; }


/* ---------------------------------------------------------------------
   14. DIVIDERS
   --------------------------------------------------------------------- */
.div-line {
  display: block;
  height: 1px;
  background: var(--border);
  margin: 0;
}
.day .div-line { background: var(--border-on-cream); }


/* ---------------------------------------------------------------------
   15. UTILITIES
   --------------------------------------------------------------------- */
.flow  > * + * { margin-top: 1.2em; }
.tight > * + * { margin-top: 0.5em; }
.center        { text-align: center; }
.text-red      { color: var(--bliss-red); }
.text-blue     { color: var(--bliss-blue); }
.text-wine     { color: var(--bliss-wine); }
.text-cream    { color: var(--bliss-cream); }
.text-muted    { color: var(--fg-muted); }
.day .text-muted { color: rgba(14,14,16,0.55); }

.stretch  { width: 100%; }
.no-scroll { overflow: hidden; }


/* ---------------------------------------------------------------------
   16. RESPONSIVE — mobile first tightening (≤ 760 px)
   ---------------------------------------------------------------------
   The design is fluid via clamp() up to here. Below 760 px we override
   a handful of values so the site reads cleanly down to 375 px.
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .img-grid { grid-template-columns: repeat(6, 1fr); }

  /* Display sizes get unwieldy on phones — clamp them tighter. */
  .display-xl { font-size: clamp(48px, 14vw, 88px); line-height: 0.82; letter-spacing: -0.05em; }
  .display-lg { font-size: clamp(40px, 11vw, 72px); }
  .display-md { font-size: clamp(30px, 8vw, 52px); }
  .display-sm { font-size: clamp(22px, 6vw, 34px); }

  /* Section padding sits closer to the edges so content has more room. */
  .section   { padding: 64px 18px; }
  .page-head { padding: 56px 18px 32px; }

  .btn { padding: 14px 20px; font-size: 14px; }

  /* Force any 2-col grid we built inline to stack. */
  .stack-mobile { grid-template-columns: 1fr !important; }

  /* Decorative stars on mobile shrink + tuck so they never push layout. */
  .decor-star      { max-width: 44vw; }
  .footer-wordmark { font-size: 26vw; }

  /* Hero meta wraps onto two lines instead of overflowing. */
  .hero { min-height: 84vh; }
  .hero-meta {
    flex-direction: column;
    gap: 6px;
    top: 18px;
    left: 18px;
    right: 18px;
  }
  .hero-meta .eyebrow { font-size: 10px; letter-spacing: 0.18em; }

  /* Footer collapses to two columns; intro spans the full row. */
  .footer-grid               { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Smallest phones (≤ 420 px) — tighten further. */
@media (max-width: 420px) {
  .nav-inner          { padding: 12px 14px; }
  .section            { padding: 56px 16px; }
  .page-head          { padding: 48px 16px 28px; }
  .footer             { padding: 56px 16px 28px; }
  .footer-bottom      { font-size: 10px; letter-spacing: 0.16em; }
  .nav-cta            { display: none; } /* CTA lives inside the open drawer */
}

/* Tablet / small laptop tightening */
@media (max-width: 1024px) {
  .container { padding: 0; }
}
