html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #DDD9D0;
}

a {
    text-decoration: none;
    color: #363434;
    border-bottom: 1px solid;
}

a:hover {
    color: #422fff;
    text-decoration: none;
}

h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;

}

@media only screen and (max-width: 800px) {
    h1 {
        font-size: 20px;
        margin-bottom: 20px;
        line-height: 29px;
        font-weight: 600;
    }
}

h3 {
    font-size: 17px;
}


h4 {
    font-size: 16px;
    font-weight: 600;
}

@media only screen and (min-width: 800px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 25px;
    }

    h4 {
        font-size: 20px;
        font-weight: 600;
    }
}

ol li,
ul li {
    margin-bottom: 10px;
}


/* header */
.header {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px;
}

@media only screen and (min-width: 800px) {
    .header {
        padding: 30px;
        flex-direction: initial;
        align-items: initial;
    }
}

.logo {
    position: absolute;
    left: 20px;
    margin-right: auto;
    border: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media only screen and (min-width: 80px) {
    .logo {
        position: initial;
        left: initial;
    }
}

.logo:hover {
    text-decoration: none;
}

.nav {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 20px;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

@media only screen and (min-width: 800px) {
    .nav {
        right: 90px;
        margin-bottom: 0;
        justify-content: initial;
        flex-direction: initial;
        text-align: initial;

        width: initial;
        align-items: initial;
        margin-top: initial;
    }
}

.nav-item {
    margin-top: 7px;
    margin-left: 25px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

@media only screen and (min-width: 800px) {
    .nav-item {
        margin-top: initial;
    }
}

.nav-item:hover {
    text-decoration: none;
    color: #422fff;
    border-bottom: 2px solid;
}

.nav-item.is-active {
    border-bottom: 2px solid;
    color: #422fff;
}

.languageSwitcher {
    position: absolute;
    /* display: none; */
    margin-top: 3px;
    margin-left: 25px;

    border: 0;
    font-weight: 600;
}

@media only screen and (min-width: 800px) {
    .languageSwitcher {
        position: relative;
        margin-top: initial;
    }
}

.languageSwitcher:hover {
    text-decoration: none;
}



/* general elements */
/* main {
    min-height: 64vh;
    margin-top: 20px;
} */

.section {
    margin-top: 70px;
}

.container {
    width: 100%;
    max-width: 900px;
    padding-left: 20px;
    margin-right: initial;
    margin-left: initial;
    text-align: left;
}

@media only screen and (min-width: 800px) {
    .container {
        padding-left: 30px;
    }
}

.container + .container {
    margin-top: 50px;
}


/* footer */

.footer {
    display: flex;
    flex-direction: column;
    bottom: 0;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    text-align: right;
    align-items: flex-end;
}

.footer--startseite {
    position: absolute;
}

@media only screen and (min-width: 800px) {
    .footer {
        display: initial;
        padding: 30px;
        align-items: initial;
    }
}

.footer-item {
    text-decoration: none;
    margin: 3px 10px;
    border: 2px solid transparent;
    width: min-content;
}

@media only screen and (min-width: 800px) {
    .footer-item {
        margin: 0 10px;
        padding-bottom: 5px;
        width: initial;
    }
    .footer-item:last-of-type {
        margin-right: 0;
    }
    
}

.footer-item:hover {
    border-bottom: 2px solid;
    text-decoration: none;
}

.footer-item.is-active {
    color: #422fff;
    border-bottom: 2px solid #422fff;
}


/* hero startseite img */
.heroBgimg {
    position: fixed;
    min-width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.7;
    z-index: -1;
}


/* accordion */
.card {
    background-color: transparent;
    border: 0;
}

.card .btn {
    position: relative;
    padding-left: 0;
}

.card-body {
    color: #363434;
}

.btn-link {
    text-align: left;
    color: #363434;
}

.btn-link:hover {
    color: #363434;
}

.card .btn::after {
    height: 10px;
    width: 12px;
    display: inline-block;
    content: "";
    background-image: url('data:image/svg+xml,<svg fill="%23000000" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 330 330" xml:space="preserve"><path id="XMLID_222_" d="M250.606,154.389l-150-149.996c-5.857-5.858-15.355-5.858-21.213,0.001c-5.857,5.858-5.857,15.355,0.001,21.213l139.393,139.39L79.393,304.394c-5.857,5.858-5.857,15.355,0.001,21.213C82.322,328.536,86.161,330,90,330s7.678-1.464,10.607-4.394l149.999-150.004c2.814-2.813,4.394-6.628,4.394-10.606C255,161.018,253.42,157.202,250.606,154.389z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-90deg);
    margin-left: 5px;
}

.card .btn.collapsed::after {
    transform: rotate(90deg);
}

.flexible-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    margin: -0.5rem;
}

.flexible-grid > li {
    padding: 0.5rem;
    width: 100%;
}

.tile-link {
    /*aspect-ratio: 6 / 5;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-decoration: none;
    border-bottom: none;
    color: #333;
    background: #F4F1EB;
    padding: 1rem;
    height: 100%;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;

    .tile__heading {
        font-size: 25px;
    }
}

.tile__hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 1rem;
    color: #ffffff;
}

.tile-link:hover, .tile-link:focus {
    background: #422fff;
    color: #ffffff;
}

.tile-link:hover .tile__hidden, .tile-link:focus .tile__hidden {
    max-height: 300px;
}

/* Responsive columns */
@media (min-width: 400px) {
    .flexible-grid > li {
        width: 50%;
    }
}

@media (min-width: 800px) {
    .flexible-grid > li {
        width: 33.3333%;
    }
}
