* { box-sizing: border-box; font-family: system-ui, sans-serif; margin: 0; padding: 0; }
body { background: #ffffff; color: #222; }
.hidden { display: none !important; }

/* Tischauswahl */
#table-select-screen h1 {
  background: linear-gradient(90deg, #0057B7 0%, #0057B7 85%, #C9A227 100%);
  color: #ffffff;
  text-align: center;
  padding: 22px 0;
  font-size: 22px;
  border-bottom: 4px solid #C9A227;
  margin-bottom: 20px;
}

#table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}

.table-btn {
  padding: 26px 0;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: #0057B7;
  color: white;
}
.table-btn:active { background: #003f87; }

/* Bestell-Screen */
#order-screen header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, #0057B7 0%, #0057B7 85%, #C9A227 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid #C9A227;
}
#order-screen header button {
  background: none; border: none; color: white; font-size: 16px;
}
#running-total { font-weight: bold; }

#category-tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 54px;
  z-index: 9;
}
.tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: white;
  font-size: 14px;
  color: #555;
  border-bottom: 3px solid transparent;
}
.tab.active {
  border-bottom: 3px solid #C9A227;
  color: #0057B7;
  font-weight: bold;
}

#menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.dish-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: white;
  text-align: left;
  overflow: hidden;
}
.dish-btn:active { background: #eaf2fb; border-color: #0057B7; }
.dish-btn img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}
.dish-btn span { font-size: 15px; font-weight: 600; }
.dish-btn small { color: #888; margin-top: 4px; }

#current-order {
  padding: 12px 16px;
  background: white;
  border-top: 2px solid #f0f0f0;
}
#current-order h3 { margin-bottom: 8px; font-size: 15px; color: #0057B7; }

#order-items { list-style: none; }
#order-items li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.item-name { flex: 1 1 100%; font-weight: 600; }
.qty-input { width: 50px; padding: 4px; }
.note-input { flex: 1; min-width: 120px; padding: 4px 8px; border: 1px solid #ddd; border-radius: 6px; }
.item-price { font-weight: bold; min-width: 60px; text-align: right; }
.remove-btn { background: #B03A2E; color: white; border: none; border-radius: 6px; padding: 4px 8px; }

#submit-order {
  display: block;
  width: calc(100% - 32px);
  margin: 16px;
  padding: 16px;
  font-size: 17px;
  font-weight: bold;
  background: #C9A227;
  color: white;
  border: none;
  border-radius: 12px;
}