/* ============================================================
   ZUR KNÖDELKISTE – Digitale Speisekarte
   Farben: Primary #C2B69C | Accent #A7BDB1 | Text #000 | BG #fff
   Fonts werden lokal geladen (DSGVO-konform, kein Google-Kontakt)
   ============================================================ */

/* ---------- @font-face: Lora (Fließtext) ---------- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
                 U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- @font-face: Poppins (Beschreibungstext) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
                 U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
                 U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- @font-face: Imbue (Seitentitel) ---------- */
@font-face {
  font-family: 'Imbue';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/imbue-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Imbue';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/imbue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
                 U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary:       #C2B69C;
  --primary-dark:  #a89880;
  --accent:        #A7BDB1;
  --accent-dark:   #8aaa9d;
  --text:          #000000;
  --bg:            #ffffff;
  --bg-light:      #f8f5f1;
  --border:        #e0d5c8;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --radius:        10px;
  --radius-sm:     6px;
  --font-title:    'Imbue', Georgia, serif;
  --font-head:     'Lora', Georgia, serif;
  --font-body:     'Poppins', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--primary);
  padding: 20px 16px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.site-header .logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header .logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.site-header .logo-text {
  text-align: left;
}

.site-header .logo-text h1 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.site-header .logo-text .sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- Menu Mode Banner ---------- */
.menu-mode-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-mode-banner .mode-label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2px 12px;
  margin-left: 6px;
}

/* ---------- Tab Navigation ---------- */
.tab-nav {
  display: flex;
  background: var(--bg-light);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 96px;
  z-index: 90;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 13px 10px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text); background: rgba(194,182,156,0.1); }

.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  background: rgba(194,182,156,0.12);
}

/* ---------- Main Content ---------- */
.main-content { max-width: 680px; margin: 0 auto; padding: 0 0 80px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Hinweis (Bistro notice) ---------- */
.menu-hinweis {
  margin: 16px 16px 0;
  padding: 12px 16px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
}

/* ---------- Kategorie ---------- */
.kategorie {
  margin: 20px 0 0;
}

.kategorie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--primary);
  cursor: pointer;
  user-select: none;
}

