/* Melody Party Box Speisekarte – purple/pink/cyan neon (Party Planner match) */
:root {
  --bg: #0d0719;
  --bg-deep: #080412;
  --card: #170d2e;
  --card-elevated: #21143f;
  --input: #1b1036;
  --ink: #f5efff;
  --ink-strong: #ffffff;
  --muted: #b7a6d8;
  --muted-2: #c9b6ea;
  --muted-dim: #8a7aab;

  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-glow: rgba(34, 211, 238, 0.45);
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --pink: #ff3d9a;
  --pink-soft-c: #ff7ab8;
  --pink-glow: rgba(255, 61, 154, 0.5);
  --pink-soft: rgba(255, 61, 154, 0.18);
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.4);
  --violet-soft: rgba(139, 92, 246, 0.18);
  --gold: #ffc94d;
  --green: #34d399;

  --border: rgba(167, 139, 250, 0.26);
  --border-strong: rgba(139, 92, 246, 0.35);
  --border-cyan: rgba(34, 211, 238, 0.4);

  --shadow: 0 24px 60px rgba(13, 7, 25, 0.55);
  --shadow-card: 0 12px 36px rgba(8, 4, 18, 0.55), 0 0 0 1px rgba(167, 139, 250, 0.12);
  --glow-pink: 0 0 18px rgba(255, 61, 154, 0.45), 0 0 40px rgba(139, 92, 246, 0.25);
  --glow-cyan: 0 0 14px rgba(34, 211, 238, 0.4);
  --glow-violet: 0 0 14px rgba(139, 92, 246, 0.4);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 76px;
  --font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --grid-size: 26px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(255, 61, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 8%, rgba(34, 211, 238, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(139, 92, 246, 0.16), transparent 55%),
    linear-gradient(rgba(139, 92, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.045) 1px, transparent 1px);
  background-size:
    auto, auto, auto,
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size);
  background-attachment: scroll;
}
img { max-width: 100%; height: auto; }
button, input { font-family: inherit; }
a { color: var(--cyan); }
a:hover {
  color: var(--cyan-bright);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  z-index: 50;
  box-shadow: var(--glow-pink);
  font-weight: 700;
}
.skip:focus { top: 12px; }

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

/* —— Header (black + gold logo) —— */
.site-header {
  background: #000;
  border-bottom: 1px solid rgba(255, 201, 77, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px 0;
}
.brand img {
  display: block;
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 201, 77, 0.25));
}
.header-meta {
  text-align: right;
  min-width: 0;
  max-width: 100%;
}
.eyebrow {
  margin: 0;
  max-width: 100%;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 12px var(--cyan-soft);
}
.header-meta h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.55rem;
  letter-spacing: -0.4px;
  line-height: 1.15;
  font-weight: 800;
}
.brand {
  text-decoration: none;
  flex: 0 0 auto;
  border-radius: 8px;
}
.brand:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.header-side {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: #111;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.lang-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.lang-btn[aria-pressed="true"] {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 61, 154, 0.35), 0 0 16px var(--pink-glow);
  transform: scale(1.06);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.flag-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.home-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cyan);
}
.home-link:hover {
  color: var(--cyan-bright);
}

/* —— Intro panel —— */
.intro {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.intro p { margin: 0; }
.intro-rest { white-space: nowrap; }
@media (max-width: 720px) {
  .intro-rest { display: block; white-space: normal; }
  .intro-dot { display: none; }
}
.intro strong { color: var(--ink-strong); font-weight: 800; }
.intro .note { color: var(--muted); font-size: 0.92rem; }

/* —— Toolbar / search —— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.search {
  flex: 1 1 240px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  font-size: 16px;
  color: var(--ink);
  background: var(--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23b7a6d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l3 3'/%3E%3C/svg%3E") 12px 50% no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  caret-color: var(--cyan);
}
.search input::placeholder { color: var(--muted-dim); }
.search input:focus {
  outline: 0;
  border-color: var(--cyan);
  background-color: #201445;
  box-shadow: 0 0 0 3px var(--cyan-soft), var(--glow-cyan);
}
.count {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* —— Sticky category bar —— */
.cats-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 7, 25, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  margin-top: 14px;
  padding: 10px 0 8px;
  border-bottom: 1px solid transparent;
}
.cats-bar.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 12px 32px rgba(8, 4, 18, 0.55), 0 1px 0 rgba(255, 61, 154, 0.12);
}
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.15s, border-color 0.2s;
}
.chip small {
  font-weight: 600;
  opacity: 0.7;
  margin-left: 4px;
  color: var(--muted);
}
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  color: var(--cyan-bright);
  box-shadow: var(--glow-cyan);
}
.chip[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  box-shadow: var(--glow-pink);
}
.chip[aria-pressed="true"] small {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}
.chip:focus-visible, .badge:focus-visible, .legend-item:focus-visible, .home-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

main { padding: 8px 0 28px; }
#karte, .section, .section h2, .empty {
  scroll-margin-top: 72px;
}

/* —— Sections & cards —— */
.section { margin-top: 22px; }
.section h2 {
  margin: 0 0 12px;
  color: var(--ink-strong);
  font-size: 1.35rem;
  letter-spacing: -0.3px;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.section h2 span {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--cyan-soft);
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}
.card:hover, .card:focus-within {
  z-index: 3;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 28px rgba(255, 61, 154, 0.12), 0 0 20px rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}
