:root {
    --light-blue: #EDF3FF;
    --dark-blue: #154194;
    --darker-blue: #113476;
    --gray: #3C4658;
    --border-radius: 8px;
}

@font-face {
    font-family: 'SourceSansPro';
    src: url('../systemfonts/SourceSansPro-Regular.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'SourceSansPro';
    src: url('../systemfonts/SourceSansPro-Semibold.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'SourceSansPro';
    src: url('../systemfonts/SourceSansPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

body{
    font-family: 'SourceSansPro', sans-serif;
    font-weight: 300;
    color: var(--gray);
    margin: 0;
    padding: 0;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    z-index: 10;
}

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-blue);
    flex-direction: row;
    font-size: 1em;
    font-weight: bold;
}

h1{
    padding: 0;
    margin: 0;
    font-size: 60px;
    max-width: 750px;
    font-weight: bold;
    text-align: center;
}

a, a:visited{
    color: inherit;
}

h2{
    font-size: 32px;
    margin: 0 0 16px 0;
    padding: 0;
    font-weight: bold;
}


a.button{
    background-color: var(--dark-blue);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid var(--dark-blue);

    img{
        border-radius: 0;
    }
}
a.button:hover{
    background-color: var(--darker-blue);
}

a.button-outline{
    background-color: white;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}
a.button-outline:hover{
    background-color: var(--light-blue);
}


section{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 0;

    img{
        border-radius: var(--border-radius);
    }
}

.bg-light-blue{
    background-color: var(--light-blue);
}

.row{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

#b {
    padding: 10px;
    
    img{
        width: 100%;
        max-width: 900px;
        border: 5px solid black;
    }
}

#c{
    .row div{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    img{
        margin-bottom: 20px;
    }
}

#d{
    text-align: center;

    div{
        max-width: 650px;
    }

    .description{

        max-width: 500px;
        h3{

            margin-bottom: 8px;
        }

        p{
            margin-top: 0;
        }
    }

    .row{
        text-align: left;
        margin-bottom: 40px;
    }

    p a,p a:visited{
        color: inherit;
    }

    img{
        height: 86px;
        width: auto;
    }
}

#e{

    .title{
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        width: 300px;
        height: 50px;
        
        .circle{
            background-color: #B16FAB;
            color: white;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1em;
            margin-right: 20px;
        }

        .text{
            width: 250px;
        }
    }

    .image{
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--border-radius);
        border: 2px solid #E6E8EC;  
    }

    .row{
        margin-bottom: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
}


.qa{

    border-bottom: 2px solid #E6E8EC;
    padding: 30px 30px 30px 0;

    .question{
        position: relative;
        cursor: pointer;
    }

    .question::after{
        content: url(/assets/icons/chevron-up.svg);
        transform: rotate(180deg);
        position: absolute;
        color: black;
        right: -30px;
        top: 3px;
    }

    .answer{
        transform: scaleY(0);
        transform-origin: top;
        height: 0;
        max-width: 700px;

        p{
            a{
                text-decoration: underline;
                font-weight: semibold;
                color: inherit;
            }
        }
    }
}

.qa.active{

    .question::after{
        transform: rotate(0deg);
    }

    .answer{
        transform: scaleY(1);
        height: auto;
        transition: all 0.2s;
    }
}



footer{
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: 70px;
    padding: 40px 0;
    max-width: 1200px;

    h4{
        color: var(--dark-blue);
        margin: 0 0 1em 0;
        font-size: 1em;
    }

    div{
        display: flex;
        flex-direction: column;
        font-size: 0.8em;
    }

    a, a:visited{
        color: var(--gray);
        text-decoration: none;
        margin-bottom: 10px;
    }
    a:hover{
        color: var(--dark-blue);
        text-decoration: underline;
    }
}

.beta{
    background-color: #BE88BA;
    color: white;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 10px;
}

img#gefoerdert{
    height: 120px;
}

.blue-bg{
    background-color: var(--light-blue);
    padding: 30px 0 30px 0;
    margin-top: 2em;
    width: 100%;
    text-align: center;
    color: var(--dark-blue);

    a{
        color: var(--dark-blue);
    }
}

#desktop-only-hint{
    display: none;
}


@media (max-width: 768px) {
    body{
        padding: 0 20px;
    }
    header a.button{
        display: none;
    }

    h2, .description{
        text-align: center;
    }

    footer{
        flex-direction: column;
        padding-left: 20px;
        gap: 20px;

        img{
            width: 100px;
        }
    }

    #b,#d,.blue-bg{
        margin-inline: -20px;
        padding-inline: 20px;
    }

    #c img{
        width: 95%;
    }

    #d{
        h2{
            padding-left: 0;
            margin-bottom: 40px;
        }

        .row{
            gap: 0;
        }
    }

    #e .image{
        height: auto;
        aspect-ratio: 1/1;
    }

    .answer{
        width: 100%;
    }

    .soft-break::after{
        content: "\A";
        white-space: pre;
    }

    footer .logo{
        img{
            width: auto;
        }
        transform: scale(1);
        transform-origin: left;
    }

    #gefoerdert{
        height: auto;
        width: 190px;
    }

    #desktop-only-hint{
        display: flex;
        transition: all 0.5s;
        justify-content: center;
        flex-direction: column;
        position: fixed;
        bottom: -200px;
        left: 0;
        width: 100vw;
        background: var(--dark-blue);
        color: white;
        padding: 25px;
        z-index: 1000;
    }

    #desktop-only-hint-close{
        margin-top: 20px;
        width: calc( 100% - 40px);
        background: white;
        color: var(--dark-blue);
        padding: 10px;
        border: 0;
    }
}


@media (max-width: 1024px) {
    h1{
        font-size: 40px;
    }

   #d .row{
       flex-direction: column;
       align-items: center;

       img{
        max-width: 40px;
        height: 40px;
       }

       .description{
            max-width: 80%;
       }
   }
   
}