/* Online Buchen – VieTransfer theme */
.buchen-ac {
    position: relative;
}

.buchen-ac__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
}

.buchen-ac__list li {
    padding: 10px 14px;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
}

.buchen-ac__list li:hover,
.buchen-ac__list li.is-active {
    background: #fff8ec;
    color: #1a1a2e;
}

.buchen-ac__list li.is-create {
    color: #f5b754;
    font-weight: 700;
    border-top: 1px solid #eee;
}

.buchen-page {
    background: #f4f5f7;
}

.banner-header.buchen-banner {
    height: 40vh;
    background-position: center 100%;
    background-size: cover;
}

/* body { overflow-x: hidden } breaks position:sticky — clip keeps horizontal lock */
html:has(.buchen-page),
body:has(.buchen-page) {
    overflow-x: clip !important;
}

/* Column must stretch with the form so sticky has room to travel */
.buchen-info-col {
    align-self: stretch !important;
}

.buchen-info {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 20;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-bottom: 8px;
}

.buchen-info__title {
    margin: 0 0 16px;
    color: #1a1a2e;
    font-size: 26px;
    font-weight: 700;
}

.buchen-info__box,
.buchen-info__total {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #2c3e50;
}

.buchen-info__box {
    background: #fff8ec;
    border: 1px solid rgba(245, 183, 84, 0.55);
}

.buchen-info__box i,
.buchen-info__total i {
    color: #f5b754;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.buchen-info__box .text-accent {
    color: #c48a2b;
}

.buchen-info__total {
    background: #fff;
    border: 2px solid #1a1a2e;
    align-items: flex-start;
    margin-bottom: 0;
}

.buchen-info__prices {
    flex: 1;
    min-width: 0;
}

.buchen-info__price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.buchen-info__price-row + .buchen-info__price-row {
    margin-top: 6px;
}

.buchen-info__price-row--total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    color: #1a1a2e;
    font-size: 15px;
}

.buchen-info__total strong {
    display: inline;
    color: #1a1a2e;
}

.buchen-info__total span {
    color: #1a1a2e;
    font-weight: 700;
}

@media (max-width: 991px) {
    .buchen-info-col {
        align-self: auto !important;
    }

    .buchen-info {
        position: static;
        max-height: none;
        overflow: visible;
        margin-top: 8px;
    }
}

.buchen-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.buchen-card__header {
    background: #1a1a2e;
    color: #fff;
    padding: 28px 32px;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

.buchen-card__header h3 {
    margin: 0 0 8px;
    color: #f5b754;
    font-size: 28px;
}

.buchen-card__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.buchen-form {
    padding: 28px 32px 36px;
    overflow: visible;
}

.buchen-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: visible;
}

#flightBlock {
    z-index: 20;
}

.buchen-section:last-of-type {
    border-bottom: none;
}

.buchen-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.buchen-label--spacer {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.buchen-input,
.buchen-form .form-select,
.buchen-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 11px 14px;
    min-height: 48px;
}

.buchen-input:focus,
.buchen-form .form-select:focus,
.buchen-form .form-control:focus {
    border-color: #f5b754;
    box-shadow: 0 0 0 0.2rem rgba(245, 183, 84, 0.2);
}

