/* ── design tokens ── */
:root {
  --black:  #1a1a1a;
  --white:  #ffffff;
  --yellow: #F5C842;
  --grey:   #8c8680;
  --border: rgba(0, 0, 0, 0.07);
  --border-accent: 2px solid #F5C842;

  --f-mono:  'IBM Plex Mono', monospace;
  --f-serif: 'IBM Plex Serif', Georgia, serif;

  --pad-x: clamp(20px, 5vw, 40px);
  --pad-y: clamp(40px, 8vw, 80px);
  --max-w: 1280px;
  --nav-h: 64px;
  --nav-h-open: clamp(185px, calc(60px + 12vw), 280px);
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--white); color: var(--black); font-family: var(--f-serif); font-weight: 400; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── shared utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── wordmark ── */
.wordmark { font-family: var(--f-mono); font-weight: 600; font-size: inherit; letter-spacing: -0.03em; line-height: 1.15; display: inline-block; }
.wordmark__line { display: block; }
.wordmark__rule { display: block; height: 0.05em; background: var(--yellow); margin: 0.2em 0; }

/* ── buttons ── */
.btn-yellow {
  display: inline-block;
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: 0.08em;
  cursor: pointer;
  background: var(--yellow); color: var(--black);
  padding: 12px 26px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.btn-yellow:hover { background: var(--black); color: var(--white); }

.btn-outline {
  display: inline-block;
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: 0.08em;
  border: 1.5px solid var(--black); color: var(--black);
  padding: 10px 22px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-text-link {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--black);
  border-bottom: 1.5px solid var(--yellow);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.btn-text-link:hover { opacity: 0.65; }

/* ── labels ── */
.section-label {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--grey); margin-bottom: 8px; display: block;
}

/* ── section headlines ── */
.section-headline {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em;
}

/* ── section spacing ── */
.section { padding: var(--pad-y) 0; }
.section--accent-top { }
.section--grey-top { }

/* ── reveal animation ── */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  position: relative;
  display: block;
  min-height: var(--nav-h-open);
  padding-top: 16px;
  padding-bottom: 16px;
  transition: min-height 0.35s ease;
}
#nav.scrolled .nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h);
  padding-top: 0;
  padding-bottom: 0;
}

/* nav__brand: natural block width when expanded, inline-block when scrolled */
.nav__brand {
  display: block;
}
#nav.scrolled .nav__brand {
  display: inline-block;
}

.nav__wordmark {
  display: block;
  font-size: clamp(40px, 4.5vw, 80px);
  line-height: 0.97;
  transition: font-size 0.35s ease, line-height 0.35s ease;
}
#nav.scrolled .nav__wordmark {
  font-size: 20px;
  line-height: 1.15;
}

/* controls float top-right when expanded */
.nav__controls {
  position: absolute;
  top: 20px; right: 0;
  display: flex; align-items: center; gap: 16px;
  transition: position 0.1s;
}
.lang-switch {
  font-family: var(--f-mono); font-weight: 600; font-size: 11px;
  letter-spacing: 0.08em; color: var(--grey); transition: color 0.2s, opacity 0.2s;
  position: absolute; top: 20px; right: var(--pad-x); z-index: 10;
}
#nav.cta-visible .lang-switch { opacity: 0; pointer-events: none; }
.lang-switch:hover { color: var(--black); }
.nav__ig { color: var(--grey); transition: color 0.2s, opacity 0.2s; display: flex; opacity: 0; pointer-events: none; }
.nav__ig:hover { color: var(--black); }
#nav.cta-visible .nav__ig { opacity: 1; pointer-events: auto; }
#nav.scrolled .nav__controls {
  position: static;
}

.nav__rule {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  margin: 8px 0;
  transition: opacity 0.25s ease, max-height 0.3s ease, margin 0.3s ease;
  max-height: 4px; overflow: hidden;
}
#nav.scrolled .nav__rule {
  opacity: 0; max-height: 0; margin: 0;
}

