:root {
  color-scheme: light;
  --paper: #eee2cc;
  --ink: #120f0d;
  --red: #ad0d07;
  --yellow: #e6a226;
  --green: #092f21;
  --hero-height: clamp(460px, 66svh, max(520px, 55vw));
  --header-height: 0px;
  --edge: clamp(22px, 4.15vw, 80px);
  font-family: "DM Sans", "Avenir Next", "Century Gothic", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 56px);
  min-height: clamp(82px, 6.8vw, 120px);
  padding: 12px var(--edge);
}
.logo {
  justify-self: start;
  display: grid;
  gap: 4px;
  text-decoration: none;
  text-transform: uppercase;
  line-height: .96;
  font-weight: 760;
  color: #0a0908;
}
.logo-pizza { font-size: clamp(8px, .78vw, 13px); letter-spacing: .32em; }
.logo-name { font-size: clamp(17px, 2.1vw, 38px); letter-spacing: .17em; white-space: nowrap; }
.desktop-nav, .bar-actions { display: flex; align-items: center; }
.desktop-nav { gap: clamp(21px, 3.35vw, 61px); }
.desktop-nav button {
  border: 0;
  padding: 10px 0;
  background: none;
  font-size: clamp(10px, .84vw, 15px);
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: .15em;
  text-underline-offset: 5px;
}
.desktop-nav button:hover, .text-button:hover { text-decoration: underline; }
.bar-actions { justify-self: end; gap: clamp(13px, 2.35vw, 40px); }
.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(11px, 1.35vw, 24px);
  min-height: 56px;
  padding: 12px clamp(17px, 2.2vw, 34px);
  border: 1px solid #f9ebd7;
  border-radius: 100px;
  background: #ae0906;
  color: #fff9ee;
  text-transform: uppercase;
  font-size: clamp(10px, .9vw, 15px);
  font-weight: 600;
  letter-spacing: .16em;
  transition: background .2s;
}
.book:hover { background: #8e0806; }
.header-book { white-space: nowrap; }
.round {
  display: grid;
  place-items: center;
  width: clamp(46px, 3.75vw, 66px);
  aspect-ratio: 1;
  border-radius: 50%;
  flex-shrink: 0;
}
.menu-toggle { border: 0; background: #dbcaafce; transition: background .2s; }
.menu-toggle:hover { background: #ceb99b; }
.menu-toggle span {
  width: 40%;
  height: 32%;
  border-block: 1.5px solid;
  position: relative;
}
.menu-toggle span::after {
  content: "";
  position: absolute;
  width: 100%;
  left: 0;
  top: calc(50% - .75px);
  border-top: 1.5px solid;
}
.icon-arrow {
  width: clamp(14px, 1.15vw, 20px);
  height: 1px;
  background: currentColor;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.icon-arrow::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 1px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid;
  border-right: 1px solid;
}

main { overflow-x: clip; }

.hero {
  height: var(--hero-height);
  position: relative;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 74% 88%, #cdb99b, transparent 35%), linear-gradient(112deg, #eaddc7, #efe5d2 72%, #e4d6be);
}
.hero-art span { position: absolute; }
.hero-yellow {
  width: 29%;
  aspect-ratio: 1;
  left: -2.4%;
  bottom: -9vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at 60% 20%, #e6a329, #d68812);
}
.hero-red {
  inset: 0;
  background: radial-gradient(ellipse at 35% 75%, #c4190e, #a91108);
  clip-path: polygon(5.7% 100%, 16% 67%, 29% 43%, 42% 24%, 54% 16%, 65% 14%, 71% 7%, 74.3% 0%, 89.5% 0%, 87% 22%, 81% 44%, 71% 65%, 57% 86%, 48% 100%);
  clip-path: shape(from 5.7% 100%, curve to 59.8% 15% with 25% 32% / 42% 16%, curve to 74.3% 0% with 67% 14.5% / 71% 12%, line to 89.5% 0%, curve to 48% 100% with 86% 44% / 70% 65%, close);
}
.hero-green {
  inset: 0;
  background: linear-gradient(144deg, #164e36 70%, #052819 96%);
  clip-path: polygon(70.2% 100%, 76% 82%, 84% 69%, 91% 60%, 96% 54%, 100% 52%, 100% 100%);
  clip-path: shape(from 70.2% 100%, curve to 100% 52% with 77% 75% / 93% 55%, line to 100% 100%, close);
}
.hero-pizza {
  position: absolute;
  display: block;
  width: min(69%, 1420px, calc((var(--hero-height) - 58px) * 1.67));
  height: auto;
  aspect-ratio: 1.67;
  object-fit: contain;
  transform: rotate(-9deg);
  right: 6%;
  bottom: -1%;
  pointer-events: none;
  filter: drop-shadow(12px 22px 20px #2a140a75);
}

.panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: calc(100svh - var(--hero-height) - var(--header-height));
}
.panel {
  --tile-overlay: #18100654;
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 228px;
  background-color: var(--tile-color);
  color: var(--tile-text, #fff8eb);
}
.panel::before, .panel::after { position: absolute; content: ""; inset: 0; z-index: -1; }
.panel::before {
  background: var(--tile-photo) var(--tile-position, center 33%) / cover no-repeat;
  transition: transform .35s ease-out;
}
.panel::after { background: linear-gradient(108deg, var(--tile-overlay), transparent 68%); }
.panel:hover::before { transform: scale(1.045); }
.panel-ingredients { --tile-color: var(--green); --tile-photo: url("tile-zutaten.webp"); --tile-overlay: #04261970; }
.panel-booking { --tile-color: var(--yellow); --tile-photo: url("tile-vespa.webp"); --tile-position: center top; --tile-text: #1b1004; --tile-overlay: #edac3120; }
.panel-menu { --tile-color: #ba1b09; --tile-photo: url("tile-speisekarte.webp"); --tile-overlay: #8d050b62; }
.panel-catering { --tile-color: #700f06; --tile-photo: url("tile-catering.webp"); --tile-position: center top; --tile-overlay: #4705027d; }
.panel h2 { font: inherit; }
.panel button {
  position: absolute;
  inset: 0;
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
}
.panel button:focus-visible { outline-offset: -6px; }
.panel-label {
  position: absolute;
  top: 10%;
  left: var(--tile-inset, 10.4%);
  font-size: clamp(11px, .88vw, 16px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.9;
  letter-spacing: .24em;
}
.panel-label::after {
  content: "";
  display: block;
  width: 39px;
  margin-top: clamp(11px, 1.15vw, 20px);
  border-top: 1px solid currentColor;
  opacity: .78;
}
.panel-arrow {
  position: absolute;
  bottom: 20%;
  left: var(--tile-inset, 10.4%);
  width: clamp(40px, 3.25vw, 60px);
  border: 1px solid currentColor;
  transition: background .2s, color .2s;
}
.panel button:hover .panel-arrow { background: var(--paper); color: var(--ink); }

dialog { border: 0; background: var(--paper); color: var(--ink); padding: clamp(20px, 4.5vw, 43px); width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overscroll-behavior: contain; box-shadow: 0 18px 80px #220e0a4a; }
dialog::backdrop { background: #1f1710a8; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 25px; }
#menu { width: min(650px, calc(100% - 32px)); }
.dialog-head h2 { font-size: clamp(34px, 6.5vw, 55px); line-height: .96; letter-spacing: -.045em; }
.close { border-radius: 50%; border: 1px solid var(--ink); background: none; font-size: 27px; line-height: 1; width: 38px; height: 38px; flex-shrink: 0; }
.close:hover { background: var(--ink); color: var(--paper); }
.menu-size { margin-bottom: 14px; }
.category-note { margin-top: 14px; font-size: 14px; }
.original-menu { display: inline-block; margin-top: 16px; font-size: 14px; text-underline-offset: 3px; }
.pizza-info { line-height: 1.5; }
.categories { display: flex; gap: 6px; flex-wrap: wrap; }
.categories button { border-radius: 100px; border: 1px solid var(--ink); background: transparent; padding: 7px 12px; font-weight: 700; }
.categories button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: white; }
.dishes { list-style: none; padding: 0; margin: 18px 0 0; }
.dishes li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #221e3644; padding: 13px 0; }
.dishes li span { flex-shrink: 0; font-weight: 700; }
.dishes p { font-size: 14px; margin-top: 4px; }
.demo-note { line-height: 1.45; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 20px 0; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.form-grid input, .form-grid select { background: transparent; border: 1px solid var(--ink); border-radius: 0; min-height: 42px; min-width: 0; width: 100%; padding: 7px 8px; }
.form-submit { width: 100%; }
.confirmation-title, .visit-location { font-size: 21px; font-weight: 700; margin-bottom: 13px; }
#reservation-details { overflow-wrap: anywhere; }
.text-button { background: none; border: 0; font-weight: 700; padding: 0; margin-top: 18px; color: var(--red); }

.dialog-nav { display: grid; }
.dialog-nav button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-top: 1px solid #120f0d3b;
  padding: 15px 0;
  background: none;
  text-align: left;
}
.dialog-nav button:hover { text-decoration: underline; }

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --hero-height: clamp(340px, 55vw, 540px);
  }
  .bar {
    position: relative;
    min-height: var(--header-height);
    background: var(--paper);
    grid-template-columns: 1fr auto;
  }
  .desktop-nav { display: none; }
  .hero-pizza { width: 82%; right: 3%; bottom: 2%; }
  .hero-yellow { width: 42%; left: -13%; bottom: -13vw; }
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { min-height: clamp(225px, 35vw, 330px); }
  .panel-label { top: 15%; font-size: 12px; }
}
@media (max-width: 560px) {
  :root {
    --edge: clamp(13px, 4.15vw, 22px);
    --header-height: 71px;
    --hero-height: clamp(229px, 67vw, 365px);
  }
  .bar { padding: 10px var(--edge); gap: 8px; }
  .logo-name { font-size: clamp(12px, 3.3vw, 18px); }
  .bar-actions { gap: 8px; }
  .header-book { min-height: 44px; padding: 8px 11px; font-size: 10px; letter-spacing: .08em; }
  .header-book .icon-arrow { display: none; }
  .menu-toggle { width: 44px; }
  .hero-pizza { width: 94%; right: 2%; bottom: 10%; }
  .hero-yellow { width: 55%; left: -13%; bottom: -17vw; }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: clamp(142px, 40vw, 195px); }
  .panel::before {
    left: 30%;
    background-position: center var(--mobile-photo-y, 46%);
    mask-image: linear-gradient(to right, transparent, #000 46%);
  }
  .panel::after { background: linear-gradient(90deg, var(--tile-overlay), transparent 68%); }
  .panel-booking { --mobile-photo-y: 28%; }
  .panel-catering { --mobile-photo-y: 32%; }
  .panel .panel-label {
    top: 50%;
    left: var(--edge);
    transform: translateY(-50%);
    letter-spacing: .19em;
  }
  .panel-label::after { width: 25px; margin-top: 10px; }
  .panel-arrow {
    inset: 50% var(--edge) auto auto;
    transform: translateY(-50%);
    width: 44px;
    background: #180e0c5c;
  }
  .panel-booking .panel-arrow { background: #edb640b8; }
  .form-grid input, .form-grid select { font-size: 16px; }
  dialog .book { min-height: 48px; }
  .categories button { min-height: 40px; }
}
@media (max-width: 360px) {
  :root { --edge: 10px; }
  .logo-name { font-size: 11px; letter-spacing: .12em; }
  .bar-actions { gap: 6px; }
  .header-book { font-size: 9px; padding-inline: 9px; }
  .panel-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.order-grid { grid-template-columns: minmax(0, 1fr) 82px; }
@media (max-width: 360px) {
  .order-grid { grid-template-columns: 1fr; }
}
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #120f0d3b;
  padding: 13px 0;
  font-weight: 700;
}
