/* =======================================================
   🎨 BETMASTER BLUE THEME
   Einheitliches, responsives Design für alle Seiten
   Autor: GPT-5
======================================================= */

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f4f8fc;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- HEADER / TOPBAR ---------- */
.topbar {
  width: 100%;
  background: #007bff;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.topbar h1 {
  font-size: 1.8rem;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.muted {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* ---------- HEADINGS ---------- */
h1, h2, h3 {
  font-weight: 600;
  color: #0b3d91;
  margin-bottom: 15px;
}

/* ---------- BUTTONS ---------- */
.btn {
  background: #007bff;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: #0056b3;
}

.btn-danger {
  background: #e53935;
}

.btn-danger:hover {
  background: #b71c1c;
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #565e64;
}

/* ---------- FORMS ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

label {
  font-weight: 500;
  margin-bottom: 6px;
}

input, select, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  width: 100%;
  background: #f8fafc;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #007bff;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* ---------- TABLES ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

th {
  background-color: #eef4ff;
  font-weight: 600;
  color: #0b3d91;
}

tr:hover {
  background-color: #f9fbff;
}

/* ---------- LISTS ---------- */
ul {
  list-style: none;
}

ul li {
  background: #f7faff;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

ul li:hover {
  background: #eaf2ff;
}

/* ---------- CARDS (Admin / Statistik) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: #0b3d91;
}

/* ---------- HAUPTSEITE: PRODUKTE ---------- */
.menu {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}

.category {
  margin-bottom: 60px;
}

.category h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #0b3d91;
  border-bottom: 3px solid #007bff;
  padding-bottom: 8px;
}

/* Produktkarten-Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

/* Produktkarte */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.card-body h3 {
  color: #0b3d91;
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.saturation {
  color: #f8b400;
  font-size: 1rem;
  margin-bottom: 8px;
}

.price {
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

/* Formular */
.card form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.card input[type="number"] {
  width: 70px;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.card .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* ---------- STATISTIK / SALES ---------- */
.stats-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.stats-card {
  flex: 1 1 250px;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.stats-card h4 {
  margin-bottom: 8px;
  color: #007bff;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  color: #555;
  background: #eef4ff;
  border-top: 1px solid #d9e3ff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 20px;
  }

  .menu {
    width: 95%;
    padding: 0 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 200px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .top-actions {
    flex-wrap: wrap;
  }
}

.cart-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
  vertical-align: middle;
}

.employee-note {
    background: #e0f0ff;
    border-left: 4px solid #007bff;
    padding: 10px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 0.95rem;
}