.kategorie-header h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.kategorie-toggle-icon {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.kategorie.collapsed .kategorie-toggle-icon { transform: rotate(-90deg); }

.kategorie-info {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: #666;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-style: italic;
}

.kategorie-body { }
.kategorie.collapsed .kategorie-body { display: none; }

/* ---------- Gericht Item ---------- */
.gericht {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s;
}

.gericht:last-child { border-bottom: none; }
.gericht:hover { background: #fdfaf7; }

.gericht-info { flex: 1; min-width: 0; }

.gericht-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.gericht-einheit {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 3px;
  font-style: italic;
}

.gericht-beschreibung {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
  margin-top: 3px;
}

.gericht-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-vegetarisch { background: #e8f5e9; color: #388e3c; border: 1px solid #c8e6c9; }
.tag-glutenfrei  { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
.tag-vegan       { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

.gericht-preis {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
  max-width: 45%;
  word-break: break-word;
}

/* multi-size prices */
.gericht-preis.multi {
  font-size: 1.05rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: right;
  line-height: 1.7;
  white-space: normal;
  max-width: 52%;
}

/* each individual price line stays on one line */
.preis-zeile {
  white-space: nowrap;
}

/* ---------- Allergy Footer ---------- */
.allergy-note {
  text-align: center;
  padding: 20px 16px;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 14px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  opacity: 0.9;
}

.site-footer a:hover { opacity: 1; text-decoration: underline; }

.footer-credit {
  margin-top: 4px;
  font-size: 0.65rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

/* ---------- Admin Login ---------- */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 20px;
}

.admin-login-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.admin-login-card .login-logo {
  margin: 0 auto 16px;
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.admin-login-card h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.admin-login-card .login-sub {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 24px;
}

.pin-input-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.15s;
}

.pin-dot.filled { background: var(--primary-dark); }

.pin-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.3em;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 14px;
}

.pin-field:focus { border-color: var(--primary); }

.pin-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pin-key {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s;
  font-family: var(--font-body);
}

.pin-key:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pin-key:active { transform: scale(0.95); }
.pin-key.del { font-size: 0.85rem; color: #888; }

.btn-primary {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-secondary:hover { background: var(--border); }

.btn-accent {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-accent:hover { background: var(--accent-dark); }

.btn-danger {
  display: inline-block;
  padding: 10px 20px;
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.btn-danger:hover { background: #d32f2f; }

.login-error {
  color: #d32f2f;
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 20px;
}

/* ---------- Admin Header ---------- */
.admin-header {
  background: var(--primary);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.admin-header .admin-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.admin-header .admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- Admin Toolbar ---------- */
.admin-toolbar {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: 52px;
  z-index: 90;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mode-badge.auto     { background: #e8f5e9; color: #2e7d32; }
.mode-badge.bistro   { background: #fff3e0; color: #e65100; }
.mode-badge.speise   { background: #e3f2fd; color: #1565c0; }
.mode-badge.override { background: #fce4ec; color: #c62828; }

.toolbar-sep { width: 1px; height: 24px; background: var(--border); }

/* ---------- Admin Tab Nav ---------- */
.admin-tab-nav {
  display: flex;
  background: var(--bg-light);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 104px;
  z-index: 80;
}
.admin-tab-nav::-webkit-scrollbar { display: none; }

.admin-tab-btn {
  padding: 11px 18px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.admin-tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  background: rgba(194,182,156,0.12);
}

/* ---------- Admin Content ---------- */
.admin-content { max-width: 760px; margin: 0 auto; padding: 16px 16px 100px; }

.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* ---------- Admin Kategorie ---------- */
.admin-kategorie {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
}

.admin-kategorie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--primary);
  cursor: pointer;
}

.admin-kategorie-header h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

.admin-kategorie-toggle { color: rgba(255,255,255,0.8); transition: transform 0.2s; }
.admin-kategorie.collapsed .admin-kategorie-toggle { transform: rotate(-90deg); }
.admin-kategorie.collapsed .admin-kategorie-body { display: none; }

/* ---------- Admin Gericht Row ---------- */
.admin-gericht {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s;
}

.admin-gericht:last-child { border-bottom: none; }
.admin-gericht.unavailable { background: #fff8f8; }
.admin-gericht.unavailable .admin-gericht-name { color: #aaa; text-decoration: line-through; }

.admin-gericht-info { flex: 1; min-width: 0; }

.admin-gericht-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.2s;
}

.admin-gericht-preis {
  font-size: 0.78rem;
  color: #888;
  margin-top: 1px;
}

/* ---------- Admin Tag Buttons ---------- */
.admin-gericht-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.btn-tag-toggle {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  color: #bbb;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.6;
}

.btn-tag-toggle:hover {
  border-color: #bbb;
  color: #888;
}

.btn-tag-toggle.active[data-tag="vegetarisch"] {
  background: #e8f5e9;
  color: #388e3c;
  border-color: #c8e6c9;
}

.btn-tag-toggle.active[data-tag="glutenfrei"] {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffe0b2;
}

/* ---------- Sort buttons (↑↓) ---------- */
.sort-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-move-up,
.btn-move-down {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.65rem;
  line-height: 1.4;
  cursor: pointer;
  color: #aaa;
  transition: background 0.12s, color 0.12s;
}

.btn-move-up:hover:not(:disabled),
.btn-move-down:hover:not(:disabled) {
  background: var(--primary-light, #f5ede0);
  color: #555;
  border-color: var(--primary);
}

.btn-move-up:disabled,
.btn-move-down:disabled {
  opacity: 0.2;
  cursor: default;
}

/* ---------- Add-dish tag toggle buttons ---------- */
.add-tag-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-tag-toggle-add {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: #f5f5f5;
  color: #bbb;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.6;
}

.btn-tag-toggle-add:hover {
  border-color: #bbb;
  color: #888;
}

.btn-tag-toggle-add.active[data-tag="vegetarisch"] {
  background: #e8f5e9;
  color: #388e3c;
  border-color: #c8e6c9;
}

.btn-tag-toggle-add.active[data-tag="glutenfrei"] {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffe0b2;
}

/* ---------- Admin Gericht Actions ---------- */
.admin-gericht-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-edit-dish {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px 10px;
  color: #777;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
  white-space: nowrap;
}

.btn-edit-dish:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Inline Edit / Add Form ---------- */
.edit-dish-form,
.add-dish-form {
  display: none;
  padding: 12px 14px;
  background: #f7f5f2;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.edit-dish-form.open,
.add-dish-form.open { display: block; }

.edit-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.edit-field,
.add-field {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.edit-field:focus,
.add-field:focus { border-color: var(--accent); }

.edit-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-btns .btn-accent,
.edit-btns .btn-secondary,
.edit-btns .btn-danger { font-size: 0.78rem; padding: 7px 14px; }

.add-dish-row {
  padding: 8px 14px;
  border-top: 1px dashed var(--border);
}

.btn-add-dish {
  width: 100%;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-add-dish:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(167,189,177,0.08);
}

/* ---------- Toggle Switch ---------- */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.toggle-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 48px;
  text-align: right;
  transition: color 0.2s;
}

.toggle-label.on  { color: var(--accent-dark); }
.toggle-label.off { color: #bbb; }

.toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ddd;
  border-radius: 26px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ---------- Admin Settings ---------- */
.settings-section {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.settings-section h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.settings-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.settings-row:last-child { margin-bottom: 0; }

.settings-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  min-width: 120px;
}

.settings-input {
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  max-width: 200px;
}

.settings-input:focus { border-color: var(--primary); }

.override-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.override-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--bg-light);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.override-btn:hover { border-color: var(--primary); }
.override-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.override-btn.auto.active { background: var(--accent); border-color: var(--accent); }

/* ---------- Alert / Toast ---------- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--accent-dark); }
.toast.error   { background: #d32f2f; }

/* ---------- QR Code Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.modal-card p {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 16px;
}

.modal-card #qr-canvas {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
}

.modal-url {
  font-size: 0.72rem;
  color: #888;
  word-break: break-all;
  margin-bottom: 16px;
  background: var(--bg-light);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.modal-close {
  padding: 9px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ---------- Save Bar (floating) ---------- */
.save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 150;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
}

.save-bar span {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
}

.save-bar .btn-save {
  padding: 9px 24px;
  background: #fff;
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}

.save-bar .btn-save:hover { opacity: 0.85; }

/* ---------- Info Alert ---------- */
.info-alert {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 10px 14px;
  font-size: 0.82rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
  color: #5d4037;
}

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .site-header { padding: 16px 24px; }
  .site-header .logo-text h1 { font-size: 1.65rem; }
  .gericht-name { font-size: 1rem; }
  .admin-content { padding: 20px 24px 100px; }
}

@media (min-width: 720px) {
  .tab-nav { top: 94px; }
  .admin-tab-nav { top: 114px; }
}
