.tabs {
    border-radius: 8px;
    overflow: hidden;
    -webkit-box-shadow: 0 4px 4px -2px hsla(0, 0%, 0%, 0.5);
            box-shadow: 0 4px 4px -2px hsla(0, 0%, 0%, 0.5);
}

.tab {
    width: 100%;
    overflow: hidden;    
    color: white;
    background-color: var(--tab-bg);
}

.tab input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.tab-label,
.tab-content .tab-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 1em;
    font-weight: bold;
    background-color: var(--tab-bg-light);
    cursor: pointer;
}

.tab-content .tab-content .tab-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 1em;
    font-weight: normal;
    background-color: var(--tab-bg-sublight);
    cursor: pointer;
}

.tab-content .tab-label {
    border-radius: 8px;    border-radius: 0;  
    padding: 1em;
    font-weight: normal;
border-bottom: 1px solid var(--bg-color);
}


.tab-label:hover,
.tab-content .tab-content .tab-label:hover {
    background-color: var(--tab-bg);
}

.tab-label::after {
    content: "❯";
    width: 1em;
    height: 1em;
    text-align: center;
    -webkit-transition: all 0.35s;
    -o-transition: all 0.35s;
    transition: all 0.35s;
}

.tab-content,
.tab-content .tab-content,
.tab-content .tab-content .tab-content {
    max-height: 0;
    padding: 0;
    color: var(--white);
    -webkit-transition: all 0.35s;
    -o-transition: all 0.35s;
    transition: all 0.35s;
}

.tab-content .tab-content {
    max-height: 0;
    padding: 0;
    color: var(--white);
    -webkit-transition: all 0.35s;
    -o-transition: all 0.35s;
    transition: all 0.35s;
    overflow: hidden;
}

.tab-content .tab-content p,
.tab-content .tab-content .tab-content p {
    padding: 1em;
}

li.ohnecontent {
    opacity: 0.5;
}

li.ohnecontent .tab-content {
    opacity: 0;
}

.ohnecontent .tab-label {
    color: hsla(360, 100%, 100%, 0.3);
}

.ohnecontent .tab-label::after {
    content: " ";
}

.tab-close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    padding: 1em;
    font-size: 0.75em;
    background-color: var(--tab-bg-light);
    cursor: pointer;
}

.tab-close:hover {
    background-color: var(--tab-bg);
}

input:checked+.tab-label {
    background-color: var(--tab-bg-checked);
}

input:checked+.tab-label:hover {
    background-color: var(--tab-bg-hvr);
}

input:checked+.tab-label::after {
    -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
            transform: rotate(90deg);
}

input:checked~.tab-content {
    max-height: inherit;
    padding: 0;
}

input:checked~.tab-content input:checked~.tab-content {
    max-height: inherit;
    padding: 0;
}

input:checked~.tab-content input:checked~.tab-content input:checked~.tab-content {
    max-height: inherit;
    padding: 0;
}

.thema figure {
    position: relative;
}

.thema figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    padding: 0.5em;
    font-weight: bold;
    color: var(--bg-color-light);
    background-color: hsla(360, 100%, 100%, 0.7);
}

.thema img {
    border-radius: 8px;
}

.tab-content img {
    border-bottom-right-radius: 8px;
}

.tabs p {
    display: inline-block;
    margin: 0;
    padding: 1em;
    vertical-align: top;
}

.tabs ul {
    padding: 0;
    list-style: none;
}

.tabs ul li {
    margin-right: 1em;
    border-radius: 8px;
    padding: 0;
    background-color: var(--tab-bg-light);
}

.tabs ul li ul li {
    margin-right: 1em;
    border-radius: 8px;
    padding: 0;
}

.tabs ul li ul {
    background-color: var(--tab-bg-dark);
}

.tabs ul li ul li {
    margin: 0.5em 1em 0.5em 1em;
    padding: 0;
}

.tabs ul li ul li a {
    display: block;
    border-bottom: 1px solid var(--gray-dark);
    padding: 0.75em 0 0.25em 0;
}

.icon::before {
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem 1.5rem;
}

.tabs a.icon {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--white);
}

.tabs a.icon:hover {
    font-weight: normal;
    text-decoration: none;
}

input:checked+.tab-label {
    background-color: var(--tab-bg-checked) !important;
}

input:not(:checked)+.tab-label.nohighlight {
    background-color: var(--tab-bg-light) !important;
}

input:checked+.tab-label:hover,
input:not(:checked)+.tab-label.nohighlight:hover {
    background-color: var(--tab-bg-hvr) !important;
}

@media print {
    .tabs,
    .tab,
    .tab-content .tab-content {
        overflow: inherit !important;
    }

    .tabs,
    .tab,
    .tab-label,
    .tab-content .tab-label,
    .tab-content .tab-content .tab-label,
    .tab-content,
    .tab-content .tab-content,
    .tab-content .tab-content .tab-content,
    .ohnecontent .tab-label,
    .tab-close,
    input:checked+.tab-label,
    .thema figcaption,
    .thema img,
    .tabs ul li,
    .tabs ul li ul li,
    .tabs ul li ul,
    .tabs a.icon,
    input:checked+.tab-label,
    input:not(:checked)+.tab-label.nohighlight {
        opacity: 1;
        margin-right: 0.5em;
        border-radius: 0 !important;
        -webkit-box-shadow: none !important;
                box-shadow: none !important;
        color: black !important;
        background: white !important;

    }

    .tab-content,
    .tab-content .tab-content,
    .tab-content .tab-content .tab-content {
        max-height: inherit !important;
    }

    li.ohnecontent,
    li.ohnecontent .tab-content {
        opacity: 0.3 !important;
    }

    .tab-content ul,
    .tabs ul li ul li {
        margin: 0 !important;
        padding: 0 !important;
    }
    .tabs ul li ul li a {
        border-bottom: 0;
    }

    .tab-label::after {
        display: none;
    }
    .tab-label a::before {
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
    }

}