/* ========================================
   STANDARD-REGELN & GRUNDLEGENDE STYLES
   ======================================== */

/* Spalten-Steuerung */
.hidden-col {
  display: none !important;
}

/* Tabellenkopf Styling */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
}

.header-title {
    font-weight: 600;
    color: #374151;
}

.column-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.column-toggle-wrapper:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.column-toggle {
    margin: 0;
    cursor: pointer;
    transform: scale(0.85);
}

.column-toggle-icon {
    font-size: 0.75rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s ease;
}

.column-toggle:checked + .column-toggle-icon {
    color: #3b82f6;
}

/* Responsive Toggle Buttons */
@media (min-width: 1200px) {
    .column-toggle-wrapper {
        gap: 4px;
        padding: 4px;
    }
    
    .column-toggle {
        transform: scale(1);
    }
    
    .column-toggle-icon {
        font-size: 0.875rem;
    }
}

@media (max-width: 767px) {
    .column-toggle-wrapper {
        gap: 2px;
        padding: 2px;
    }
    
    .column-toggle {
        transform: scale(0.75);
    }
    
    .column-toggle-icon {
        font-size: 0.7rem;
    }
}

/* Gruppierte vs Standard Header */
.grouped-header {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.grouped-header .section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    position: relative;
    line-height: 1.2;
}

.grouped-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.grouped-header .header-toggle {
    margin-top: 6px;
}

/* === RESPONSIVE RULES === */

