/* ─────────────────────────────────────────────
   Design-System – Condo-inspiriert
   ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;600;700&display=swap');

:root {
  --primary:        #2BC359;
  --primary-dark:   #00B538;
  --primary-light:  #EBFAEF;
  --sidebar-width:  224px;
  --sidebar-sm:     60px;
  --sidebar-bg:     #ffffff;
  --border:         #E1E5ED;
  --bg-main:        #F7F8FA;
  --text-1:         #222222;
  --text-2:         #6B7280;
  --radius-sm:      6px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --transition:     0.18s ease;
}

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

body {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont,
               'Segoe UI', sans-serif;
  background: var(--bg-main);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ── App Shell ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────
   Sidebar
   ───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: width var(--transition);
}

.sidebar.collapsed { width: var(--sidebar-sm); }

/* ── Sidebar Top (Logo-Bereich + Collapse) ── */
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 14px;
  flex-shrink: 0;
  min-height: 56px;
  position: relative;
}

.sidebar-logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-icon-wrap {
  position: relative;
  width: 26px; height: 26px;
  flex-shrink: 0;
}

.logo-icon {
  width: 26px; height: 26px;
  color: var(--primary);
}

.logo-dot {
  position: absolute;
  top: 1px; right: 0;
  width: 8px; height: 8px;
  background: #F5A623;
  border-radius: 50%;
  border: 1.5px solid white;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  transition: opacity var(--transition);
  white-space: nowrap;
}
.sidebar.collapsed .logo-text { opacity: 0; pointer-events: none; }

