:root {
    /* Primärfarben */
    --tf-bg-alternate: #fbfbfb;
    --tf-bg-button-back: #F2F2F2;
    --tf-bg-button-cta: #EF7801;
    --tf-bg-button-hover: #333;
    --tf-bg-contrast: #242d34;
    --tf-bg-disabled: #b3b3b3;
    --tf-bg-glass: rgb(255 255 255 / 80%);
    --tf-bg-gray: #eee;
    --tf-bg-input: rgb(0 0 0 / 4%);

    /* Hintergrundfarben */
    --tf-bg-light: #fcfcfd;
    --tf-bg-transparent: transparent;
    --tf-bg-white: #fff;
    --tf-border-dark: #333;
    --tf-border-light: 242, 242, 242;
    --tf-border-lighter: #eee;
    --tf-border-lightest: lightgrey;
    --tf-border-table: #ececec;
    --tf-error: #c12020;

    /* Buttons */
    --tf-error-light: lightsalmon;
    --tf-hr-border: rgb(255 255 255 / 70%);
    --tf-input-bg: rgb(0 0 0 / 4%);

    /* Rahmenfarben */
    --tf-overlay-dark: rgb(0 0 0 / 50%);
    --tf-overlay-shadow: rgb(0 0 0 / 30%);
    --tf-overlay-transparent: rgb(0 0 0 / 0%);
    --tf-primary: #1E90FF; /* #1E90FF */
    --tf-primary-dark: #14142a;

    /* Textfarben */
    --tf-primary-light: #2b7fdb;
    --tf-spinner: #e15b64;
    --tf-success: #198754;
    --tf-success-lighter: #288e47;
    --tf-text-body: #222;
    --tf-text-dark: #777;
    --tf-text-darker: #555;
    --tf-text-darkest: #333;
    --tf-text-error: #c12020;

    /* Overlay Farben */
    --tf-text-hover: #fff;
    --tf-text-shadow: #888;
    --tf-text-success: #1F6F38;

    /* Spezielle Farben */
    --tf-text-white: #fff;
    --tf-warning: #ffc107;
    --tf-warning-lighter: #ffd607;
}

.worko-tabs *, .worko-tabs *::before, .worko-tabs *::after {
    box-sizing: border-box;
}

/* Android 2.3 :checked fix */
@keyframes fake {
    from {
        opacity: 1;
    }

    to {
        opacity: 1;
    }
}