/* Desktop (>= 1200px) - Größere Schrift und mehr Platz */
@media (min-width: 1200px) {
    .grouped-header .section-title {
        font-size: 0.85rem !important;
        margin-bottom: 8px;
    }
    
    .grouped-header .header-toggle {
        margin-top: 8px;
    }
    
    .table .grouped-cell {
        min-width: 280px !important;
        max-width: 350px !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .detail-item-compact {
        font-size: 0.9rem !important;
    }
    
    .detail-item-compact i {
        font-size: 0.8rem !important;
    }
}

/* Tablet (768px - 1199px) - Mittlere Größe */
@media (min-width: 768px) and (max-width: 1199px) {
    .grouped-header .section-title {
        font-size: 0.75rem !important;
    }
    
    .table .grouped-cell {
        min-width: 200px !important;
        max-width: 280px !important;
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .detail-item-compact {
        font-size: 0.8rem !important;
    }
    
    .detail-item-compact i {
        font-size: 0.7rem !important;
    }
}

/* Mobile (< 768px) - Kompakte Darstellung */
@media (max-width: 767px) {
    .grouped-header .section-title {
        font-size: 0.65rem !important;
        margin-bottom: 4px;
    }
    
    .grouped-header .header-toggle {
        margin-top: 4px;
    }
    
    .table .grouped-cell {
        min-width: 150px !important;
        max-width: 200px !important;
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .detail-item-compact {
        font-size: 0.75rem !important;
    }
    
    .detail-item-compact i {
        font-size: 0.65rem !important;
    }
}

/* Standard-Header entfernt - verwenden jetzt grouped-header */

/* Potential-Legende im Header */
.potential-legend-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.7rem;
}

.potential-legend-header .legend-item {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.potential-legend-header .legend-item i {
    font-size: 0.6rem;
}

/* Standard-Header responsive Anpassungen entfernt - verwenden jetzt grouped-header */

/* === TABELLEN-CONTAINER RESPONSIVE === */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive {
    min-width: 100%;
    white-space: nowrap;
}

/* Verhindert horizontales Scrollen bei großen Bildschirmen */
@media (min-width: 1200px) {
    .table-container {
        overflow-x: visible;
    }
    
    .table-responsive {
        white-space: normal;
    }
}

/* Bei mittleren Bildschirmen: Horizontales Scrollen erlauben */
@media (min-width: 768px) and (max-width: 1199px) {
    .table-container {
        overflow-x: auto;
    }
}

/* Bei kleinen Bildschirmen: Minimale Tabellenbreite setzen */
@media (max-width: 767px) {
    .table-responsive {
        min-width: 1200px; /* Noch mehr Breite für Standard-Ansicht */
    }
}

/* Bei mittleren Bildschirmen auch Mindestbreite */
@media (min-width: 768px) and (max-width: 1199px) {
    .table-responsive {
        min-width: 1000px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@media (max-width: 576px) {
  .column-toggle-label {
    font-size: 0.6rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    font-size: 0.85rem;
  }

  /* Schriftgröße für Buttons und Formularelemente auf kleinen Bildschirmen */
  button, .btn, input, select, textarea {
    font-size: 0.8rem;  /* kleinere Schriftgröße für Buttons und Formularelemente */
  }
  
  /* Dropdowns anpassen */
  .dropdown-item {
    font-size: 0.75rem;  /* Schriftgröße für Dropdown-Items */
  }
}

@media (max-width: 767px) {
  body {
    font-size: 12px; 
  }
  
  /* Schriftgröße für Buttons und Formularelemente auf mittleren Bildschirmen */
  button, .btn, input, select, textarea {
    font-size: 0.9rem;  /* Schriftgröße für Buttons und Formularelemente */
  }
  
  /* Schriftgröße für Dropdown-Items */
  .dropdown-item {
    font-size: 0.85rem;  /* Schriftgröße für Dropdown-Items */
  }

  /* Anpassungen für Tooltipps */
  .custom-tooltip .tooltip-inner {
    font-size: 1rem;  /* kleinere Schriftgröße für Tooltips */
  }
}

/* ========================================
   TOOLTIP STYLING
   ======================================== */

/* Custom Tooltip Styling */
.custom-tooltip .tooltip-inner {
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #ff5733;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.custom-tooltip .tooltip-arrow {
  border-width: 1.5em;
  border-color: #ff5733 transparent transparent transparent;
}

.custom-tooltip .tooltip-inner {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-tooltip:hover .tooltip-inner {
  opacity: 1;
  transform: scale(1);
}

/* Potential Tooltip Styling */
.tooltip.potential-tooltip .tooltip-inner {
  font-size: 0.9rem;
  font-weight: normal;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
}

.tooltip.potential-tooltip .tooltip-arrow {
  display: none;
}

/* ========================================
   UI KOMPONENTEN
   ======================================== */

/* Dropdown Styling */
.dropdown-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Search Dropdown */
#search .dropdown-menu {
  max-height: 300px;  /* Maximalhöhe des Dropdowns */
  overflow-y: auto;   /* Scrollen aktivieren, wenn der Inhalt die Maximalhöhe überschreitet */
  display: block;     /* Dropdown immer sichtbar, wenn es angezeigt wird */
}

/* Text Highlighting */
mark {
  background-color: yellow;
  color: black;
  padding: 0 2px;
  border-radius: 2px;
}


/* ========================================
   FORMULAR & FEHLERBEHANDLUNG
   ======================================== */

/* Error Container */
.error-container {
    background-color: #ff4d4d;
    border-radius: 50%;
    padding: 8px 11px; /* leicht kleiner für besseres Icon */
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    display: none;
    user-select: none;
}

.form-group .error-container:not(:empty) {
    display: block;
}

/* Error Messages */
.error-message {
    color: #ff4d4d; /* gleiches Rot */
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.error-message i.bi {
    font-size: 1rem;
    color: #ff4d4d;
}


/* ========================================
   LAYOUT & RESPONSIVE WRAPPER
   ======================================== */

/* Responsive Container */
.responsive-wrapper {
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 30px;
  padding-right: 30px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .responsive-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .responsive-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 767px) {
  #search .dropdown-menu {
    max-height: 200px;  /* Kleinere maximale Höhe für mobile Geräte */
  }
}

@media (max-width: 576px) {
  .responsive-wrapper {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ========================================
   NAVIGATION & AUTHENTICATION
   ======================================== */

/* Auth Navigation Styles */
.auth-navigation {
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

.auth-nav-link {
    color: #007bff;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.auth-nav-link:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

.auth-nav-separator {
    color: #dee2e6;
    font-weight: bold;
}

@media (max-width: 576px) {
    .auth-navigation {
        font-size: 0.85rem;
    }
    
    .auth-nav-separator {
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
    }
}

/* ========================================
   POTENTIAL FARBBALKEN
   ======================================== */

.potential-cell-wrapper, .potential-compact-wrapper {
    position: relative;
    width: 100%;
}

.potential-badges {
    margin-bottom: 6px;
}

.potential-color-bar {
    display: flex;
    height: 9px;
    width: 50px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.color-segment {
    height: 100%;
    transition: opacity 0.2s ease;
    cursor: help;
}

.color-segment:hover {
    opacity: 0.8;
}

/* Bootstrap Tooltip Überschreibung für Farbbalken */
.color-segment[data-bs-toggle="tooltip"] + .tooltip .tooltip-inner {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 0.75rem;
}

/* Kompakte Version - kleiner */
.potential-compact-wrapper .potential-color-bar {
    height: 6px;
    width: 38px;
    margin-top: 2px;
}

/* Farbbalken in Flag-Zeilen (Desktop & Mobile) */
.flags-colorbar .potential-color-bar {
    position: static;
    margin: 0;
    height: 8px;
    width: 45px;
    flex-shrink: 0;
}

.activity-flags {
    width: 100%;
}

.flags-badges,
.flags-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flags-colorbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Responsive Anpassungen für Farbbalken */
@media (max-width: 767px) {
    .potential-color-bar {
        height: 6px;
        width: 38px;
        border-radius: 1px;
    }
    
    .potential-badges {
        margin-bottom: 6px;
    }
    
    .potential-compact-wrapper .potential-color-bar {
        height: 6px;
        width: 31px;
    }
}

@media (min-width: 1200px) {
    .potential-color-bar {
        height: 12px;
        width: 63px;
        border-radius: 3px;
    }
    
    .potential-badges {
        margin-bottom: 10px;
    }
    
    .potential-compact-wrapper .potential-color-bar {
        height: 9px;
        width: 44px;
    }
}

/* ========================================
   MODERNE TABELLEN-STYLES
   ======================================== */

/* Moderne Card-Optik für Tabellen */
.modern-table-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow-x: auto; /* Horizontales Scrollen bei Bedarf */
    background: white;
    margin-bottom: 1.5rem;
}

.modern-table-card .table {
    margin-bottom: 0;
    border-radius: 0;
}

.modern-table-card .table thead th {
    border-top: none;
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.modern-table-card .table tbody tr {
    transition: background-color 0.15s ease;
}

.modern-table-card .table tbody tr:hover {
    background-color: #f9fafb;
}

.modern-table-card .table td {
    padding: 1rem 0.75rem;
    vertical-align: top;
    border-top: 1px solid #f3f4f6;
}

/* Kleinere Schriftgröße für nicht-gruppierte Ansicht (grouped = false) */
.modern-table-card .table.standard-columns {
    font-size: 0.85rem !important; /* 15% kleiner als normal */
}

.modern-table-card .table.standard-columns th,
.modern-table-card .table.standard-columns td {
    padding: 0.75rem 0.6rem !important; /* Etwas weniger Padding */
    font-size: 0.85rem !important;
}

.modern-table-card .table.standard-columns th {
    font-size: 0.8rem !important; /* Header noch etwas kleiner */
    font-weight: 600;
}

/* Kompakte Gruppierte Details - Desktop Version */
.grouped-details-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    min-height: auto;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Vertikale Darstellung für Allgemeines-Spalte in Desktop */
.detail-row-vertical {
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important; /* Noch kleinerer Abstand zwischen den Elementen */
    margin-bottom: 2px !important; /* Reduziert von 4px auf 2px */
}

.detail-row-vertical:last-child {
    margin-bottom: 0 !important;
}

/* Spezielle Abstände für verschiedene Elemente in vertikaler Darstellung */
.detail-row-vertical .detail-item-compact {
    margin-bottom: 0 !important; /* Kein zusätzlicher Abstand */
    margin-top: 0 !important;
}

/* Icons-Container mit minimal reduziertem oberen Abstand */
.detail-row-vertical .activity-flags {
    margin-top: 1px !important; /* Minimal zwischen Kategorie und Icons */
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Zusätzliche Spezifizierung für Activity Flags in vertikaler Darstellung */
.grouped-details-compact .detail-row-vertical .activity-flags {
    margin-top: 0px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Spezifische Regel: Reduziere Abstand zwischen Kategorie und Icons */
.grouped-details-compact .detail-row-vertical:nth-child(2) {
    margin-bottom: 1px !important; /* Kategorie-Zeile hat minimalen unteren Abstand */
}

.grouped-details-compact .detail-row-vertical:nth-child(3) {
    margin-top: -1px !important; /* Icons-Zeile rückt näher an Kategorie heran */
    margin-bottom: 0 !important;
}

/* Override Bootstrap margins für bessere Kontrolle */
.detail-row-vertical * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Aber spezifische Abstände für die vertikalen Container selbst */
.detail-row-vertical {
    margin-top: 0 !important;
    margin-bottom: 2px !important; /* Reduziert von 4px auf 2px */
}

.detail-row-vertical:last-child {
    margin-bottom: 0 !important;
}

/* Responsive Anpassungen für vertikale Darstellung */
@media (min-width: 1200px) {
    .detail-row-vertical {
        gap: 1px !important; /* Reduziert von 3px auf 1px */
    }
    
    .detail-row-vertical .activity-flags {
        margin-top: 0px !important; /* Reduziert von 2px auf 0px */
    }
}

@media (max-width: 768px) {
    .detail-row-vertical {
        gap: 1px !important;
    }
    
    .detail-row-vertical .activity-flags {
        margin-top: 0px !important;
    }
}

.detail-item-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #374151;
    white-space: nowrap;
}

.detail-item-compact i {
    width: 14px;
    color: #6b7280;
    font-size: 0.75rem;
}

.detail-item-compact .detail-text {
    font-weight: 500;
}

/* Activity Flags - Runde Icons */
.activity-flags {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.desktop-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    cursor: help;
}

.desktop-flag-icon.ag-active {
    background-color: #22c55e;
    color: white;
}

.desktop-flag-icon.competition-active {
    background-color: #f59e0b;
    color: white;
}

.desktop-flag-icon.blitzbirne-active {
    background-color: #f59e0b;
    color: white;
}

.desktop-flag-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Kompakte Potentialbereiche */
.potential-compact {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.potential-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.15s ease;
    cursor: help;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.potential-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Kompakte Gruppen-Container */
.grouped-section {
    display: flex;
    gap: 16px;
}

.grouped-section-item {
    flex: 1;
    min-width: 0;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 6px;
    padding-bottom: 2px;
    border-bottom: 1px solid #e5e7eb;
}

/* Gruppierte Spalten Styling */
.grouped-cell {
    background-color: #fafbfc;
    border-left: 3px solid #e5e7eb;
    position: relative;
    padding: 8px 12px;
    vertical-align: top;
    min-width: 250px;
    max-width: 300px;
}

.grouped-cell-allgemeines {
    border-left-color: #3b82f6;
}

.grouped-cell-details {
    border-left-color: #036668;
}

/* Potenzial-Legende für Desktop */
.potential-legend-desktop {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-bottom: 1px solid #d1d5db;
    cursor: pointer;
    user-select: none;
}

.legend-header:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #b4b9c7 100%);
}

.legend-header-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.legend-toggle-btn:hover {
    background-color: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.legend-content {
    padding: 12px 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 500px; /* Anfangshöhe setzen */
    opacity: 1;
}

.legend-content.collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
}

.legend-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.legend-section {
    min-width: 0;
}

.legend-section:first-child {
    flex: 2; /* Linke Spalte (Potentialbereiche) ist größer */
}

.legend-section:last-child {
    flex: 1; /* Rechte Spalte (Icons) ist kleiner */
}

.legend-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.legend-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
    padding: 4px 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.legend-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.legend-item i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Spezielle Styles für Activity-Type Icons in der Legende */
.legend-item .legend-icon {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.legend-item .blitzbirne-icon {
    position: relative;
}

.legend-item .blitzbirne-icon::after {
    content: '⚡';
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 8px;
    background: #fbbf24;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

/* Improved Actions Column */
.actions-cell {
    text-align: center;
    vertical-align: middle;
    width: 100px;
}

.actions-cell .btn {
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.15s ease;
}

.actions-cell .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Responsive Anpassungen für moderne Tabellen */
@media (max-width: 992px) {
    .modern-table-card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .grouped-details-list {
        min-width: 160px;
        gap: 6px;
    }
    
    .detail-item {
        gap: 6px;
    }
    
    .detail-icon {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .modern-table-card {
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .grouped-details-list {
        min-width: 140px;
        padding: 6px 2px;
    }    .potential-legend-desktop .legend-content {
        padding: 10px 12px;
    }
    
    .legend-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .legend-horizontal {
        gap: 4px;
    }
    
    .legend-item {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .legend-item .legend-icon {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* Responsive Anpassungen für größere Bildschirme */
@media (min-width: 1200px) {
    .potential-legend-desktop .legend-content {
        padding: 14px 18px;
    }
    
    .legend-container {
        gap: 24px;
    }
    
    .legend-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .legend-item {
        font-size: 0.8rem;
        padding: 5px 10px;
        gap: 8px;
    }
    
    .legend-item .legend-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .legend-container {
        gap: 18px;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
}

/* ========================================
   FILTER-KOMPONENTEN STYLING
   ======================================== */

/* Filter Dropdowns - konsistent mit Button-Größen */
.dropdown-toggle {
    font-size: 0.875rem; /* Gleiche Größe wie btn-sm */
    padding: 0.25rem 0.5rem;
}

.dropdown-menu {
    font-size: 0.875rem;
}

.dropdown-item {
    font-size: 0.875rem !important; /* Überschreibt responsive Styles */
    padding: 0.25rem 1rem;
}

/* Filter Labels */
.form-label {
    font-size: 0.875rem !important; /* Konsistent mit Buttons */
    font-weight: 500;
}

/* Checkbox Labels */
.form-check-label {
    font-size: 0.875rem;
}

/* Filter Input Felder */
.form-control,
.form-select {
    font-size: 0.875rem;
}

/* Suchfeld in Tabelle */
#search input {
    font-size: 0.875rem;
}

#search .dropdown-item {
    font-size: 0.875rem;
}

/* Responsive Anpassungen für Filter */
@media (max-width: 992px) {
    .dropdown-toggle,
    .dropdown-menu,
    .dropdown-item,
    .form-label,
    .form-check-label,
    .form-control,
    .form-select {
        font-size: 0.8rem;
    }
    
    #search input,
    #search .dropdown-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .dropdown-toggle,
    .dropdown-menu,
    .dropdown-item,
    .form-label,
    .form-check-label,
    .form-control,
    .form-select {
        font-size: 0.75rem;
    }
    
    #search input,
    #search .dropdown-item {
        font-size: 0.75rem;
    }
}

/* ========================================
   DESKTOP-VERSION SPEZIFISCHE STYLES
   ======================================== */

/* Hervorhebung des Titels nur in der Desktop-Version (Vollversion) */
.desktop-activity-title .detail-text {
    font-weight: 700 !important; /* Deutlich fetter */
    color: #1f2937 !important; /* Dunklere Farbe */
    font-size: 1.05em !important; /* Etwas größer */
}

.desktop-activity-title i {
    color: #3b82f6 !important; /* Blaues Icon für Titel */
    font-weight: bold;
}

/* Responsive Anpassungen nur für Desktop-Titel */
@media (min-width: 1200px) {
    .desktop-activity-title .detail-text {
        font-size: 1.1em !important; /* Noch größer auf großen Bildschirmen */
    }
}

@media (max-width: 768px) {
    .desktop-activity-title .detail-text {
        font-size: 1em !important; /* Normale Größe auf kleinen Bildschirmen */
    }
}

