/* Admin-spezifische Styles – passend zum hellen Hauptthema */
.admin-main { padding: 32px 24px 80px; }

.login-card {
  max-width: 400px;
  margin: 60px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.login-card h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 700;
}
.login-card h2::after {
  content: '';
  display: block;
  width: 50px; height: 2px;
  background: var(--accent);
  margin: 12px 0 18px;
}
.login-card label {
  display: block; margin: 12px 0;
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--ink);
  font-weight: 600;
}
.login-card input {
  width: 100%; padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  font-size: 14px;
  margin-top: 5px;
  text-transform: none;
  letter-spacing: normal;
}
.login-card input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200, 38, 30, 0.15);
}
.login-error {
  background: #fdecec;
  border: 1px solid #f4b9b9;
  color: #8b1e1e;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}

/* Tabs */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}
.tab {
  background: transparent; border: none; padding: 12px 18px;
  font-size: 12px; cursor: pointer; color: var(--ink-muted);
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--sans);
  font-weight: 600;
  transition: color 0.18s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.filter-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px;
}
.filter-row label {
  display: flex; flex-direction: column;
  font-size: 10.5px; color: var(--ink);
  text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
  gap: 5px;
}
.filter-row input, .filter-row select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit; color: var(--ink);
  font-size: 13px; text-transform: none; letter-spacing: normal;
}
.filter-row input:focus, .filter-row select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200, 38, 30, 0.15);
}
.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px; cursor: pointer;
  font-size: 11px; color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-family: var(--sans);
  transition: all 0.18s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Orders */
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.order-card.status-vorbereitet { border-left-color: var(--gold); }
.order-card.status-abgeholt { border-left-color: var(--ok); opacity: 0.65; }
.order-card.status-storniert { border-left-color: var(--ink-muted); opacity: 0.45; }

.order-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px;
  align-items: center;
}
.order-no { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--accent); }
.order-meta { color: var(--ink-soft); font-size: 13.5px; }
.order-meta strong { color: var(--ink); font-weight: 600; }
.order-pickup {
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 5px 12px;
  border-radius: 999px; font-size: 12px;
  font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px;
}
.order-items { font-size: 13.5px; margin: 10px 0; color: var(--ink-soft); }
.order-items table { width: 100%; border-collapse: collapse; }
.order-items td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.order-items tr:last-child td { border-bottom: none; }
.order-items td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.order-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.order-total { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--accent); }
.status-badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  background: #fdecec; color: var(--accent);
  margin-right: 10px;
  border: 1px solid #f4b9b9;
}
.status-badge.vorbereitet {
  background: #fbf3df; color: #8a6618;
  border-color: #ead9a8;
}
.status-badge.abgeholt {
  background: #e6f1de; color: var(--ok);
  border-color: #c7dfb8;
}
.status-badge.storniert {
  background: #ececec; color: #555;
  border-color: #d4d4d4;
}

.order-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-actions button {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 12px;
  border-radius: var(--radius);
  cursor: pointer; font-size: 11px;
  color: var(--ink);
  text-transform: uppercase; letter-spacing: 1.4px;
  font-family: var(--sans); font-weight: 600;
  transition: all 0.18s;
}
.order-actions button:hover { border-color: var(--accent); color: var(--accent); }
.order-actions button.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.order-actions button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.muted { color: var(--ink-muted); font-size: 14px; margin-top: 0; font-family: var(--serif); font-style: italic; }

/* Products edit */
.products-edit { display: flex; flex-direction: column; gap: 14px; }
.product-edit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.product-edit .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-edit label {
  display: block; font-size: 10.5px; color: var(--ink);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px; font-weight: 600;
}
.product-edit input, .product-edit textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  font-size: 14px;
  margin-top: 5px;
  text-transform: none;
  letter-spacing: normal;
}
.product-edit input:focus, .product-edit textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200, 38, 30, 0.15);
}
.product-edit textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.product-edit-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.product-edit-foot .btn-secondary.danger {
  border-color: rgba(192, 72, 72, 0.4);
  color: var(--accent);
}
.product-edit-foot .btn-secondary.danger:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.product-edit.add-card {
  border: 1px dashed var(--line);
  background: var(--bg);
  text-align: left;
}
.product-edit.add-card .toggle-add.hidden { display: none; }
.product-edit.add-card .add-form.hidden { display: none; }
.save-status { font-size: 12px; color: var(--ok); font-family: var(--sans); }
.save-status.error { color: var(--danger); }

@media (max-width: 700px) {
  .product-edit .row { grid-template-columns: 1fr; }
}