/* nav CTA — hidden until hero yellow button scrolls out of view */
.nav__cta {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#nav.cta-visible .nav__cta {
  opacity: 1;
  pointer-events: auto;
}

.nav__tagline {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 43px);
  color: var(--grey);
  line-height: 1.05;
  letter-spacing: 0.005em;
  transition: opacity 0.25s ease, max-height 0.3s ease, margin-top 0.3s ease;
  max-height: 80px; overflow: visible;
}
#nav.scrolled .nav__tagline {
  opacity: 0; max-height: 0; overflow: hidden;
}




/* ── mobile: match --nav-h-open to actual nav content height ── */
@media (max-width: 768px) {
  :root { --nav-h-open: 185px; }
  .nav__wordmark { font-size: 52px; }
  #nav.scrolled .nav__wordmark { font-size: 20px; }
  .nav__tagline { font-size: 28px; }
  .nav__controls { top: 14px; }
  .nav__inner { padding-top: 14px; padding-bottom: 14px; }
  #nav.scrolled .nav__inner { padding-top: 0; padding-bottom: 0; }
  #nav.scrolled .nav__controls { position: static; }
}

/* ── hero ── */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h-open);
  display: flex; align-items: stretch;
}
.hero__inner {
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero__headline {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(52px, 8.5vw, 120px);
  line-height: 0.95; letter-spacing: -0.03em;
  align-self: center;
  text-align: right;
}
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 60px);
  padding-top: 24px;
  margin-top: clamp(32px, 5vw, 64px);
}
.hero__sub {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(13px, 1.3vw, 16px);
  color: var(--grey); line-height: 1.65;
  max-width: 42ch;
}
.hero__actions {
  display: flex; align-items: center;
  flex-shrink: 0; flex-wrap: wrap; gap: 16px;
}
.hero__ig { color: var(--grey); display: flex; transition: color 0.2s; }
.hero__ig:hover { color: var(--black); }

@media (max-width: 768px) {
  .hero__top { flex-direction: column; gap: 8px; align-items: flex-start; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── atmosphäre ── */
.atmo__headline { margin: 8px 0 clamp(32px, 5vw, 56px); }

.atmo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.atmo__item-title {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 10px; letter-spacing: 0.1em;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--yellow);
  margin-bottom: 12px;
}
.atmo__item p {
  font-family: var(--f-serif); font-style: italic;
  font-size: 14px; line-height: 1.7; color: var(--grey);
}

/* ── tablet: 2 columns ── */
@media (max-width: 1024px) {
  .atmo__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── mobile: 1 column ── */
@media (max-width: 768px) {
  .atmo__grid { grid-template-columns: 1fr; }
}

/* ── menu ── */
.menu__headline { margin: 8px 0 clamp(24px, 4vw, 48px); }

.menu__category {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--grey);
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--yellow);
  margin-bottom: 4px;
  margin-top: 24px;
}
.menu__category:first-child { margin-top: 0; }

.menu__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.menu__item-left {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.menu__name {
  font-family: var(--f-serif); font-size: 16px; line-height: 1.3;
}
.menu__desc {
  font-family: var(--f-serif); font-style: italic;
  font-size: 13px; color: var(--grey); line-height: 1.4;
}
.menu__price {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 14px; white-space: nowrap; flex-shrink: 0;
}
.menu__row--no-border { border-bottom: none; padding-bottom: 0; }
.menu__extras {
  font-family: var(--f-serif); font-style: italic;
  font-size: 12px; color: var(--grey);
  margin-top: 4px; line-height: 1.6;
}

/* ── drinks ── */
.drinks__headline { margin: 8px 0 clamp(24px, 4vw, 48px); }

.drinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.drinks__col {
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--border);
}
.drinks__col:last-child { border-right: none; padding-right: 0; }
.drinks__col:not(:first-child) { padding-left: 24px; }

