@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/barlow-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/playfair-display-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-400.woff2") format("woff2");
}

:root {
  --bg: #080808;
  --surface: #171717;
  --text: #f8f7f4;
  --muted: #b8b8b8;
  --gold: #c9a86a;
  --line: #303030;
  --sans: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --header-h: 52px;
  --frame: 460px;
  --gutter: 20px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--gold);
  color: var(--bg);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 70;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.frame {
  width: min(var(--frame), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.intro {
  --seal-size: 56px;
  isolation: isolate;
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 68px 24px 116px;
  overflow: hidden;
  background: #080808;
  color: #f0e4c9;
  cursor: pointer;
}

.intro.is-leaving {
  animation: intro-fade 220ms linear forwards;
}

.intro .forest,
.intro .mist,
.intro .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro .forest {
  z-index: -5;
}

.intro .forest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% bottom;
}

.intro .mist {
  z-index: -4;
  background: radial-gradient(ellipse at 17% 85%, rgba(199, 148, 67, 0.08), transparent 55%);
}

.intro .branch {
  position: absolute;
  z-index: -3;
  width: clamp(530px, 72vw, 1100px);
  line-height: 0;
  pointer-events: none;
  will-change: transform;
}

.intro .branch img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 0 45%;
  will-change: transform;
}

.intro .branch--left {
  top: -100px;
  left: -195px;
}

.intro .branch--right {
  right: -215px;
  bottom: -30px;
  width: clamp(570px, 78vw, 1180px);
}

.intro .branch--right .branch-flip {
  transform: rotate(180deg);
}

.intro .vignette {
  z-index: -2;
  background: radial-gradient(ellipse at center, rgba(8, 8, 8, 0.02) 20%, rgba(0, 0, 0, 0.18) 75%, rgba(0, 0, 0, 0.5));
}

.intro .identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(100%, 304px);
}

.intro .logo-wrap {
  position: relative;
  width: 280px;
  max-width: 100%;
  line-height: 0;
}

.intro .logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.intro .logo-aura {
  position: absolute;
  inset: 0 -20%;
  background: radial-gradient(ellipse at center, rgba(204, 166, 80, 0.15), transparent 68%);
  pointer-events: none;
}

.intro .seals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  width: min(100%, 256px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro .seal {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.intro .seal-motion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform-origin: 50% 38%;
}

.intro .glass {
  position: relative;
  display: block;
  width: var(--seal-size);
  height: var(--seal-size);
  border: 1px solid rgba(229, 197, 139, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 25% 10%, rgba(255, 240, 205, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(195, 177, 127, 0.07), rgba(14, 15, 15, 0.34));
  box-shadow:
    inset 0 1px 1px rgba(255, 245, 222, 0.4),
    inset 0 -1px 2px rgba(220, 184, 116, 0.2),
    0 10px 22px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  backdrop-filter: blur(10px) saturate(1.25);
}

.intro .glass::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(244, 224, 181, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.intro .glass::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 15px;
  width: 25px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 244, 211, 0.16);
  filter: blur(1px);
  transform: rotate(-20deg);
  pointer-events: none;
}

.intro .glass img {
  position: absolute;
  top: calc(var(--seal-size) * -17 / 182);
  left: calc(var(--seal-size) * -37 / 182);
  width: calc(var(--seal-size) * 256 / 182);
  height: calc(var(--seal-size) * 216 / 182);
  max-width: none;
}

.intro .shock {
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(235, 202, 135, 0.65);
  border-radius: 50%;
  pointer-events: none;
}

.intro .hit-light {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 202, 135, 0.18), transparent 72%);
  pointer-events: none;
}

.intro .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.35px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f0e4c9;
}

.intro-skip {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 2;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: rgba(8, 8, 8, 0.3);
  color: #d3cec2;
  font-size: 11px;
  letter-spacing: 1.25px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
  background: var(--bg);
  border-bottom: 1px solid rgba(201, 168, 106, 0.85);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
  overflow: visible;
}

.wordmark-btn {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 120px);
  margin: 0;
  padding: 4px 0;
  border: 0;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.brand-mark {
  flex: 0 0 auto;
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  overflow: visible;
  background: transparent;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  margin: 0;
  overflow: visible;
  line-height: 1.1;
}

.wordmark-primary {
  display: block;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.2;
  padding-block: 1px;
  overflow: visible;
  color: #f6efdf;
}

.wordmark-secondary {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.25;
  overflow: visible;
  text-transform: uppercase;
  color: var(--gold);
}

.icon-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-btn svg,
.search-ico {
  width: 20px;
  height: 20px;
}

.icon-btn[aria-pressed="true"] {
  color: var(--gold);
}

.icon-btn:active,
.tile:active,
.tab:active,
.chip:active,
.wordmark-btn:active {
  opacity: 0.72;
}

body[data-ansicht="kategorie"] .app,
body[data-ansicht="suche"] .app {
  padding-top: 4px;
}

.app {
  padding-top: 18px;
  padding-bottom: 8px;
  min-width: 0;
}

.home-cats[hidden],
.cat-nav[hidden],
.search-panel[hidden] {
  display: none;
}

.home-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 70px;
  padding: 8px 4px 9px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
}

.tile[aria-current="true"] {
  color: var(--gold);
  background: #14120e;
  border-color: var(--gold);
}

.cat-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.cat-ico svg {
  width: 22px;
  height: 22px;
}

.tile-label {
  max-width: 100%;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
}

.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin: 0 0 8px;
  background: var(--bg);
}

