/* ── Login Screen ── */

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 50%, #16213e 100%);
}

.login-card {
  text-align: center;
  background: rgba(26, 32, 53, 0.9);
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 90, 31, 0.1);
}

.login-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 20px;
}

.login-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-subtitle {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-input {
  padding: 14px 18px;
  background: #111827;
  border: 1px solid #2a3555;
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}

.login-input:focus {
  border-color: #ff5a1f;
}

.login-btn {
  padding: 14px;
  background: linear-gradient(135deg, #ff5a1f, #ff8c00);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.4);
}

.login-error {
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

/* Dashboard erst nach Login sichtbar */
.sidebar,
.mobile-header,
.content { visibility: hidden; }

body.authenticated .sidebar,
body.authenticated .mobile-header,
body.authenticated .content { visibility: visible; }

/* ── HupfGaudi Dashboard — Design System ── */

:root {
  /* Sidebar */
  --sidebar-bg: #1a1a2e;
  --sidebar-hover: #16213e;
  --sidebar-text: #a0aec0;
  --sidebar-active: #ff5a1f;
  --sidebar-active-bg: rgba(255, 90, 31, 0.1);
  --sidebar-width: 260px;

  /* Content */
  --content-bg: #f7f8fc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --card-radius: 16px;

  /* Text */
  --text-primary: #1a202c;
  --text-secondary: #718096;
  --text-muted: #a0aec0;

  /* Status */
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;

  /* Produkt-Farben */
  --color-ritterburg: #ff5a1f;
  --color-alien: #10b981;
  --color-einhorn: #ec4899;
  --color-feuerwehr: #ef4444;
  --color-fussball: #3b82f6;
  --color-meerjungfrau: #06b6d4;
  --color-hochzeit: #8b5cf6;
  --color-popcorn: #f59e0b;
  --color-zuckerwatte: #f472b6;
  --color-icecream: #6366f1;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--content-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 4px;
}

.sidebar-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.sidebar-subtitle {
  color: var(--sidebar-text);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  background: var(--sidebar-hover);
}

.nav-link.active {
  color: var(--sidebar-active);
  background: var(--sidebar-active-bg);
  border-left-color: var(--sidebar-active);
}

.nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Mobile Header ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--sidebar-bg);
  color: #fff;
  align-items: center;
  padding: 0 16px;
  z-index: 90;
  gap: 12px;
}

.hamburger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

.hamburger svg { width: 24px; height: 24px; }

.mobile-title {
  font-size: 16px;
  font-weight: 600;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 95;
}

/* ── Main Content ── */
.content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 0;
}

.content-header {
  padding: 24px 32px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-date {
  color: var(--text-secondary);
  font-size: 14px;
}

.content-body {
  padding: 0 32px 32px;
}

/* ── Loading ── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--text-secondary);
  gap: 16px;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--card-border);
  border-top-color: var(--sidebar-active);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Karten ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

/* ── KPI-Karten ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: linear-gradient(135deg, #fff, #f7f8fc);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--kpi-color, var(--sidebar-active));
  border-radius: 4px 0 0 4px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Tabellen ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--card-border);
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}

tbody tr:hover {
  background: rgba(0,0,0,0.02);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ── Status-Badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green { background: rgba(16,185,129,0.1); color: var(--green); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--red); }
.badge-yellow { background: rgba(245,158,11,0.1); color: var(--yellow); }
.badge-blue { background: rgba(59,130,246,0.1); color: var(--blue); }
/* Kleinanzeigen-Herkunft (Lime, klar unterscheidbar vom "Freigegeben"-Grün) */
.badge-ka { background: rgba(101,163,13,0.14); color: #4d7c0f; }

/* Antwort-Link auf einer Kleinanzeigen-Anfrage (Antworten läuft über Kleinanzeigen) */
.anfrage-ka-reply-wrap { margin-top: 12px; }
.anfrage-ka-reply {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px;
  background: rgba(101,163,13,0.12); color: #4d7c0f;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(101,163,13,0.28); transition: background .15s;
}
.anfrage-ka-reply:hover { background: rgba(101,163,13,0.2); }
.anfrage-ka-hint { font-size: 12.5px; color: #64748b; }

/* ── Produkt-Pill (Kalender) ── */
.booking-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin: 1px 2px;
  white-space: nowrap;
  color: #fff;
}

/* ── Verfügbarkeits-Grid ── */
.avail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.avail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease;
}

.avail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.avail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avail-dot.free { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.4); }
.avail-dot.booked { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,0.4); }

.avail-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

