/**********************
* GENERAL
**/
:root {
    --color-white: #ffffff;
    --font-base: "Manrope", "Roboto", Helvetica, Arial, sans-serif;
    --spacing-unit: 1rem;
    --box-shadow: 6px 6px 18px 0px rgba(0, 0, 0, 0.3);
    --border-radius: 1vw;
    --gradient-blue: linear-gradient(180deg, #1a4772 10%, #0a2640 90%);
    --gradient-turquoise: linear-gradient(180deg, #4d88a7 10%, #2f5f7a 90%);
    --gradient-orange: linear-gradient(180deg, #b58851 10%, #cb7104 90%);
    --gradient-red: linear-gradient(180deg, #c84550 10%, #5b1d25 90%);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-base);
    line-height: 1.6;
    font-size: 1.1rem;
    width: 100%;
    overflow-x: hidden;
}

main {
    width: 100%;
}

/**********************
* TYPO
**/
h1, h2, h3 {
    margin: 0 0 calc(var(--spacing-unit)*2) 0;
    font-weight: bold;
}

h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: bolder;
    text-shadow: 1px 1px 10px black;
}

h2 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

p {
    margin: 0 0 var(--spacing-unit) 0;
}

ol > li {
    padding: 0.6em;
}

a {
    text-decoration: none;
    color: #2ea3f2;
}

a:hover {
    text-decoration: underline;
}

/* LIST */
.custom-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.custom-list li {
    position: relative;
    padding-left: 1.4rem;
}
.custom-list li::before {
    content: "—";
    position: absolute;
    left: 0;
}

/**********************
* COMPONENTS
**/
.grid-2-col {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
}

.grid-2-col p {
    margin-bottom: 0;
}

.header-actions {
    width: 80%;
    grid-template-columns: repeat(3, auto);
    gap: 1rem;
    justify-content: start;
    margin-top: 1em;
}

.action-button {
    background: var(--gradient-blue);
    color: var(--color-white);
    padding: 0.4em 1.6em;
    border-radius: 0.5rem;
    position: relative;
    font-weight: 400;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: var(--box-shadow);
}

.action-button:hover {
    text-decoration: none;
    color: var(--color-white);
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.action-button .hidden-arrow {
    position: absolute;
    right: 50%;
    opacity: 0;
    transition: all 0.5s;
}

.action-button:hover .hidden-arrow {
    right: 10%;
    opacity: 1;
}

.lighter-blue-bg {
    background-color: #1a4772;
}

.hover-light-dark-blue-color:hover {
    color: #008edb;
}

/**********************
* HEADER
**/
.site-header {
    position: relative;
    background: url("../img/BRP_Header.jpg") no-repeat center center;
    background-size: cover;
    height: 80vh;
    color: var(--color-white);
}

.site-header .header-content {
    position: absolute;
    left: 10vw;
    bottom: 15vh;
}

.site-header p {
    display: block;
    color: #eee;
    font-size: 1.5rem;
    margin: 0 0.25rem 0 0;
    font-weight: 100;
}

.site-header .header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
}

.site-header .header-bar img {
    height: 2.5rem;
    width: auto;
}

/**********************
* SECTIONS
**/
.section {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
    text-align: left;
    min-height: 70vh;
}

.section--white {
    background-color: var(--color-white);
}

.section--blue {
    background: var(--gradient-blue);
    color: #fff;
}
.section--blue h2 {
    color: #fff;
}

.section--slider {
    padding-left: 0;
    padding-right: 0;
}

.section--slider .container {
    padding-left: calc(var(--spacing-unit) * 2);
    padding-right: calc(var(--spacing-unit) * 2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container h2 {
    position: relative;
    z-index: 11;
}

/* white section content box */
.content-box-wrapper {
    position: relative;
}

.content-box-wrapper h2 {
    position: relative;
    z-index: 10;
}

.content-box {
    position: relative;
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    z-index: 10;
    color: #000;
}

/* decorative image inside content box */
.content-box-wrapper .content-decor {
    position: absolute;
    top: -12vw;
    right: -14vw;
    width: 50vw;
    height: 40vw;
    z-index: 5;
    user-select: none;
    pointer-events: none;
}

/**********************
* SPLIDE Overrides
**/
.splide__slide__animation {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.splide__slide__animation::-webkit-scrollbar {
    display: none;
}

/**********************
* DATE TABLE (TERMINE)
**/
.date-table {
    width: 100%;
    border-collapse: collapse;
}

.date-table th,
.date-table td {
    padding: 0.6rem 1rem;
    vertical-align: top;
    text-align: left;
}

.date-table th {
    white-space: nowrap;
    font-weight: bold;
    color: #555;
}

.date-table td[rowspan] {
    border-bottom: 2px solid #ccc;
}

@media (min-width: 768px) {
    .date-table tr.date-group-end td {
        border-bottom: 2px solid #ccc;
    }
}

.date-table tbody tr td[colspan="4"] {
    text-align: center;
    background-color: transparent;
    color: #555;
    font-weight: bold;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 15px;
}

.date-table strong,
.date-table b {
    color: #555;
    font-weight: bold;
}

.mobile-only-label {
    display: none;
}
.mobile-only {
    display: none !important;
}

/**********************
* MEDIA QUERIES (RESPONSIVE)
**/
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    :root {
        font-size: 80%;
        --border-radius: 1rem;
    }


    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .site-header {
        height: 50vh;
    }

    .site-header .header-content {
        bottom: 5vh;
        left: calc(var(--spacing-unit) * 2)
    }

    .header-actions {
        grid-template-columns: auto;
        gap: 0.75rem;
    }

    .header-actions .action-button {
        text-align: center;
    }

    .site-header .header-content {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 10vh;
    }

    .site-header h1 {
        font-size: 2.1rem;
        margin-bottom: 1rem;
    }

    .mobile-only {
        display: flex !important;
    }

    .container-date .content-box {
        background-color: transparent;
        padding: 0;
        box-shadow: unset;
        border-radius: unset;
    }
    .container-date .content-decor {
        display: none;
    }

    .date-table, 
    .date-table tbody, 
    .date-table tr, 
    .date-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .date-table thead {
        display: none; 
    }

    .date-table tr {
        margin-bottom: 15px;
        border-radius: 8px;
        background: transparent;
    }

    .date-table td[rowspan] {
        text-align: center !important;
        background-color: transparent !important;
        font-weight: bold;
        padding: 15px !important;
        border-bottom: 1px solid #ccc;
        margin-top: 30px;
    }

    .date-table td[rowspan]::before {
        display: none !important;
    }

    .date-table td[data-label="Fach"]:not([rowspan]) {
        display: none !important;
    }

    .date-table td:not([rowspan]) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
        background-color: #fff;
    }

     .date-table td:not([rowspan]):first-of-type {
        border-top: 1px solid #eee;
    }

    .date-table td:not([rowspan])::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
    }

    .date-table td[colspan="4"] {
        display: block;
        text-align: center;
        background-color: transparent !important;
        padding: 15px;
        border-top: 2px solid #ccc;
        border-bottom: 2px solid #ccc;
    }
    
    .date-table td[colspan="4"]::before {
        display: none;
    }
    
}