/* Collapse button – innerhalb der Sidebar */
.collapse-btn {
  width: 24px; height: 24px;
  background: white;
  border: 1px solid var(--border);
  position: absolute;
  right: -12px;
  top: 20px;
  z-index: 201;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(178,185,217,0.35);
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.collapse-btn:hover { color: var(--text-1); background: #F7F8FA; }

/* Collapse-Button bleibt auf der Borderlinie */
.sidebar.collapsed .collapse-btn { right: -12px; }
.sidebar.collapsed .sidebar-logo-mark { display: none; }

/* ── Grüner Action-Button ── */
.sidebar-action {
  margin: 0 14px 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}
.btn-action:hover { background: var(--primary-light); }
.btn-action svg { flex-shrink: 0; width: 16px; height: 16px; }

.sidebar.collapsed .btn-action-label { display: none; }
.sidebar.collapsed .sidebar-action {
  display: flex;
  justify-content: center;
  overflow: visible;
  margin: 0 14px 16px;
}
.sidebar.collapsed .btn-action {
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 8px;
}

/* ── Nav ── */
.sidebar-nav {
  padding: 4px 10px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  position: relative;
  user-select: none;
}
.nav-item:hover {
  background: #F2F4F6;
  color: var(--text-1);
}
/* Aktiv: nur dunkler Text + fett, kein farbiger Hintergrund */
.nav-item.active {
  color: var(--text-1);
  font-weight: 700;
  background: transparent;
}
.nav-item svg { flex-shrink: 0; width: 18px; height: 18px; }

.nav-label { transition: opacity var(--transition), width var(--transition); overflow: hidden; }
.sidebar.collapsed .nav-label { opacity: 0; pointer-events: none; width: 0; }

/* Collapsed: Icons zentrieren */
.sidebar.collapsed .nav-item { justify-content: center; gap: 0; padding: 9px 0; }

/* Tooltip when collapsed */
.nav-tooltip { display: none; }
.sidebar.collapsed .nav-tooltip {
  display: block;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: calc(var(--sidebar-sm) + 8px);
  top: 50%; transform: translateY(-50%);
  background: var(--text-1);
  color: white;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  transition: opacity var(--transition);
  z-index: 300;
}
.sidebar.collapsed .nav-item:hover .nav-tooltip { opacity: 1; pointer-events: auto; }
.nav-tooltip::before {
  content: '';
  position: absolute;
  right: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--text-1);
}

/* ─────────────────────────────────────────────
   Main wrapper
   ───────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}
.app-layout.sidebar-collapsed .main-wrapper {
  margin-left: var(--sidebar-sm);
}

/* ── Minimal Header (nur für Mobile-Hamburger) ── */
.app-header {
  display: none; /* auf Desktop versteckt */
  height: 60px;
  background: white;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 250;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-hamburger-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.header-hamburger-btn:hover { background: #f1f5f9; color: var(--text-1); }

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.header-create-btn {
  background: #16a34a;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-create-btn:hover { background: #15803d; }

/* ── Page content ── */
.main-content {
  flex: 1;
  padding: 36px 40px;
}

/* Seitenheader-Zeile (Titel + Aktionsbutton nebeneinander) */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-header-row .page-heading { margin-bottom: 0; }

/* Condo-style Button */
.condo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  transition: background 0.2s ease, opacity 0.2s ease;
  outline: none;
  overflow: hidden;
}
/* A-01: Sichtbarer Focus-Ring für WCAG 2.4.7 */
.condo-btn:focus-visible {
  outline: 2px solid #2696F3;
  outline-offset: 2px;
}
.condo-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.condo-btn-primary {
  background: var(--primary);
  color: #fff;
}
.condo-btn-primary:hover { background: var(--primary-dark); }
.condo-btn-primary:active { opacity: 0.85; }

.condo-btn-large {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hover-Text-Lift-Effekt (aus condo) */
.condo-btn-text {
  display: block;
  position: relative;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.condo-btn-primary:hover .condo-btn-text {
  transform: translateY(-2px);
}

/* Großer Seitentitel – direkt im Content */
.page-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 28px;
  line-height: 1.15;
}

/* ── Pages ── */
.page { display: none; }
.page.active { display: block; }

/* ── Mobile overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}
.sidebar-overlay.visible { display: block; }

/* ─────────────────────────────────────────────
   Card
   ───────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.card-subtitle {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────────
   Tickets – Seite
   ───────────────────────────────────────────── */
.tickets-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

/* Foto-Vorschaubereich (Falschparker-Wizard) */
.fp-photo-area {
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  -webkit-tap-highlight-color: transparent;
}
.fp-photo-area:active { background: #e5e7eb; }
.fp-photo-area.captured {
  background: #e1f5ee;
  border-color: var(--primary);
  border-style: solid;
}
.fp-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.fp-photo-placeholder svg { width: 36px; height: 36px; color: #9ca3af; }
.fp-photo-placeholder p  { font-size: 13px; color: #9ca3af; }
.fp-captured-badge {
  display: none;
  position: absolute;
  top: 10px; right: 10px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.fp-preview-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
}
.fp-photo-area.captured .fp-photo-placeholder { display: none; }
.fp-photo-area.captured .fp-captured-badge    { display: block; }
.fp-photo-area.captured .fp-preview-img       { display: block; }


/* Paginierungs-Leiste */
.fp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.fp-pagination-info {
  font-size: 13px;
  color: var(--text-2);
}
.fp-pagination-btns {
  display: flex;
  gap: 8px;
}
.fp-pagination-btns button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-1);
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.fp-pagination-btns button:hover:not(:disabled) { background: #F7F8FA; border-color: #b0b8c8; }
.fp-pagination-btns button:disabled { opacity: 0.35; cursor: default; }

/* ─────────────────────────────────────────────
   Falschparker-Wizard
   ───────────────────────────────────────────── */
#page-falschparker {
  max-width: 460px;
}

/* Schritt-Indikator */
.fp-step-indicator { margin-bottom: 12px; }
.fp-step-bar-wrap {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.fp-step-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 25%;
}
.fp-step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fp-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fp-step-num {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

/* Hinweistext */
.fp-step-hint {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 12px;
}

/* Schritt-Punkte in fp-nav-row */
.fp-step-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.fp-dot {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  transition: width 0.25s ease, background 0.25s ease;
  width: 6px;
}
.fp-dot.active { background: var(--primary); width: 20px; }
.fp-dot.done   { background: var(--primary); opacity: 0.4; }

/* Thumbnail-Reihe */
.fp-thumbs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.fp-thumb {
  flex: 1;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  border-radius: 6px;
  border: 2px dashed #d1d5db;
  overflow: hidden;
  transition: border-color 0.2s;
}
.fp-thumb.done {
  border: 2px solid var(--primary);
}
.fp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fp-thumb.active-slot {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(0,200,150,0.18);
}

/* Erkanntes Kennzeichen */
.fp-plate-result {
  background: #fefce8;
  border: 2px solid #facc15;
  border-radius: 10px;
  padding: 10px 14px 12px;
  margin-bottom: 10px;
}
.fp-plate-result-label {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.fp-plate-input {
  display: block;
  width: 100%;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  outline: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
  color: var(--text-1);
  padding: 7px 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
  transition: border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.fp-plate-input:focus {
  border-color: #ca8a04;
  box-shadow: 0 0 0 3px rgba(234,179,8,.18), inset 0 1px 3px rgba(0,0,0,.06);
}
.fp-plate-hint {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-2);
  opacity: 0.75;
}

/* Navigation */
.fp-nav-row {
  margin-top: 4px;
}
.fp-nav-row .btn {
  width: 100%;
}

/* Status-Zeile im Wizard kompakter */
#page-falschparker .status-line {
  min-height: 0;
  padding: 4px 0;
}

/* Kompaktere Buttons im Wizard-Panel */
#page-falschparker .btn {
  padding: 8px 12px;
  font-size: 13px;
}
#page-falschparker .btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
#page-falschparker .btn-row {
  margin-bottom: 10px;
}
#page-falschparker .btn-success {
  padding: 10px 12px;
}

/* Erkanntes Kennzeichen – klar unterhalb der Buttons */
#fp-plate-wrap {
  margin-top: 12px;
}

/* Buttons */
.btn-row { display: flex; gap: 10px; margin-bottom: 16px; }

.btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), background var(--transition);
  font-family: inherit;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:not(:disabled):hover { background: var(--primary-dark); }
.btn-secondary { background: #F2F4F6; color: var(--text-1); }
.btn-secondary:hover { background: #e5e7eb; }
.btn-success {
  width: 100%;
  background: #16a34a;
  color: white;
}
.btn-success:hover { background: #15803d; }

/* Preview */
.preview-area { margin-bottom: 16px; border-radius: 10px; overflow: hidden; }
.preview-area img { width: 100%; display: block; }

/* Result badge */
.result-box {
  background: #fefce8;
  border: 2px solid #facc15;
  border-radius: 10px;
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: 4px;
}
.result-label { font-size: 12px; color: var(--text-2); }
.result-plate {
  font-size: 28px; font-weight: 800; letter-spacing: 0.12em;
  font-family: 'Courier New', monospace;
  color: var(--text-1);
}

/* Status line */
.status-line {
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-2);
  min-height: 36px;
}
.status-error   { color: #dc2626; }
.status-warn    { color: #d97706; }
.status-success { color: #16a34a; }

/* ── Ticket-Liste (Card-Style) ── */
.ticket-list-card { padding: 0; overflow: hidden; border: none; border-radius: 0; box-shadow: none; background: transparent; }

#page-tickets .ticket-list-header,
#page-news .ticket-list-header {
  border-bottom: none;
  padding: 20px 0 12px;
}

.ticket-list-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.ticket-list-header .card-subtitle { margin-bottom: 0; }

/* Status-Filter-Tabs */
.ticket-status-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.ticket-status-bar::-webkit-scrollbar { display: none; }

#page-tickets .ticket-status-bar,
#page-news .ticket-status-bar {
  border-bottom: none;
  padding: 0 0 8px;
}

.sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}
.sf-pill:hover { border-color: #b0b8c8; background: #F7F8FA; }
.sf-pill.active { border-color: transparent; color: white; }

.sf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

/* Farben je Status */
.sf-alle  .sf-count             { background: #6b7280; color: white; }
.sf-alle.active                 { background: #6b7280; }
.sf-offen .sf-count             { background: #2696F3; color: white; }
.sf-offen.active                { background: #2696F3; }
.sf-bearbeitung .sf-count       { background: #FF9500; color: white; }
.sf-bearbeitung.active          { background: #FF9500; }
.sf-erledigt .sf-count          { background: #39CE66; color: white; }
.sf-erledigt.active             { background: #39CE66; }
.sf-abgelehnt .sf-count         { background: #EB3468; color: white; }
.sf-abgelehnt.active            { background: #EB3468; }
/* Falschparker-spezifische Status-Pills */
.sf-fp-gemeldet .sf-count       { background: #D97706; color: white; }
.sf-fp-gemeldet.active          { background: #D97706; }
.sf-fp-benachrichtigt .sf-count { background: #B45309; color: white; }
.sf-fp-benachrichtigt.active    { background: #B45309; }
.sf-fp-entfernt .sf-count       { background: #15803D; color: white; }
.sf-fp-entfernt.active          { background: #15803D; }
.sf-fp-archiviert .sf-count     { background: #6B7280; color: white; }
.sf-fp-archiviert.active        { background: #6B7280; }
/* Legacy */
.sf-uberpruft .sf-count         { background: #D97706; color: white; }
.sf-uberpruft.active            { background: #D97706; }
.sf-abgeschleppt .sf-count      { background: #9B1235; color: white; }
.sf-abgeschleppt.active         { background: #9B1235; }

/* Incident-Log Status-Pills */
.sf-il-aktuell .sf-count        { background: #39CE66; color: white; }
.sf-il-aktuell.active           { background: #39CE66; }
.sf-il-nicht-aktuell .sf-count  { background: #8E8E93; color: white; }
.sf-il-nicht-aktuell.active     { background: #8E8E93; }

/* Hauskostentabelle Rechnungen Status-Pills */
.sf-hk-offen .sf-count         { background: #2696F3; color: white; }
.sf-hk-offen.active            { background: #2696F3; }
.sf-hk-bezahlt .sf-count       { background: #39CE66; color: white; }
.sf-hk-bezahlt.active          { background: #39CE66; }
.sf-hk-ueberfaellig .sf-count  { background: #EB3468; color: white; }
.sf-hk-ueberfaellig.active     { background: #EB3468; }
.sf-hk-storniert .sf-count     { background: #6b7280; color: white; }
.sf-hk-storniert.active        { background: #6b7280; }

.sf-pill.active .sf-count       { background: rgba(255,255,255,0.28); color: white; }

/* News Label-Filter-Pills */
.sf-label.active                { background: #6b7280; }
.sf-label:hover                 { border-color: #9ca3af; background: #f3f4f6; }

/* Suchleiste */
.ticket-search-wrap {
  position: relative;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}
#page-tickets .ticket-search-wrap,
#page-news .ticket-search-wrap {
  border-bottom: none;
}
.ticket-search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  pointer-events: none;
  right: 38px;
}
.ticket-search {
  width: 100%;
  padding: 9px 40px 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--bg-main);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.ticket-search::placeholder { color: var(--text-2); }
.ticket-search:focus { border-color: var(--primary); background: white; }

/* Tabelle */
.ticket-table-wrap { overflow-x: auto; }

.ticket-table {
  width: 100%;
  border-collapse: collapse;
}
.ticket-table thead tr { background: var(--bg-main); }
.ticket-table th {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ticket-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ticket-table tbody tr:last-child td { border-bottom: none; }
.ticket-table tbody tr:hover { background: #FAFBFC; }

.th-sortable {
  cursor: pointer;
  user-select: none;
}
.th-sortable:hover { color: var(--text-1); }

.ticket-nr {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-1);
}
.ticket-plate-cell {
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.ticket-kategorie-cell {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}
.ticket-beschr-cell {
  font-size: 13px;
  color: var(--text-2);
  max-width: 280px;
}
.ticket-date-cell {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-1);
  white-space: nowrap;
}

/* Status-Badge (Pill-Tag) */
.status-cell { position: relative; }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  user-select: none;
}
/* Farben – WCAG AA kontrastfähige Textwerte (A-06) */
.sb-offen          { background: #EBF4FF; color: #1565C0; }
.sb-in-bearbeitung { background: #FFF4E5; color: #8B4F00; }
.sb-erledigt       { background: #EAFBEF; color: #1B7A3E; }
.sb-abgelehnt      { background: #FFE5ED; color: #9B1235; }
/* Falschparker-spezifische Badge-Farben */
.sb-fp-gemeldet       { background: #FFF4E5; color: #8B4F00; }
.sb-fp-benachrichtigt { background: #FFFBE5; color: #7A5A00; }
.sb-fp-entfernt       { background: #EAFBEF; color: #1B7A3E; }
.sb-fp-archiviert     { background: #F2F2F7; color: #3A3A3C; }
/* Legacy-Falschparker-Klassen (Rückwärtskompatibilität) */
.sb-uberpruft      { background: #FFF4E5; color: #8B4F00; }
.sb-abgeschleppt   { background: #FFE5ED; color: #9B1235; }

/* Incident-Log Status-Badges */
.sb-il-aktuell       { background: #EAFBEF; color: #39CE66; }
.sb-il-nicht-aktuell { background: #F2F2F7; color: #8E8E93; }

/* News Status-Badges */
.sb-nicht-aktuell { background: #F2F2F7; color: #8E8E93; }

/* News Kategorie-Badges */
.news-kat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-kat-versammlung { background: #EBF4FF; color: #1565C0; }
.badge-kat-buchhaltung { background: #EAFBEF; color: #1B7A3E; }
.badge-kat-wartung     { background: #FFF4E5; color: #8B4F00; }
.badge-kat-allgemein   { background: #F2F2F7; color: #3A3A3C; }
.badge-kat-notfall     { background: #FFE5ED; color: #9B1235; }

/* News Status-Select */
.news-status-select {
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-1);
  cursor: pointer;
}

/* Incident-Log Prioritäts-Badges */
.sb-il-niedrig  { background: #EBF4FF; color: #2696F3; }
.sb-il-mittel   { background: #FFF4E5; color: #FF9500; }
.sb-il-hoch     { background: #FFF0E5; color: #E8700A; }
.sb-il-kritisch { background: #FFE5ED; color: #EB3468; }

/* Transparentes Select über dem Badge */
.status-select-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 12px;
  border: none;
  background: transparent;
}

/* Download-Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 5px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.download-btn:hover { color: var(--primary); background: var(--primary-light); }

/* Leer-Zustand */
.ticket-empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}

/* Ticket-Karten-Liste */
.ticket-cards-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

#page-tickets .ticket-cards-list,
#page-news .ticket-cards-list {
  gap: 10px;
  padding: 0;
}

.ticket-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  outline: none;
}
.ticket-card:last-child { border-bottom: none; }
.ticket-card:hover,
.ticket-card:focus-visible { background: #F7F8FA; }

#page-tickets .ticket-card,
#page-news .ticket-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
#page-tickets .ticket-card:last-child,
#page-news .ticket-card:last-child {
  border-bottom: 1px solid var(--border);
}
#page-tickets .ticket-card:hover,
#page-tickets .ticket-card:focus-visible,
#page-news .ticket-card:hover,
#page-news .ticket-card:focus-visible {
  background: #f8fafc;
}

.tcard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.tcard-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.tcard-nr {
  font-weight: 400;
  color: var(--text-2);
  margin-right: 4px;
}

.tcard-beschr {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 10px;
  line-height: 1.45;
}

.tcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.tcard-avatars {
  display: flex;
  gap: 4px;
}

.tcard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tcard-date {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   Employers – Seite
   ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 14px;
  text-align: center;
}
.empty-state svg { color: #d1d5db; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text-1); }
.empty-state p  { font-size: 14px; color: var(--text-2); max-width: 320px; }

/* ─────────────────────────────────────────────
   Loader spinner
   ───────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.loader::after {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid #94a3b8;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .main-content { padding: 24px 20px; }
}

/* ─────────────────────────────────────────────
   Bottom Tab Bar (Mobile) – Floating Card
   ───────────────────────────────────────────── */
.bottom-tab-bar {
  display: none;
}

@media (max-width: 767px) {
  .sidebar {
    transform: translateY(-100%);
    width: 100% !important;
    top: 60px;
    bottom: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transition: transform var(--transition);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .sidebar.mobile-open { transform: translateY(0); }

  /* Sidebar-Top (Logo + Collapse) im Dropdown nicht zeigen */
  .sidebar .sidebar-top { display: none; }

  .main-wrapper { margin-left: 0 !important; }

  /* Header auf Mobile sichtbar */
  .app-header { display: flex; }

  /* Seiten-Header-Zeile auf Mobile ausblenden (Titel + Button sind im App-Header) */
  .page-header-row { display: none; }
  /* Standalone page-heading (ohne page-header-row) ebenfalls ausblenden */
  .page > .page-heading:first-child { display: none; }

  .main-content {
    padding: 16px 16px;
    padding-bottom: 96px; /* Platz für Floating Tab Bar */
  }

  /* Floating Tab Bar – Container */
  .bottom-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0 16px 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    align-items: center;
    z-index: 200;
    pointer-events: none;
  }

  /* Floating Card */
  .bottom-tab-bar-inner {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: stretch;
    height: 56px;
    padding: 6px;
    gap: 4px;
    pointer-events: auto;
  }

  .bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 14px;
    transition: background 0.15s, color 0.15s;
    padding: 0 4px;
  }

  .bottom-tab.active {
    background: #f0fdf4;
    color: #15803d;
  }

  .bottom-tab:hover:not(.active) {
    background: #f8fafc;
    color: #475569;
  }
}

@media (max-width: 460px) {
  #page-falschparker {
    max-width: 100%;
  }
}

/* ─────────────────────────────────────────────
   Seite: Ticket erstellen (Doma.ai-Style)
   ───────────────────────────────────────────── */

/* Zurück-Button über dem Titel */
.ct-page-header {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Klickbare Tabellenzeilen */
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover > td {
  background: #f8fafc !important;
}

/* Bearbeiten-Button auf Detailseiten */
.det-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 5px 12px;
  transition: all var(--transition);
}
.det-edit-btn:hover {
  background: #f1f5f9;
  color: var(--text-1);
  border-color: #cbd5e1;
}

.ct-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 0;
  transition: color var(--transition);
}
.ct-back-btn:hover { color: var(--text-1); }

/* Formular-Container */
.ct-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Einzelnes Feld */
.ct-field {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.ct-field:last-child { border-bottom: none; }

/* Label */
.ct-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}
.ct-required { color: #EB3468; margin-right: 3px; }

/* Sub-Label (für zweispaltige Eingaben) */
.ct-sublabel {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 5px;
}

/* Input */
.ct-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: white;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ct-input::placeholder { color: var(--text-2); }
.ct-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 195, 89, 0.12);
}
.ct-input:disabled,
.ct-select:disabled {
  background: #F2F4F6;
  color: var(--text-2);
  cursor: default;
  border-color: var(--border);
  box-shadow: none;
}

/* Kennzeichen – etwas größer & Monospace */
.ct-input-plate {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 260px;
}

/* Select */
.ct-select-wrap {
  position: relative;
}
.ct-select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: white;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ct-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 195, 89, 0.12);
}
.ct-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  pointer-events: none;
}

/* Zweispaltige Reihe */
.ct-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ct-input-group { display: flex; flex-direction: column; }

/* Textarea */
.ct-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: white;
  outline: none;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ct-textarea::placeholder { color: var(--text-2); }
.ct-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 195, 89, 0.12);
}
.ct-counter {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--text-2);
  margin-top: 5px;
}

/* Datei-Upload-Zone */
.ct-file-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-2);
  transition: border-color var(--transition), background var(--transition);
}
.ct-file-zone:hover,
.ct-file-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.ct-file-zone-text {
  font-size: 13px;
  line-height: 1.4;
}
.ct-file-zone-text.has-file {
  color: var(--primary);
  font-weight: 600;
}
u { text-decoration: underline; }

/* Fehler */
.ct-error-msg {
  font-size: 13px;
  color: #dc2626;
  padding: 11px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  margin-top: 4px;
}

/* Incident-Log Checkbox-Zeile im Create-Modal */
.il-checkbox-row {
  display: flex;
  gap: 24px;
  padding: 4px 0 8px;
}
.il-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-1);
  cursor: pointer;
  user-select: none;
}
.il-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Aktionszeile */
.ct-actions {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ct-btn-cancel {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition);
}
.ct-btn-cancel:hover { background: #F2F4F6; border-color: #b0b8c8; }

.ct-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), opacity var(--transition);
}
.ct-btn-submit:hover:not(:disabled) { background: var(--primary-dark); }
.ct-btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 600px) {
  .ct-row-2 { grid-template-columns: 1fr; }
  .ct-actions { flex-direction: column-reverse; align-items: stretch; }
  .ct-btn-cancel,
  .ct-btn-submit { width: 100%; justify-content: center; }
  .ct-input-plate { max-width: 100%; }
  .tdet-kommentar-btn { width: auto; flex-shrink: 0; }
}

/* ─────────────────────────────────────────────
   Ticket-Ansicht-Button (Tabellenspalte)
   ───────────────────────────────────────────── */
.ticket-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  padding: 0;
}
.ticket-view-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ─────────────────────────────────────────────
   Ticket-Detail-Modal
   ───────────────────────────────────────────── */
.t-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 34, 45, 0.45);
  backdrop-filter: blur(2px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.t-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.t-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.t-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-modal-nr {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
}

.t-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}
.t-modal-close:hover {
  color: var(--text-1);
  background: #F2F4F6;
}

/* Body */
.t-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.t-modal-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.t-modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.t-modal-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Read-only value boxes – grayed out like disabled inputs */
.t-modal-value {
  background: #F7F8FA;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13.5px;
  color: #5a6070;
  min-height: 36px;
  display: flex;
  align-items: center;
  word-break: break-word;
  cursor: default;
  user-select: text;
}

.t-modal-textarea {
  align-items: flex-start;
  min-height: 72px;
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Attachments */
.t-modal-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.t-modal-attach-item {
  flex-shrink: 0;
}

.t-modal-attach-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  background: #F7F8FA;
  transition: border-color var(--transition), background var(--transition);
  max-width: 120px;
}
.t-modal-attach-link:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.t-modal-attach-img {
  width: 108px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.t-modal-attach-file {
  width: 108px;
  min-height: 80px;
  justify-content: center;
  color: var(--text-2);
}
.t-modal-attach-file:hover { color: var(--primary); }

.t-modal-attach-name {
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
  word-break: break-all;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 500px) {
  .t-modal-row-2 { grid-template-columns: 1fr; }
  .t-modal { max-height: 100vh; border-radius: 0; }
  .t-modal-overlay { padding: 0; align-items: flex-end; }
}

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

/* ── Hauskosten Tabs ── */
.hk-tab {
  padding: 10px 22px;
  font-size: .875rem;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.hk-tab:hover { color: #0f172a; }
.hk-tab-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* ─────────────────────────────────────────────
   Ticket-Detail: Mobile-Style Layout
   ───────────────────────────────────────────── */

.tdet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tdet-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 0;
  transition: color var(--transition);
}
.tdet-nav-back:hover { color: var(--text-1); }

.tdet-card {
  max-width: 520px;
}

.tdet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tdet-meta-id {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.tdet-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 14px 0;
  line-height: 1.35;
}

.tdet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tdet-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}

.tdet-hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 4px 0 14px;
}

.tdet-section-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 2px;
}

.tdet-desc-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.tdet-desc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}

.tdet-desc-text {
  font-size: 0.875rem;
  color: var(--text-1);
  line-height: 1.65;
}

.tdet-rows {
  display: flex;
  flex-direction: column;
}

.tdet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.tdet-row:last-child { border-bottom: none; }

.tdet-row-lbl {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}

.tdet-row-val {
  font-size: 13.5px;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.tdet-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tdet-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ── Ticket Aktivitäten ── */
.tdet-aktivitaet-card {
  margin-top: 16px;
  padding-top: 0;
}

.tdet-akt-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.tdet-akt-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.tdet-akt-item:last-child { border-bottom: none; }

.tdet-akt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: #64748b;
}
.tdet-akt-avatar.akt-color-0 { background: #6366f1; }
.tdet-akt-avatar.akt-color-1 { background: #10b981; }
.tdet-akt-avatar.akt-color-2 { background: #f59e0b; }
.tdet-akt-avatar.akt-color-3 { background: #ef4444; }
.tdet-akt-avatar.akt-color-4 { background: #3b82f6; }
.tdet-akt-avatar.akt-color-5 { background: #8b5cf6; }

.tdet-akt-body {
  flex: 1;
  min-width: 0;
}

.tdet-akt-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.tdet-akt-autor {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
}

.tdet-akt-time {
  font-size: 12px;
  color: var(--text-2);
}

.tdet-akt-text {
  font-size: 13.5px;
  color: var(--text-1);
  line-height: 1.5;
}
.tdet-akt-text strong { font-weight: 600; }

.tdet-akt-empty {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 12px 0;
  text-align: center;
}

.tdet-kommentar-wrap {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tdet-kommentar-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-1);
  background: #ffffff;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.tdet-kommentar-input:focus { border-color: var(--accent); }

.tdet-kommentar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tdet-kommentar-autor-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s;
}
.tdet-kommentar-autor-input:focus { border-color: var(--accent); }

.tdet-kommentar-btn {
  padding: 8px 16px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Login-Screen
   ───────────────────────────────────────────── */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  z-index: 9999;
}

.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.login-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 28px;
}

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

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

.login-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.login-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.login-input:focus { border-color: var(--primary); }

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 13px;
  padding: 10px 12px;
}

.login-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.login-btn:hover  { background: var(--primary-dark); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─────────────────────────────────────────────
   Sidebar – Benutzer-Info
   ───────────────────────────────────────────── */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.sidebar-logout-btn:hover { color: #dc2626; background: #fef2f2; }

/* Collapsed sidebar: Benutzer-Info ausblenden */
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-logout-btn { display: none; }
.sidebar.collapsed .sidebar-user { justify-content: center; padding: 12px 0; }

/* ── Profil-Seite ─────────────────────────────────────────────────────── */
.profil-layout {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Info-Karte oben */
.profil-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profil-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.profil-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.profil-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profil-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profil-email-line {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profil-aktiv-badge { flex-shrink: 0; }

/* Abschnitt-Titel */
.profil-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

/* Formular-Grid */
.profil-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.profil-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profil-field-full { grid-column: 1 / -1; }
.profil-field-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.profil-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}
.profil-input-readonly {
  padding: 8px 12px;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 14px;
  min-height: 38px;
  display: flex;
  align-items: center;
}

/* Checkbox-Reihe */
.profil-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
}
.profil-checkbox { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.profil-checkbox-label { font-size: 14px; color: var(--text-1); }

/* Meldungen */
.profil-msg { font-size: 13px; margin-bottom: 8px; }
.profil-msg-error   { color: #dc2626; }
.profil-msg-success { color: #16a34a; }

/* Aktions-Zeile */
.profil-actions { display: flex; justify-content: flex-end; padding-top: 6px; }

/* Passwort-Button */
.profil-pw-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  justify-content: center;
}
.profil-pw-reset-btn:hover { background: #15803d; }
.profil-pw-reset-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Abmelden */
.profil-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.profil-logout-btn:hover { background: #fee2e2; }

/* Mobile: einspaltig */
@media (max-width: 480px) {
  .profil-form-grid {
    grid-template-columns: 1fr;
  }
  .profil-field-full { grid-column: 1; }
  .profil-actions { justify-content: stretch; }
  .profil-actions .ct-btn-submit { width: 100%; justify-content: center; }
}

/* ── Berechtigungsmatrix ──────────────────────────────────────────────────── */
.bm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
  min-width: 700px;
}
.bm-table thead tr {
  background: var(--surface-2, #f8fafc);
  border-bottom: 2px solid var(--border, #e2e8f0);
}
.bm-th-cat   { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-1, #0f172a); }
.bm-th-action{ padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-1, #0f172a); }
.bm-th-role  { padding: 10px 8px; text-align: center; font-weight: 600; color: var(--text-1, #0f172a); min-width: 76px; }
.bm-table tbody tr { border-bottom: 1px solid var(--border, #e2e8f0); }
.bm-table tbody tr:last-child { border-bottom: none; }
.bm-table tbody tr:hover { background: var(--surface-2, #f8fafc); }
.bm-group-header td {
  background: #f1f5f9;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #475569;
  padding: 6px 12px;
}
.bm-cat    { padding: 8px 4px 8px 12px; color: transparent; font-size: .75rem; }
.bm-action { padding: 8px 12px; color: var(--text-1, #0f172a); }
.bm-yes, .bm-no, .bm-partial {
  text-align: center;
  padding: 8px 4px;
  font-weight: 700;
  font-size: .875rem;
}
.bm-yes     { color: #16a34a; }
.bm-no      { color: #d1d5db; }
.bm-partial { color: #d97706; cursor: help; }

/* Rollenkarten */
.bm-role-card { padding: 1rem 1.25rem; }
.bm-role-title { font-weight: 700; font-size: .9375rem; margin-bottom: .4rem; color: var(--text-1, #0f172a); }
.bm-role-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .7rem; font-weight: 600; margin-bottom: .6rem; }
.bm-role-list  { margin: 0; padding-left: 1rem; font-size: .8125rem; color: var(--text-2, #475569); line-height: 1.7; }

/* ══════════════════════════════════════════
   Farb-Token (aus Anhang-Design)
   ══════════════════════════════════════════ */
:root {
  --color-background-primary:   #ffffff;
  --color-background-secondary: #F7F8FA;
  --color-background-info:      #EFF6FF;
  --color-background-success:   #DCFCE7;
  --color-background-warning:   #FFFBEB;
  --color-background-danger:    #FEF2F2;

  --color-text-primary:         #222222;
  --color-text-secondary:       #6B7280;
  --color-text-info:            #2563EB;
  --color-text-success:         #15803D;
  --color-text-warning:         #92400E;
  --color-text-danger:          #991B1B;

  --color-border-tertiary:      #E1E5ED;
  --color-border-secondary:     #D1D5DB;
  --color-border-success:       #4ADE80;
  --color-border-warning:       #F59E0B;
  --color-border-danger:        #DC2626;
}

/* ══════════════════════════════════════════
   Benutzerverwaltung – Filter + Suche
   ══════════════════════════════════════════ */
.bv-filter-wrap {
  padding: 0;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--radius-lg);
}

.bv-filter-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.bv-filter-bar::-webkit-scrollbar { display: none; }

.bv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  height: 32px;
  border-radius: 100px;
  border: 1px solid var(--color-border-tertiary);
  background: var(--color-background-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}
.bv-pill:hover { border-color: #9CA3AF; background: var(--color-background-secondary); }
.bv-pill.active { border-color: transparent; color: white; }
.bv-pill-alle.active     { background: #6B7280; }
.bv-pill-dl.active       { background: var(--color-text-info); }
.bv-pill-bew.active      { background: #7C3AED; }
.bv-pill-aktiv.active    { background: #16A34A; }
.bv-pill-gesperrt.active { background: #CA8A04; }
.bv-pill-kein.active     { background: #9CA3AF; }
.bv-pill-count {
  background: rgba(0,0,0,.09);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.bv-pill.active .bv-pill-count { background: rgba(255,255,255,.28); }

.bv-search-wrap {
  position: relative;
  padding: 12px 16px;
}
.bv-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
}
.bv-search {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-background-secondary);
  outline: none;
  transition: border-color var(--transition);
}
.bv-search:focus { border-color: var(--color-text-info); background: var(--color-background-primary); }

/* ══════════════════════════════════════════
   Benutzerverwaltung – Karten (Desktop)
   ══════════════════════════════════════════ */
.bv-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bv-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Karten-Header: Avatar + Info + Badges */
.bv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid var(--color-border-tertiary);
}
.bv-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Avatar */
.bv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.bv-avatar-dl  { background: var(--color-background-info);    color: var(--color-text-info); }
.bv-avatar-bew { background: #F5F3FF;                          color: #6D28D9; }

.bv-card-name {
  margin: 0 0 2px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bv-card-email-row {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bv-card-no-login {
  margin: 0;
  font-size: 13px;
  color: #9CA3AF;
  font-style: italic;
}

/* Badges rechts im Header */
.bv-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bv-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.bv-badge-type {
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  border: 0.5px solid var(--color-border-tertiary);
}
.bv-badge-aktiv {
  background: var(--color-background-success);
  color: var(--color-text-success);
  border: 0.5px solid var(--color-border-success);
}
.bv-badge-gesperrt {
  background: var(--color-background-warning);
  color: var(--color-text-warning);
  border: 0.5px solid var(--color-border-warning);
}
.bv-badge-kein {
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  border: 0.5px solid var(--color-border-tertiary);
}

/* Aktions-Footer */
.bv-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  background: var(--color-background-secondary);
}
.bv-actions-left {
  display: flex;
  gap: 8px;
}

/* Aktions-Buttons mit Kontur (aus Anhang) */
.bv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-tertiary);
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}
.bv-action-btn:hover { background: var(--color-background-secondary); }

.bv-btn-warn {
  color: var(--color-text-warning);
  border-color: var(--color-border-warning);
}
.bv-btn-warn:hover { background: var(--color-background-warning); }

.bv-btn-danger {
  color: var(--color-text-danger);
  border-color: var(--color-border-danger);
}
.bv-btn-danger:hover { background: var(--color-background-danger); }

.bv-btn-success {
  color: var(--color-text-success);
  border-color: var(--color-border-success);
}
.bv-btn-success:hover { background: var(--color-background-success); }

.bv-btn-primary {
  color: var(--color-text-info);
  border-color: var(--color-text-info);
}
.bv-btn-primary:hover { background: var(--color-background-info); }

/* ══════════════════════════════════════════
   Desktop / Mobile – sichtbarkeits-Steuerung
   ══════════════════════════════════════════ */

/* Desktop (≥ 641px): voller horizontaler Action-Footer, Mobile-Sektion versteckt */
@media (min-width: 641px) {
  .bv-actions-desktop { display: flex; }
  .bv-actions-mobile  { display: none; }
}

/* Mobile (≤ 640px): horizontaler Footer versteckt, Grid-Sektion sichtbar */
@media (max-width: 640px) {
  .bv-actions-desktop { display: none; }
  .bv-actions-mobile  { display: block; }

  .bv-card-header { padding: 1rem; gap: 10px; }
  .bv-avatar { width: 44px; height: 44px; font-size: 14px; }
  .bv-card-name { font-size: 15px; }
  .bv-card-badges { flex-direction: column; align-items: flex-end; gap: 4px; }
  .bv-badge { font-size: 11px; padding: 2px 8px; }
}

/* Mobile Action-Sektion (Anhang-Stil) */
.bv-actions-mobile {
  border-top: 0.5px solid var(--color-border-tertiary);
}
.bv-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0.75rem 1rem;
}
.bv-actions-grid-single {
  padding: 0.75rem 1rem;
}
.bv-actions-grid .bv-action-btn,
.bv-actions-grid-single .bv-action-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 8px;
}
.bv-actions-full {
  padding: 0 1rem 0.75rem;
}
.bv-actions-full .bv-action-btn {
  width: 100%;
  justify-content: center;
  padding: 10px;
}

/* ── ticket-search-wrap innerhalb bv-filter-wrap: kein border-bottom ── */
.bv-filter-wrap .ticket-search-wrap { border-bottom: none; }