/* ── Kalender ── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.cal-nav {
  display: flex;
  gap: 8px;
}

.cal-nav button {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.15s;
}

.cal-nav button:hover {
  background: var(--content-bg);
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 8px 4px;
  text-align: center;
}

.cal-table td {
  border: 1px solid var(--card-border);
  padding: 4px;
  vertical-align: top;
  height: 120px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.cal-table td:hover {
  background: rgba(255,90,31,0.04);
}

.cal-table td.today {
  background: rgba(255,90,31,0.06);
}

.cal-table td.other-month {
  color: var(--text-muted);
  background: rgba(0,0,0,0.01);
}

.cal-day-num {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.cal-table td.other-month .cal-day-num {
  color: var(--text-muted);
}

.cal-day-bookings {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-booking {
  display: block;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-customer {
  font-weight: 400;
  opacity: 0.8;
}

/* Tages-Detail */
.day-detail {
  margin-top: 20px;
}

.day-detail h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ── Umsatz ── */
.chart-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

.chart-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  height: 300px;
}

.period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.period-tab {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.period-tab:hover { background: var(--content-bg); }
.period-tab.active {
  background: var(--sidebar-active);
  color: #fff;
  border-color: var(--sidebar-active);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Produkte-Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5a1f, #ffcc00);
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,90,31,0.15);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: linear-gradient(135deg, #fff8e7 0%, #fff5f0 100%);
  padding: 16px;
  transition: transform 0.3s;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-img-count {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(26,26,46,0.85);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  backdrop-filter: blur(4px);
  z-index: 4;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-info {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.product-name {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.product-type {
  font-size: 11px;
  color: #ff5a1f;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ── Neues Produkt Formular ── */

.np-form-card {
  max-width: 800px;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-style: solid !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
  padding: 36px !important;
}

.np-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1e293b;
}

.np-form { display: flex; flex-direction: column; gap: 18px; }

.np-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.np-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.np-row-4 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) {
  .np-row, .np-row-3, .np-row-4 { grid-template-columns: 1fr; }
}

.np-field { display: flex; flex-direction: column; gap: 6px; }

.np-field label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.np-field input[type="text"],
.np-field input[type="number"],
.np-field select {
  padding: 11px 14px;
  background: #f8fafc;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  color: #1e293b;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.np-field input:focus, .np-field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.np-field input[type="color"] {
  width: 100%;
  height: 44px;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  padding: 4px;
}

.np-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--card-border);
}

.np-image-area {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.np-image-area:hover, .np-image-area.drag-over {
  border-color: #3b82f6;
  background: rgba(59,130,246,0.04);
}

.np-upload-hint { color: #94a3b8; font-size: 14px; }

.np-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 10px;
}

.np-gallery-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--card-border);
  background: #f8fafc;
}

.np-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(239,68,68,0.9);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.np-gallery-item:hover .np-gallery-remove { opacity: 1; }

.np-gallery-main {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(59,130,246,0.85);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px;
}

.np-gallery-add { margin-top: 4px; }

.np-preview-img {
  max-height: 200px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.np-image-or {
  font-size: 12px;
  color: #94a3b8;
  margin: 8px 0 4px;
}

.np-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px !important;
  color: #334155 !important;
  font-weight: 500;
}

.np-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #3b82f6;
}

.np-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 2px solid var(--card-border);
}

.np-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.np-btn:hover { transform: translateY(-2px); }

