:root {
  --bg-main: #0b1120;
  --bg-card: #1e293b;
  --bg-card-hover: #26354a;
  --accent: #e2a03f;
  --accent-hover: #f5b356;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  
  --badge-veggie: #10b981;
  --badge-vegan: #059669;
  --badge-rind: #ef4444;
  --badge-schwein: #f97316;
  --badge-chicken: #eab308;
  --badge-angebot: #ec4899;
  --badge-drink: #38bdf8;
  
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding: 20px 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

header {
  text-align: center;
  padding: 8px 0 4px;
}

.chef-badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(226, 160, 63, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link.primary {
  background: var(--accent);
  color: #0b1120;
  border-color: var(--accent);
}

.btn-link.primary:hover {
  background: var(--accent-hover);
  color: #0b1120;
}

.week-nav-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.week-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.nav-arrow {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.2s;
}

.nav-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.day-tab {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 2px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s;
  position: relative;
}

.day-tab.is-today::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.day-tab .tab-dayname {
  font-size: 0.8rem;
  font-weight: 700;
}

.day-tab .tab-date {
  font-size: 0.68rem;
  opacity: 0.8;
}

.day-tab:hover {
  border-color: #475569;
  color: var(--text-main);
}

.day-tab.active {
  background: var(--accent);
  color: #0b1120;
  border-color: var(--accent);
}

.day-tab.active.is-today::after {
  background: #0b1120;
}

/* Hauptcontainer für alle Zeilen */
.category-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  width: 100%;
}

/* Jede Zeile zentriert ihre Buttons */
.cat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-btn:hover {
  border-color: #475569;
  color: var(--text-main);
}

.cat-btn.active {
  background: #334155;
  color: var(--accent);
  border-color: var(--accent);
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover {
  border-color: #475569;
  color: var(--text-main);
}

.cat-btn.active {
  background: #334155;
  color: var(--accent);
  border-color: var(--accent);
}

.info-box {
  background: rgba(226, 160, 63, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

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

.empty-state {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  font-size: 0.88rem;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  transition: border-color 0.15s ease;
}

.menu-card:hover {
  border-color: #475569;
}
/*
.dish-image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--bg-main);
}*/

/* Bildbereich der Speisekarte */
.dish-image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  background-color: transparent;
  object-fit: contain;
  padding: 0; /* Kein Padding, damit die 90px voll ausgenutzt werden */
  display: block;

  filter: 
    drop-shadow(1px 0 0 #ffffff)
    drop-shadow(-1px 0 0 #ffffff)
    drop-shadow(0 1px 0 #ffffff)
    drop-shadow(0 -1px 0 #ffffff)
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}
.dish-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  width: 100%;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.dish-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.dish-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.dish-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-veggie { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.badge-vegan { background: rgba(5, 150, 105, 0.2); color: #10b981; }
.badge-rind { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-schwein { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.badge-chicken { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.badge-angebot { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.badge-drink { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.allergens {
  color: #64748b;
  margin-left: auto;
  font-size: 0.7rem;
}

@media (max-width: 550px) {
  .menu-card {
    flex-direction: column;
    align-items: stretch;
  }

  .dish-image {
    width: 100%;
    height: 140px;
  }
}

footer {
  margin-top: auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 22px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.modal p, .modal ul {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.badge-neu {
  background: rgba(230, 81, 0, 0.15);
  color: #e65100;
  border: 1px solid rgba(230, 81, 0, 0.3);
  font-weight: 600;
}

.opening-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: white;
  margin: 8px 0;
}

.opening-line .sep {
  color: white;
  font-weight: 300;
}

.opening-line strong {
  color: white;
}

/* Container für einzelne Kategorie-Abschnitte */
.menu-category-block {
  margin-bottom: 35px;
}

/* Formatierung der Zwischenüberschriften */
.category-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary, white);
  margin: 20px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
}

/* Grid-Layout für die Produktkarten */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.payment-hint {
  font-size: 0.85rem;
  color: white;
  margin: 6px 0 14px 0;
  text-align: center;
}

.payment-hint strong {
  color: white;
}

.payment-hint em {
  font-style: normal;
  color: #94a3b8;
  font-size: 0.8rem;
}