@keyframes fake {
    from {
        opacity: 1;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: fake 1s infinite;
}

.worko-tabs {
    border: none;
    border-radius: 3px;

    label {
        border: 0;
        box-sizing: border-box;
        cursor: unset;
        display: block;
        display: unset;
        float: unset;
        font-size: 1em;
        height: unset;
        line-height: 1.5;
        margin: 0;
        padding: 0;
        text-align: left;
        width: unset;
        word-wrap: break-word;
    }

    hr {
        border-color: var(--tf-hr-border);
        border-radius: 50%;
        filter: blur(1px);
        opacity: 0.5;
    }

    /* tabs navigation top */

    .state {
        left: -10000px;
        position: absolute;
    }

    .flex-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .flex-tabs .tab {
        align-items: center;
        align-self: flex-start;
        background-color: var(--tf-bg-gray);
        border-top: 1px solid var(--tf-border-lighter);
        color: var(--tf-text-body);
        cursor: pointer;
        display: none; /* Initially hidden for small screens */
        flex-grow: 1;
        float: unset !important;
        font-weight: 550;
        gap: 0.5rem;
        height: 60px;
        line-height: 1;
        margin-right: unset !important;
        padding: 0 5px;
        top: 0;
        transition: background 0.3s;
        vertical-align: top;
        white-space: nowrap;
        width: unset !important;
        z-index: 2;
    }

    .flex-tabs .tab:hover {
        background-color: var(--tf-bg-button-hover);
        color: var(--tf-text-hover);
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .flex-tabs .panel {
        background-color: var(--tf-bg-white);
        display: none;
        flex-basis: auto;
        min-height: 300px;
        width: 100%;
    }

    /* buttons & inputs */

    input[type="submit"] {
        appearance: none;
        background-color: var(--tf-bg-button-cta);
        border-radius: 4px !important;
        box-shadow: none;
        box-sizing: border-box;
        color: var(--tf-text-white);
        cursor: pointer;
        font-size: 1em;
        font-weight: 600;
        padding: 15px 22px !important;
        transition: opacity .45s cubic-bezier(0.25, 1, 0.33, 1), transform .45s cubic-bezier(0.25, 1, 0.33, 1), border-color .45s cubic-bezier(0.25, 1, 0.33, 1), color .45s cubic-bezier(0.25, 1, 0.33, 1), background-color .45s cubic-bezier(0.25, 1, 0.33, 1), box-shadow .45s cubic-bezier(0.25, 1, 0.33, 1);
        width: auto;
    }

    button, input[type="button"] {
        background-color: var(--tf-bg-button-back);
        border-radius: 4px;
        box-shadow: 0 0 0 2px rgba(var(--tf-border-light), 0.4);
        box-sizing: border-box;
        color: var(--tf-text-darkest);
        cursor: pointer;
        font-size: 1em;
        font-weight: 600;
        margin-right: 10px;
        padding: 15px 22px;
        width: auto;
    }

    input[type="date"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], select, textarea {
        background-color: var(--tf-bg-input);
        border: 2px solid var(--tf-border-lightest);
        border-radius: 4px;
        box-sizing: border-box;
        color: var(--tf-text-darker);
        font-family: inherit;
        font-size: 1rem;
        height: 3.25rem;
        line-height: 1.5;
        padding: 10px;
        transition: all .2s ease;
        width: 100%;
    }

    input[type="submit"]:hover, input[type="button"]:hover {
        background-color: var(--tf-bg-button-hover);
        color: var(--tf-text-hover);
        transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    }

    input[type="submit"]:hover {
        box-shadow: 0 0 0 2px rgb(239 120 1 / 40%);
        transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    }

    input[type="button"]:hover {
        box-shadow: 0 0 0 2px rgb(242 242 242 / 40%);
    }

    .select-container {
        align-items: center;
        display: flex;

        select {
            width: 4rem;
        }

        button {
            background: unset;
            background-color: var(--tf-bg-button-back);
            color: var(--tf-text-dark);
            height: 3.25rem;
            margin: 0;
            padding: 0;
            text-shadow: none;
            width: 50px;
        }

        button:focus {
            background-color: var(--tf-bg-button-back);
            color: var(--tf-text-darkest);
        }

        button:hover {
            background-color: var(--tf-bg-button-hover);
            color: var(--tf-text-white);

        }

        button:disabled {
            cursor: not-allowed;
        }
    }

    input[type="date"] {
        cursor: pointer;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
    }

    input:placeholder-shown {
        background: unset;
    }

    input:invalid, .invalid-state {
        background: url("/wp-content/plugins/touristform/svg/required.svg") no-repeat 2% 15% var(--tf-error-light);
        background-size: 15px;
    }

    input:invalid:focus {
        border: 2px solid lightsalmon;
    }


    .tabs input:focus {
        background-color: var(--tf-bg-button-hover);
        border: 2px solid black;
        color: var(--tf-text-hover);
    }

    select:disabled {
        appearance: none !important;
        background-color: transparent !important;
        border: none !important;

        &::-ms-expand {
            display: none !important;
        }
    }

    .tf_select_as_label {
        background-color: transparent !important;
    }
}

.tf_nr {
    align-items: center;
    background: #fff;
    border: 2px solid var(--tf-border-lighter);
    border-radius: 50%;
    color: #666;
    display: flex;
    height: 27px;
    justify-content: center;
    text-align: center;
    width: 27px;
}

#tab-header {
    background: var(--tf-bg-white);
    border-bottom: 10px solid var(--tf-bg-glass);
    box-sizing: content-box;
    display: flex;
    height: 60px;
    justify-content: space-between; /* for Safari */
    position: sticky;
    top: 60px;
    width: 100%;
    z-index: 102;

    .nav-button {
        align-items: center;
        background: var(--tf-bg-button-back);
        border: none;
        box-shadow: none;
        color: var(--tf-text-darkest);
        cursor: pointer;
        font-size: 20px;
        height: 60px;
        margin: 0;
        padding: 10px;
        user-select: none;
    }

    .nav-button:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }
}

#tab-header::after {
    clear: both;
    content: "";
    display: table;
}

.tab-container {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

#tab-1:checked ~ .tabs #tab-1-label,
#tab-2:checked ~ .tabs #tab-2-label,
#tab-3:checked ~ .tabs #tab-3-label,
#tab-4:checked ~ .tabs #tab-4-label,
#tab-5:checked ~ .tabs #tab-5-label {
    background-color: var(--tf-primary);
    color: white;
    cursor: default;
}

