.site-main {
    margin-top: var(--topDistance);
}


/*-----------------------------------------------------------------------------
# Sections / Columns
-----------------------------------------------------------------------------*/

.page section:nth-child(2n),
.archive section:nth-child(2n +1) {
    background-color: #F5F9FC;
}



.section-inner {
    max-width: 1400px;
    width: 92%;
    margin: 0 auto;
    padding: 60px 0;

}

/*
section:first-child .section-inner,
section.field-section:nth-child(4) .section-inner {
    padding-top: 0;
}
*/

/* Mobile first (default) */
.grid-container {
    display: grid;
    gap: 1rem; 
    grid-template-columns: 1fr; 
}

/* Tablet and larger */
@media (min-width: 768px) {
    .grid-container.grid-2-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-container.grid-3-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-container.grid-4-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop and larger */
@media (min-width: 992px) {
    .grid-container.grid-4-columns {
        grid-template-columns: repeat(4, 1fr);
    }}


.grid-item {
    order: 0; 
}

.grid-item .text {
    max-width: 100ch;
}

.grid-item.order-0 {
    order: 0;
}

.grid-item.order-1 {
    order: 1;
}

.grid-item.order-2 {
    order: 2;
}

.grid-item.order-3 {
    order: 3;
}


/*-----------------------------------------------------------------------------
# Fachgebiete
-----------------------------------------------------------------------------*/


.field-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; 
}

/* Responsive grid items */
@media (max-width: 600px) {
    .field-content {
        grid-template-columns: 1fr;
    }
}

.field-column {
    width: 100%;
}

.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}


/* Responsive grid items */
@media (max-width: 600px) {
    .team {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .team {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 901px) {
    .team {
        grid-template-columns: repeat(4, 1fr);
    }

    .team.related {
        grid-template-columns: repeat(6, 1fr);
    }
}

.team-item {
    margin-bottom: 20px;
}

.doctor-item img {
    max-width: 100%;
    height: auto;
}




/*-----------------------------------------------------------------------------
# Team
-----------------------------------------------------------------------------*/

.team-item {
    text-align: center;
}


.team-item img {
    -webkit-filter: grayscale(100%); 
    filter: grayscale(100%);
    transition: all 0.3s;
}


.team-item:hover img {
    -webkit-filter: grayscale(0%); 
    filter: grayscale(0%);
    cursor: pointer;
}


.team-item h3 {
    margin: 10px auto;
    font-size: 1em;
    font-weight: 900;
    margin-bottom: 0.35em;
}

.team-item p {
    font-size: 0.75em;
    text-transform: uppercase;
}



/* CSS */
#DobModal {
    display: none;
    position: fixed;
    z-index: 1001;
    top: var(--topDistance);
    left: 0;
    width: 100%;
    height: calc(100% - 140px);
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1160px) {
    #DobModal {
        height: 100%;
    }
}

.admin-bar #DobModal {
    top: var(--adminBarTopDistance);
}

#DobModal.show {
    display: flex;
}

/* modal.css */
.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4); 
}

.modal-dialog {
    width: 100%;
    height: 100%;
    background-color: #ffffff;;
}

.modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    width: 92%;
    max-width: 1400px; 
    box-sizing: border-box;
    padding-top: 40px;
}

@media (min-width: 1160px) {
    .modal-content {
        padding-top: 80px;
    }
}


.modal-columns {
    display: grid;
    gap: 1rem; 
    grid-template-columns: 1fr; 
}

@media (min-width: 768px) {
    .modal-columns {
        grid-template-columns: repeat(2, 1fr);
    }

}


span.close {
    color: #232323;
    text-decoration: underline;
    text-underline-offset: 2px;
    float: right;
    position: relative;
    top: 6px;
    right: 14px;
    cursor: pointer;
}


button.close {
    background-color: #232323;
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    border-radius: 0;
    padding: 1px 8px 6px 8px;
    transition: background-color 0.3s;
}

button.close:hover,
button.close:focus {
    background-color: #1f1f1f;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.spinner-border {
    display: none; 
    margin: 0 auto; 
}

.modal-no-scroll {
    overflow: hidden;
}



/*-----------------------------------------------------------------------------
# Modal External Websites
-----------------------------------------------------------------------------*/

.modal-external-website {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 86%;
    height: 70dvh;
    max-width: 1024px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .modal-external-website {
        height: auto;
        max-height: 70dvh;
    }
} 



.modal-external-website .modal-header {
    position: absolute;
    right: 0;
    top: 0;
    padding-top: 24px;
    padding-right: 24px;
    width: 100%;
    background-color: #ffffff;
}


.modal-link-container {
    text-align: center;
    outline: 0!important;
    margin: 24px auto 48px 0;
    display: block;
}

.modal-link-container img {
    width: 200px;
}

.modal-external-website .modal-body {
    padding: 0 8%;
    overflow: auto;
    height: calc(100% - 100px);
    margin-top: 100px;
}

/*-----------------------------------------------------------------------------
# News  
-----------------------------------------------------------------------------*/

.news-item {
    border-bottom: 1px solid #A4CBE1;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.news-item h3 {
    font-size: 18px;
    font-weight: 700;
}





/*-----------------------------------------------------------------------------
# Weekly Schedule
-----------------------------------------------------------------------------*/

