/* ============================================
   PizzaServer – Gemeinsames Design-System
   Alle Seiten teilen diese Basis-Styles
   ============================================ */



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0f0c09;
  --surface:  #1a1410;
  --surface2: #231c14;
  --surface3: #2d2418;
  --accent:   #e8601a;
  --accent2:  #f5a623;
  --success:  #2ecc71;
  --warning:  #f5a623;
  --danger:   #e74c3c;
  --info:     #3498db;
  --text:     #f0e8d8;
  --muted:    #8a7a6a;
  --border:   rgba(255,255,255,0.08);
  --radius:   16px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -5%, rgba(232,96,26,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 105%, rgba(245,166,35,0.07) 0%, transparent 50%);
}

/* ---- Typografie ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}
.ps-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  background: linear-gradient(135deg, #f0e8d8 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ps-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Karten ---- */
.ps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.ps-card:focus-within {
  border-color: rgba(232,96,26,0.35);
}

/* ---- Inputs ---- */
.ps-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.ps-input:focus {
  border-color: var(--accent);
  background: #2a1f14;
}
.ps-input::placeholder { color: var(--muted); }

/* ---- Buttons ---- */
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  transition: all 0.15s;
}
.ps-btn-primary {
  background: linear-gradient(135deg, var(--accent), #c4460f);
  color: white;
  box-shadow: 0 4px 16px rgba(232,96,26,0.3);
}
.ps-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(232,96,26,0.4); }
.ps-btn-primary:active { transform: translateY(0); }

.ps-btn-success {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  color: white;
  box-shadow: 0 3px 12px rgba(46,204,113,0.25);
}
.ps-btn-success:hover { transform: translateY(-1px); }

.ps-btn-warning {
  background: linear-gradient(135deg, #e6940a, #c97d09);
  color: white;
  box-shadow: 0 3px 12px rgba(245,166,35,0.25);
}
.ps-btn-warning:hover { transform: translateY(-1px); }

.ps-btn-secondary {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.ps-btn-secondary:hover { color: var(--text); border-color: var(--muted); }

.ps-btn-danger {
  background: linear-gradient(135deg, #c0392b, #a93226);
  color: white;
  box-shadow: 0 3px 12px rgba(231,76,60,0.25);
}
.ps-btn-danger:hover { transform: translateY(-1px); }

.ps-btn-lg {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ---- Nav-Leiste (Admin/Küche) ---- */
.ps-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.ps-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.ps-nav-badge {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ---- Tabelle (Admin) ---- */
.ps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ps-table thead th {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.ps-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.ps-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.ps-table tbody td { padding: 11px 14px; color: var(--text); }

/* ---- Status-Badges ---- */
.ps-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}
.ps-badge-offen      { background: rgba(138,122,106,0.2); color: var(--muted); }
.ps-badge-vorbereitet { background: rgba(245,166,35,0.2); color: var(--accent2); }
.ps-badge-ofen        { background: rgba(46,204,113,0.2); color: var(--success); }
.ps-badge-ausgegeben  { background: rgba(52,152,219,0.2); color: var(--info); }

/* ---- Küchen-Karte ---- */
.pizza-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.2s;
}
.pizza-card.status-offen      { border-left-color: var(--muted); }
.pizza-card.status-vorbereitet { border-left-color: var(--warning); background: #1f1a0d; }
.pizza-card.status-imOfen      { border-left-color: var(--success); background: #0d1a10; }

.pizza-card .pizza-name  { font-size: 1.15rem; font-weight: 600; font-family: 'Playfair Display', serif; }
.pizza-card .pizza-time  { font-size: 0.78rem; color: var(--muted); }
.pizza-card .pizza-sub   { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.pizza-card .pizza-sub strong { color: var(--text); }

/* ---- Zutaten-Toggle (Küche) ---- */
.topping-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 8px 12px;
  margin-bottom: 5px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.topping-item::before { content: '●'; color: var(--success); font-size: 0.6rem; }
.topping-item:hover { border-color: var(--accent); }
.topping-item.off {
  color: var(--muted);
  text-decoration: line-through;
  background: rgba(231,76,60,0.08);
  border-color: rgba(231,76,60,0.2);
}
.topping-item.off::before { color: var(--danger); }

/* ---- Divider ---- */
.ps-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }

/* ---- Nav-Links ---- */
.ps-nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.ps-nav-link {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.ps-nav-link:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.ps-nav-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
