/* ─── Design-Tokens ──────────────────────────────────── */
:root {
  --green:         #2d6a2f;
  --green-dark:    #1f4d21;
  --green-light:   #3d8b41;
  --green-xlight:  #eef5ee;
  --green-glow:    rgba(45, 106, 47, 0.18);
  --surface:       rgba(255, 255, 255, 0.95);
  --surface-2:     rgba(255, 255, 255, 0.88);
  --bg-body:       #0f1a0f;
  --border:        rgba(45, 106, 47, 0.18);
  --border-strong: rgba(45, 106, 47, 0.32);
  --text:          #1a1a1a;
  --text-inv:      #f0f5f0;
  --muted:         #5e6e5e;
  --danger:        #c0392b;
  --danger-bg:     #fdf2f1;
  --warn-bg:       #fff8f0;
  --warn-border:   #f5d07a;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-sm:     0 1px 6px rgba(0, 0, 0, 0.12);
  --touch:         52px;
  --touch-sm:      40px;
  --header-h:      56px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }

/* ─── Body + Wallpaper-Hintergrund ──────────────────── */
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bg-body);
  color: var(--text);
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/static/brand/bc97-wallpaper.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}

body > * { position: relative; z-index: 1; }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--green);
  color: var(--text-inv);
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}
.site-logo {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.site-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}
.site-title span {
  opacity: 0.65;
  font-weight: 400;
}
.header-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 20px;
}
.header-spacer { flex: 1; }
.header-user {
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  min-height: 34px;
  white-space: nowrap;
  transition: background 0.12s;
}
.header-btn:hover { background: rgba(255, 255, 255, 0.26); }

/* ─── Formular-Elemente ──────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: #fff;
  color: var(--text);
  min-height: var(--touch);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, transform 0.08s, box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { background: var(--green-xlight); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[disabled] {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
  font-size: 16px;
  font-weight: 600;
}
.btn-primary:hover { background: var(--green-light); box-shadow: 0 2px 10px rgba(45,106,47,0.35); }
.btn-full { width: 100%; }
.btn-lg {
  min-height: 60px;
  font-size: 18px;
  border-radius: var(--radius);
  padding: 14px 24px;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover { background: rgba(0,0,0,0.06); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: #a93226;
}
.btn-danger:hover { background: #a93226; }

/* ─── Login-Seite ────────────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.login-logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}
.login-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 32px;
}
.login-error {
  background: var(--danger-bg);
  border: 1px solid #f5c0bc;
  border-radius: var(--radius-sm);
  color: #8b1c16;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.login-error-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ─── Portal / Modus-Wahl ────────────────────────────── */
.portal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.portal-welcome {
  padding: 28px 24px 8px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.portal-welcome-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-inv);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.portal-welcome-sub {
  font-size: 14px;
  color: rgba(240,245,240,0.75);
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px 24px 32px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.12s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,106,47,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.mode-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--green-light);
}
.mode-card.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.mode-icon { font-size: 40px; line-height: 1; margin-bottom: 4px; }
.mode-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0;
}
.mode-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.mode-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-top: 4px;
}
.mode-badge-primary {
  background: var(--green-xlight);
  color: var(--green-dark);
  border: 1px solid var(--border);
}
.mode-badge-soon {
  background: #f0f0f0;
  color: var(--muted);
  border: 1px solid #e0e0e0;
}

/* ─── Thekenmodus-Layout ─────────────────────────────── */
.theke-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.theke-layout {
  display: grid;
  grid-template-columns: 268px 1fr 308px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ─── Panel (gemeinsam) ──────────────────────────────── */
.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}
.panel:last-child { border-right: none; }

.panel-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.panel-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 8px;
}
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 0;
}
.panel-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

/* ─── Mitglieder-Panel (links) ───────────────────────── */
.member-search-wrap { position: relative; }
.member-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}
.member-search {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  min-height: var(--touch-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.member-search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.member-item {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch-sm);
  transition: background 0.1s;
  border: 1px solid transparent;
}
.member-item:hover { background: var(--green-xlight); }
.member-item.active {
  background: var(--green-xlight);
  border-color: var(--green-light);
}
.member-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.member-avatar.guest { background: #6b7280; }
.member-info { min-width: 0; }
.member-name { font-size: 14px; font-weight: 500; }
.member-sub { font-size: 11px; color: var(--muted); }

/* ─── Artikel-Panel (Mitte) ──────────────────────────── */
.panel-articles { border-right: 1px solid var(--border); }

.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  transition: background 0.1s, border-color 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.cat-tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
}
.cat-tab:hover:not(.active) { background: var(--green-xlight); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 8px;
}
.article-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 88px;
  text-align: center;
  gap: 5px;
  transition: background 0.1s, transform 0.08s, border-color 0.1s, box-shadow 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.article-btn:hover {
  background: var(--green-xlight);
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
}
.article-btn:active {
  transform: scale(0.94);
  background: rgba(45, 106, 47, 0.13);
}
.article-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.article-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}

