/* Layout: restaurant — loaded after style.css only while this layout is active
   (see inc/layouts.php and rtsb_theme_scripts()). Scoped via body.layout-restaurant. */

/* =========================================================================
   Layout — Restaurant ("Die Speisekarte")
   Personality: warm bistro / menu card.
   Dark roast hero with gold eyebrow and a Marcellus serif headline; Karla for
   body and tracked labels. Content reads like a printed menu: courses headed
   by wine-red rules, each dish a leader-dotted row with a gold price. Followed
   by an opening-hours panel and a dark gold reservation CTA strip.
   Scoped via body.layout-restaurant.
   ========================================================================= */
body.layout-restaurant {
  --bistro-display: 'Marcellus', var(--font-display);
  --bistro-body: 'Karla', var(--font-body);
  /* Paper, ink and rules come from the generated scheme. Gold and wine are
     the site's own accent and secondary colour; on the dark hero and the
     reservation strip the light night accent takes the gold's place. */
  --bistro-ink: var(--scheme-ink);
  --bistro-muted: var(--scheme-muted);
  --bistro-paper: var(--scheme-paper);
  --bistro-paper-2: var(--scheme-paper-2);
  --bistro-wine: var(--secondary-color);
  --bistro-gold: var(--accent-color);
  --bistro-gold-night: var(--scheme-night-accent);
  --bistro-gold-ink: var(--primary-color);
  --bistro-rule: var(--scheme-rule-strong);
  --page-display: var(--bistro-display);
  --page-body: var(--bistro-body);
  --page-ink: var(--bistro-ink);
  --page-paper: var(--bistro-paper);
  --page-muted: var(--bistro-muted);
  --page-accent: var(--accent-color);
  --page-rule: var(--bistro-rule);
  background: var(--bistro-paper);
}

/* --- Hero --- */
body.layout-restaurant .hero-section.hero-table {
  background: linear-gradient(160deg, var(--scheme-night-2) 0%, var(--scheme-night) 100%);
  min-height: auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--scheme-on-night);
}

/* With a hero photo the hero stands taller on wide screens, so the
   transparent header does not eat most of the picture; the content stays
   centred in the extra height. Without a photo nothing changes. */
