/* ============================================================
   Speisekarte – Darstellung
   Wird von der Startseite (index.html) UND der großen Seite
   (vorschau.html) genutzt. Die Inhalte stehen in speisekarte.js.
   ============================================================ */

/* Spalten werden per speisekarte-anzeige.js befüllt (jede Kategorie in die kürzeste
   Spalte), weil die Kategorien sehr unterschiedlich lang sind */
.menu-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  text-align: left;
}
.menu-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.menu-category {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
}
.menu-category h3 {
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  color: var(--wood-dark);
  font-size: 1.15rem;
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.menu-category ul { list-style: none; }
.menu-item {
  padding: 0.45rem 0;
  font-size: 0.97rem;
}
.menu-item + .menu-item { border-top: 1px solid #f1e8d8; }
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.dish { font-weight: 700; color: var(--wood-dark); }
.dish-menge { font-weight: 600; color: var(--text-light); font-size: 0.82em; }
.dish-info {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 0.15rem;
  padding-right: 3.5rem;
}
.dots {
  flex: 1;
  min-width: 0.8rem;
  border-bottom: 2px dotted #cbb9a5;
  transform: translateY(-4px);
}
.price { font-weight: 800; color: var(--red); white-space: nowrap; }
.price-je { font-weight: 600; font-size: 0.85em; color: var(--text-light); }
.price-xl {
  font-weight: 800;
  color: var(--wood);
  white-space: nowrap;
  font-size: 0.92em;
}
.price-xl small {
  font-size: 0.7em;
  background: var(--wood-dark);
  color: var(--cream);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  margin-right: 0.15rem;
  vertical-align: 0.15em;
  letter-spacing: 0.5px;
}
.veggie-badge {
  display: inline-block;
  background: #58a83a;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
  vertical-align: 0.2em;
  margin-left: 0.2rem;
}

/* ===== Angebote über der Speisekarte ===== */
.menu-angebote {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  margin: 0.4rem 0 2.2rem;
  text-align: left;
}
.angebot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(122, 85, 57, 0.55), transparent 65%),
    var(--wood-dark);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.angebot--heute { outline: 3px solid #ffd97a; outline-offset: 2px; }
.angebot-heute {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  background: #ffd97a;
  color: var(--wood-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.angebot-bild {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
}
.angebot-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: rgba(247, 241, 227, 0.12);
}
.angebot-body { flex: 1; min-width: 0; }
.angebot-wann {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffd97a;
}
.angebot h3 {
  font-family: "Dancing Script", cursive;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0.1rem 0 0.2rem;
  color: #fff;
}
.angebot-text { font-size: 0.9rem; opacity: 0.92; }
.angebot-text a { color: #ffd97a; font-weight: 700; }
.angebot-preis {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--red);
  border: 3px dashed rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  transform: rotate(-8deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
  .menu-angebote { grid-template-columns: 1fr; gap: 1.6rem; }
  /* Foto aus, Preis als Aufkleber oben rechts – so bleibt Platz für den Text */
  .angebot { padding: 1.1rem 4.6rem 1.1rem 1.2rem; }
  .angebot-bild { display: none; }
  .angebot-preis {
    position: absolute;
    top: -0.7rem;
    right: -0.4rem;
    width: 68px;
    height: 68px;
    font-size: 0.92rem;
  }
  .angebot h3 { font-size: 1.5rem; }
  .dish-info { padding-right: 0; }
}

.menu-appetit {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: var(--red);
  margin-top: 0.6rem;
}

.dish .marks {
  color: var(--red);
  font-weight: 700;
  font-size: 0.68em;
  margin-left: 3px;
  letter-spacing: 0.5px;
}

/* Tooltip beim Hovern über ein Kennzeichen */
.mark {
  position: relative;
  cursor: help;
  padding: 2px 1px;
}
.mark:hover { color: var(--red-dark); }
.mark::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--wood-dark);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 20;
}
.mark::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--wood-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 20;
}
.mark:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.mark:hover::before { opacity: 1; }

.menu-legend {
  max-width: 820px;
  margin: 2.2rem auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.8rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-light);
}
.menu-legend--hinweis {
  text-align: center;
  font-style: italic;
  padding: 1rem 1.4rem;
}
.menu-legend h4 {
  color: var(--wood-dark);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.menu-legend ul {
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
}
.menu-legend li { padding: 0.15rem 0; break-inside: avoid; }
.menu-legend strong { color: var(--red); display: inline-block; min-width: 1.6em; }
.legend-hint {
  margin-top: 0.9rem;
  font-style: italic;
  border-top: 1px solid #eee3d0;
  padding-top: 0.7rem;
}

@media (max-width: 600px) {
  .menu-legend ul { columns: 1; }
}

.menu-footer { margin-top: 2rem; color: var(--text-light); font-weight: 600; }
.menu-footer a { color: var(--red); }