.cat-scroll {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 8px 0 10px;
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.tab[aria-current="true"] {
  background: var(--gold);
  color: #1a140c;
  font-weight: 600;
}

.search-panel {
  padding-top: 4px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 8px 0 14px;
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
}

.search:focus-within {
  border-color: var(--gold);
}

.search-ico {
  flex: 0 0 auto;
  color: var(--muted);
}

.search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search input::placeholder {
  color: #8e8e8e;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.filters:empty,
.filters[hidden] {
  display: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a140c;
}

#buehne {
  min-width: 0;
  padding-top: 4px;
}

#buehne.rise {
  animation: rise 0.28s ease;
}

.menu-section {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.menu-section + .menu-section {
  margin-top: 28px;
  padding-top: 4px;
}

.section-title {
  margin: 8px 0 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.gold-line {
  width: 100%;
  height: 1px;
  margin: 12px 0 4px;
  background: var(--gold);
}

.spots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid rgba(201, 168, 106, 0.72);
  border-radius: 14px;
  background: #0c0c0c;
}

.spot.has-photo {
  grid-template-columns: minmax(0, 1.05fr) minmax(108px, 0.85fr);
  gap: 12px;
  padding: 0 0 0 16px;
  overflow: hidden;
}

.spot-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 108px;
}

.spot.has-photo .spot-copy {
  padding: 14px 0 14px;
}

.spot-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.spot-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.spot-price {
  margin: auto 0 0;
  padding-top: 12px;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.dish-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.rows {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--line);
}

.num {
  grid-column: 1;
  grid-row: 1;
  min-width: 1.4rem;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.row-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.row .price {
  grid-column: 3;
  grid-row: 1;
}

.row-desc {
  grid-column: 2 / -1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.row-marks,
.item-marks,
.item-more {
  grid-column: 2 / -1;
}

.price {
  margin: 0;
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.item-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Ruhige Kennzeichnungs-Pills: Diet in der Liste, Allergene nur im Detail */
.mark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #4a4740;
  border-radius: 4px;
  background: #22211e;
  color: #d8d4cb;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mark-badge--lg {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.mark-badge--allergen {
  min-width: 22px;
  padding: 0 6px;
  border-color: #55524a;
  background: #1e1d1a;
  color: #e6e2d9;
}

.mark-badge--allergen.mark-badge--lg {
  min-width: 0;
  padding: 0 10px;
}

.mark-badge--diet {
  border-color: #4a4740;
  background: #22211e;
  color: #d8d4cb;
}

.mark-badge--vegan {
  border-color: #4a5548;
  background: #1c201c;
  color: #b7c4b2;
}

.mark-badge--vegetarisch {
  border-color: #4e554a;
  background: #1d201c;
  color: #bcc4b4;
}

.mark-badge--halal {
  border-color: #4a524e;
  background: #1c201e;
  color: #b6c2bc;
}

.mark-badge--huhn {
  border-color: #554c44;
  background: #211e1a;
  color: #c9b9a8;
}

.mark-badge--rind {
  border-color: #554846;
  background: #211c1b;
  color: #c8b2ad;
}

/* Legacy-Klassen (falls noch referenziert) */
.mark-code,
.mark-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #25231f;
  color: var(--menu-text, #efeee9);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.item-more summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.8125rem;
  cursor: pointer;
}

.item-more p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.search-hint,
.search-empty {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.kicker {
  margin: 16px 0 8px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.daily {
  margin-bottom: 14px;
}

#tagesangebot:empty {
  display: none;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-mark {
  width: 1.5rem;
  height: 1px;
  margin: 0 0 14px;
  background: var(--gold);
}

.footer-name {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer p:not(.footer-name) {
  margin: 0 0 6px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.noscript {
  padding-top: 16px;
  color: var(--muted);
}

html.skip-intro .intro {
  display: none;
}

@keyframes intro-fade {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .wordmark-primary {
    font-size: 1.18rem;
  }

  .wordmark-secondary {
    font-size: 0.54rem;
    letter-spacing: 0.18em;
  }

  .tile-label { font-size: 0.58rem; }
  .spot-name { font-size: 1.28rem; }
  .section-title { font-size: 1.6rem; }
}

@media (max-height: 730px) and (max-aspect-ratio: 1/1) {
  .intro {
    --seal-size: 52px;
    padding: 42px 20px 96px;
  }

  .intro .identity { gap: 24px; }
  .intro .logo-wrap { width: 248px; }
  .intro .seals { width: min(100%, 228px); }
  .intro .branch--left { top: -120px; left: -240px; }
  .intro .branch--right { right: -285px; bottom: -15px; }
}

@media (min-aspect-ratio: 1/1) {
  .intro {
    --seal-size: 68px;
    padding: 50px 24px 115px;
  }

  .intro .identity {
    width: min(100%, 360px);
    gap: 32px;
  }

  .intro .logo-wrap { width: 340px; }
  .intro .seals { width: min(100%, 312px); }
  .intro .label {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .intro .branch--left { left: -160px; top: -170px; }
  .intro .branch--right { right: -170px; bottom: -120px; }
}

@media (min-width: 768px) {
  :root { --frame: 720px; --gutter: 28px; }
  .section-title { font-size: 2.15rem; }
  .tile { min-height: 78px; }
  .tile-label { font-size: 0.75rem; }
}

@media (min-width: 1080px) {
  :root { --frame: 1080px; }

  .spots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  .spot,
  .spot.has-photo .spot-copy {
    min-height: 196px;
  }

  .rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
  }

  .row { align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }

  .intro .branch,
  .intro .branch img,
  #buehne.rise {
    animation: none;
    will-change: auto;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tile:active,
  .spot:active,
  .tab:active {
    transform: scale(0.985);
  }
}