/* ─── Bon-Panel (rechts) ─────────────────────────────── */
.tab-member-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
}
.tab-member-none {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.tab-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tab-item {
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-radius: 6px;
  gap: 6px;
  font-size: 14px;
  transition: background 0.1s;
}
.tab-item:hover { background: var(--green-xlight); }
.tab-qty {
  font-weight: 700;
  color: var(--green-dark);
  min-width: 26px;
  font-size: 13px;
}
.tab-name { flex: 1; }
.tab-price { font-weight: 600; font-size: 13px; white-space: nowrap; }
.tab-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.1s, background 0.1s;
}
.tab-remove:hover { opacity: 1; background: #fde8e8; color: var(--danger); }

.tab-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0 8px;
}
.tab-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 6px;
}
.tab-total-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.tab-total-amount { font-size: 22px; font-weight: 800; color: var(--green-dark); }

.tab-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 12px;
  line-height: 1.55;
}
.tab-empty-icon { font-size: 36px; margin-bottom: 10px; }

/* ─── Notice / Hinweis-Boxen ─────────────────────────── */
.notice {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
}
.notice-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.notice-info {
  background: rgba(45, 106, 47, 0.08);
  border: 1px solid rgba(45, 106, 47, 0.2);
  color: var(--green-dark);
}
.notice-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: #7a4500;
}
.notice-error {
  background: var(--danger-bg);
  border: 1px solid #f5c0bc;
  color: #8b1c16;
}
.notice-body { flex: 1; }
.notice-action {
  margin-top: 6px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
}
.notice-action:hover { opacity: 0.75; }

/* ─── Toasts ─────────────────────────────────────────── */
.toast-area {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
  pointer-events: none;
  max-width: 360px;
}
.toast {
  background: #182418;
  color: #edf2ed;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 4px solid var(--green-light);
  animation: toastIn 0.22s ease;
}
.toast.error { border-left-color: #e74c3c; }
.toast.warn  { border-left-color: #f39c12; }
.toast.success { border-left-color: var(--green-light); }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.1s;
}
.toast-action:hover { background: rgba(255, 255, 255, 0.14); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Ladeindikator ──────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(45,106,47,0.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(45,106,47,0.45); }

/* ─── Bon-Statuszustände ─────────────────────────────── */
.bon-state-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.bon-spinner {
  width: 28px; height: 28px;
  border-top-color: var(--green);
  border-color: rgba(45, 106, 47, .2);
}

/* ─── Kassen-Eingabe ─────────────────────────────────── */
.pay-input-wrap {
  position: relative;
  margin-bottom: 6px;
}
.pay-amount-input {
  padding-right: 36px;
  font-size: 22px;
  font-weight: 700;
  text-align: right;
  letter-spacing: 0.01em;
}
.pay-currency {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
  font-weight: 600;
}
.pay-change-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 10px;
  background: var(--green-xlight);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}
.pay-change-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pay-change-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
}

/* ─── Alpine-Hilfsmittel ─────────────────────────────── */
[x-cloak] { display: none !important; }

/* ─── Admin-Layout ───────────────────────────────────── */
.admin-page { display: flex; flex-direction: column; min-height: 100vh; }

.admin-nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.admin-nav-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: background .12s;
}
.admin-nav-link:hover { background: rgba(255,255,255,.15); }
.admin-nav-link.active {
  background: rgba(255,255,255,.22);
  color: #fff;
  font-weight: 600;
}

.admin-content {
  flex: 1;
  padding: 24px 28px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-inv);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  margin: 0;
}
.admin-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-search-wrap { position: relative; }
.admin-search {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  min-height: var(--touch-sm);
  min-width: 220px;
}
.admin-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.admin-check-label { font-size: 13px; color: var(--text-inv); display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.admin-loading { color: var(--muted); padding: 28px 0; font-size: 14px; }

/* ─── Admin-Tabelle ──────────────────────────────────── */
.admin-table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: auto;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--green-xlight); }
.row-inactive td { opacity: .55; }
.admin-empty { text-align: center; color: var(--muted); padding: 32px; }

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.status-active  { background: #e6f4e6; color: var(--green-dark); border: 1px solid rgba(45,106,47,.2); }
.status-inactive { background: #f5f5f5; color: var(--muted); border: 1px solid #ddd; }

.btn-link {
  background: none;
  border: none;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link:hover { background: var(--green-xlight); text-decoration: none; }

/* ─── Admin-Panel (Slide-in) ─────────────────────────── */
.admin-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 100;
}
.admin-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  background: var(--surface);
  box-shadow: -4px 0 32px rgba(0,0,0,.25);
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}
.admin-panel-title { font-size: 17px; font-weight: 700; margin: 0; color: var(--green-dark); }
.admin-panel-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.admin-panel-close:hover { background: #f0f0f0; }
.admin-panel-body { flex: 1; overflow-y: auto; padding: 22px; }
.admin-panel-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: var(--surface);
}

/* ─── Admin-Formular ─────────────────────────────────── */
.form-row { display: flex; gap: 14px; }
.form-row-2 > .form-group { flex: 1; }
.form-hint { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.form-required { color: var(--danger); }
.form-check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