#tab-1:disabled ~ .tabs #tab-1-label,
#tab-2:disabled ~ .tabs #tab-2-label,
#tab-3:disabled ~ .tabs #tab-3-label,
#tab-4:disabled ~ .tabs #tab-4-label,
#tab-5:disabled ~ .tabs #tab-5-label {
    background-color: var(--tf-bg-disabled);
    color: var(--tf-text-body);
    cursor: not-allowed;
}

#tab-1:checked ~ .tabs #tab-1-panel,
#tab-2:checked ~ .tabs #tab-2-panel,
#tab-3:checked ~ .tabs #tab-3-panel,
#tab-4:checked ~ .tabs #tab-4-panel,
#tab-5:checked ~ .tabs #tab-5-panel {
    display: block;
}

.tf_form_span {
    font-style: italic;
    padding: 0 0 0 16px;
}

#tf_legend {
    display: none;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

#tf_guests {
    input[type="date"], input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], select {
        margin-bottom: 10px;
    }

    fieldset legend {
        font-weight: 550;
        margin: 0;
    }

    h3 {
        margin-top: 20px;
    }
}

/* categories availabilities grid */
#categories {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
    width: 100%;
}

.category {
    background: var(--tf-bg-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Apply style when there's an odd number of .category children */
#categories:has(.category:nth-child(odd):last-child) > .category:last-child {
    grid-column: 1 / -1;
}

.category-header {
    border: solid var(--tf-border-light);
    border-radius: 0.5rem 0.5rem 0 0;
    border-width: 1px 1px 0;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 0;
}

.category-header-img {
    display: flex;
    justify-content: center;
}

.tf_more {
    display: none;
}

.category-img-wrapper {
    margin: 0 auto;
    max-width: 300px;
    position: relative;
    width: 100%;
}

.category-img-wrapper::before {
    content: "";
    display: block;
    padding-top: 100%; /* Enforces a 1:1 aspect ratio */

}

.category-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 5px solid white;
    border-radius: 0.5rem;
    box-shadow: 0 7px 15px var(--tf-overlay-shadow);
    cursor: pointer;
    height: 100%;
    left: 0;
    position: absolute; /* Position to fill the wrapper */
    top: 0;
    width: 100%;
}

.tf_gallery_icon {
    bottom: 5px;
    height: 50px;
    position: absolute;
    right: 5px;
    width: 50px;
    z-index: 2;
}

.category-footer {
    align-items: center;
    border: solid var(--tf-border-light);
    border-radius: 0 0 0.5rem 0.5rem;
    border-width: 0 1px 1px;
    display: flex;
    flex-flow: column wrap;
    flex-grow: 1;
    justify-content: end;
    min-height: 60px;
    padding: 30px;
    width: auto;
}

.tf_min_price {
    margin-top: 1em;
}

.tf_break {
    flex-basis: 100%;
    height: 0;
}

.category-info {
    box-sizing: border-box;
    font-size: 1em;
    font-weight: 300;
    padding-top: 1.25em;
    width: 100%;
    word-break: normal;
}

.category-info h3 {
    text-align: center;
}

.offer_text {
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tf_search_result_info {
    background-color: var(--tf-success);
    border-radius: 0 0 0.5rem 0.5rem;
    color: var(--tf-text-white);
    padding: 0.8em 0.8em 0.1em;
    text-align: center;

    h3 {
        border: 0;
        color: var(--tf-text-white);
        font-size: 29px;
        font-weight: 400;
        line-height: 1.2em;
        margin: 0;
        margin-bottom: 20px;
        padding: 0;
        text-align: center;
        text-transform: none;
    }
}

.tf_warning {
    color: var(--tf-text-darkest);
    font-size: 1.1em;
    font-weight: 555;
    margin-bottom: 1em;
    text-align: center;
}

.tf_flex_container {
    display: flex;
    flex-flow: row wrap;
    gap: 0 1rem;
    overflow-y: auto;
}

.tf_flex {
    display: flex;
    flex: 0 0 auto;
    padding: 0.5rem 0;
}

#tf_search {
    margin-top: 0.5em;
}

.tf_nav {
    backdrop-filter: blur(30px);
    background-color: var(--tf-bg-glass);
    bottom: 0;
    flex-basis: 100%;
    margin-top: 20px;
    padding: 10px 10px 10px 0; /* for Safari */
    position: sticky;
    width: auto;
    z-index: 101;
}