.drinks__col-title {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--grey); margin-bottom: 14px;
}
.drinks__row {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.drinks__row:last-of-type { border-bottom: none; }
.drinks__name { font-family: var(--f-serif); font-size: 13px; line-height: 1.4; }
.drinks__price {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 12px; white-space: nowrap; flex-shrink: 0;
}
.drinks__sub, .drinks__extras {
  font-family: var(--f-serif); font-style: italic;
  font-size: 11px; color: var(--grey); line-height: 1.5;
  margin-top: 10px;
}
.drinks__sub-inline {
  font-family: var(--f-serif); font-style: italic;
  font-size: 11px; color: var(--grey);
}

/* ── tablet: 2×2 ── */
@media (max-width: 1024px) {
  .drinks {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0;
  }
  .drinks__col:nth-child(2) { border-right: none; padding-right: 0; }
  .drinks__col:nth-child(3) { padding-left: 0; border-right: 1px solid var(--border); padding-right: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
  .drinks__col:nth-child(4) { border-top: 1px solid var(--border); padding-top: 20px; }
}

/* ── mobile: 2 columns — hot drinks | signature+kalt+tee ── */
@media (max-width: 768px) {
  .drinks {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
  }
  /* col 1: hot drinks spans all rows on left */
  .drinks__col:nth-child(1) { grid-column: 1; grid-row: 1 / 4; border-right: 1px solid var(--border) !important; padding-right: 20px; }
  /* col 2: signature, top-right */
  .drinks__col:nth-child(2) { grid-column: 2; grid-row: 1; border-right: none; padding-left: 20px; padding-right: 0; }
  /* col 3: kalt, middle-right */
  .drinks__col:nth-child(3) { grid-column: 2; grid-row: 2; border-right: none; padding-left: 20px; padding-right: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  /* col 4: tee, bottom-right */
  .drinks__col:nth-child(4) { grid-column: 2; grid-row: 3; border-right: none; padding-left: 20px; padding-right: 0; border-top: 1px solid var(--border); padding-top: 20px; }
}

/* ── narrow mobile: 1 column ── */
@media (max-width: 480px) {
  .drinks {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .drinks__col:nth-child(1),
  .drinks__col:nth-child(2),
  .drinks__col:nth-child(3),
  .drinks__col:nth-child(4) {
    grid-column: 1 !important;
    grid-row: auto !important;
    border-right: none !important;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }
  .drinks__col:nth-child(1) { border-top: none; padding-top: 0; }
}

/* ── besuchen ── */
.besuchen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.besuchen__headline { margin: 8px 0 32px; }
.besuchen__right { display: flex; flex-direction: column; gap: 32px; }

.info-block__label {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--grey); display: block; margin-bottom: 8px;
}
.info-block__text { font-size: 15px; line-height: 1.65; }
.info-block__link { border-bottom: 1px solid var(--border); transition: border-color 0.2s; }
.info-block__link:hover { border-color: var(--black); }

.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; }
.hours__row { display: contents; }
.hours__row dt, .hours__row dd {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 14px; line-height: 1.8;
  grid-column: auto;
}
.hours__row dt { color: var(--grey); }
.hours__row--closed dt,
.hours__row--closed dd {
  color: var(--grey);
}

@media (max-width: 768px) {
  .besuchen { grid-template-columns: 1fr; gap: 40px; }
}

/* ── footer ── */
.footer {
  padding-top: clamp(40px, 6vw, 70px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.footer__wordmark { font-size: 20px; display: block; min-width: max-content; margin-bottom: 0; }
.footer__wordmark .wordmark__rule { min-width: 140px; }
.footer__tagline {
  font-family: var(--f-serif);
  font-size: 13px; color: var(--grey); line-height: 1.5;
}
.footer__col-title {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--grey); margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px; color: var(--black);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--grey); }
.footer__bottom {
  padding-top: 16px; padding-bottom: 24px;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--grey); letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* hide col titles on mobile — all links in flat wrapping rows */
  .footer__col-title { display: none; }
  .footer__col ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}
