:root {
  --red: #a3191f;
  --dark: #111;
  --line: #d8a2a4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: #fff;
}

body.lightboxOpen {
  overflow: hidden;
}

/* Header */
.siteHeader {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 0 32px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top: 4px solid #f2b49d;
  border-bottom: 1px solid #eee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-width: 0;
}

.brandLogo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brandText {
  display: flex;
  align-items: center;
  line-height: 1;
  font-size: 29px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  position: relative;
  top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 42px;
  height: 100%;
  font-size: 15px;
}

nav a {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a.active,
nav a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Hero */
.hero {
  height: 540px;
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62),
    rgba(0, 0, 0, 0.14) 58%,
    rgba(0, 0, 0, 0.02)
  );
}

.heroText {
  position: absolute;
  left: 7%;
  top: 28%;
  color: white;
  max-width: 520px;
}

.heroText h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
}

.heroText p {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 28px;
}

.button {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 4px;
  font-weight: 700;
}

.button:hover {
  background: #861016;
}

/* Layout */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 48px;
}

h2 {
  font-size: 30px;
  color: var(--red);
  margin: 0 0 22px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about p {
  font-size: 17px;
  line-height: 1.58;
  max-width: 650px;
}

.strassenverkaeuferImg {
  width: 100%;
  max-width: 400px;
  height: auto;
  justify-self: center;
  display: block;
  object-fit: contain;
}

/* Gallery */
.gallery {
  max-width: 1120px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 48px;
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-speisen {
  max-width: 1180px;
  margin: 38px auto 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 24px;
}

.speisenBild {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f7f3ec;
  overflow: hidden;
  border-radius: 4px;
}

.speisenBild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.speisenBild img:hover {
  transform: scale(1.03);
}

/* Dynamic lightbox gallery */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px 86px;
}

.lightbox.isOpen {
  display: flex;
}

.lightboxImage {
  max-width: min(92vw, 1000px);
  max-height: 86vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.35);
}

.lightboxClose,
.lightboxPrev,
.lightboxNext {
  position: absolute;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}

.lightboxClose {
  top: 18px;
  right: 26px;
  font-size: 52px;
}

.lightboxPrev,
.lightboxNext {
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  width: 64px;
  height: 64px;
}

.lightboxPrev {
  left: 18px;
}

.lightboxNext {
  right: 18px;
}

.lightboxClose:hover,
.lightboxPrev:hover,
.lightboxNext:hover {
  opacity: 0.78;
}

.lightboxCaption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  text-align: center;
}


/* Menu title */
.menu {
  padding-top: 30px;
}

.menuTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.menuTitleLogo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.menuTitle h2 {
  margin: 0;
  color: var(--red);
  font-size: 30px;
  line-height: 1;
}

/* Menu cards */
.menuGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.menuCard {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 18px;
  min-height: 250px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.menuCard h3,
.menuCardHead h3 {
  margin: 0 0 12px;
  text-align: center;
  color: var(--red);
  font-size: 18px;
}

.menuCard h4 {
  margin: 16px 0 6px;
  font-size: 15px;
}

.menuCard p {
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  margin: 0 0 16px;
}

/* Only lower 4 menu cards use equalized heading area */
.equalMenuCard .menuCardHead {
  min-height: 118px;
}

.equalMenuCard .menuCardHead h3 {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dish lines: no dotted line, spacing preserved */
.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 14px;
  margin: 8px 0;
}

.line span {
  flex: 1;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 1px;
}

.line b {
  flex-shrink: 0;
  font-weight: 700;
  white-space: nowrap;
}

/* Red cards: PHO and BUN only */
.redCard {
  background: linear-gradient(180deg, #b91d25, #941018);
  color: #fff;
  border-color: #941018;
}

.redCard h3,
.redCard h4,
.redCard p,
.redCard .line,
.redCard .line b {
  color: #fff;
}

.redCard .line span {
  border-bottom: none;
}

/* Soup and starter rows */
.subItem {
  margin: 16px 0 20px;
}

.subItemTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.subItemTop strong {
  font-weight: 700;
  line-height: 1.25;
}

.subItemTop b {
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.25;
}

.subItem p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  text-align: left;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #9b1218, #b91d25);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
  padding: 38px 80px;
  font-size: 18px;
}

footer div {
  display: flex;
  gap: 20px;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

footer div:last-child {
  border-right: none;
}

footer p {
  margin: 0;
  line-height: 1.45;
}

.icon {
  font-size: 34px;
  opacity: 0.95;
}

/* Tablet */
@media (max-width: 1000px) {
  .siteHeader {
    padding: 0 24px;
  }

  .brandText {
    font-size: 25px;
  }

  nav {
    gap: 24px;
  }

  .menuGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-speisen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 760px) {
  .siteHeader {
    height: auto;
    display: block;
    padding: 16px 20px;
  }

  .brand {
    height: auto;
  }

  .brandLogo {
    width: 42px;
    height: 42px;
  }

  .brandText {
    font-size: 23px;
    white-space: normal;
  }

  nav {
    height: auto;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  nav a {
    height: auto;
    padding: 6px 0;
  }

  .hero {
    height: 460px;
  }

  .heroText {
    left: 24px;
    right: 24px;
    top: 24%;
  }

  .heroText h1 {
    font-size: 34px;
  }

  .heroText p {
    font-size: 18px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 44px 24px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-speisen {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .lightbox {
    padding: 26px 18px;
  }

  .lightboxClose {
    top: 10px;
    right: 14px;
    font-size: 44px;
  }

  .lightboxPrev,
  .lightboxNext {
    font-size: 42px;
    width: 44px;
    height: 44px;
  }

  .lightboxPrev {
    left: 6px;
  }

  .lightboxNext {
    right: 6px;
  }

  .lightboxCaption {
    bottom: 14px;
    font-size: 14px;
    width: calc(100% - 36px);
  }

  .menuGrid {
    grid-template-columns: 1fr;
  }

  .equalMenuCard .menuCardHead {
    min-height: auto;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  footer div {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 18px;
  }

  footer div:last-child {
    border-bottom: none;
  }
}


.languageSwitch {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.languageSwitch a {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 0;
}

.languageSwitch span {
  color: #999;
}


@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  html,
  body {
    background: #fff;
    width: auto;
  }

  .siteHeader,
  .hero,
  .about,
  .gallery,
  .gallery-speisen,
  .lightbox,
  footer {
    display: none !important;
  }

  main,
  #speisekarte {
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .menuTitle {
    margin: 0 0 8mm;
  }

  .menuTitleLogo {
    width: 16mm;
    height: 16mm;
  }

  .menuTitle h2 {
    font-size: 24pt;
  }

  .menuGrid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 3mm;
  }

  .menuCard {
    break-inside: avoid;
    page-break-inside: avoid;
    min-height: 0;
    padding: 5mm;
    border: 1px solid #d8a2a4;
  }

  .menuCard h3 {
    font-size: 13pt;
  }

  .menuCard p,
  .line {
    font-size: 10pt;
  }

  .redCard {
    background: #a3191f !important;
    color: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .redCard h3,
  .redCard p,
  .redCard .line,
  .redCard .line span,
  .redCard .line b {
    color: #fff !important;
  }
}