/**************************
* Konfigurations-Formular
**************************/
.sbb-configurator__form {
    background:#c8c8c8;
    color:var(--enfold-alternate-color-color);
}

.sbb-custom-list ol.sbb-configurator__list-headline,
.sbb-custom-list ol.sbb-request__list-headline {
    margin-bottom:.5em;
    text-transform:uppercase;
}
.sbb-custom-list ol.sbb-configurator__list-headline li::before,
.sbb-custom-list ol.sbb-request__list-headline li::before {
    background-image: url("/wp-content/uploads/2026/04/SBB-Einzelelement_dunkelgrau.svg");
}

.sbb-configurator__panel {
    background: #f4f4f4;
    padding: 32px;
}

.sbb-configurator__panel h2 {
    margin-top: 0;
}

#top .sbb-configurator__form .flex_column_table {
    float:none;
}

#top .sbb-configurator__panel label {
    display: block;
    margin-bottom:.5em;
    font-weight: 400;
}

#top .sbb-configurator__panel input,
#top .sbb-configurator__panel select,
#top .sbb-configurator__panel textarea {
    display: block;
    width: 100%;
    margin-top:0em;
    padding:10px 13px;
    background-color:#fff !important;
    margin-bottom:0;
}
#top .sbb-configurator__panel .sbb-field-checkbox {
    display:flex;
    align-items: center;
}
#top .sbb-configurator__panel input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    padding:0;
    margin-top:0;
}

#top .sbb-configurator__button {
    margin-top:1em;
    display: inline-block;
    background: #c71920;
    border-radius: 2px;
    color: #fff;
    padding:.4em .6em;
    text-decoration: none;
    font-weight: 400;
}

#top .sbb-configurator__panel .sbb-field,
#top .sbb-configurator__panel .sbb-dimensions,
#top .sbb-configurator__panel .sbb-hint {
    display: none;
}

#top .sbb-field.is-visible label,
#top .sbb-dimensions.is-visible,
#top .sbb-hint.is-visible {
    display: block;
}
#top .sbb-field-checkbox.is-visible {
    display:flex;
}
.sbb-hint {
    position: relative;
    top:-.5em;
    margin: -6px 0 0 calc(1em + 14px);
    font-size: .8em;
    color: var(--enfold-main-color-primary);
}

#top .sbb-dimensions {
    margin-left:.55em;
    padding-left:.5em;
    padding-bottom:.35em;
    border-left:5px solid var(--enfold-main-color-border);
    position:relative;
    top:-.5em;
    border-bottom-left-radius: 5px;
    line-height: 1.3em;
}
#top .sbb-dimensions::after {
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    max-width:50px;
    width:10%;
    height:5px;
    background:var(--enfold-main-color-border);
}
#sbb-custom-color-field {
    padding-top:.5em;
}
@media only screen and (max-width: 989.9px) {
    #top #wrap_all .avia-section.sbb-module-configurator .template-page.content .sbb-configurator__form .flex_column,
    #top #wrap_all .avia-section.sbb-module-configurator .template-page.content .sbb-request__form .flex_column {
        margin-bottom:0
    }
}

/*********
* Grafik
*********/
.sbb-configurator__visual {
    position: relative;
}

.sbb-configurator__scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width:900px;
    margin:0 auto;
}

.sbb-layer {
    position: absolute;
    display:block;
    margin-left:auto;
    inset: 0;
    width: auto;
    height: 100%;
    pointer-events: none;
}