.buchen-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buchen-toggle {
    flex: 1;
    min-width: 120px;
    border: 2px solid #f5b754 !important;
    background: #fff;
    color: #1a1a2e;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.03em;
    border-radius: 10px;
    padding: 12px 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.buchen-toggle-group--compact {
    width: 100%;
}

.buchen-toggle-group--compact .buchen-toggle {
    min-width: 0;
    padding: 10px 8px;
}

.buchen-toggle:hover,
.buchen-toggle:focus,
.buchen-toggle:active,
.buchen-toggle.active {
    background: #f5b754;
    color: #1a1a2e;
    border: 2px solid #f5b754 !important;
}

.buchen-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buchen-chips--extras .buchen-chip--return {
    margin-left: auto;
}

.buchen-chip {
    border: 2px solid #e5e5e5 !important;
    background: #fff;
    color: #333;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}

.buchen-chip:hover,
.buchen-chip:focus,
.buchen-chip:active {
    border: 2px solid #f5b754 !important;
    background: #fff8ec;
    color: #1a1a2e;
}

.buchen-chip.active,
.buchen-chip.active:hover,
.buchen-chip.active:focus,
.buchen-chip.active:active {
    border: 2px solid #f5b754 !important;
    background: #f5b754;
    color: #1a1a2e;
}

.buchen-chip--return {
    border: 2px solid #f5b754 !important;
    border-radius: 10px;
    background: #fff8ec;
    color: #1a1a2e;
    font-weight: 700;
    gap: 8px;
    padding: 10px 18px;
}

.buchen-chip--return:hover,
.buchen-chip--return:focus {
    background: #ffefd2;
    border: 2px solid #f5b754 !important;
}

.buchen-chip--return.active,
.buchen-chip--return.active:hover,
.buchen-chip--return.active:focus {
    background: #f5b754;
    border: 2px solid #e0a33a !important;
}

.buchen-chip__icon {
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

.buchen-chip--block {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    justify-content: center;
    margin: 0;
    line-height: 1.2;
    vertical-align: top;
}

.buchen-tooltip-wrap {
    position: relative;
    z-index: 60;
}

.buchen-tooltip {
    position: absolute;
    left: auto;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 100;
    width: min(340px, 80vw);
    max-width: 340px;
    padding: 14px;
    border-radius: 12px;
    background: #1a1a2e;
    color: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.buchen-tooltip::after {
    content: '';
    position: absolute;
    left: auto;
    right: 28px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #1a1a2e;
    transform: rotate(45deg);
}

.buchen-tooltip-wrap:hover .buchen-tooltip,
.buchen-tooltip-wrap:focus-within .buchen-tooltip,
.buchen-tooltip-wrap.is-open .buchen-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.buchen-tooltip__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.buchen-tooltip__item + .buchen-tooltip__item {
    margin-top: 12px;
}

.buchen-tooltip__item i {
    color: #f5b754;
    margin-top: 2px;
    flex-shrink: 0;
}

.buchen-tooltip__item strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 6px;
}

.buchen-tooltip__item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.flatpickr-calendar {
    z-index: 200 !important;
}

.buchen-form .flatpickr-input[readonly],
.buchen-form .form-control.buchen-input[readonly] {
    background: #fff;
    cursor: pointer;
}

.buchen-address-row {
    align-items: flex-start;
}

.buchen-address-row .mb-3 {
    margin-bottom: 1rem;
}

.buchen-address-row .buchen-chip--block {
    display: flex;
    align-items: center;
}

.buchen-address-row .form-select.buchen-input,
.buchen-address-row .form-control.buchen-input,
.buchen-address-row .buchen-chip--block {
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
}

.buchen-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.buchen-time .form-select {
    flex: 1;
}

.buchen-time__sep {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    line-height: 1;
}

.buchen-btn-outline {
    border: 2px solid #f5b754;
    background: #f5b754;
    color: #1a1a2e;
    font-weight: 700;
}

.buchen-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
}

.buchen-counter__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5b754;
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.buchen-counter__val {
    min-width: 28px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.buchen-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

.buchen-check input {
    width: 18px;
    height: 18px;
    accent-color: #f5b754;
}

.buchen-check a {
    color: #c48a1f;
    font-weight: 700;
    text-decoration: underline;
}

.buchen-check a:hover {
    color: #a87412;
}

.buchen-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    color: #fff;
    margin: 8px -32px -36px;
    padding: 24px 32px;
}

.buchen-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.buchen-price__main,
.buchen-price__return {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.buchen-price__return span {
    opacity: 0.85;
}

.buchen-price strong {
    color: #f5b754;
    font-size: 28px;
}

.buchen-price__return strong {
    font-size: 22px;
}

.buchen-price small {
    color: rgba(255, 255, 255, 0.65);
}

.buchen-price__loading {
    font-size: 13px;
    color: #f5b754;
    margin-top: 4px;
}

.buchen-submit {
    min-width: 180px;
    text-align: center;
}

.buchen-submit:disabled {
    opacity: 0.65;
    pointer-events: none;
}

.buchen-errors {
    margin: 20px 32px 0;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fff3f3;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.buchen-errors ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.buchen-stop {
    margin-top: 16px;
    padding: 16px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #fafbfc;
}

.buchen-stop__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .buchen-form {
        padding: 20px 16px 28px;
    }

    .buchen-footer {
        margin: 8px -16px -28px;
        padding: 20px 16px;
    }

    .buchen-card__header {
        padding: 22px 16px;
    }

    .buchen-toggle-group:not(.buchen-toggle-group--compact) .buchen-toggle {
        min-width: calc(50% - 5px);
    }

    .buchen-toggle-group--compact .buchen-toggle {
        min-width: 0;
    }
}

/* Danke page: button-2 is white-on-dark by default — make it visible on light card */
.danke-actions .danke-btn-secondary,
.danke-actions a.button-2 {
    border: 1px solid #f5b754 !important;
    background-color: #fff !important;
    color: #1a1a2e !important;
}

.danke-actions .danke-btn-secondary:hover,
.danke-actions a.button-2:hover {
    border-color: #f5b754 !important;
    background-color: #f5b754 !important;
    color: #1a1a2e !important;
}
