/* ============================================================
   YAM YAM BERLIN — global.css
   Design Tokens, Reset, Typography, Nav, Footer
   ============================================================ */

/* --- Fonts -------------------------------------------------- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/oswald_5.2.8/oswald-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/oswald_5.2.8/oswald-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/oswald_5.2.8/oswald-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'PublicSans';
  src: url('fonts/PublicSans/PublicSans-Regular.woff2') format('woff2'),
       url('fonts/PublicSans/PublicSans-Regular.woff')  format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PublicSans';
  src: url('fonts/PublicSans/PublicSans-Italic.woff2') format('woff2'),
       url('fonts/PublicSans/PublicSans-Italic.woff')  format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'PublicSans';
  src: url('fonts/PublicSans/PublicSans-Medium.woff2') format('woff2'),
       url('fonts/PublicSans/PublicSans-Medium.woff')  format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PublicSans';
  src: url('fonts/PublicSans/PublicSans-Bold.woff2') format('woff2'),
       url('fonts/PublicSans/PublicSans-Bold.woff')  format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- Tokens ------------------------------------------------- */
:root {
  --red:        #FF1705;
  --black:      #000000;
  --white:      #FFFFFF;
  --bg:         #e7e4df;
  --gray-light: #D8D4CD;
  --gray-mid:   #999999;
  --gray-text:  #555555;
  --beige-md:   #6B6660;

  --font-display: 'Oswald', Impact, 'Arial Narrow', Arial, sans-serif;
  --font-body:    'PublicSans', Arial, Helvetica, sans-serif;
  --font-accent:  Georgia, 'Times New Roman', serif;

  --tracking-display: -0.05em;

  --page-width:    1400px;   /* nav + footer max width */
  --content-width: 1000px;   /* section content max width (Home, About, Jobs, Menue) */
  --nav-height:    100px;
  --gap:           40px;     /* padding left/right inside page-width */

  /* 12-col Readymag grid (desktop only — applied to nav/footer/sections) */
  --grid-margin:   35px;
  --grid-gutter:   20px;
  --grid-cols:     12;
  --grid-max:      1400px;

  --space-sm:   20px;
  --space-md:   40px;
  --space-lg:   80px;
  --space-xl:  120px;

  --fs-small:   11px;
  --fs-caption: 11px;
  --fs-body:    18px;
  --fs-nav:     28px;

  --hero-img-scale:    1.3;
  --hero-img-offset-y: -60px;

  --jobs-img-scale:    1;
  --jobs-img-offset-x: 50%;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* --- Display headlines: tight line-height ------------------ */
h1, h2, h3, h4, h5, h6,
.t-display,
.home-section__title,
.about-section__title,
.about-slideshow__caption h3,
.menu-section__title,
.menu-subcategory-title {
  line-height: 1;
}

/* Display headlines: shared base size — mobile @media overrides below */
.about-section__title,
.about-slideshow__caption h3 {
  font-size: clamp(20px, 3vw, 36px);
}

/* --- Page wrapper ------------------------------------------ */
/* Use this on any full-width section's inner container */
.page-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* --- Global link style ------------------------------------- */
/* Red = default, Black = hover + active */
a { color: var(--red); transition: color 0.15s; }
a:hover, a.active { color: var(--black); }

/* --- Typography -------------------------------------------- */
p { line-height: 1.4; }
.t-display { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: var(--tracking-display); color: var(--red); }
.t-display--lg { font-size: clamp(28px, 4vw, 48px); line-height: 1; }
.t-display--md { font-size: clamp(20px, 2.5vw, 30px); line-height: 1; }
.t-display--sm { font-size: clamp(16px, 1.8vw, 22px); line-height: 1.1; }
.t-body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
}
.t-body--muted { color: var(--beige-md); }
.t-body--strong { font-weight: 700; }
.t-body--accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--red);
}

.price-pill {
  display: inline-block; padding: 3px 10px;
  border: 1.5px solid var(--red); border-radius: 8px;
  font-family: var(--font-accent); font-size: 13px;
  color: var(--red); line-height: 1.4;
}

