/* Version: 6.2 */
:root {
    --brand-blue: #00629b;
    --dark-blue: #143055;
    --light-blue: #eef2f7; 
    --highlight-blue: #d2ecfa;
    --border-color: #cdd5e1; 
    --text-primary: #1a202c;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --success-green: #10b981;
    --warning-amber: #f59e0b;
    --error-red: #ef4444;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
    background: var(--light-blue); 
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .container { 
    width: 95vw; 
    max-width: none; 
    margin: 0 auto; 
    padding: var(--space-6) var(--space-2);
    position: relative;
  }
  
  /* Header */
  .header-flex { 
    display: flex; 
    align-items: center; 
    gap: var(--space-8); 
    margin-bottom: var(--space-6);
  }
  
  .db-logo { 
    height: 48px; 
    filter: drop-shadow(var(--shadow-sm));
  }
  
  h1 { 
    font-size: 2rem; 
    font-weight: 700; 
    margin: 0; 
    color: var(--dark-blue);
    line-height: 1.2;
  }
  
  .subline { 
    font-size: 1rem; 
    color: var(--brand-blue); 
    font-weight: 500; 
    margin-top: var(--space-1);
  }
  
  .top-right-controls {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    z-index: 10;
  }
  
  .version, .last-update { 
    background: var(--dark-blue); 
    color: white; 
    border-radius: var(--radius-lg); 
    font-size: 0.875rem; 
    padding: var(--space-2) var(--space-4); 
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
  }
  
  .last-update {
      cursor: pointer;
      border: none;
      font-family: inherit;
  }
  
  .layout-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
  }
  
  .switcher-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 28px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  
  input:checked + .slider {
    background-color: var(--brand-blue);
  }
  
  input:checked + .slider:before {
    transform: translateX(22px);
  }
  
  
  /* Status Info - Kompakt und elegant */
  .status-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 0 var(--space-4);
    font-size: 0.875rem;
    color: var(--success-green);
    font-weight: 500;
    box-shadow: var(--shadow-xs);
  }
  
  .status-info:empty {
    display: none;
  }
  
  .status-info::before {
    display: none;
  }
  
  /* Filter Panel - Kompakter */
  .filter-panel {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-6);
  }
  
  /* Search Section */
  .search-section {
    margin-bottom: var(--space-5);
  }
  
  .search-wrapper {
    margin-bottom: var(--space-4);
  }
  
  .search-label,
  .filters-main-title,
  .active-filters-title { 
    font-weight: 600; 
    font-size: 1rem; 
    color: var(--dark-blue); 
    margin-bottom: var(--space-3); 
    display: block;
  }
  
  .active-filters-title {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
  }
  
  .filters-main-title {
    margin-top: var(--space-5);
  }
  
  .search-input-group {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  #search { 
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg); 
    border: 2px solid var(--border-color); 
    font-size: 1rem; 
    transition: all 0.2s ease;
    background: white;
    box-shadow: var(--shadow-xs);
  }
  
  #search:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 155, 0.1), var(--shadow-sm);
  }
  
  #search::-webkit-search-cancel-button,
  #search::-webkit-search-decoration {
    -webkit-appearance: none;
    display: none;
  }
  
  .clear-search-btn {
    position: absolute;
    right: var(--space-3);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .clear-search-btn:hover {
    color: var(--text-secondary);
    background: var(--border-color);
  }
  
  /* Results und Actions */
  .results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }
  
  .results-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
  }
  
  .counter,
  .status-info,
  .btn-outline {
    height: 42px;
    display: inline-flex;
    align-items: center;
  }
  
  .counter { 
    font-size: 0.875rem; 
    color: var(--text-secondary); 
    font-weight: 500;
    padding: 0 var(--space-4);
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }
  
  .counter strong {
    font-size: 1rem; 
    color: var(--dark-blue); 
    font-weight: 700;
  }
  
  .action-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  
  /* Button Styles */
  .btn-outline {
    gap: var(--space-2);
    padding: 0 var(--space-4);
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
  }
  
  .btn-outline:hover {
    background: #f8fafc;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  
  .btn-primary { 
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-5); 
    height: 42px;
    border-radius: var(--radius-md); 
    border: none; 
    background: var(--brand-blue); 
    color: white; 
    font-size: 0.875rem; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
  }
  
  .btn-primary:hover { 
    background: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
  }
  
  .new-badge {
    background-color: var(--error-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    margin-left: var(--space-2);
    text-transform: uppercase;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
  }
  
  /* Export Container */
  .export-options {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
  }
  
  .export-options button {
      width: 100%;
      justify-content: center;
  }
  
  
  /* Selected Chips - Sichtbar über den Filtern */
  .selected-chips-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) 0;
  }
  
  .selected-chips-container:empty {
    display: none;
  }
  
  .selected-chips-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
  }
  
  .selected-chips-group .group-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-blue);
    padding: var(--space-2) var(--space-3);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
  }
  
  .selected-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  
  .selected-chip {
    background: var(--highlight-blue);
    color: var(--dark-blue);
    border: 1px solid rgba(20, 48, 85, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
  }
  
  .selected-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--brand-blue);
  }
  
  .selected-chip .remove {
    margin-left: var(--space-3);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    background: rgba(20, 48, 85, 0.08);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .selected-chip .remove:hover {
    background: rgba(20, 48, 85, 0.15);
    transform: scale(1.1);
  }
  
  .filters-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .filter-row {
    display: grid;
    gap: var(--space-4);
  }
  
  .filter-row:first-child {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-row:last-child {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .filter-card {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all 0.2s ease;
    position: relative;
  }
  
  .filter-card:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
    background: white;
  }
  
  .filter-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--dark-blue);
    font-size: 0.875rem;
  }
  
  .filter-label svg {
    color: var(--brand-blue);
  }
  
  /* Multiselect */
  .filter-input .multiselect {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
  }
  
  .filter-input .multiselect:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 155, 0.1), var(--shadow-sm);
  }
  
  .filter-input .multiselect input {
    border: none;
    outline: none;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    box-sizing: border-box;
    background: transparent;
  }
  
  .multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 200px;
    overflow: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }
  
  .multiselect-dropdown div {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
    font-size: 0.875rem;
  }
  
  .multiselect-dropdown div:hover {
    background: #f1f5f9;
  }
  
  .multiselect-dropdown .count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: #e2e8f0;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-weight: 500;
    min-width: 24px;
    text-align: center;
  }
  
  /* Table Styling */
  .responsive-table {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: white;
  }
  
  table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: var(--radius-xl);
    table-layout: fixed;
  }
  
  th, td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
  }
  
  th {
    background: #f8fafc;
    color: var(--brand-blue);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--border-color);
  }
  
  .header-info {
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: bold;
    margin-left: 4px;
    transition: color 0.2s ease;
    display: inline-block;
    vertical-align: middle;
  }
  
  .header-info:hover {
    color: var(--brand-blue);
  }
  
  tr {
    cursor: pointer;
    transition: all 0.15s ease;
  }
  
  tr:last-child td {
    border-bottom: none;
  }
  
  tr:hover {
    background: #f8fafc;
  }
  
  /* Chips in Table */
  .chip {
    background: linear-gradient(135deg, var(--highlight-blue) 0%, #bfdbfe 100%);
    border-radius: var(--radius-sm);
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    margin: var(--space-1);
    display: inline-block;
    color: #1e40af;
    font-weight: 500;
    border: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: var(--shadow-xs);
  }
  
  /* Hint/Loading States */
  .hint {
    text-align: center;
    color: var(--text-secondary);
    margin: var(--space-8) auto;
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.6;
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }
  
  .hint strong {
    color: var(--dark-blue);
  }
  
  .hint a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
  }
  
  .hint a:hover {
    text-decoration: underline;
  }
  
  /* Loading Spinner */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--brand-blue);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-4);
  }
  
  /* Modal Styling */
  .modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .modal-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .modal-content-wide {
      max-width: 1200px;
  }
  
  .modal-content-small {
      max-width: 400px;
  }
  
  .modal-overlay.visible .modal-content {
    transform: scale(1);
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-6) var(--space-8) var(--space-4);
    flex-shrink: 0;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-blue);
    font-weight: 700;
  }
  
  .modal-header-actions {
      display: flex;
      gap: var(--space-3);
      align-items: center;
  }
  
  .modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
  }
  
  .modal-close-btn:hover {
    color: var(--dark-blue);
    background: #f1f5f9;
  }
  
  .modal-body {
    overflow-y: auto;
    padding: var(--space-6) var(--space-8);
  }
  
  .modal-body .detail-grid {
    display: block;
  }
  
  .detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: start;
    border-bottom: 1px solid var(--border-color);
  }
  
  .detail-row:last-of-type {
    border-bottom: none;
  }
  
  .detail-row .detail-label,
  .detail-row .detail-value {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
  
  .detail-row .detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
  }
  
  .detail-row .detail-value {
    word-break: break-word;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
  }
  
  .detail-row .detail-value:hover {
    color: var(--brand-blue);
    background: #f8fafc;
  }
  
  .modal-section {
    margin-bottom: var(--space-6);
  }
  
  .modal-section:last-child {
    margin-bottom: 0;
  }
  
  .modal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-top: 0;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-color);
  }
  
  .example-value {
    background: #f8fafc;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    white-space: pre-wrap;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
  }
  
  .copy-feedback {
    position: absolute;
    right: -80px;
    top: 0;
    background: var(--success-green);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
  }
  
  /* Pagination */
  #paginationBar {
    margin: var(--space-6) 0 var(--space-4) 0;
    text-align: center;
    font-size: 0.875rem;
    user-select: none;
  }
  
  #paginationBar button {
    margin: 0 var(--space-1);
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    min-width: 40px;
  }
  
  #paginationBar button:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #f8fafc;
  }
  
  #paginationBar button[disabled] {
    background: #f8fafc;
    color: var(--text-muted);
    border-color: #f1f5f9;
    cursor: not-allowed;
  }
  
  #paginationBar button[disabled]:hover {
    transform: none;
    background: #f8fafc;
    border-color: #f1f5f9;
  }
  
  #paginationBar button.active {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
  }
  
  #filter-view-modal-body table {
    width: 100%;
    border-collapse: collapse;
  }
  
  #filter-view-modal-body th, 
  #filter-view-modal-body td {
    border: 1px solid var(--border-color);
    padding: var(--space-3);
    text-align: left;
  }
  
  #filter-view-modal-body th {
    background-color: #f8fafc;
    font-weight: 600;
    position: sticky;
    top: 0;
  }
  
  #filter-view-modal-body .modal-table-container {
      max-height: 50vh;
      overflow-y: auto;
  }
  
  #filter-view-modal-body .active-filters-display {
      margin-bottom: var(--space-4);
      padding-bottom: var(--space-4);
      border-bottom: 1px solid var(--border-color);
  }
  
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .filter-row:last-child {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 992px) {
    .filter-row:last-child {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .container {
      padding: var(--space-4) var(--space-3);
    }
    
    .header-flex {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--space-4);
    }
    
    .results-actions {
      flex-direction: column;
      align-items: stretch;
      gap: var(--space-3);
    }
    
    .action-buttons {
      justify-content: space-between;
    }
    
    .filter-row,
    .filter-row:first-child,
    .filter-row:last-child {
      grid-template-columns: 1fr;
    }
    
    .filter-card {
      padding: var(--space-4);
    }
    
    th, td {
      padding: var(--space-3) var(--space-2);
      font-size: 0.875rem;
    }
    
    .modal-content {
      margin: var(--space-4);
      padding: 0;
    }
  
    .modal-header {
      padding: var(--space-4) var(--space-6) var(--space-3);
    }
  
    .modal-body {
      padding: 0 var(--space-6) var(--space-4);
    }
  
    .top-right-controls {
      top: var(--space-2);
      right: var(--space-2);
      gap: var(--space-3);
    }
  }
  
  @media (max-width: 640px) {
    .action-buttons {
      flex-direction: column;
      gap: var(--space-2);
    }
    
    .selected-chips-group {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--space-2);
    }
    
    #paginationBar button {
      padding: var(--space-2) var(--space-3);
      margin: 0 1px;
      min-width: 36px;
    }
  }
  
  /* Focus States für Accessibility */
  button:focus-visible,
  select:focus-visible,
  input:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
  }
  
  /* Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  