@import url('fonts-app.css'); /* lokal statt Google-Fonts-CDN (DSGVO), 2026-07-13 */

:root {
  --anthrazit:       #1C1C1E;
  --anthrazit-light: #2A2A2D;
  --anthrazit-card:  #232326;
  --gold:            #C9A84C;
  --gold-light:      #E8C96A;
  --cream:           #F5F0E8;
  --cream-dark:      #C9C4BA;
  --danger:          #E05252;
  --success:         #52A86A;
  --radius:          12px;
  --radius-sm:       8px;
  --transition:      0.2s ease;
  --shadow:          0 4px 24px rgba(0,0,0,0.35);
}

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

html { font-size: 16px; }

body {
  background: var(--anthrazit);
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Utility ── */
.gold { color: var(--gold); }
.text-secondary { color: var(--cream-dark); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none !important; }

/* ── Logo Placeholder ── */
.logo {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--anthrazit);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--anthrazit);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--cream-dark);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224,82,82,0.3);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn-icon { padding: 0.45rem; }

/* ── Cards ── */
.card {
  background: var(--anthrazit-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cream-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
  background: var(--anthrazit-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 80px; }
select option { background: var(--anthrazit-light); }

.checkbox-group {
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-group label {
  text-transform: none;
  font-size: 0.9rem;
  color: var(--cream);
  cursor: pointer;
  letter-spacing: 0;
}

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--anthrazit-light);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { border-color: var(--danger); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal {
  background: var(--anthrazit-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.4rem; }
.modal-footer {
  display: flex; gap: 0.75rem; justify-content: flex-end;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── Image Upload ── */
.upload-area {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}
.upload-area:hover { border-color: var(--gold); }
.upload-area input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-preview {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 auto 0.5rem;
  display: block;
}
.upload-text { font-size: 0.85rem; color: var(--cream-dark); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-veg  { background: rgba(82,168,106,0.2); color: #52A86A; }
.badge-vegan { background: rgba(82,168,106,0.3); color: #6cdb8e; }
.badge-spicy { background: rgba(224,82,82,0.2); color: #E05252; }
.badge-hidden { background: rgba(255,255,255,0.08); color: var(--cream-dark); }
.badge-kueche { background: rgba(200,164,88,0.18); color: var(--gold); }
.badge-bar    { background: rgba(96,165,220,0.18); color: #7db8e8; }

/* ── Admin Layout ── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--anthrazit-light);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  padding: 1.5rem 0;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1rem;
}
.sidebar-header h2 {
  font-size: 1.1rem;
  color: var(--gold);
}
.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  color: var(--cream-dark);
  font-size: 0.95rem;
  font-weight: 500;
  user-select: none;
}
.nav-item:hover { color: var(--cream); background: rgba(255,255,255,0.04); }
.nav-item.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.main-content { padding: 2rem; overflow-y: auto; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.page-header h1 { font-size: 2rem; }

/* ── Data Table ── */
.data-grid {
  display: grid;
  gap: 1rem;
}
.data-row {
  background: var(--anthrazit-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color var(--transition);
}
.data-row:hover { border-color: rgba(201,168,76,0.25); }

.data-row-img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--anthrazit-light);
}
.data-row-img-placeholder {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--anthrazit-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-dark); font-size: 1.2rem;
  flex-shrink: 0;
}
.data-row-info { flex: 1; min-width: 0; }
.data-row-name { font-weight: 500; font-size: 1rem; margin-bottom: 0.2rem; }
.data-row-meta { font-size: 0.82rem; color: var(--cream-dark); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.data-row-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.data-row-price { color: var(--gold); font-weight: 600; font-size: 1rem; flex-shrink: 0; }

/* ── PIN Login ── */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--anthrazit);
}
.login-card {
  background: var(--anthrazit-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-card .logo { margin: 0 auto 1.5rem; width: 56px; height: 56px; font-size: 1.8rem; }
.login-card h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.login-card p { color: var(--cream-dark); font-size: 0.9rem; margin-bottom: 2rem; }
.pin-input {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.4rem;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: auto; flex-direction: row;
    border-right: none; border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0; z-index: 100;
  }
  .sidebar-header, .sidebar-footer { display: none; }
  .nav-item {
    flex: 1; flex-direction: column; gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem; text-align: center;
    border-left: none; border-top: 3px solid transparent;
  }
  .nav-item.active { border-left-color: transparent; border-top-color: var(--gold); }
  .main-content { padding: 1rem 1rem 5rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
