
main {
    padding-top: 40px;
}

body {
    padding-top: 20px; /* Höhe der fixierten Navigationsleiste ausgleichen */
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030; /* höher als default content */
    background-color: #fff; /* wichtig für visuelle Trennung */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* table-style.css */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed; /* gleichmäßige Spaltenbreite */
    font-family: Arial, sans-serif;
    font-size: 14px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    white-space: nowrap; /* verhindert Zeilenumbruch */
    overflow: hidden;
    text-overflow: ellipsis; /* zeigt "..." an, wenn Text zu lang ist */
}

th {
    background-color: #f2f2f2;
    text-align: left;
}

.timestamp {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

/* Optional: spezifische Spaltenbreiten nach Index */
th:nth-child(1), td:nth-child(1) { width: 100px; } /* Trip Kurzname */
th:nth-child(2), td:nth-child(2) { width: 100px; }  /* Route ID */
th:nth-child(3), td:nth-child(3) { width: 100px; } /* Route Kurzname */
th:nth-child(4), td:nth-child(4) { width: 120px; } /* Zielanzeige */
th:nth-child(5), td:nth-child(5) { width: 120px; } /* Ankunftszeit */
th:nth-child(6), td:nth-child(6) { width: 80px; }  /* Stop ID */
th:nth-child(7), td:nth-child(7) { width: 70px; } /* Stop Name */
th:nth-child(8), td:nth-child(8) { width: 160px; } /* Verkehrsunternehmen */
th:nth-child(9), td:nth-child(9) { width: 200px; } /* Trip ID */
th:nth-child(10), td:nth-child(10) { width: 80px; } /* Route Typ */
th:nth-child(11), td:nth-child(11) { width: 80px; } /* Verspätung */


/* Statusbasierte farbliche Hinterlegung */
.removed { background-color: #fdd; }
.added { background-color: #dfd; }
.changed { background-color: #e0f0ff; }


/* Mehr Abstand zwischen Auswahlchips (Pills) */
/* 1. Auswahlchips über ganze Breite */
.select2-container--bootstrap-5 .select2-selection__choice {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    margin: 0.25rem 0;
    background-color: #e6f0fb;
    border: 1px solid #a8c9e8;
    border-radius: 0.35rem;
    font-size: 1rem;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chips: gleiche Breite wie Eingabefeld */
.select2-container--bootstrap-5 .select2-selection__choice {
    width: 100%;                  /* voller Container */
    box-sizing: border-box;
}

/* Text linksbündig */
.select2-container--bootstrap-5 .select2-selection__choice span {
    text-align: left;
    flex-grow: 1;
    margin-left: 0.5rem;
}

/* Entfernen-Button links außen */
.select2-container--bootstrap-5 .select2-selection__choice__remove {
    display: inline-block;
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c5879;
    cursor: pointer;
    line-height: 1;
}


.select2-search__field:focus {
    border-color: #66afe9;
    box-shadow: 0 0 0 0.2rem rgba(102, 175, 233, 0.25);
}


/*	1.	Stelle sicher, dass dein Select2-Container nicht blockartig aussieht*/
.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: 38px;
    padding: 0.25rem 0.5rem;
}


.select2-container--bootstrap-5 .select2-search--inline {
    display: block !important;
    width: 100% !important;
}


/* Select2 Container: lasse ihn automatisch wachsen */
.select2-container--bootstrap-5 .select2-selection--multiple {
    max-height: none !important;
    overflow-y: visible !important;
    flex-wrap: wrap !important; /* sicherstellen, dass Zeilen umbrechen */
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
    min-height: 60px;
}

/* Der graue umrahmte Block selbst soll flexibel sein */
.select2-container--bootstrap-5 {
    width: 100% !important;
}

/* Optional: weicher Übergang beim Wachsen */
.select2-selection--multiple {
    transition: all 0.2s ease-in-out;
}
.select2-container--bootstrap-5 .select2-selection--multiple {
    max-height: 260px;
    overflow-y: auto;
}


/* Stiky für Tabellen im Fahrplanvergleich */
.table-scroll-wrapper {
    max-height: 500px;
    overflow-y: auto;
}

.table-scroll-wrapper thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa; /* oder deine Wunschfarbe */
    z-index: 2;
}


/* style für Legenden der Selektionsparameter */

  .aligned-list {
    list-style: none;
    padding: 0;
  }

  .aligned-list li {
    display: flex;
    margin-bottom: 0.5em;
  }

  .aligned-list .label {
    width: 170px; /* Feste Breite für gleichmässigen Einzug */
font-weight: bold;
flex-shrink: 0;
}

.aligned-list .description {
    flex: 1;
}