.tf_err {
    border: 2px solid var(--tf-error-light) !important;
}

.tf_emsg {
    color: var(--tf-text-error);
    font-weight: bold;
}

#tbl_article, #tbl_person, #tbl_acc {
    background-color: var(--tf-bg-white);
    border-collapse: collapse;
    border-color: var(--tf-border-table);
    border-spacing: 0;
    box-sizing: border-box;
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 100%;
    overflow: hidden;

    /*  border-top: 1px solid #ececec; */
    padding: 0;
    width: 100%;

    thead {
        line-height: 1;
    }
}

#extras {
    width: 100%;
}

.tf_col-25.tf_left {
    background-color: white;
    padding-left: 0;
}

#tf_sidebar {
    display: none; /* hide sidebar on init */
}

.tf_cart {
    align-self: flex-start; /* <-- this is the fix */
    background-color: var(--tf-bg-white);
    display: none; /* initial state */
    padding: 60px 20px 0 0;
    position: sticky; /* for Safari */
    top: 70px;
}

#top_cart {
    background-color: inherit;
    cursor: pointer;
    display: flex;
    flex: 100%;
    left: 0;
    max-height: 60px;
    min-height: 60px;
    overflow-x: clip;
    padding: 0 1rem; /* for Safari */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 101;
}

#tf_cart_travel_dates {
    align-content: center;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    word-wrap: break-word;
    z-index: 102;
}

#top_cart_icon {
    vertical-align: middle;
}

#tf_cart_offer_title {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
    max-height: 60px;
    place-content: center right;
    word-break: normal;
}

#cart_total {
    display: none; /* on desktop */
    justify-content: end;
}

#cart_total_value {
    font-weight: bold;
}

#tf_cart_count {
    font-weight: bold;
}

.tf_icon {
    width: 1em;
}

#tf_cart_guests {
    display: none;
    flex-grow: 1;
    flex-wrap: wrap;
    line-height: 1;
    place-content: space-around flex-end;
}

#tf_guest_inclusive {
    color: var(--tf-text-success);
}

.tf_cart_articles, .tf_article_overview, #tf_personal_data_overview {
    border-width: 0;
    margin: 0;
    padding: 0 1em;
    width: 100%;

    td, th {
        border-width: 0 0 1px;
        padding: 0 0 1rem;
    }
}

.tf_cart_articles tr, .tf_article_overview tr {
    vertical-align: top;
}

.tf_hidden {
    display: none !important;
    visibility: hidden;
}

.tf_main_row {
    background-color: white;
    color: var(--tf-text-body);
    container-type: inline-size;
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
}

.tf_row {
    display: flex;
    flex: 100%; /* IE10 */
    flex-wrap: wrap;
}

.tf_col { /* IE10 */
    flex: 100%;
}

.tf_col-25 { /* IE10 */
    flex: 25%;
}

.tf_col-50 { /* IE10 */
    flex: 50%;
}

.tf_col-75 { /* IE10 */
    flex: 70%;
    width: 100%; /* fix for some wp themes */
}

#tf_main_col {
    width: auto;
}

.tf_col-25,
.tf_col-50,
.tf_col-75,
.tf_col {
    padding: 0 0 0 16px;
}

.tf_table {
    overflow-x: auto;
}

.tf_table td {
    line-height: 1.5;
}

.tf_table table tr:nth-child(2n) {
    background-color: var(--tf-bg-alternate);
}

.tf_no_border, .tf_no_border tr, .tf_no_border td, .tf_no_border th {
    border: none;
    padding: 8px;
}

#tr_total, #tr_total_deposit {
    border-top: 3px solid var(--tf-border-table);
    text-align: center;
}

#totalSum {
    font-weight: bold;
    text-align: center;
}

.tf_quantity {
    font-weight: bold;
    padding: 10px;
}

#payment_overview {
    margin-top: 0.5em;
}

.tf_overview {
    background-color: var(--tf-bg-white);
    border: 1px solid lightgrey;
    border-radius: 0.5rem;
    margin-bottom: 20px;
    padding: 30px;
}

.tf_check label {
    margin-right: 1.5rem;
}

.tf-modal {
    background: var(--tf-overlay-dark);
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.7s ease-in-out, visiblity 0.7s ease-in-out;
    visibility: hidden;
    width: 100%;
    z-index: 10000;
}