.sbb-layer--tank {
    z-index: 10;
    position: relative;
    width: 100%;
    height: auto;
}
.sbb-layer--tank-top {
    z-index: 12;
}
.sbb-layer--tank-bottom {
    z-index: 12;
}
.sbb-layer:not(.sbb-layer--tank) {
    position: absolute;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.sbb-layer-mask--freezone,
.sbb-layer-mask--deadzone {
    position: absolute;
    left:0;
    width:100%;
    overflow: hidden;
    bottom:0;
    top:17%;
    z-index:11;
}
.sbb-layer-mask--deadzone {
    bottom:4%;
    top:0;
}

.sbb-layer--freezone {
    top:-25%;
    bottom:auto;
    left:0;
    height:auto;
    width:100%;
    z-index: 1;
    transition:
        transform 0.4s ease,
        opacity 0.3s ease;
}

.sbb-layer--deadzone {
    top:auto;
    bottom:-27%;
    left:0;
    height:auto;
    width:100%;
    z-index: 1;
    transition:
        transform 0.4s ease,
        opacity 0.3s ease;
}

.sbb-layer-tank-var2 {
    display:none;
}

.sbb-layer-desc,
.sbb-layer-info {
    position:absolute;
    z-index:15;
    top:0;
    margin-left:47%;
    width:auto;
    text-align: center;
    transform: scale(.9);
    transition:all .25s ease-in-out;
}
.sbb-layer-desc:hover {
    transform: scale(1.1);
    cursor: default;
}
.sbb-layer-desc--freezone,
.sbb-layer-info--freezone {
    top:24%;
}
.sbb-layer-info--volume,
.sbb-layer-desc--volume {
    top:50%;
}
.sbb-layer-info--deadzone,
.sbb-layer-desc--deadzone {
    top:88%;
}
.sbb-layer-info {
    margin-left:62%;
}
.sbb-layer-info > span:not(.sbb-layer-info-txt) {
    display:block;
    width:1.5em;
    height:1.5em;
    line-height:1.5em;
    background:var(--enfold-main-color-primary);
    border-radius: 50%;
    color:#ffffff;
    text-align: center;
    font-weight: 700;
    opacity: .7;
    transform: scale(.9);
    transition:all .25s ease-in-out;
}
.sbb-layer-info:hover > span:not(.sbb-layer-info-txt) {
    transform: scale(1.1);
    opacity: 1;
    cursor: help;
}
.sbb-layer-info > span.sbb-layer-info-txt {
    position:absolute;
    top:-.5em;
    left:0;
    margin-left:64%;
    transform: translateX(-50%) scale(.15);
    background:var(--enfold-main-color-primary);
    color:#fff;
    border-radius: 2px;
    padding:.2em .6em;
    opacity: 0;
    transition:all .25s ease-in-out;
    z-index:1;
}
.sbb-layer-info:hover > span.sbb-layer-info-txt {
    top:-2.5em;
    transform: translateX(-50%) scale(1);
    opacity: 1;
}


/***************************************
* Tabelle der möglichen Behältergrößen
***************************************/
.sbb-configurator__table {
}
.sbb-configurator__table-panel {
    padding:0 0 50px 0;
}
.sbb-size-table-wrap {
    overflow-x: auto;
    margin-top: .5em;
}

#top .sbb-size-table {
    background: none;
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
}

.sbb-size-table th,
.sbb-size-table td {
    border: 1px solid #ddd;
    padding: 3px 5px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1.4em;
}

#top .sbb-size-table th {
    background: #f4f4f4;
    font-weight: 700;
    text-transform: none;
}
#top .sbb-size-table tbody tr {
    background:none;
    color:var(--enfold-alternate-color-color);
}

#top .sbb-size-table td.is-match {
    background: #c71920;
    color: #fff;
    font-weight: 700;
}

#top .sbb-size-table td {
    cursor: not-allowed;
}
#top .sbb-size-table td.is-match {
    cursor: pointer;
}

#top .sbb-size-table tr.sbb-size-table-headline-empty,
#top .sbb-size-table tr.sbb-size-table-headline-empty th.sbb-size-table-headline-empty,
#top .sbb-size-table tr th.sbb-size-table-vertical-headline {
    border:none;
    background:none;
}
#top .sbb-size-table tr.sbb-size-table-headline {
    background:none;
}
#top .sbb-size-table tr.sbb-size-table-headline th {
    border:none;
    text-align: left;
    color:var(--enfold-alternate-color-color);
    font-weight:400;
    padding-bottom:0;
    background: none;
}
#top .sbb-size-table tr th.sbb-size-table-vertical-headline {
    font-weight: 400;
    color:var(--enfold-alternate-color-color);
    position: relative;
    width:1.5em;
    min-width:1.5em;
    max-width:1.5em;
    padding:0;
    vertical-align: top;
}
#top .sbb-size-table .sbb-size-table-vertical-wrapper {
    position: absolute;
    top: 5px;
    left: 0px;
    width:auto;
}
#top .sbb-size-table .sbb-size-table-vertical-wrapper span {
    display:block;

    transform:rotate(-90deg) translateX(-100%);
    transform-origin: left top;

    white-space: nowrap;
}

/**************************
* Modal (aus der Tabelle)
**************************/
.sbb-config-modal {
    display: none;
}

.sbb-config-modal.is-visible {
    display: block;
}

.sbb-config-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9998;
}

.sbb-config-modal__box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(620px, calc(100vw - 32px));
    background: #fff;
    padding: 32px;
    z-index: 9999;
}

