﻿.faq {
    max-width: 100%;
    background-color: unset;
    padding: 0;
    margin: 0;
    margin-bottom: 8em;
}

.faq .title{
    margin-bottom: 0.6em;
}

.faq .item {
    margin-bottom: 1em;
}

.faq .item:nth-child(4n+1) {
    background-color: var(--theme-color-orange);
}

.faq .item:nth-child(4n+2) {
    background-color: var(--theme-color-blue);
}

.faq .item:nth-child(4n+3) {
    background-color: var(--theme-color-red);
}

.faq .item:nth-child(4n+4) {
    background-color: var(--theme-color-violet);
}

.faq .item .answerPanel {
    background-color: transparent;
    grid-template-rows: 0fr;
}

.faq .item .answerPanel > div {
    
    margin-left: 1.2em;
    margin-top: 0em;
    margin-right: 1em;
    margin-bottom: 1em;
    line-height: 1.6em;
    color: #ffffff;
}

.faq .item .answerPanel p {
    margin-left: 0.3em;
}

.faq .item .answerPanel img {
    background-color: #ffffff;
    clip-path: circle();
    float: right;
    width: 10%;
    shape-outside: circle();
    shape-margin: 0.5em;
    margin-top: -1em;
    margin-left: 0.5em; /* shape-margin läuft nicht immer problemlos */
}

.faq .item .answerPanel .bottomImage {
    
}

@media (max-width: 62em) {
    .faq .item .answerPanel img {
         width: 20%;
    }
}

@media (max-width: 43em) {
    .faq .item .answerPanel img {
        width: 30%;
    }
}

@media (max-width: 26em) {
    .faq .item .answerPanel img {
        width: 40%;
    }
}

.faq article.item h3.question button.trigger {
    font-size: 1.5em;
    text-align: left;
    color: #ffffff;
    border: 0px;
    padding-top: 1.0em;
    padding-left: 1em;
    padding-bottom: 1.0em;
    padding-right: 1em;    
}

@media (max-width: 82em) {
    .faq article.item h3.question button.trigger {
        font-size: 1.3em;
    }
}

.faq article.item h3.question button.trigger .icon {
    padding: 0.3em;
    
    border-radius: 50%;
    border: 2px solid transparent;
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.faq article.item h3.question button.trigger .icon::before,
.faq article.item h3.question button.trigger .icon::after {
    background: #ffffff;
    height: 2px;
    inset: 43% 0 auto 0;
}

.faq article.item h3.question button.trigger .icon::after {
    transform: rotate(-90deg); 
}
