/* Set the font to Inter for consistency */
body {
    font-family: 'Inter', sans-serif;
}

.hide {
    display: none !important;
    /* !important, um sicherzustellen, dass es andere Stile überschreibt */
}

/* Custom background color override for better look, while keeping the Bootstrap class */
/* Dies überschreibt die Standardfarbe von .bg-secondary (Grau) mit Indigo-600 */
.bg-secondary {
    background-color: #4f46e5;
}

/* Custom styling for nav links on hover */
.navbar-nav .nav-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Unterstreichung für den aktiven Menüpunkt */
.navbar-nav .nav-item.active .nav-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    /* optional: Abstand vom Text */
    font-weight: 600;
    /* optional: etwas fetter */
}

/* Header fixieren */
#rahmenspielplan-liga-header th:first-child {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    /* Hintergrundfarbe beibehalten */
    z-index: 2;
}

/* Erste Spalte fixieren */
#rahmenspielplan-liga-tabelle td:first-child {
    position: sticky;
    left: 0;
    background: #ffffff;
    /* Hintergrundfarbe passend zum Body */
    z-index: 1;
}

/* Optional: Tabelle scrollbar machen */
.table-container {
    overflow-x: auto;
}
/* Container-Klasse für das Datum-Feld */
.date-with-popover {
    position: relative;
    /* Wichtig für die Positionierung des Popovers */
    cursor: help;
    /* Ändert den Mauszeiger, um auf zusätzliche Info hinzuweisen */
}

/* Stil für den Datumstext: gepunktete Unterstreichung */
.date-with-popover .date-text {
    border-bottom: 1px dotted #343a40;
    /* Dunkle Farbe für gute Lesbarkeit */
}

/* Popover-Element: Standardmäßig versteckt */
.date-popover {
    visibility: hidden;
    opacity: 0;

    /* NEUE POSITIONIERUNG FÜR RECHTS */
    position: absolute;
    z-index: 1000;
    top: 0;
    /* Oben auf gleicher Höhe wie das Datum */
    left: 100%;
    /* Startet direkt rechts neben dem Datum */
    margin-left: 8px;
    /* Kleiner Abstand zum Datum */
    /* Die horizontalen Zentrierungs-Regeln werden entfernt (transform: translateX) */

    /* Styling */
    min-width: 200px;
    padding: 8px 12px;
    background-color: #343a40;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* Übergang für sanfteres Einblenden */
    transition: opacity 0.3s, visibility 0.3s;
}

/* Popover beim Hovern anzeigen */
.date-with-popover:hover .date-popover {
    visibility: visible;
    opacity: 1;
}

/* Container-Klasse für das Datum-Feld */
.liga-with-popover {
    position: relative;
    /* Wichtig für die Positionierung des Popovers */
    cursor: help;
    /* Ändert den Mauszeiger, um auf zusätzliche Info hinzuweisen */
}

/* Stil für den Datumstext: gepunktete Unterstreichung */
.liga-with-popover .liga-text {
    border-bottom: 1px dotted #343a40;
    /* Dunkle Farbe für gute Lesbarkeit */
}

/* Popover-Element: Standardmäßig versteckt */
.liga-popover {
    visibility: hidden;
    opacity: 0;

    /* NEUE POSITIONIERUNG FÜR RECHTS */
    position: absolute;
    z-index: 1000;
    top: 0;
    /* Oben auf gleicher Höhe wie das Datum */
    left: 100%;
    /* Startet direkt rechts neben dem Datum */
    margin-left: 8px;
    /* Kleiner Abstand zum Datum */
    /* Die horizontalen Zentrierungs-Regeln werden entfernt (transform: translateX) */

    /* Styling */
    min-width: 200px;
    padding: 8px 12px;
    background-color: #343a40;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* Übergang für sanfteres Einblenden */
    transition: opacity 0.3s, visibility 0.3s;
}

/* Popover beim Hovern anzeigen */
.liga-with-popover:hover .liga-popover {
    visibility: visible;
    opacity: 1;
}