@media (min-width: 900px) {
  body.layout-restaurant .hero-section.hero-table:has(.hero-bg) {
    min-height: clamp(28rem, 64vh, 42rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Phones crop the photo to a portrait slice; keeping the focal point a bit
   right of centre holds the subject (the candle, the host) in frame. */
@media (max-width: 600px) {
  body.layout-restaurant .hero-table .hero-bg__img {
    object-position: 60% center;
  }
}

body.layout-restaurant .hero-table .bistro-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(closest-side, rgba(184, 137, 63, 0.18), transparent) 50% 0 / 70% 60% no-repeat;
}

body.layout-restaurant .hero-table .hero-content {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

body.layout-restaurant .hero-table .bistro-eyebrow {
  display: inline-block;
  font-family: var(--bistro-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bistro-gold-night);
  margin-bottom: 1.1rem;
}

body.layout-restaurant .hero-table .hero-title {
  font-family: var(--bistro-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--scheme-on-night);
  margin: 0 0 1.1rem;
  text-shadow: none;
}

body.layout-restaurant .hero-table .hero-subtitle {
  font-family: var(--bistro-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: rgba(246, 239, 230, 0.82);
  max-width: 36rem;
  margin: 0 auto 1.9rem;
  text-shadow: none;
}

body.layout-restaurant .hero-table .hero-subtitle a.hero-subtitle-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.layout-restaurant .hero-table .bistro-hero-contact {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

body.layout-restaurant .bistro-hero-contact .pill-button,
body.layout-restaurant .bistro-hero-contact .pill-button--solid {
  border-radius: 2px;
  background: var(--bistro-gold-night);
  color: var(--scheme-night);
  font-family: var(--bistro-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--bistro-gold-night);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.layout-restaurant .bistro-hero-contact .pill-button:hover,
body.layout-restaurant .bistro-hero-contact .pill-button--solid:hover {
  background: transparent;
  color: var(--bistro-gold-night);
  transform: none;
}

/* --- Content — course menu --- */
body.layout-restaurant .content-section.bistro-content {
  background: var(--bistro-paper);
  max-width: none;
  margin: 0;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}

body.layout-restaurant .bistro-menu-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
}

body.layout-restaurant .bistro-menu-head .bistro-menu-rule {
  flex: 1;
  height: 1px;
  background: var(--bistro-rule);
}

body.layout-restaurant .bistro-menu-label {
  font-family: var(--bistro-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  letter-spacing: 0.02em;
  color: var(--bistro-ink);
  margin: 0;
  white-space: nowrap;
}

body.layout-restaurant .bistro-menu-grid {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

body.layout-restaurant .bistro-course-title {
  font-family: var(--bistro-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: 0.01em;
  color: var(--bistro-wine);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bistro-wine);
}

body.layout-restaurant .rtsb-price-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.layout-restaurant .rtsb-price-menu__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--bistro-body);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  color: var(--bistro-ink);
  padding: 0.55rem 0;
}

body.layout-restaurant .rtsb-price-menu__dots {
  flex: 1;
  border-bottom: 1px dotted var(--bistro-rule);
  transform: translateY(-0.2em);
}

body.layout-restaurant .rtsb-price-menu__price {
  color: var(--bistro-gold-ink);
  font-weight: 700;
  white-space: nowrap;
}

body.layout-restaurant .rtsb-price-menu__note {
  font-family: var(--bistro-body);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--bistro-muted);
  padding: 0.4rem 0;
}

/* --- Opening hours --- */
body.layout-restaurant .content-section.bistro-hours {
  background: var(--bistro-paper-2);
  max-width: none;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
}

body.layout-restaurant .bistro-hours-inner {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

body.layout-restaurant .bistro-hours-icon {
  display: inline-flex;
  color: var(--bistro-gold);
  margin-bottom: 0.75rem;
}

body.layout-restaurant .bistro-hours-heading {
  font-family: var(--bistro-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--bistro-ink);
  margin: 0 0 1.5rem;
}

body.layout-restaurant .rtsb-hours-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.layout-restaurant .rtsb-hours-list__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--bistro-body);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: var(--bistro-ink);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--bistro-rule);
}

body.layout-restaurant .rtsb-hours-list__row dt {
  font-weight: 700;
  margin: 0;
}

body.layout-restaurant .rtsb-hours-list__row dd {
  margin: 0;
  color: var(--bistro-muted);
}

body.layout-restaurant .rtsb-hours-list__row--note {
  justify-content: center;
  color: var(--bistro-wine);
  font-style: italic;
}

/* --- Reservation CTA — warm dark strip --- */
body.layout-restaurant .metrics-section.bistro-cta-section {
  background: var(--scheme-night);
  color: var(--scheme-on-night);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}

body.layout-restaurant .bistro-cta-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

body.layout-restaurant .bistro-cta-heading {
  font-family: var(--bistro-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  color: var(--scheme-on-night);
  margin: 0;
}

body.layout-restaurant .bistro-cta-section .bistro-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 2px;
  background: var(--bistro-gold-night);
  color: var(--scheme-night);
  font-family: var(--bistro-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 1px solid var(--bistro-gold-night);
  transition: background 0.2s ease, color 0.2s ease;
}

body.layout-restaurant .bistro-cta-section .bistro-cta-button:hover {
  background: transparent;
  color: var(--bistro-gold-night);
}

/* --- Dark mode --- */
@media (prefers-color-scheme: dark) {
  body.layout-restaurant {
    background: var(--bistro-paper);
  }
  body.layout-restaurant .content-section.bistro-content {
    background: transparent;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  body.layout-restaurant .bistro-hero-contact {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Transparent header over the dark hero: light chrome text (css/chrome/header-transparent.css). */
body.layout-restaurant {
  --hero-ink: var(--scheme-on-night);
}

body.layout-restaurant .rtsb-team__role {
  color: var(--bistro-gold-ink);
}