.sbb-config-modal__close {
    position: absolute;
    right: 16px;
    top: 12px;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.sbb-config-params h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.sbb-config-model {
    display: block;
    margin-bottom: 18px;
    font-size: 16px;
}

.sbb-config-param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:1em;
    margin-bottom:.5em;
}

.sbb-config-param-grid > div {
    border: 1px solid #c71920;
    padding:.3em .6em;
    font-size: 13px;
}

.sbb-config-param-list {
    display: grid;
    gap:0;
    margin-bottom:.5em;
}

.sbb-config-param-list > div {
    display: flex;
    align-items: center;
    gap:.5em;
    font-size: 13px;
}

.sbb-config-modal__button {
    margin-top:1em;
    background: #c71920;
    color: #fff;
    border: 0;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
}

/***************************************
* Zusammenfassung und Anfrage-Formular
***************************************/
#top .sbb-request__summary {
    padding-right: 2em;
}
#top .sbb-request__summary h4 {
    color:#fff;
    padding-top:1.75em;
    margin-bottom:1em;
    text-transform: uppercase;
}
#top .sbb-request__summary h4::after {
    content: "";
    display: block;
    width: 125px;
    height: 5px;
    background:#fff;
    margin-top: .5em;
    margin-left: -1.1em;
}
.sbb-request__form {
    background:#c8c8c8;
    color:var(--enfold-alternate-color-color);
}

.sbb-custom-list ol.sbb-request__list-headline {
    margin-bottom:.5em;
}

.sbb-request__panel {
    background: #f4f4f4;
    padding: 32px;
}

.sbb-request__panel h2 {
    margin-top: 0;
}

#top .sbb-request__form .flex_column_table {
    float:none;
}

#top .sbb-request__panel label {
    display: block;
    margin-bottom:.5em;
    font-weight: 400;
}

#top .sbb-request__panel input,
#top .sbb-request__panel select,
#top .sbb-request__panel textarea {
    display: block;
    width: 100%;
    margin-top:0em;
    padding:10px 13px;
    background-color:#fff !important;
    margin-bottom:0;
}
#top .sbb-request__panel .sbb-field-checkbox {
    display:flex;
    align-items: center;
}
#top .sbb-request__panel input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    padding:0;
    margin-top:0;
}

#top .sbb-request-form__submit {
    margin-top:1em;
    display: inline-block;
    background: #c71920;
    border-radius: 2px;
    color: #fff;
    padding:.4em .6em;
    text-decoration: none;
    font-weight: 400;
    border:none;
    font-size:inherit;
    line-height:1.65;
}

.sbb-request-form__privacy {
    position: relative;
    font-size: .8em;
}

.sbb-request__summary dl {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: .5em 1em;
    line-height: 1.4em;
}

.sbb-request__summary dt {
    font-weight: 600;
}

.sbb-request__summary dd {
    margin: 0;
}

.sbb-request-form-feedback {
    display: none;
}
.sbb-request-form-feedback.sbb-request-form-success,
.sbb-request-form-feedback.sbb-request-form-error {
    display:block;
}
.sbb-request-form-success > p {
    color: green;
    font-weight: 700;
}
.sbb-request-form-error > p {
    color: #c71920;
    font-weight: 700;
}


/********************************
* Allgemeines für die Container
********************************/
.sbb-configurator__table-swipe-hint {
    display:none;
}
@media only screen and (max-width: 989.9px) {
    #top .avia-section.sbb-module-configurator .template-page.content .flex_column {
        padding:0;
    }

    #configurator-howto .sbb-custom-list ol li {
        align-items: flex-start;
    }

    .sbb-configurator__table-panel {
        padding:0 0 0px 0;
    }

    .avia-section.sbb-module-configurator-table .template-page.content {
        background:#fff;
    }
    #top #wrap_all .avia-section.sbb-module-configurator-table .template-page.content .flex_column {
        margin-bottom:0
    }
    #top #wrap_all .avia-section.sbb-module-configurator .template-page.content form.sbb-request__form {
        margin-bottom:0
    }

    .sbb-configurator__table {
        position:relative;
    }
    .sbb-configurator__table-swipe-hint {
        display:block;
        position: absolute;
        right:-1.5em;
        top:-1em;
        max-width:120px;
        height:auto;
    }
    .sbb-configurator__table-swipe-hint img {
        width:100%;
        height:auto;
    }
}
@media only screen and (max-width: 767.9px) {
    .sbb-configurator__table-swipe-hint {
        right: -40px;
        top: -50px;
        background: rgba(255,255,255,.8);
        padding: 5px;
        border-radius: 5px;
    }
    #top .sbb-request__summary h4 {
        padding-top:0;
    }
}
