/* ============================================================= */
/* Alpenland Tabs
/* ============================================================= */

/* ------------------------------------------------------------- */
/* Backend
/* ------------------------------------------------------------- */

.alpenland-tabs.is-admin {
    border: solid 1px #eee;
    padding: 0 2em;
    margin-top: 2em;
    margin-bottom: 2em;
}

.alpenland-tabs.is-admin > .block-label {
    position: absolute;
    bottom: 100%;
    right: 10px;
    background-color: #eee;
    padding: 3px 7px;
    font-size: 10px;
}

.alpenland-tabs.is-admin .alpenland-tabs-item {
    border: solid 1px #eee;
    padding: 2em;
    margin-top: 2em;
    margin-bottom: 2em;
}

.alpenland-tabs.is-admin .alpenland-tabs-item > .block-label {
    position: absolute;
    bottom: 100%;
    right: 10px;
    background-color: #eee;
    padding: 3px 7px;
    font-size: 10px;
}

/* ------------------------------------------------------------- */
/* Frontend
/* ------------------------------------------------------------- */


/* Tabs
/* ------------------------------------------------------------- */

.alpenland-tab-contents {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.alpenland-tabs .alpenland-tabs-links {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    padding: 40px 0 0 0;
}

.alpenland-tabs.tabs-align-left .alpenland-tabs-links {
    justify-content: flex-start;
}
.alpenland-tabs.tabs-align-center .alpenland-tabs-links {
    justify-content: center;
}
.alpenland-tabs.tabs-align-right .alpenland-tabs-links {
    justify-content: flex-end;
}

.alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link {
    flex: 0 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: solid 2px transparent;
    font-size: 1.25em;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    padding: 1em 0.75em;
    transition: all 0.15s linear;
    cursor: pointer;
}

.alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link {
    color: #ffffff;
	background-color: rgba(189, 158, 119, 0.70);
}

.alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link:hover,
.alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link.active {
	color: #ffffff;
    background-color: #bd9e77;
}

.alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link h4 {
    /*font-size: var(--wp--preset--font-size--x-large);*/
}

.alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link h4,
.alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link h5 {
    margin: 0;
}

/* Item
/* ------------------------------------------------------------- */

.alpenland-tabs .alpenland-tabs-item {
    padding: 0;
}

.alpenland-tabs:not(.is-admin) .alpenland-tabs-item {
    display: none;
}

.alpenland-tabs:not(.is-admin) .alpenland-tabs-item.active {
    display: block;
}


/* Item content
/* ------------------------------------------------------------- */

.alpenland-tabs .alpenland-tabs-item {
    background-color: #f8f5f0;
    border: 1px solid #bd9e77;
    padding: 20px 40px;
}



@media (min-width: 768px) {

    .alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link {
        flex: 0 1 49%;
        font-size: 1.1em;
        writing-mode: unset;
        transform: rotate(0deg);
    }

}


@media (min-width: 1200px) {

    .alpenland-tabs .alpenland-tabs-links {
        flex-flow: row nowrap;
    }

    .alpenland-tabs .alpenland-tabs-links .alpenland-tabs-link {
        flex: 0 1 100%;
        font-size: 0.9em;
    }

    .alpenland-tab-contents .alpenland-tab-content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

}

@media (min-width: 1920px) {

    .alpenland-tab-contents {
        width: 100%;
    }

    .alpenland-tab-contents .alpenland-tab-content {
        flex: 0 1 30%;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .alpenland-tab-contents .alpenland-tabs-wrapper {
        flex: 0 1 70%;
    }

}