/* --- Icons ------------------------------------------------- */
.icon { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; vertical-align: middle; }
.icon-veg::before   { content: '∅'; color: #2E7D32; font-size: 13px; }
.icon-vegan::before { content: ''; display: inline-block; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232E7D32' d='M17 8C8 10 5.9 16.17 3.82 21.34L5.71 22l1-2.3A4.49 4.49 0 008 20C19 20 22 3 22 3c-1 2-8 4-8 4l.76-1.76A6 6 0 0117 8z'/%3E%3C/svg%3E") no-repeat center/contain; vertical-align: middle; }
.icon-spicy::before { content: ''; display: inline-block; width: 11px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF1705' d='M12 2C9 2 6 4 6 8c0 2.67 1.5 4.87 3 6.5V22h6v-7.5C16.5 12.87 18 10.67 18 8c0-4-3-6-6-6z'/%3E%3C/svg%3E") no-repeat center/contain; vertical-align: middle; }

/* --- Nav --------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  display: flex;
  align-items: center;
}
.site-nav__inner {
  max-width: var(--page-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-nav__menu {
  display: contents;
}
.site-nav__links {
  display: flex;
  align-items: center;
}
.site-nav__links--left {
  justify-content: space-between;
  width: 100%;
  padding-right: 120px;
}
.site-nav__links--right {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-left: 120px;
}

/* Nav links — red default, black hover/active */
.site-nav__links a {
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  transition: color 0.15s;
  white-space: nowrap;
}
.site-nav__links a:hover,
.site-nav__links a.active { color: var(--black); }

/* Logo — hover turns black via filter */
.site-nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-nav__logo img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  display: block;
  transition: filter 0.15s;
}
.site-nav__logo:hover img { filter: brightness(0); }

/* IG icon — hover turns black */
.site-nav__ig {
  display: flex;
  align-items: center;
}
.site-nav__ig img {
  display: block;
  filter: invert(21%) sepia(93%) saturate(7453%) hue-rotate(357deg) brightness(97%) contrast(118%);
  transition: filter 0.15s;
}
.site-nav__ig:hover img { filter: brightness(0); }
.site-nav__ig img {
  display: block;
  transition: filter 0.15s;
}
.site-nav__ig:hover img { filter: brightness(0); }

/* Mobile-only nav items — hidden on desktop, visible <= 900px */
.mobile-only { display: none; }

/* Hamburger — hidden on desktop */
.site-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
}
.site-nav__burger img {
  width: 28px;
  height: auto;
  display: block;
  filter: invert(21%) sepia(93%) saturate(7453%) hue-rotate(357deg) brightness(97%) contrast(118%);
}

/* Gradient fader behind nav — soft transition into page content */
.nav-gradient-fader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 89;
  pointer-events: none;
}
.nav-gradient-fader img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Desktop nav — flex layout, logo absolutely centered */
@media (min-width: 901px) {
  .site-nav__inner {
    max-width: var(--grid-max);
    padding: 0 var(--grid-margin);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
  }
  .site-nav__menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: calc(300px + 6vw);              /* Logo 56 + 2 × (60px + 3vw) inner spacing */
  }
  .site-nav__links--left,
  .site-nav__links--right {
    flex: 1;
    padding: 0;
    justify-content: space-between;
  }
  .site-nav__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Mobile nav */
