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

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

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;
    text-align: center;
}

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

p {
    margin: 0 0 var(--spacing-unit) 0;
}
a {
    color: #107acb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}


/* BUTTON */
.button {
    font-size: 1.3rem;
    display: inline-block;
    margin: var(--spacing-unit) 0 0;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    color: var(--color-white);
    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(--color-white);
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.08);
}



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





/**********************
* HEADER
**/
.site-header {
    position: relative;
    background: url("../headerbg.png") no-repeat center center;
    background-size: cover;
    height: 80vh;
    color: var(--color-white);
    z-index: 100;
}

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

.site-header p {
    display: block;
    color: #ccc;
    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;
}
.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: 60vh;
}

/* General */
.section--white {
    background-color: var(--color-white);
}
/* Informatik */
.section--blue {
    background: var(--gradient-blue);
    color: var(--color-white);
}
/* IT-Medientechnik */
.section--turquoise {
    background: var(--gradient-turquoise);
    color: var(--color-white);
}
/* Medizintechnik */
.section--orange {
    background: var(--gradient-orange);
    color: var(--color-white);
}
/* Elektronik */
.section--red {
    background: var(--gradient-red);
    color: var(--color-white);
}


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



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

.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;
    margin-bottom: 2.5rem;
}

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




/**********************
* CRITERIA TABLE
**/
.criteria-table {
    width: 100%;
    border-collapse: collapse;
}

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

.criteria-table th {
    white-space: nowrap;
    font-weight: bold;
    width: 11rem;
    color: #555;
}

.criteria-table tr:not(.criteria-spacer) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.criteria-table .criteria-spacer td {
    padding: 0.5rem 0;
    border: none;
}


@media (max-width: 768px) {
    :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)
    }

    .section {
        min-height: auto;
        padding-top: calc(var(--spacing-unit) * 3);
        padding-bottom: calc(var(--spacing-unit) * 3);
    }

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

    .content-box {
        padding: calc(var(--spacing-unit) * 1.5);
        border-radius: var(--border-radius);
    }

    .content-box-wrapper .content-decor {
        top: -15vw;
        right: -30vw;
        width: 80vw;
        height: 60vw;
    }

    .criteria-table,
    .criteria-table tbody,
    .criteria-table tr,
    .criteria-table th,
    .criteria-table td {
        display: block;
        width: 100%;
    }

    .criteria-table tr:not(.criteria-spacer) {
        padding: 0.35rem 0;
    }

    .criteria-table th {
        width: auto;
        white-space: normal;
        padding: 0.45rem 0.75rem 0.2rem;
    }

    .criteria-table td {
        padding: 0 0.75rem 0.55rem;
    }

    .criteria-table .criteria-spacer {
        display: none;
    }
}


/**********************
* CONTACT
**/
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-card {
    padding: 1.25rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
}

.contact-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.45);
}

.contact-name {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-role {
    margin: 0 0 0.5rem;
    color: #d9ecff;
}

.contact-card a {
    color: #fff;
    text-decoration: none;
}

.contact-card a:hover {
    color: #fff;
    filter: brightness(1.08);
}