/* === BASE STYLING === */
.tabbox {
    position: relative;
    margin: 0;
}

.tabbox>h5 {
    font-weight: bolder;
    margin: 0;
    padding: 0px 5px;
}

/* === TOP-LEVEL TABS (Main Navigation) === */
.tabbox>.tabbuttons {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.tabbox>.tabbuttons>a {
    flex-grow: 1;
    display: inline-table;
}

.tabbox>.tabbuttons>a>div {
    margin: 10px 0px 0px 0px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    padding: 5px 15px;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid #eee;
    background-color: #311;
    margin-right: 5px;
    width: auto;
    transition: all 0.3s ease-in-out;
}

.tabbox>.tabbuttons>a>div:hover {
    background-color: darkred;
}

/* === ACTIVE TAB STYLE === */
.tabbox>.tabbuttons>a>div.active {
    background-color: darkred;
    font-weight: bold;
}

/* === CONTENT CONTAINER === */
.tabbox .tabdatacontainer {
    width: 100%;
    padding: 20px; 
    border-width: 0px 1px 1px 1px;
    z-index: 20;
    background: #fff;
    margin: 10px 0;
    overflow: auto;
}

.tabbox .tabdatacontainer>div {
    display: none;
    padding: 20px 10px;
}

.tabbox .tabdatacontainer>div.active {
    display: block;
}

/* === NESTED TABS (Inside "Termine") === */
#termine .tabbuttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

#termine .tabbuttons a {
    flex-grow: 1;
    text-decoration: none;
}

#termine .tabbuttons a div {
    background-color: #311;
    color: white;
    padding: 5px 12px;
    margin: 5px;
    
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

#termine .tabbuttons a div:hover {
    background-color: darkred;
}

#termine .tabbuttons a div.active {
    background-color: darkred;
    font-weight: bold;
}

#termine .insidetab{
    margin-top: -20px;
}


#termine .insidetabcontent{
    margin-top: -35px;
}

/* === MOBILE RESPONSIVENESS === */
@media only screen and (max-width: 800px) {

    /* Top-Level Tabs */
    .tabbox>.tabbuttons {
        width: 100%;
        text-align: center;
        margin: 15px -7px;
        display: inline-block;
    }

    .tabbox>.tabbuttons>a>div {
        padding: 5px 7px;
        font-size: 12px;
        margin: 1px;
    }

    /* Nested Tabs (Inside "Termine") */
    #termine .tabbuttons {
        flex-direction: column;
        align-items: center;
    }

    #termine .tabbuttons a div {
        width: 90%;
    }

    /* Content Sections */
    .tabbox .tabdatacontainer {
        padding: 15px;
    }

    .photo {
        margin: 0px;
        width: 100%;
    }
}

/* === BOLD TEXT STYLE === */
.str {
    font-weight: bolder;
}

/* === OTHER ELEMENTS === */
dd {
    margin-bottom: 10px;
}

.photo {
    margin: 5px;
}