.weekly-schedule-slider,
.weekly-schedule-container {
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.weekly-schedule-slider::before {
    height: 30px;
    width: 100%;
    margin-left: 346px;
    content: '';
    background-color: var(--before-bg-color); /* Set the background color using the custom CSS variable */
    position: absolute;
    z-index: 2;
}


.weekly-schedule-slider h3.week {
    margin-left: 36px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
}

.weekly-schedule {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
}


.time-column {
    width: 60px;
    background: #f9f9f9;
    padding-right: 10px;
}


.hour-block {
    /* Styling for each hour block */
    height: 60px; /* since 1 hour = 60px */
    line-height: 60px; /* Center the text vertically */
    border-bottom: 1px solid #eee;
}
.day-column {
    width: 18%;
    position: relative;
    height: 600px; /* Adjusted for 11 hours * 60px, considering your time range from 8:00 to 18:00 */
    background-color: rgba(164,203,225, 0.25);
    margin: 0 1%;
}
.day-column h3 {
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    text-align: center;
    padding: 10px 0;
    background-color: rgba(164,203,225, 0.50);
    position: relative;
    top: -58px;
}

#mo h3 {
    border-top-left-radius: 8px;
}

#fr h3 {
    border-top-right-radius: 8px;
}

#fr {
    border-bottom-right-radius: 8px;
}

#mo {
    border-bottom-left-radius: 8px;
}

.time-block {
    position: absolute;
    width: 100%;
    background-color: rgba(164,203,225, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #232323;
    font-weight: 700;
    transition: all 0.3s ease;
}

.time-block span {
    display: none;
}

@media (min-width: 1024px) {

    .time-block span {
        display: inline;
    }

}

@media (max-width: 1023px) {



.time-block:after {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    content: attr(data-time);
    position: absolute;
    z-index: 1;
  }
  

#mo .time-block:after {
    left: 10%;
}

#fr .time-block:after {
    right: 10%;
}

  .time-block:hover {
    background-color: rgba(164,203,225, 1.0);
  }

  .time-block:hover:after {
    visibility: visible;
  }

}
  

.weekly-schedule-slider .slick-arrow {
    font-size: 0;
    outline: 0;
    background: transparent;
    border: 0;
    position: absolute;
    top: 0px;
    z-index: 2;
}


.weekly-schedule-slider .slick-next {
    left: 346px;
}

.weekly-schedule-slider .slick-prev:before,
.weekly-schedule-slider .slick-next:before {
    font-family: "Font Awesome 6 Pro"; 
    font-weight: 900;
    color: #333; 
    font-size: 24px; 
    display: inline-block;
    transition: all 0.2s ease;
}


.weekly-schedule-slider .slick-prev:hover:before,
.weekly-schedule-slider .slick-next:hover:before {
    color: #232323; 
    cursor: pointer;
    pointer-events: all;
}


.weekly-schedule-slider .slick-prev.disabled,
.weekly-schedule-slider .slick-next.disabled {
    pointer-events: none;
}


.weekly-schedule-slider .slick-prev.disabled:before,
.weekly-schedule-slider .slick-next.disabled:before {
    color: #ddd; 
}


.weekly-schedule-slider .slick-prev:before {
    content: "\f137";
}

.weekly-schedule-slider .slick-next:before {
    content: "\f138"; 
}




/*-----------------------------------------------------------------------------
# Hero Slider
-----------------------------------------------------------------------------*/


.hero-container {
    position: relative;
    height: 60dvh;
    height: 60vh;
    overflow: hidden;
}

.hero-wrapper {
    height: 60dvh;
    height: 60vh;
    overflow: hidden;
    background-color: #f7f7f7;
    display: block;
}

.hero-title-container {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;

}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 8rem); 
    text-align: center;
    color: #ffffff;
    text-shadow: 0px 0px 3px rgba(0,0,0,0.5);
}

.hero-image {
    -webkit-filter: grayscale(100%); 
    filter: grayscale(100%);
    object-fit: cover;
    height: 100%;
    min-width: 100%;
}

.hero ul.slick-dots {
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 20px;
  }


.hero .slick-dots li {
    display: inline-block;
    width: 30px;
    height: 4px !important;
    overflow: hidden;
    margin: 0px 6px;
    cursor: pointer;
    border-radius: 0;
    background-color: #232323;
    border: 0;
    padding-bottom: 0;
}


.hero .slick-dots li.slick-active {
    background-color: #ffffff;
}

.hero .slick-dots li button {
  display: none;
}



/*-----------------------------------------------------------------------------
# Breadcrumb Navigation
-----------------------------------------------------------------------------*/

.breadcrumb-wrapper {
    display: none;
    height: 0;
}

@media (min-width: 1025px) {


    .breadcrumb-wrapper {
        display: block;
        position: sticky;
        height: auto;
        top: 50px;
        margin-bottom: -40px;
        z-index: 10;
        background: rgb(255,255,255);
        /*background: linear-gradient(180deg, rgba(255,255,255,1) 70%, rgba(255,255,255,0) 100%);*/
    }

    .admin-bar .breadcrumb-wrapper {
        top: 82px;
    }

}


@media (min-width: 1160px) {
        
    .breadcrumb-wrapper {
        top: 70px;
    }

    .admin-bar .breadcrumb-wrapper {
        top: 102px;
    }

}


.breadcrumb-navigation {
    margin: 0px auto;
    padding-top: 50px;
    padding-bottom: 10px;
    width: 92%;
    max-width: 1400px;
}



.pillows {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.pillows li {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 20px;
}


.pillows li a,
.pillows li span {
    display: block;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 300;
    color: #232323;
    text-decoration: none;
    transition: background-color 0.3s;
    outline: 0;
}

.breadcrumb-navigation .pillows li,
.breadcrumb-navigation .pillows span {
    white-space: nowrap;
}


.pillows li a {
    background-color: #E8F2F7;
}

.pillows li span {
    background-color: #f7f7f7;
}


.breadcrumb-navigation .pillows li:first-child {
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 300;
}


.pillows li a:hover,
.pillows li a.mPS2id-highlight {
    background-color: #BBD8E9;
}