.np-btn-save {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

.np-btn-save:hover { box-shadow: 0 6px 24px rgba(16,185,129,0.4); }

.np-btn-delete {
  background: #fff;
  color: #ef4444;
  border: 2px solid #fecaca;
}

.np-btn-delete:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

.np-status {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
  color: #64748b;
}

.np-edit-btn {
  margin-top: 8px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  width: 100%;
}

.np-edit-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* ── Buchungsbestätigung Button ── */

.bc-confirm-btn {
  padding: 5px 12px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.bc-confirm-btn:hover { background: #059669; }
.bc-confirm-btn:disabled { opacity: 0.5; cursor: wait; }

.bc-confirm-btn.confirmed {
  background: #d1fae5;
  color: #065f46;
  cursor: default;
  font-weight: 700;
}

/* ── Sperrtage ── */

.sperr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sperr-table th { text-align: left; font-weight: 600; color: #64748b; padding: 8px 12px; border-bottom: 2px solid var(--card-border); font-size: 12px; }
.sperr-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.sperr-del { border: none; background: transparent; cursor: pointer; font-size: 16px; padding: 4px; border-radius: 6px; transition: background .2s; }
.sperr-del:hover { background: #fee2e2; }

/* ── Diashow ── */

.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.ss-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
}

.ss-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ss-item-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.ss-item:hover .ss-item-actions,
.ss-item:hover .ss-drag-hint { opacity: 1; }

.ss-item { cursor: grab; }
.ss-item:active { cursor: grabbing; }

.ss-dragging { opacity: 0.4; transform: scale(0.95); }
.ss-drag-over { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }

.ss-drag-hint {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.ss-move, .ss-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-move { background: rgba(255,255,255,0.9); color: #334155; }
.ss-move:hover { background: #3b82f6; color: white; }
.ss-remove { background: rgba(239,68,68,0.9); color: white; }

.ss-caption {
  width: 100%;
  border: none;
  border-top: 1px solid var(--card-border);
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  color: #334155;
  background: #fafafa;
}
.ss-caption:focus { background: #fff; }

.ss-add-area {
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

.dinput {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid #ccc;
  padding: 6px 4px;
  font-size: .9rem;
  font-family: inherit;
  background: transparent;
  outline: none;
}

/* ── Eingegangene Verträge ── */

.contracts-list { display: flex; flex-direction: column; gap: 16px; }

.contract-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 20px 24px;
  border-left: 4px solid #8b5cf6;
}

.contract-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.contract-type {
  font-size: 12px;
  font-weight: 700;
  color: #8b5cf6;
  margin-right: 10px;
}

.contract-name {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.contract-date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px 20px;
}
@media (max-width: 700px) { .contract-grid { grid-template-columns: 1fr 1fr; } }

.contract-field { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }

.contract-event {
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
}

.contract-sig {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

.contract-sig-img {
  max-width: 250px;
  height: auto;
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
}

/* ── Vertragsübersicht (modernes Design) ── */

.vt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.vt-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.02);
  padding: 0;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.vt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.vt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5a1f, #ffcc00);
}

.vt-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  padding: 20px 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.vt-icon {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #fff8e7, #fff5f0);
  border-radius: 12px;
  flex-shrink: 0;
}

.vt-card > :not(h3):not(::before) {
  padding-left: 20px;
  padding-right: 20px;
}

.vt-card table.vt-table, .vt-card > .vt-row, .vt-card > .vt-divider, .vt-card > .vt-detail {
  padding-left: 20px;
  padding-right: 20px;
}

.vt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #f8fafc;
  font-size: 13.5px;
  min-height: 44px;
}
.vt-row:last-of-type { border-bottom: none; padding-bottom: 16px; }
.vt-row span { color: #475569; font-weight: 500; }
.vt-row strong { color: #0f172a; white-space: nowrap; font-weight: 700; }

.vt-green { color: #059669 !important; background: #d1fae5; padding: 3px 10px; border-radius: 6px; font-size: 12px; }
.vt-red { color: #dc2626 !important; background: #fee2e2; padding: 3px 10px; border-radius: 6px; font-size: 12px; }

.vt-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 20px;
}

.vt-detail {
  font-size: 12px;
  color: #64748b;
  padding: 8px 20px;
  line-height: 1.5;
  background: #f9fafb;
  margin: 0;
}
.vt-detail:last-child { padding-bottom: 16px; }

.vt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
  table-layout: fixed;
}
.vt-table th {
  text-align: left;
  font-weight: 700;
  color: #64748b;
  padding: 10px 8px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.vt-table th:first-child { padding-left: 20px; width: 45%; }
.vt-table th:nth-child(2), .vt-table th:nth-child(3) { width: 27.5%; text-align: left; }
.vt-table th:last-child { padding-right: 20px; }
.vt-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.vt-table td:first-child {
  padding-left: 20px;
  font-weight: 500;
  white-space: normal;
  line-height: 1.3;
}
.vt-table td:last-child { padding-right: 20px; }
.vt-table tr:last-child td { border-bottom: none; }
.vt-table tr:hover { background: #fafbfc; }

.vt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #fff8f5, #ffffff);
  border: 2px solid #ffe0d0;
  border-radius: 12px;
  color: #ff5a1f;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.vt-link:hover {
  background: #ff5a1f;
  color: #fff;
  border-color: #ff5a1f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,90,31,.3);
}

.vt-price-input, .vt-setting-input {
  width: 70px;
  padding: 6px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: #0f172a;
  text-align: center;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  box-sizing: border-box;
}
.vt-price-input:hover, .vt-setting-input:hover { border-color: #cbd5e1; }
.vt-price-input:focus, .vt-setting-input:focus {
  border-color: #ff5a1f;
  box-shadow: 0 0 0 3px rgba(255,90,31,.12);
}
.vt-setting-input.vt-text {
  text-align: left;
  font-weight: 500;
  width: 140px;
}
.vt-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vt-cell .vt-unit {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.vt-table .vt-price-input { width: 72px; }
.vt-row > *:last-child { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

/* ── Anfragen ── */

.anfragen-list { display: flex; flex-direction: column; gap: 16px; }

.anfrage-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 20px 24px;
  border-left: 4px solid #ff5a1f;
}

.anfrage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.anfrage-name {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.anfrage-date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.anfrage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px 20px;
}

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

.anfrage-field { display: flex; flex-direction: column; gap: 2px; }

.anfrage-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.anfrage-extras {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.anfrage-extra {
  display: inline-block;
  padding: 4px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #166534;
}

.anfrage-msg {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

.anfrage-card--done { border-left-color: #10b981; opacity: .75; }
.anfrage-card--done:hover { opacity: 1; }
.anfrage-card--rejected { border-left-color: #ef4444; opacity: .5; }
.anfrage-card--rejected:hover { opacity: .75; }

.anfrage-freigeben-btn {
  padding: 6px 14px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.anfrage-freigeben-btn:hover { background: #059669; }
.anfrage-freigeben-btn:disabled { opacity: .5; cursor: wait; }

/* "Zur Buchung" (Kleinanzeigen-Anfrage -> Buchung) */
.anfrage-buchung-btn {
  padding: 6px 14px;
  background: #ff5a1f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}
.anfrage-buchung-btn:hover { background: #e64a10; }
.anfrage-buchung-btn:disabled { opacity: .5; cursor: wait; }

.anfrage-ablehnen-btn {
  padding: 6px 14px;
  background: #fff;
  color: #ef4444;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.anfrage-ablehnen-btn:hover { background: #fef2f2; border-color: #ef4444; }
.anfrage-ablehnen-btn:disabled { opacity: .5; cursor: wait; }

.anfrage-loeschen-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anfrage-loeschen-btn:hover { background: #fee2e2; }

.anfrage-msg p {
  margin-top: 4px;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid #ff5a1f;
}

/* ── Lieferungs-Settings in Produkte-View ── */

.delivery-settings-card {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.delivery-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.delivery-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .delivery-row { grid-template-columns: 1fr; }
}

.delivery-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delivery-field label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.delivery-field .price-input {
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
}

.delivery-field .price-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.product-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
}

.price-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.price-edit-row label {
  min-width: 64px;
  font-weight: 700;
  color: #475569;
  font-size: 12.5px;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  transition: all 0.2s;
  flex: 1;
  font-weight: 700;
}

.price-input-wrap:focus-within {
  border-color: #ff5a1f;
  box-shadow: 0 0 0 3px rgba(255,90,31,0.12);
}

.price-input-wrap .price-input {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a2e;
  width: 100%;
}

.price-unit {
  color: #ff5a1f;
  font-weight: 800;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.utilization-bar {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.utilization-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}

.np-edit-btn {
  margin-top: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #ff5a1f, #ff8c42);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(255,90,31,0.25);
}

.np-edit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,90,31,0.35);
}

.product-card--inactive::before {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.price-input {
  width: 70px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  text-align: right;
}

.price-input::-webkit-inner-spin-button { opacity: 0.3; }

.price-unit {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.price-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid #34d399;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.price-save-info {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.btn-save-prices {
  padding: 12px 28px;
  background: #fff;
  color: #059669;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-save-prices:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.btn-save-prices:disabled { opacity: 0.6; cursor: wait; }

.btn-save-prices.has-changes {
  animation: pulse-save 1.2s infinite;
  background: #fff700;
  color: #065f46;
}

@keyframes pulse-save {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,247,0,0.6); }
  50% { box-shadow: 0 0 0 12px rgba(255,247,0,0); }
}

.product-price {
  font-size: 13px;
  font-weight: 500;
}

.product-price strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--sidebar-active);
}

.product-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utilization-bar {
  flex: 1;
  height: 6px;
  background: var(--card-border);
  border-radius: 3px;
  overflow: hidden;
  margin-left: 12px;
}

.utilization-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Produkt-Detail */
.product-detail {
  margin-top: 20px;
}

.product-detail h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--text-primary);
  transition: background 0.15s;
}

.back-btn:hover { background: var(--content-bg); }

/* ── Kunden ── */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--sidebar-active);
}

.customer-expand {
  background: var(--content-bg);
  padding: 12px 16px;
}

.customer-expand td {
  padding: 0;
  border: none;
}

/* ── Kalender-Legende ── */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Buchungs-Cards ── */
.booking-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-card-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent, var(--sidebar-active));
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.booking-card-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.bc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0,0,0,0.01), rgba(0,0,0,0.03));
  border-bottom: 1px solid var(--card-border);
  gap: 10px;
  flex-wrap: wrap;
}

.bc-product {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Produktname (Hüpfburg) in Buchungskarten prominenter – auf einen Blick sichtbar */
.bc-product .booking-pill {
  font-size: 20px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 14px;
  letter-spacing: .2px;
}

.bc-price {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: right;
}

.bc-delivery-hint {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.bc-body {
  padding: 16px 20px;
}

.bc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 20px;
}

.bc-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.bc-value {
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-word;
}

.bc-bold {
  font-weight: 600;
}

.bc-link {
  color: var(--sidebar-active);
  text-decoration: none;
}

.bc-link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .bc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Edit-Modus */
.bc-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.15s;
}

.bc-input:focus {
  border-color: var(--sidebar-active);
  box-shadow: 0 0 0 2px rgba(255,90,31,0.12);
}

.bc-edit-btn, .bc-delete-btn {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s;
}

.bc-edit-btn:hover {
  background: rgba(255,90,31,0.08);
  border-color: var(--sidebar-active);
}

.bc-delete-btn:hover {
  background: rgba(239,68,68,0.08);
  border-color: var(--red);
}

.bc-save-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: var(--sidebar-active);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.bc-save-btn:hover {
  background: #e04e15;
}

.bc-cancel-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.bc-cancel-btn:hover {
  background: var(--content-bg);
  color: var(--text-primary);
}

.bc-new-btn {
  padding: 8px 18px;
  border-radius: 10px;
  border: 2px dashed var(--sidebar-active);
  background: rgba(255,90,31,0.04);
  color: var(--sidebar-active);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.bc-new-btn:hover {
  background: rgba(255,90,31,0.1);
  border-style: solid;
}

.new-booking-card {
  border: 2px dashed var(--green);
  border-left-width: 4px;
}

@media (max-width: 480px) {
  .bc-grid { grid-template-columns: 1fr; }
  .bc-header { flex-direction: column; align-items: flex-start; }
}

/* ── Archiv-Filter ── */
.archiv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.archiv-filters .search-input {
  min-width: 220px;
  flex: 1;
}

.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--card-bg);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 160px;
}

.filter-select:focus {
  border-color: var(--sidebar-active);
}

.filter-date {
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.15s;
}

.filter-date:focus {
  border-color: var(--sidebar-active);
}

.filter-reset-btn {
  padding: 10px 16px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-reset-btn:hover {
  background: var(--content-bg);
  color: var(--text-primary);
  border-color: var(--sidebar-active);
}

/* ── Kunden-Cards ── */
.customer-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.customer-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  gap: 16px;
  transition: background 0.1s;
}

.cc-header:hover {
  background: rgba(0,0,0,0.015);
}

.cc-open .cc-header {
  border-bottom: 1px solid var(--card-border);
}

.cc-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.cc-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cc-revenue {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sidebar-active);
  white-space: nowrap;
}

.cc-delete-btn {
  margin-left: 12px;
  background: transparent;
  border: 1px solid #fecaca;
  color: #dc2626;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  flex-shrink: 0;
}
.cc-delete-btn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  transform: scale(1.05);
}
.cc-delete-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.cc-body {
  padding: 0;
}

.cc-details {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
}

.cc-bookings {
  padding: 16px 20px;
  background: rgba(0,0,0,0.01);
}

/* ── Leer-Zustand ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .mobile-header {
    display: flex;
  }

  .content {
    margin-left: 0;
    padding-top: 56px;
  }

  .content-header { padding: 16px; }
  .content-body { padding: 0 16px 16px; }

  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-value { font-size: 22px; }

  .cal-table td { height: 70px; }
  .booking-pill { font-size: 9px; padding: 1px 4px; }

  .products-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Sonstiges ── */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: rgba(255,90,31,0.04) !important;
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Smooth transitions for view changes */
.view-enter {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Custom Dialog (Confirm/Alert) ─────────────────────────── */
/* Muss ueber ALLEN dynamischen Overlays liegen (Passwort/Postfach/Mail-Archiv
   nutzen 10000/10001), sonst ist ein hgConfirm darunter unsichtbar+unklickbar. */
.hg-dialog {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hg-dialog.hg-dialog--open { display: flex; }
.hg-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  animation: hgFadeIn 0.18s ease;
}
.hg-dialog-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  animation: hgPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hg-dialog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5a1f, #ffcc00);
}
.hg-dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px 8px;
}
.hg-dialog-header span {
  font-size: 32px;
  line-height: 1;
}
.hg-dialog-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}
.hg-dialog-message {
  padding: 4px 28px 22px;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.hg-dialog-actions {
  display: flex;
  gap: 10px;
  padding: 16px 28px 24px;
  justify-content: flex-end;
}
.hg-dialog-btn {
  border: none;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.hg-dialog-btn:active { transform: scale(0.97); }
.hg-dialog-btn--cancel {
  background: #f1f5f9;
  color: #475569;
}
.hg-dialog-btn--cancel:hover { background: #e2e8f0; }
.hg-dialog-btn--ok {
  background: linear-gradient(135deg, #ff5a1f, #ff8c42);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,90,31,0.35);
}
.hg-dialog-btn--ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,90,31,0.45);
}
.hg-dialog-btn--danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}
.hg-dialog-btn--danger:hover { box-shadow: 0 6px 16px rgba(239,68,68,0.45); }
@keyframes hgFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hgPop {
  0%   { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Live-Toast: Neue Anfrage ── */
/* ── Postfach (E-Mail-Ansicht) ── */
.pf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-chip { border: 1px solid var(--card-border, #e2e8f0); background: var(--card-bg, #fff); color: inherit; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.pf-chip--on { background: var(--acc, #ff5a1f); color: #fff; border-color: var(--acc, #ff5a1f); }
.pf-chip-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pf-acct-pill { display: inline-block; background: #ff5a1f; color: #fff; font-weight: 800; font-size: .72rem; padding: 3px 10px; border-radius: 999px; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.pf-del { border: none; background: transparent; cursor: pointer; font-size: 14px; line-height: 1; padding: 3px 5px; border-radius: 6px; opacity: .5; }
.pf-del:hover { background: #fee2e2; opacity: 1; }
.pf-refresh { border: 1px solid var(--card-border, #e2e8f0); background: var(--card-bg, #fff); color: inherit; border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.pf-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.pf-searchrow { display: flex; align-items: center; gap: 8px; background: var(--card-bg, #fff); border: 1.5px solid var(--card-border, #e2e8f0); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.pf-searchrow:focus-within { border-color: #ff5a1f; }
.pf-search-ico { opacity: .55; font-size: .95rem; }
.pf-search { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: inherit; font-size: .9rem; font-family: inherit; }
.pf-search-clear { border: none; background: transparent; color: #94a3b8; cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.pf-search-clear:hover { background: #f1f5f9; color: #334155; }
.pf-searchinfo { font-size: .78rem; color: #64748b; font-weight: 700; margin: 0 2px 10px; }
.pf-list { display: flex; flex-direction: column; gap: 10px; }

/* ── Rich-Text-Editor (Antwort + Signatur) ── */
.re-wrap { border: 1px solid var(--card-border, #cbd5e1); border-radius: 10px; overflow: hidden; background: #fff; }
.re-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid var(--card-border, #e2e8f0); }
.re-btn { border: 1px solid transparent; background: transparent; border-radius: 6px; min-width: 30px; height: 28px; padding: 0 8px; font-size: .82rem; cursor: pointer; color: #334155; display: inline-flex; align-items: center; justify-content: center; }
.re-btn:hover { background: #e2e8f0; }
.re-ctrl { height: 28px; border: 1px solid var(--card-border, #cbd5e1); border-radius: 6px; background: #fff; font-size: .8rem; font-family: inherit; color: #334155; cursor: pointer; padding: 0 4px; }
.re-color-wrap { position: relative; overflow: hidden; font-weight: 800; }
.re-color-wrap input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.re-editor { padding: 10px 12px; font-size: 14px; line-height: 1.5; outline: none; overflow: auto; max-height: 42vh; color: #1a1a2e; }
.re-editor:empty:before { content: attr(data-placeholder); color: #94a3b8; white-space: pre-line; }
.pf-sig { color: #475569; }
.pf-card { background: var(--card-bg, #fff); border: 1px solid var(--card-border, #e2e8f0); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.pf-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.10); transform: translateY(-1px); }
.pf-card--unread { border-left: 4px solid #ff5a1f; background: linear-gradient(90deg, rgba(255,90,31,.06), transparent 40%); }
.pf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-from { font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a1f; flex-shrink: 0; }
.pf-when { color: #94a3b8; font-size: .78rem; flex-shrink: 0; }
.pf-subject { font-weight: 700; font-size: .9rem; margin: 3px 0 2px; }
.pf-card--unread .pf-subject { color: #ff5a1f; }
.pf-snippet { color: #64748b; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.pf-acct { background: rgba(255,90,31,.10); color: #ff5a1f; font-weight: 700; font-size: .72rem; border-radius: 6px; padding: 2px 8px; }
.pf-att { color: #64748b; font-size: .75rem; }

.hg-anfrage-toast {
  position: fixed;
  top: 24px;
  right: -440px;
  z-index: 9998;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 18px 18px;
  transition: right 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hg-anfrage-toast::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5a1f, #ffcc00);
  border-radius: 16px 16px 0 0;
}
.hg-anfrage-toast--in { right: 24px; }
.hg-anfrage-toast-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  animation: hgWiggle 1.2s ease-in-out;
}
@keyframes hgWiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
}
.hg-anfrage-toast-body { flex: 1; min-width: 0; }
.hg-anfrage-toast-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.hg-anfrage-toast-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239,68,68, 0.6);
  animation: hgPulse 2s infinite;
}
@keyframes hgPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68, 0); }
}
.hg-anfrage-toast-meta {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 12px;
  word-wrap: break-word;
}
.hg-anfrage-toast-meta strong { color: #1a1a2e; }
.hg-anfrage-toast-actions {
  display: flex;
  gap: 8px;
}
.hg-anfrage-toast-btn {
  border: none;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #f1f5f9;
  color: #475569;
}
.hg-anfrage-toast-btn:hover { background: #e2e8f0; }
.hg-anfrage-toast-btn--primary {
  background: linear-gradient(135deg, #ff5a1f, #ff8c42);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255,90,31, 0.35);
}
.hg-anfrage-toast-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255,90,31, 0.45);
}
.hg-anfrage-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.hg-anfrage-toast-close:hover { color: #1a1a2e; }
@media (max-width: 600px) {
  .hg-anfrage-toast {
    top: auto;
    bottom: 24px;
    right: -440px;
  }
  .hg-anfrage-toast--in {
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ── Anfragen-Badge im Sidebar-Nav ── */
.nav-link {
  position: relative;
}
.nav-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
  animation: hgBadgePulse 2s infinite;
}
@keyframes hgBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(239,68,68,0.4); }
  50% { transform: scale(1.08); box-shadow: 0 4px 14px rgba(239,68,68,0.6); }
}
.nav-link--has-pending {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(239,68,68,0.18), rgba(239,68,68,0.04)) !important;
  border-left-color: #ef4444 !important;
  position: relative;
}
.nav-link--has-pending::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  animation: hgPendingGlow 1.6s ease-in-out infinite;
}
@keyframes hgPendingGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 12px 2px rgba(239,68,68,0.6); }
}
.nav-link--has-pending svg { color: #ef4444; }

/* ══════════════ Gewerbefahrten (Fahrtenbuch) ══════════════ */
.gf-view { padding: 20px 0; }
.gf-header {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 16px;
}
.gf-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.gf-stat {
  background: var(--card-bg, #fff); border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  min-width: 130px;
}
.gf-stat-label { font-size: .75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.gf-stat-value { font-size: 1.25rem; font-weight: 800; margin-top: 2px; }
.gf-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-left: auto; }
.gf-filter { display: flex; flex-direction: column; gap: 4px; }
.gf-filter span { font-size: .72rem; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.gf-filter select {
  padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px;
  background: #fff; font-size: .9rem; min-width: 120px;
}
.gf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gf-btn {
  padding: 8px 14px; border: none; border-radius: 8px;
  font-weight: 700; font-size: .85rem; cursor: pointer;
  transition: filter .15s;
}
.gf-btn:hover { filter: brightness(.95); }
.gf-btn--csv { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 3px 8px rgba(34,197,94,.3); }
.gf-btn--print { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 3px 8px rgba(99,102,241,.3); }
.gf-info {
  background: rgba(59,130,246,.08);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .85rem;
  color: #1e3a8a;
  margin-bottom: 14px;
}
.gf-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-size: .92rem;
}
.gf-table thead th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-size: .72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
}
.gf-table tbody td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.gf-table tbody tr:last-child td { border-bottom: none; }
.gf-row--erfasst { background: rgba(34,197,94,.06); }
.gf-row--erfasst .gf-cell-date,
.gf-row--erfasst .gf-kunde-name { color: #166534; }
.gf-cell-date { white-space: nowrap; font-weight: 700; color: #1f2937; }
.gf-kunde-name { font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.gf-kunde-items { display: flex; flex-wrap: wrap; gap: 4px; }
.gf-item {
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
}
.gf-cell-addr { color: #374151; max-width: 280px; word-wrap: break-word; }
.gf-warn { color: #b91c1c; font-weight: 700; }
.gf-km-input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .9rem;
  text-align: right;
}
.gf-fetch-km {
  margin-left: 4px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: .9rem;
  cursor: pointer;
}
.gf-fetch-km:disabled { opacity: .5; cursor: wait; }
.gf-km-input--warn { border-color: #dc2626 !important; background: #fef2f2; color: #b91c1c; font-weight: 700; }
.gf-km-hint { font-size: .68rem; color: #b91c1c; font-weight: 700; margin-top: 3px; max-width: 110px; line-height: 1.2; }
.gf-cell-gesamt { white-space: nowrap; color: #1f2937; font-size: 1rem; }
.gf-maps-link {
  display: inline-block;
  padding: 6px 10px;
  background: #dbeafe;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
}
.gf-maps-link:hover { background: #bfdbfe; }
.gf-erfasst-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 2px;
}
.gf-erfasst-cb { width: 22px; height: 22px; cursor: pointer; accent-color: #16a34a; }
.gf-helfer-select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .88rem;
  background: #fff;
  cursor: pointer;
  min-width: 100px;
}
.gf-helfer-select:focus { border-color: #ff5a1f; outline: none; }

/* ══════════════ Helfer-Konten unterhalb der Tabelle ══════════════ */
.gf-helfer-konten-wrap { margin-top: 48px; }

.gf-helfer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #fff8f0, #fffbeb);
  border-radius: 16px;
  border: 1px solid #fde68a;
  flex-wrap: wrap;
}
.gf-helfer-header-title { display: flex; flex-direction: column; gap: 4px; }
.gf-helfer-header-icon { font-size: 1.4rem; margin-right: 6px; }
.gf-helfer-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
  display: flex;
  align-items: center;
}
.gf-helfer-hint { color: #92400e; font-size: .85rem; }
.gf-helfer-hint strong { color: #1f2937; }
.gf-helfer-header-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.gf-helfer-header-stat {
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  text-align: right;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.gf-helfer-header-stat span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.gf-helfer-header-stat strong { font-size: 1.2rem; font-weight: 800; color: #1f2937; }

/* Grid der Karten */
.gf-helfer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

/* Einzelne Karte */
.gf-helfer-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.gf-helfer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,23,42,.10);
}
.gf-helfer-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}

/* Header: Avatar + Name + Status-Pille */
.gf-helfer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
}
.gf-helfer-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.gf-helfer-name-wrap { flex: 1; min-width: 0; }
.gf-helfer-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -.2px;
}
.gf-helfer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2px;
}
.gf-helfer-pill--ok     { background: #dcfce7; color: #166534; }
.gf-helfer-pill--offen  { background: #fee2e2; color: #991b1b; }
.gf-helfer-pill--ueber  { background: #fef3c7; color: #92400e; }
.gf-helfer-pill--idle   { background: #f1f5f9; color: #64748b; }

/* Großer Saldo-Block */
.gf-helfer-balance-box {
  background: var(--accent-bg);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 14px;
}
.gf-helfer-balance-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--accent-dark);
  opacity: .8;
}
.gf-helfer-balance-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-dark);
  line-height: 1.1;
  margin-top: 2px;
}
.gf-helfer-balance-hint {
  font-size: .72rem;
  color: var(--accent-dark);
  opacity: .75;
  margin-top: 2px;
}

/* Stat-Reihe mit Icons */
.gf-helfer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.gf-helfer-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
}
.gf-helfer-stat-icon { font-size: 1.1rem; flex-shrink: 0; }
.gf-helfer-stat-value { font-size: .92rem; font-weight: 800; color: #1f2937; line-height: 1.1; }
.gf-helfer-stat-label {
  font-size: .65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 700;
}

.gf-helfer-anstehend {
  background: #fffbeb;
  color: #92400e;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Auszahlungs-Formular */
.gf-payout-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}
.gf-payout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gf-payout-form input {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: .85rem;
  background: #fff;
  font-family: inherit;
}
.gf-payout-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.gf-payout-add {
  padding: 9px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: filter .15s, transform .1s;
  letter-spacing: .2px;
}
.gf-payout-add:disabled { opacity: .5; cursor: wait; }
.gf-payout-add:hover:not(:disabled) { filter: brightness(.92); transform: translateY(-1px); }

/* Auszahlungs-Verlauf */
.gf-payout-list {
  background: #fafbfc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .85rem;
}
.gf-payout-list-title {
  font-size: .68rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.gf-payout-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.gf-payout-row:last-child { border-bottom: none; padding-bottom: 0; }
.gf-payout-row:first-child { padding-top: 0; }
.gf-payout-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.gf-payout-info { flex: 1; min-width: 0; }
.gf-payout-line1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.gf-payout-amount { font-weight: 800; color: #1f2937; font-size: .95rem; }
.gf-payout-date { color: #6b7280; font-size: .78rem; }
.gf-payout-note { color: #64748b; font-style: italic; font-size: .78rem; margin-top: 2px; }
.gf-payout-del {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: .85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.gf-payout-del:hover { background: #fee2e2; color: #dc2626; }
.gf-payout-empty {
  color: #94a3b8;
  text-align: center;
  font-size: .85rem;
  padding: 14px 0;
}

/* Print: Helfer-Konten ausblenden im Fahrtenbuch-Druck */
@media print {
  .gf-helfer-konten-wrap { display: none !important; }
}
.gf-erfasst-date { font-size: .68rem; color: #6b7280; }

/* Print-Layout: nur Tabelle, kompakter, kein Sidebar */
@media print {
  .sidebar, .mobile-header, .content-header, .gf-actions, .gf-filters,
  .gf-fetch-km, .gf-maps-link, #refresh-btn { display: none !important; }
  body, .content { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .content { width: 100% !important; }
  .gf-table { font-size: 10pt; box-shadow: none; }
  .gf-table thead th { background: #f1f5f9 !important; }
  .gf-km-input { border: none; background: transparent; width: 50px; }
  .gf-info { background: transparent; border-left-width: 2px; }
  @page { size: A4 landscape; margin: 1.2cm; }
}