.tf-modal.show {
    opacity: 1;
    visibility: visible;
}

.tf-modal-container {
    background: var(--tf-bg-white);
    color: #333;
    left: 50%;
    padding: 30px 50px;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

.tf-modal-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: inherit;
    justify-content: center;
}

.tf-modal-title {
    margin-bottom: 10px;
}

.tf-modal-text {
    margin-bottom: 20px;
}

.tf-modal-close {
    background: var(--tf-text-darkest);
    color: var(--tf-text-white);
    padding: 10px 20px;
}

.tf_img_pick {
    height: 45px;
}

/* spinner */
@keyframes tf_spinner {
    0% {
        transform: rotate(0deg)
    }

    50% {
        transform: rotate(180deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.tf_spinner div {
    animation: tf_spinner 1s linear infinite;
    border-radius: 50%;
    box-shadow: 0 4px 0 0 var(--tf-spinner);
    box-sizing: content-box;
    height: 160px;
    margin-left: -80px;
    transform-origin: 80px 82px;
    width: 160px;
}

.tf_spinner {
    backface-visibility: hidden;
    display: none;
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translateZ(0) scale(1);
    transform-origin: 0 0; /* see note above */
    z-index: 9999;
}

.tf_h_section {
    background: var(--tf-primary);
    color: var(--tf-text-white);
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
    padding: 0.5rem;
}

.tf_h_section div {
    font-size: 1rem;
}

#tf_personal_data_overview table {
    border: none;
}

#tf_personal_data_overview table td {
    border: none;
}

.tf_total_ca td {
    border-bottom: 0;
}

.tf_total_deposit_ca td {
    border-width: 0;
}

.tf_tax_Rate {
    font-style: oblique;
}

.opts {
    visibility: visible !important;
}

.tf_gallery_count {
    text-align: center;
}

.featherlight-content {
    overflow: unset;
}

.featherlight .featherlight-image {
    border: 32px solid var(--tf-bg-white);
    height: auto !important;
    object-fit: cover;
    width: auto !important;
}

.featherlight .featherlight-content {
    height: auto;
    max-height: 90vh;
    max-width: 100%;
    text-align: center;
    width: auto;
}

.featherlight .featherlight-inner {
    display: inline-block;
}

.featherlight-next,
.featherlight-previous {
    background: var(--tf-overlay-transparent);
    cursor: pointer;
    display: block;
    inset: 25px 0 0 50%;
    position: absolute;

    /* preventing text selection */
    -webkit-touch-callout: none;

    /* IE9 hack, otherwise navigation doesn't appear */
    user-select: none;
}

.featherlight-previous {
    left: 0;
    right: 50%;
}

.featherlight-next:hover,
.featherlight-previous:hover {
    background: var(--tf-bg-transparent);
}

.featherlight-next span,
.featherlight-previous span {
    color: var(--tf-text-dark);
    display: block;
    font-size: 22px;
    font-style: normal;
    font-weight: normal;
    line-height: 50px;

    /* center vertically */
    margin-top: -40px;
    position: absolute;
    text-shadow: 0 0 3px var(--tf-text-shadow);
    top: 50%;
    width: 80%;
}

.featherlight-next span {
    font-size: 2em;
    left: auto;
    right: 5%;
    text-align: right;
}

.featherlight-previous span {
    font-size: 2em;
    left: 5%;
    right: 0;
    text-align: left;
}

.featherlight-next:hover span,
.featherlight-previous:hover span {
    display: inline-block;
    font-size: 4em;
}

/* Hide navigation while loading */
.featherlight-loading .featherlight-previous, .featherlight-loading .featherlight-next {
    display: none;
}

.tf_paytypes {
    margin-bottom: 1em;
    margin-top: 1em;
    width: 50px;
}

.no_persons {
    display: none;
}

#payment_types .tf_pt {
    border: 1px solid var(--tf-border-lightest);
    border-radius: 0.5rem;
    padding: 20px;
}

.tf_pt label {
    display: inline;
}

.tf_pt_checked {
    border: 2px solid var(--tf-primary) !important;
}

.tf_tdr {
    text-align: right;
}

.tf_form_group_item {
    display: inline-block;
    margin-bottom: 0;
}

.tf_dob_w2 {
    max-width: 3.5em !important;
}

.tf_dob_w4 {
    max-width: 4.75em !important;
}

