/* Restaurant one-pager: shared layout for zou-restaurant.de and agohan-restaurant.de.
   Site-specific values (font, colours) live in :root at the top of each copy. */

@font-face { font-family: "Site"; src: url("../fonts/Roboto-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Site"; src: url("../fonts/Roboto-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Site"; src: url("../fonts/Roboto-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Site"; src: url("../fonts/Roboto-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --red: #9d0a0e;
  --red-dark: #7d0609;
  --ink: #1a1a1a;
  --line: #313131;
  --paper: #e6d3ad;
  --heading-weight: 500;
  --font: "Site", Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 860px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 16px/1.45 var(--font);
  color: var(--ink);
  background: var(--paper) url("../img/background.jpg") center top / cover fixed;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
/* The logo overlaps the rule under the tagline, like the original Bricks header. */
.site-header { padding: 24px 0 56px; }
.site-header .wrap { position: relative; padding-inline: 20px; }
.logo { position: absolute; left: 20px; top: 0; z-index: 1; }
.logo img { height: var(--logo-height, 170px); width: auto; }
.head-text { padding-top: calc(var(--logo-height, 170px) - 50px); }
.tagline {
  margin: 0;
  padding: 0 0 4px var(--tagline-indent, 160px);
  border-bottom: 1.5px solid var(--line);
  text-align: right;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: var(--heading-weight);
}
.nav { display: flex; justify-content: flex-end; gap: 18px; padding-top: 6px; }
.nav a, .nav button {
  font: inherit; font-size: 18px; color: var(--red); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav a:hover, .nav button:hover { text-decoration: underline; }

/* ---------- slider ---------- */
.slider { position: relative; margin-bottom: 64px; }
.slides {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 8px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides figure { margin: 0; scroll-snap-align: start; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: rgba(0,0,0,.05); }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 0; border-radius: 3px; background: rgba(255,255,255,.55); color: var(--red); cursor: pointer;
}
.slider-btn:hover { background: rgba(255,255,255,.85); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-btn svg { width: 16px; height: 16px; }

/* ---------- content ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.block h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px; color: var(--red); font-size: 26px; line-height: 1.1; font-weight: var(--heading-weight);
}
.block h2 svg { width: 20px; height: 20px; flex: none; }
.block p { margin: 0; }

.contact { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 4px; }
.contact li { display: flex; align-items: center; gap: 10px; }
.contact svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.button {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 10px 16px; border: 0; border-radius: 3px;
  font: inherit; font-size: 16px; color: #fff; background: var(--red); cursor: pointer; text-decoration: none;
}
.button:hover { background: var(--red-dark); }
.button svg { width: 14px; height: 14px; }

.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-links li:first-child { margin-bottom: 8px; }
.menu-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.menu-links a:hover { color: var(--red); }
.menu-links svg { width: 12px; height: 12px; color: var(--red); }

.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 0 32px 0 0; }
.hours td { white-space: nowrap; }

.specials { margin-top: 56px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(0,0,0,.05); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; }
.legal h1 { color: var(--red); font-size: 30px; margin: 0 0 20px; font-weight: var(--heading-weight); }
.legal h2 { font-size: 18px; margin: 24px 0 6px; font-weight: var(--heading-weight); }
.legal p, .legal ul { margin: 0 0 10px; }

/* ---------- footer ---------- */
.site-footer { margin: 96px auto 48px; background: var(--red); color: #fff; border-radius: 4px; padding: 16px 16px 14px; }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 88px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.75); }
.footer-logos img { height: 110px; width: auto; filter: brightness(0) invert(1); }
.footer-logos img.bowl { height: 76px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 14px; text-align: center; }
.footer-nav a, .footer-nav button { font: inherit; color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.footer-nav a:hover, .footer-nav button:hover { text-decoration: underline; }

/* ---------- dialogs (reservation + lightbox) ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.6); }

.reserve { width: min(420px, 100% - 32px); border-radius: 4px; padding: 28px 24px 24px; background: #fffaf0; color: var(--ink); }
.reserve h2 { margin: 0 0 12px; color: var(--red); font-size: 24px; }
.reserve p { margin: 0 0 20px; }
.dialog-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.dialog-close svg { width: 20px; height: 20px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 112px); max-height: calc(100vh - 48px); object-fit: contain; }
.lightbox .dialog-close { top: 12px; right: 12px; }
.lightbox .dialog-close svg { width: 28px; height: 28px; }
.lightbox-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(0,0,0,.6); }
.lightbox-btn.prev { left: 12px; }
.lightbox-btn.next { right: 12px; }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .8; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .site-header { padding-bottom: 32px; }
  .site-header .wrap { padding-inline: 0; text-align: center; }
  .logo { position: static; display: flex; justify-content: center; margin-bottom: 12px; }
  .logo img { height: calc(var(--logo-height, 170px) * .75); }
  .head-text { padding-top: 0; }
  .tagline { padding-left: 0; text-align: center; font-size: 19px; }
  .nav { justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
  .nav a, .nav button { font-size: 17px; }
  .slides { grid-auto-columns: 100%; }
  .slides figure { aspect-ratio: 4 / 5; }
  .slider { margin-bottom: 40px; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-logos { gap: 40px; }
  .footer-logos img { height: 84px; }
  .footer-logos img.bowl { height: 58px; }
  .lightbox img { max-width: 100vw; }
  .lightbox-btn { top: auto; bottom: 8px; translate: none; }
  .site-footer { margin-top: 64px; }
  body { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