.media {
  background: var(--bg-deep);
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
}
.media::before {
  content: "";
  display: block;
  padding-top: 75%;
}
.media img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center center;
}
.ph {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-soft-c);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -1px;
  opacity: 0.55;
  text-shadow: 0 0 16px var(--pink-soft);
}
.flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 14px var(--pink-glow);
}
.body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.title-row h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink-strong);
  font-weight: 800;
}
.price {
  color: var(--cyan-bright);
  font-weight: 800;
  white-space: nowrap;
  font-size: 1.02rem;
  text-shadow: 0 0 12px var(--cyan-soft);
}
.group-label {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
}
.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: pre-line;
}
.variants {
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.84rem;
}
.variants strong { color: var(--muted-2); font-weight: 700; }

/* —— Allergen badges —— */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.badge {
  position: relative;
  border: 1px solid var(--border-strong);
  background: var(--violet-soft);
  color: var(--muted-2);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: help;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.badge.z {
  background: rgba(196, 181, 253, 0.28);
  border-color: rgba(196, 181, 253, 0.72);
  color: var(--ink-strong);
}
.badge.f {
  background: var(--pink-soft);
  border-color: rgba(255, 61, 154, 0.4);
  color: var(--pink-soft-c);
}
.badge.s {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--green);
}
.badge:hover {
  box-shadow: var(--glow-violet);
}
.badge .tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--card-elevated);
  color: var(--ink);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 8px;
  width: max-content;
  max-width: min(220px, calc(100vw - 20px));
  white-space: normal;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.badge .tip.below { bottom: auto; top: calc(100% + 6px); }
.badge:hover .tip, .badge:focus .tip, .badge:focus-visible .tip, .badge.is-open .tip { display: block; }
.badge.is-open {
  z-index: 6;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  color: var(--ink-strong);
}

.empty {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}
.empty p { margin: 0; }
.reset-filters {
  margin-top: 16px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  box-shadow: var(--glow-pink);
}
.reset-filters:hover { transform: translateY(-1px); }
.reset-filters:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* —— Legend —— */
.legend {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 8px;
  margin-bottom: 28px;
}
.legend h2 {
  margin: 0 0 6px;
  color: var(--ink-strong);
  font-size: 1.35rem;
  letter-spacing: -0.3px;
  font-weight: 800;
}
.legend > p { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.legend-grid {
  display: grid;
  gap: 18px;
}
.legend h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 8px var(--cyan-soft);
}
.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--input);
  border-radius: var(--radius-sm);
  padding: 4px 8px 4px 4px;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: default;
}
.legend-item .code {
  background: var(--violet-soft);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  min-width: 1.8rem;
  text-align: center;
  font-weight: 800;
  color: var(--muted-2);
  padding: 2px 6px;
}
.legend-item.unused { opacity: 0.45; }

/* —— Footer (black) —— */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(167, 139, 250, 0.15);
  padding: 28px 0 36px;
  color: var(--ink);
}
.footer-grid {
  display: grid;
  gap: 22px;
}
.site-footer h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink-strong);
  font-weight: 800;
}
.site-footer p, .site-footer li { margin: 0; color: var(--muted); }
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
  font-weight: 500;
  color: var(--ink);
}
.hours th { color: var(--muted); font-weight: 600; width: 55%; }
.contact a {
  font-weight: 700;
  text-decoration: none;
  color: var(--cyan);
}
.contact a:hover {
  text-decoration: underline;
  color: var(--cyan-bright);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.fine {
  margin-top: 18px;
  color: var(--muted-dim);
  font-size: 0.82rem;
}

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

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .legend-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
  .header-meta h1 { font-size: 1.85rem; }
}
@media (min-width: 980px) and (hover: hover) and (pointer: fine) {
  body { background-attachment: fixed; }
}

@media (max-width: 900px) {
  .cats-bar {
    background: #0d0719;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .card:hover { transform: none; }
}

@media (max-width: 560px) {
  .header-inner { align-items: center; gap: 10px; }
  .brand img { height: 32px; }
  .lang-btn { width: 30px; height: 30px; }
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.04em; white-space: normal; line-height: 1.2; }
  .header-meta h1 { font-size: 1.2rem; }
  .home-link { font-size: 0.68rem; }
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .hours th { width: auto; }
  .hours td { white-space: nowrap; text-align: right; }
}
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .brand img { height: 26px; }
  .eyebrow { font-size: 0.58rem; letter-spacing: 0.02em; }
  .header-meta h1 { font-size: 1.05rem; }
  .home-link { letter-spacing: 0.03em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .chip, .lang-btn, .reset-filters { transition: none; }
  .card:hover, .chip:hover, .lang-btn:hover, .lang-btn[aria-pressed="true"], .reset-filters:hover { transform: none; }
}

@media print {
  .cats-bar, .toolbar, .skip, .lang-switch { display: none !important; }
  body {
    background: #fff;
    color: #111;
    background-image: none;
  }
  .card, .legend, .intro {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
  }
  .price, .section h2 span, .eyebrow, .site-footer h2 { color: #333; text-shadow: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .site-header, .site-footer { background: #fff; color: #111; }
}
