.timetable {
    width: 100%;
    max-width: none;
    display: grid;
    position: relative;
    grid-template-rows: 100px 1fr;
    overflow: scroll;
    line-height: 26px !important;
}

.timetable__line {
    position: absolute;
    z-index: 2;
    width: calc(100% - 50px);
    left: 50px;
    height: 1px;
    background-color: lightgrey;
}

.timetable__line--light {
    background-color: #E5E4E2;
    height: 0.5px;
}

.timetable__time-col {
    background-color: #F9F9F9;
    width: 100%;
    height: 100%;
    display: grid;
}

.timetable__col {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #F9F9F9;
}

.mobile-timetable .timetable__col {
    overflow: scroll;
}

.timetable__time {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    font-size: .8em;
    padding-right: 8px;
}

.timetable__header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F2F2F2;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: visible;
}

.timetable__header::after {
    content: "";
    position: absolute;
    bottom: -4px; /* Moves it outside the header */
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
}

.timetable__location {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: row;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.timetable__event {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
}

.timetable__event .tooltip {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 10;
    top: 3px;
    left: 10px;
}

/*
.timetable__event:hover .tooltip {
  visibility: visible;
}
*/

.event {
    position: relative;
    width: 100%;
    height: calc(100% - 2px);
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    filter: brightness(1.0);
}

.event__info {
    padding: 4px 16px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.event__name {
    overflow: hidden;
    font-size: .9em;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.event__time {
    color: #3A3A3A;
    font-size: .8em;
}

.event__instructor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: .8em;
    white-space: nowrap; /* Prevents text from wrapping onto the next line */
    overflow: hidden; /* Ensures any overflow text is hidden */
    text-overflow: ellipsis; /* Adds ellipsis (...) when the text overflows */
    max-width: 100%; /* Sets the maximum width to the container */
    color: #3A3A3A;
}

.event__time {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: .8em;
}

.event__icon {
    font-size: .8em;
}

.event__type {
    font-size: .5em;
}

.event_language {
    font-size: .5em;
}


.mobile-timetable {
    width: 100%;
    height: 100vh;
    padding: 0 !important;
}

.slider-container {
    width: 100%;
    height: 85%;
    overflow: hidden;
}

.slider {
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 500vw;
    max-width: none;
    display: grid;
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
}

.slide {
    display: grid;
    grid-template-columns: 50px 1fr;
}

/* Scrollable navigation container with hidden scrollbar */
.mobile-timetable__top-nav-container {
    overflow-x: auto;
    justify-content: center;
    position: relative;
    scroll-behavior: smooth;
    background-color: white;
}

.mobile-timetable__top-nav {
    gap: 10px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: white;
}

.mobile-timetable__shadow {
    width: 100%;
    height: 0; /* Minimal height to serve as a reference for positioning */
    position: relative; /* Ensures ::after stays within this container */
}

.mobile-timetable__shadow::after {
    content: "";
    position: absolute; /* Allows precise placement within .mobile-timetable__shadow */
    bottom: -4px; /* Moves it just below the container */
    left: 0;
    width: 100%;
    z-index: 25;
    height: 4px; /* Thickness of the shadow */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent); /* Smooth fading shadow */
    pointer-events: none; /* Prevents interaction */
}

/* Navigation buttons */
.mobile-timetable__nav-item {
    max-width: 150px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    color: #333;
    background-color: white;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-timetable__nav-item--highlight {
    font-weight: bold;
    color: #F5B036;
}

/* Hide scrollbar for all browsers */
.mobile-timetable__top-nav-container::-webkit-scrollbar {
    display: none;
}

.mobile-timetable__top-nav-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}


.mobile-timetable__line {
    position: absolute;
    height: 1px;
    z-index: 2;
    background-color: lightgray;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 150;
}

.modal__content {
    background: #fff;
    position: relative;
    border-radius: 4px;
    width: 60vw;
}

.modal__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: solid black 2px;
}

.modal__info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 100%;
    max-width: 90vw;
}

.modal__image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

#modalImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#mobileModalImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.modal__description {
    padding: 32px;
    height: calc(100% - 64px);
    display: grid;
    grid-template-rows: auto 1fr auto; /* Middle section flexible */
    gap: 10px;
}

.mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 150;
}

.mobile-modal__content {
    background: #fff;
    position: relative;
    border-radius: 4px;
    width: 80vw;
    height: 70vh;
    display: grid;
    grid-template-rows: 2fr 3fr;
}

.mobile-modal__image {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
    overflow: hidden;
    background-color: #eee;
    display: block;
}

.mobile-modal__close {
    cursor: pointer;
    width: 42px;
    height: 42px;
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.mobile-modal__info {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0 24px;
}

.modal-meta {
    text-align: center;
}

.modal-instructor {
    text-align: center;
}

.mobile-modal__text {
    height: calc(100% - 16px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    padding-bottom: 16px;
    justify-content: center;
}

#modalDescription {
    font-size: .8em;
    min-height: 200px;
    max-height: 250px;
    overflow-y: auto;
    text-align: justify;
}

#mobileModalDescription {
    font-size: .8em;
    max-height: 250px;
    overflow-y: auto;
    text-align: justify;
}
/* V6: Modal Font-Größen +2px */
.modal__content h4,
#modalClassName {
    font-size: 26px !important;
}

.modal__description,
.modal-meta,
#modalDescription {
    font-size: 16px !important;
}

.mobile-modal__text h5,
#mobileModalClassName {
    font-size: 22px !important;
}

.mobile-modal__text .modal-meta,
.mobile-modal__text .modal-description,
.mobile-modal__text .modal-instructor {
    font-size: 16px !important;
}

/* Force Font Awesome to load properly */
.fas, .fa, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Specific icon fixes */
.fa-user, .fa-clock, .fa-calendar-plus, .fa-calendar, .fa-location-dot {
    font-family: "Font Awesome 6 Free" !important;
}

/* Ensure Montserrat is used */
body, button, .modal__actions button {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}


