/**********************
* GENERAL
**/
:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --text-light: #ffffff;
    --text-headline: #333;
    --text-dark: #000;
    --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, #0a2640 15%, #1a4772 100%);
    --gradient-turquoise: linear-gradient(180deg, #2f5f7a 15%, #4d88a7 100%);
    --gradient-orange: linear-gradient(180deg, #cb7104 15%, #b58851 100%);
    --gradient-red: linear-gradient(180deg, #5b1d25 15%, #c84550 100%);
}

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

body {
    margin: 0;
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--text-headline);
    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;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-headline);
    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;
}

/* BUTTON */
.button {
    font-size: 1rem;
    display: inline-block;
    margin: var(--spacing-unit) 0 0;
    padding: 0.6rem 1.3rem;
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    background: var(--gradient-blue);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.button:hover {
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.button--light,
.button--light:hover {
    color: #0a2640;
    background: var(--color-white);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.button-group.no-space .button {
    margin: 0;
}

/* 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;
    color: var(--text-headline);
}

/**********************
* 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;
}

.grid-2-col .button {
    margin-top: 0;
}

/**********************
* HEADER
**/
.site-header {
    position: relative;
    background: url("../../assets/img/BRP_Header.jpg") no-repeat center center;
    background-size: cover;
    height: 80vh;
    color: var(--text-light);
    z-index: 100;
}
/* dark gradient */
.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 40%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 40%);
    pointer-events: none;
    z-index: 1;
}

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

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

.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;
    z-index: 2;
}
.site-header .header-bar a {
    display: inline-block;
    height: 2.5rem;
}
.site-header .header-bar img {
    height: 100%;
    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: var(--text-light);
}
.section--blue h2 {
    color: var(--text-light);
}

.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;
    color: var(--text-dark);
    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;
}

/* 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: 10vh;
        left: calc(var(--spacing-unit) * 2)
    }

    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .button-group .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;
    }
    
}
