/* Grundausstattung aller Entwürfe. Farben/Schriften setzt jede Richtung selbst über Tokens. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body, system-ui, sans-serif); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
main, footer { overflow-x: clip; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Entwurfs-Leiste oben: zurück zur Übersicht */
.proto { position: fixed; z-index: 90; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center;
  background: rgba(20,20,24,.86); color: #fff; font: 500 12px/1 system-ui, sans-serif; padding: 9px 14px; border-radius: 99px; backdrop-filter: blur(8px); white-space: nowrap; }
.proto a { color: #fff; text-decoration: none; opacity: .85; }
.proto a:hover { opacity: 1; }
.proto b { font-weight: 700; }

/* Navigation + Burger (Pflicht ab >2 Links) */
.nav-links { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } .burger { display: none !important; } }
.burger { width: 44px; height: 44px; display: grid; place-items: center; position: relative; z-index: 81; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; position: relative; }
.burger span::before { position: absolute; top: -7px; } .burger span::after { position: absolute; top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--drawer-bg, var(--bg)); color: var(--drawer-ink, var(--ink)); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 32px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer a { font: 500 clamp(28px, 8vw, 44px)/1.2 var(--f-head); text-decoration: none; padding: 6px 0; }
.nav-open .drawer { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

/* Speisekarte: Akkordeon, das sich auf- und zusammenlegt */
.m-cat { border-top: 1px solid var(--line); }
.m-cat:last-child { border-bottom: 1px solid var(--line); }
.m-h { margin: 0; font: inherit; }
.m-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num title ico" "num sub ico"; column-gap: 18px; text-align: left; padding: 22px 0; min-height: 44px; align-items: center; }
.m-num { grid-area: num; font: 500 13px/1 var(--f-body); opacity: .55; align-self: start; padding-top: .55em; }
.m-title { grid-area: title; font: var(--m-title-font, 600 clamp(24px, 3.4vw, 36px)/1.1 var(--f-head)); }
.m-sub { grid-area: sub; font-size: 14px; opacity: .65; }
.m-ico { grid-area: ico; width: 28px; height: 28px; position: relative; }
.m-ico::before, .m-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.m-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-open .m-ico::after { transform: translate(-50%, -50%) rotate(0); }
.m-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.22,1,.36,1); }
.is-open .m-body { grid-template-rows: 1fr; }
.m-inner { overflow: hidden; }
.m-inner ul { list-style: none; margin: 0; padding: 0 0 26px; display: grid; gap: 16px; }
.m-inner li { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; transition-delay: 0s; }
.is-open .m-inner li { opacity: 1; transform: none; transition-delay: calc(var(--j) * 40ms + 120ms); }
.m-row { display: flex; align-items: baseline; gap: 10px; }
.m-name { font-weight: 600; }
.m-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.m-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-price--na { font-size: 13px; opacity: .6; font-style: italic; }
.m-desc { margin: 2px 0 0; font-size: 15px; opacity: .72; max-width: 60ch; }

/* Zeiten */
.z-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.z-row dt, .z-row dd { margin: 0; }
.z-zu dd { opacity: .55; }

/* Reveals: Ruhezustand + Eintritt per Keyframes */
[data-reveal] { opacity: 0; }
[data-reveal].is-in { animation: rv-up .8s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 80ms); }
[data-reveal="fade"].is-in { animation-name: rv-fade; }
[data-reveal="scale"].is-in { animation-name: rv-scale; }
@keyframes rv-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; }
}

.proto .pick { background: #fff; color: #18181b; padding: 7px 12px; border-radius: 99px; font-weight: 700; opacity: 1; }

@media (max-width: 560px) { .proto b { display: none; } .proto { gap: 14px; font-size: 13px; } }

/* Sorsi e Morsi: gemeinsame Ergänzungen */
.m-note { margin: 18px 0 0; font-size: 13px; opacity: .6; font-style: italic; }
.m-inner li { list-style: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.status.is-auf::before { background: #3ecf6e; opacity: 1; box-shadow: 0 0 0 4px rgba(62,207,110,.2); }
.ph { display: inline-block; font: 600 10px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; background: rgba(255,200,0,.18); color: inherit; vertical-align: middle; }

/* Infoleiste unter dem Hero */
.info-strip { border-block: 1px solid var(--line); position: relative; z-index: 4; background: var(--bg); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info-i { display: grid; gap: 3px; padding: 20px 16px 20px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .info-i { border-bottom: 0; border-right: 1px solid var(--line); padding: 26px 22px; } .info-i:first-child { padding-left: 0; } .info-i:last-child { border-right: 0; } }
@media (max-width: 899px) { .info-i:nth-child(odd) { border-right: 1px solid var(--line); } .info-i:nth-child(even) { padding-left: 16px; } .info-i:nth-last-child(-n+2) { border-bottom: 0; } }
.info-i small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; font-weight: 600; }
.info-i b { font-size: 18px; line-height: 1.2; }
.info-i span { font-size: 13px; opacity: .7; }
.info-i:hover b { color: var(--accent); }

/* Feste Schnellzugriff-Leiste am Handy */
.quickbar { display: none; }
@media (max-width: 899px) {
  .quickbar { position: fixed; z-index: 91; inset: auto 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(0,0,0,.18); }
  .quickbar a { display: grid; place-items: center; min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; text-decoration: none; }
  .quickbar .qb-main { background: var(--accent); border-color: var(--accent); color: var(--bg); }
  .proto { bottom: 84px; }
  footer { padding-bottom: 150px !important; }
}