.tf_hint {
    font-weight: 200;
    margin-bottom: 15px;
}

#tf_cat_info {
    margin-bottom: 30px;
}

#travel_dates {
    font-size: 0.7em;
}

.tf_fellow, .tf_car, .tf_tent {
    background: var(--tf-bg-light);
    border-radius: 0.5rem;
    margin-bottom: 20px;
    padding-right: 15px;
    padding-top: 5px;
}

.tf_fellow h4, .tf_car h4, .tf_tent h4 {
    margin: 0;
}

#tf_note {
    height: 10rem;
}

.fellow_BD {
    margin-top: 1rem;
    text-align: right;
}

#tf_multi_warning {
    font-weight: bold;
    margin-bottom: 20px;
}

.total {
    position: relative;
    text-align: center;
}

.tf_table .total .tf_picon {
    height: auto;
    max-width: 30px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
}

/* fix for dreigleichen */
.eol_si_shrink {
    display: unset;
    position: unset;
}

.eol_si_clear {
    display: none !important;
}

/* end fix */

/* override color states */
.worko-tabs {
    .unavailable {
        color: var(--tf-text-error);
        font-size: 1em;
        font-weight: 600;
    }

    .available, .available[type="submit"] {
        background-color: var(--tf-success);
    }

    .available[type="submit"]:hover {
        box-shadow: 0 0 0 2px rgb(25 135 84 / 40%);
    }

    .alternative[type="submit"]:hover {
        box-shadow: 0 0 0 2px rgb(255 193 7 / 40%);
    }

    .tf_inclusive {
        color: var(--tf-text-success);
    }

    .alternative, .alternative[type="submit"] {
        background-color: var(--tf-warning);
        color: var(--tf-text-darkest);
    }

    .alternative h3 {
        color: var(--tf-text-darkest);
    }
}


@container (min-width: 700px) {
    .nav-button {
        display: none; /* Hide next/prev buttons */
    }

    .tab-container .tab {
        display: flex !important; /* Show all tabs */
    }

    #tf_legend {
        display: block;
    }

    #top_cart {
        font-weight: bold;
    }

    .tf_br_s {
        /* linebreaks that should only display on small container */
        display: none;
    }
}