@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
    --gap: 16px;
    --hero-img-scale: 1.5;
    --hero-img-offset-y: 60px;
  }

  /* Alle Display-Headlines auf Mobile gleich groß */
  h1, h2, h3, h4, h5, h6,
  .t-display,
  .home-section__title,
  .about-section__title,
  .about-slideshow__caption h3,
  .menu-section__title,
  .menu-subcategory-title {
    font-size: 36px;
  }

  .site-nav__inner {
    grid-template-columns: auto 1fr auto;
    gap: 0;
  }
  .site-nav__links--left,
  .site-nav__links--right { display: none; }
  .site-nav__menu.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    bottom: 0;
    background: rgba(235, 231, 224, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 var(--gap);
    z-index: 99;
  }
  .site-nav__menu.open .site-nav__links--left,
  .site-nav__menu.open .site-nav__links--right {
    display: flex;
    flex-direction: column;
    width: auto;
    padding: 0;
    gap: 20px;
  }
  .site-nav__menu.open li {
    padding: 4px 0;
  }
  .site-nav__menu.open a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--red);
  }
  .site-nav__menu.open a:hover,
  .site-nav__menu.open a.active { color: var(--black); }
  .site-nav__logo img { height: 48px; }
  .site-nav__burger { display: flex; }
  .mobile-only { display: list-item; }

  /* Home sections — alternating side alignment on mobile */
  .home-section.home-section--location .home-section__content {
    grid-column: 2;
    text-align: right;
    padding-left: 0;
    padding-right: 0;
  }
  .home-section.home-section--about .home-section__content {
    grid-column: 1 / -1;
    text-align: right;
    padding-left: 0;
    padding-right: 0;
  }
  .home-section.home-section--menue .home-section__content {
    grid-column: 1;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
  .home-section.home-section--location .btn-outline,
  .home-section.home-section--about .btn-outline {
    margin-left: auto;
  }
  .home-section.home-section--menue .btn-outline {
    margin-right: auto;
  }
  .home-section.home-section--location .hours-table,
  .home-section.home-section--about .hours-table {
    margin-left: auto;
  }

  /* Jobs — pull to left on mobile */
  .home-jobs__content {
    justify-content: flex-start;
  }
  .home-jobs__inner {
    width: 100%;
    text-align: left;
  }

  /* About slideshow — hide decorative SVGs on mobile */
  .about-slideshow__svg {
    display: none;
  }

  /* About — gap between Impressions section and Team on mobile (100px total) */
  .about-slideshow__caption { margin-bottom: 25px; }
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 20px var(--gap);
  border-top: 1px solid var(--red);
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.site-footer__logo img { height: 36px; width: auto; display: block; }
.site-footer__logo:hover img { filter: brightness(0); }
.site-footer__copy {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--red);
  text-align: left;
}
.site-footer__legal {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.15s;
}
.site-footer__legal:hover { color: var(--black); }

@media (max-width: 600px) {
  :root {
    --hero-img-scale: 2;
    --hero-img-offset-y: 50px;
  }
  .site-footer__inner { grid-template-columns: auto 1fr; gap: 12px; }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* --- Buttons ----------------------------------------------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  color: var(--red);
  background: transparent;
  border: 1.5px solid var(--red);
  border-radius: 8px;
  padding: 8px 20px;
  transition: none;
  cursor: pointer;
}
.btn-outline:hover {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover .btn-arrow {
  filter: brightness(0);
}

/* --- Arrow icon in buttons --------------------------------- */
.btn-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  /* Red by default — matches button text */
  filter: invert(21%) sepia(93%) saturate(7453%) hue-rotate(357deg) brightness(97%) contrast(118%);
  transition: filter 0.15s;
}
.btn-outline:hover .btn-arrow {
  /* Black on hover — matches button hover text */
  filter: brightness(0);
}

/* --- About Slideshow --- */
.about-slideshow {
  max-width: 1000px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--gap);
  overflow: visible;
}
.about-slideshow__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: visible;
}
.about-slideshow__images {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
}
.about-slideshow__images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.about-slideshow__images img.active {
  opacity: 1;
}
.about-slideshow__svg {
  position: absolute;
  height: auto;
  pointer-events: none;
  z-index: 2;
}
.about-slideshow__svg--top {
  width: 30%;
  top: 15px;
  left: -60px;
}
.about-slideshow__svg--bottom {
  width: 45%;
  bottom: -5%;
  right: -60px;
}
.about-slideshow__caption {
  max-width: 1000px;
  margin: -40px auto var(--space-lg);
  padding: 0 var(--gap);
  text-align: left;
  position: relative;
  z-index: 2;
}
.about-slideshow__caption h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  line-height: 1;
}
.about-slideshow__caption p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--black);
}