@container (max-width: 700px) {
    .tf_article_title {
        display: block;
        text-align: center;
    }

    .tf_cart {
        position: unset;
    }

    #tf_guests input[type="date"], #tf_guests input[type="email"], #tf_guests input[type="number"], #tf_guests input[type="password"], #tf_guests input[type="tel"], #tf_guests input[type="text"], #tf_guests select, #tf_guests textarea {
        margin-bottom: 0;
    }

    .tf_h_section {
        text-align: center;
    }

    .inside-article {
        padding: 40px 0 40px 40px !important;
    }

    .select-container {
        justify-content: center;
    }

    /* search */
    .tf_flex_container {
        justify-content: center;
        gap: 10px;
        padding: 0;
    }

    #top_cart {
        min-width: 335px;
        font-size: 17px;
        gap: 10px;
    }

    #tf_cart_travel_dates
    #tf_dates {
        font-size: 15px;
    }

    #tf_cart_guests {
        justify-content: center;
    }

    #tf_cart_offer_title {
        max-width: 100px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex-grow: 0;
        flex-shrink: 1;
        word-break: normal;
        justify-content: unset;
    }

    #tf_guest_inclusive {
        display: none;
    }

    #tf_guest_label {
        display: none;
    }

    #cart_total {
        display: flex;
        align-content: center;
        flex-wrap: wrap;
        flex-grow: 1;
    }

    #totalSum, #totalSumLabel, #totalDepositSum, #totalDepositSumLabel {
        padding: 0 !important;
    }

    #tr_total, #tr_total_deposit {
        border-top: 3px solid var(--tf-border-table);
    }

    #tf_cat_info .category-img {
        min-height: 300px;
    }

    #categories {
        grid-template-columns: auto;
    }

    .tab-container {
        min-width: 0;
    }

    .tf_nav {
        justify-content: center;
        height: 77.5px;
        bottom: 0;
        margin: 0;
    }

    .tf_nr {
        width: 18px;
        height: 18px;
    }

    #tab-header {
        justify-content: flex-start;
    }

    #tab-header .nav-button {
        width: 30px;
        padding: 2%;
    }

    .tabs .panel {
        /* overflow-y: auto;
        max-height: 75vh; */
    }

    .flex-tabs .tab {
        display: flex; /* Show all tabs */
        background: var(--tf-bg-white);
        border-bottom: 1px solid var(--tf-border-light);
        font-size: 17px;
    }

    .tf_overview {
        display: block; /* turn the table into a block-level container */
        overflow-x: auto; /* enable horizontal scroll if needed */
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
        white-space: nowrap; /* keep cells from wrapping, so it scrolls horizontally */
        width: 100%;
        border-collapse: collapse;
        margin: 0 auto;

        td, th {
            padding: 0.25rem;
            text-align: left;
            vertical-align: top;
            text-wrap: wrap;
        }
    }

    .tf_check {
        display: flex; /* flex container */
        flex-direction: column;
        gap: 0.75rem; /* vertical spacing between labels */
    }

    .tf_check label {
        margin-right: 0; /* reset margin so they don't push horizontally */
    }

    /* panel scrollbar */

    /* Applies to Firefox */
    .my-scrolling-container {
        scrollbar-width: thin; /* smaller scrollbar */
        scrollbar-color: #888 #f1f1f1; /* thumb color + track color */
    }

    /* Applies to WebKit-based browsers (Chrome, Safari, Edge (Chromium)) */
    .my-scrolling-container::-webkit-scrollbar {
        width: 6px; /* narrow scrollbar width */
    }

    .my-scrolling-container::-webkit-scrollbar-track {
        background: #f1f1f1; /* track color */
    }

    .my-scrolling-container::-webkit-scrollbar-thumb {
        background-color: #888; /* thumb color */
        border-radius: 3px; /* rounded corners */
    }

    .my-scrolling-container::-webkit-scrollbar-thumb:hover {
        background-color: #555; /* hover color for thumb */
    }

    .flex-tabs .tab:last-of-type {
        border-bottom: none;
    }

    .flex-tabs #tab-1-label {
        order: 1;
    }

    .flex-tabs #tab-2-label {
        order: 3;
    }

    .flex-tabs #tab-3-label {
        order: 5;
    }

    .flex-tabs #tab-4-label {
        order: 7;
    }

    .flex-tabs #tab-5-label {
        order: 9;
    }

    .flex-tabs #tab-1-panel {
        order: 2;
    }

    .flex-tabs #tab-2-panel {
        order: 4;
    }

    .flex-tabs #tab-3-panel {
        order: 6;
    }

    .flex-tabs #tab-4-panel {
        order: 8;
    }

    .flex-tabs #tab-5-panel {
        order: 10;
    }

    #tab-1:checked ~ .tabs #tab-1-label,
    #tab-2:checked ~ .tabs #tab-2-label,
    #tab-3:checked ~ .tabs #tab-3-label,
    #tab-4:checked ~ .tabs #tab-4-label,
    #tab-5:checked ~ .tabs #tab-5-label {
        border-bottom: none;
    }

    #tab-1:checked ~ .tabs #tab-1-panel,
    #tab-2:checked ~ .tabs #tab-2-panel,
    #tab-3:checked ~ .tabs #tab-3-panel,
    #tab-4:checked ~ .tabs #tab-4-panel,
    #tab-5:checked ~ .tabs #tab-5-panel {
        border-bottom: 0;
    }

    .category-footer, .category-header {
        flex-direction: column !important;
    }

    .category-header {
        padding: 0 !important;
    }

    .category-footer {
        padding: 0 30px 30px !important;
    }

    #tab-header {
        top: 60px;
        height: 60px;
    }

    .tf_row {
        flex-direction: column;
    }

    .tf_main_row {
        max-width: 100%;
        flex-direction: column;
    }

    #tf_main_col {
        min-width: 100%;
        max-width: 100%;
    }

    .worko-tabs {
        border-bottom: 0;
    }

    .tf_col, .tf_col-25, .tf_col-50,
    .tf_col-75 {
        margin-bottom: 20px;
        padding: 0;
    }

    .tf_table table, .tf_table thead, .tf_table tbody, .tf_table th, .tf_table td, .tf_table tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .tf_table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .tf_table tr {
        border: 1px solid var(--tf-border-light);
    }

    .tf_table td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid var(--tf-border-lighter);
        position: relative;
    }

    .tf_table td::before {
        line-height: 3rem;

        /* Now like a table header */
        position: absolute;

        /* Top/left values mimic padding */
        left: 6px;
        width: 30%;
        white-space: nowrap;
    }

    .tf_quantity {
        padding: 0;
    }

    /* todo safe to remove?
     .tf_table td {
    border: none;
    border-bottom: 1px solid var(--tf-border-lighter);
    position: relative;
    padding: 0 0 0 35% !important;
  }
  .tf_table td:before {
    line-height: 3rem;
    position: absolute;
    left: 6px;
    width: 30%;
    white-space: nowrap;
  }
     .tf_table table tr td:first-child{
        padding-left: 50%;
    }
    #tbl_article tr:not(#tr_total, #tr_total_deposit) td:nth-of-type(1):before { content: "Art"; }
    #tbl_article tr:not(#tr_total, #tr_total_deposit) td:nth-of-type(2):before { content: "Anzahl"; }
    #tbl_article tr:not(#tr_total, #tr_total_deposit) td:nth-of-type(5):before { content: "Gesamtpreis"; }
    #tbl_person td:nth-of-type(1):before { content: "Art"; }
    #tbl_person td:nth-of-type(2):before { content: "Anzahl"; }
    #tbl_person td:nth-of-type(5):before { content: "Gesamtpreis"; }
    #tbl_acc td:nth-of-type(1):before { content: "Art"; }
    #tbl_acc td:nth-of-type(2):before { content: "Anzahl"; }
    #tbl_acc td:nth-of-type(5):before { content: "Gesamtpreis"; }
    */
    #tf_personal_data_overview table td:nth-of-type(2) {
        word-break: normal;
    }

    .total {
        text-align: left !important;
    }

    .tf_picon {
        display: none;
    }

    .tf_table td, .tf_table tr {
        border: none;
    }

    .category-info {
        padding: 1em !important
    }

    .featherlight .featherlight-image {
        max-width: 100%;
        max-height: 100%;
        border: 10px solid var(--tf-bg-white);
    }

    .featherlight .featherlight-content {
        height: unset !important;
        width: unset !important;
        max-width: 100%;
    }

    .featherlight .featherlight-inner {
        display: block;
    }

    .tf_dob_w2 {
        max-width: 3.5em !important;
    }

    .total:empty {
        visibility: hidden;
    }

    .tf_footer_btn {
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .fellow_BD {
        text-align: unset;
    }
}

/* place pick */
.tf_img_pick {
    height: 45px;
}

.tf_btn_pick {
    align-items: center;
    display: flex;
    justify-content: center;
}

.tf_grid {
    display: grid;
    grid-auto-flow: column;
    grid-column-gap: 1em;
    margin-top: 2em;
}

.tf_grid div {
    background-color: var(--tf-bg-white);
    border: 1px solid var(--tf-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 1em;
    padding: 1em;
}

.tf_picked {
    background-color: var(--tf-primary) !important;
    color: var(--tf-text-white);
    font-weight: bold;
}

/* form fields */
#tf-form-fields {
    display: none;
}

/* three states switch */
.tf-switch-container {
    align-content: end;
    flex: 50%;
    flex-grow: 0;
    margin-bottom: 1em;
    padding-left: 16px;
    padding-right: 1em;
}

.tf-switch-container h5 {
    margin-bottom: .7rem;
}

.tf-switch {
    background: var(--tf-border-lighter);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.tf-switch input[type="radio"], .tf-switch input[type="checkbox"] {
    cursor: pointer;
    display: none;
}

.tf-switch label {
    cursor: pointer;
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.tf-active-label {
    background: var(--tf-primary-dark);
    border: 1px solid var(--tf-bg-white);
    border-radius: 12px;
    height: 100%;
    opacity: .5;
    position: absolute;
    transition: left 0.2s ease-out;
    z-index: 1;
}

.tf-switch3-radio1 ~ .tf-active-label {
    width: 33%;
}

.tf-switch3-radio1:checked ~ .tf-active-label {
    left: 0;
}

.tf-switch3-radio2:checked ~ .tf-active-label {
    left: 33%;
}

.tf-switch3-radio3:checked ~ .tf-active-label {
    left: 66%;
}

.tf-switch2-radio1 ~ .tf-active-label {
    width: 50%;
}

.tf-switch2-radio1:checked ~ .tf-active-label {
    left: 0;
}

.tf-switch2-radio2:checked ~ .tf-active-label {
    left: 50%;
}

.tf-ff-group {
    flex: 25%;
    flex-grow: 0;
    padding-left: 16px;
}

.tf-ff-group input {
    width: 90%;
}
