.booking-tool {
    display: flex;
    max-width: 880px;          /* kleiner */
    margin: 24px auto;         /* etwas weniger Abstand */
    background: #f5f7fb;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* Sidebar */
.bt-sidebar {
    width: 240px;              /* mehr Platz für lange Texte */
    background: #162447;
    color: #fff;
    padding: 22px 16px;
}

.bt-sidebar ul {
    list-style:none;
    margin:0;
    padding:0;
}
.bt-sidebar li {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    opacity: .8;
    line-height: 1.3;
    white-space: normal;   /* Text darf umgebrochen werden */
}
.bt-sidebar li.active {
    background:#1f3c88;
    opacity:1;
}

/* Main */
.bt-main {
    flex: 1;
    background: #fff;
    padding: 24px 26px 28px;   /* vorher 28px 32px 32px */
}

.bt-main h2 {
    margin-top:0;
    margin-bottom:18px;
}

/* Form */
.bt-form-group,
.bt-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;  /* falls vorher 420px oder 640px stand -> entfernen */
}

.bt-form-group label {
    display:block;
    font-weight:600;
    margin-bottom:6px;
}
/* Select-State + Pfeil */
.bt-select-wrapper.bt-open select {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.2);
}

.bt-select-wrapper.bt-open .bt-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown anzeigen, wenn Wrapper "open" ist */
.bt-select-wrapper.bt-open + .bt-service-table {
    display: block;
}

.bt-select-wrapper select {
    width:100%;
    padding:10px 36px 10px 12px;
    border-radius:6px;
    border:1px solid #d1d5db;
    font-size:14px;
}
.bt-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Service-PANEL als Dropdown-Popup */
.bt-service-panel {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15,23,42,0.18);
    z-index: 30;
    display: none;
}

/* Panel nur anzeigen, wenn das „Select" geöffnet ist */
.bt-select-wrapper.bt-open + .bt-service-panel {
    display: block;
}

.bt-panel-inner {
    display: flex;
    height: 100%;
}

/* linke Spalte: Kategorien */
.bt-cat-column {
    width: 40%;
    background: #f3f4f6;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.bt-panel-header {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.bt-cat-item {
    border: none;
    background: transparent;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 0;
}


.bt-cat-item:hover {
    background: #e5e7eb;
}

.bt-cat-item.active {
    background: #2563eb;
    color: #ffffff;
}

/* Zählbadge in aktiver Kategorie etwas heller */
.bt-cat-item.active .bt-cat-count {
    color: #e0e7ff;
}

/* Name der Kategorie darf umbrechen */
.bt-cat-name {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 8px;
    white-space: normal;
    line-height: 1.3;
}

.bt-cat-count {
    font-size: 12px;
    color: #6b7280;
}
/* rechte Spalte: Dienstleistungen */
.bt-srv-column {
    width: 60%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.bt-srv-placeholder {
    padding: 10px 12px;
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* jede Kategorie bekommt eine Liste, standardmäßig versteckt */
.bt-srv-list {
    display: none;
}

.bt-service-row {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.bt-service-row:nth-child(even) {
    background: #f9fafb;
}

.bt-service-row:hover {
    background: #e5f0ff;
}

.bt-service-name {
    text-align: left;
    margin-right: 8px;
}

.bt-price {
    font-weight: 600;
    white-space: nowrap;
}

.bt-vat {
    font-weight:400;
    font-size:12px;
    margin-left:4px;
    color:#6b7280;
}

/* Footer */
.bt-footer {
    margin-top:22px;
    text-align:right;
}
.bt-next-btn {
    background:#2563eb;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
}
.bt-next-btn:hover {
    background:#1d4ed8;
}

.bt-select-wrapper {
    position: relative;
}

/* NEU: sichtbare Anzeige */
.bt-select-display {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 48px 10px 12px;  /* rechts mehr Platz für den Pfeil */
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;

    overflow: hidden;              /* verhindert Überlappen */
    text-overflow: ellipsis;       /* ... wenn der Text zu lang ist */
    white-space: nowrap;
}



/* Rahmenfarbe, wenn geöffnet */
.bt-select-wrapper.bt-open .bt-select-display {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.2);
}

/* Native Select unsichtbar machen, aber im DOM lassen */
.bt-select-wrapper select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;   /* verhindert das native Dropdown */
}


/* Kalender-Step */
.bt-calendar-step {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.bt-calendar-step h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.bt-calendar-controls {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.bt-calendar-controls input[type="date"] {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.bt-time-slots {
    margin-top: 8px;
}

.bt-time-slots-header {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.bt-time-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bt-time-slot {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 10px;
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.bt-time-slot.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.bt-no-slots {
    font-size: 13px;
    color: #6b7280;
}


/* Grafischer Kalender */
.bt-calendar-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: flex-start;
    margin-top: 12px;
}

.bt-calendar-ui {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 12px;
}

.bt-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bt-cal-month-label {
    font-weight: 600;
    font-size: 14px;
}

.bt-cal-nav {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.bt-cal-nav:hover {
    background: #e5e7eb;
}

.bt-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 11px;
    text-align: center;
    margin-bottom: 4px;
    color: #6b7280;
}

.bt-cal-weekdays span {
    padding: 2px 0;
}

.bt-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    font-size: 12px;
}

.bt-cal-empty {
    min-height: 32px;
}

.bt-cal-day {
    min-height: 32px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    padding: 4px 0;
}

.bt-cal-day.bt-cal-available {
    border-color: #bbf7d0;
    background: #dcfce7;
}

.bt-cal-day.bt-cal-day-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: default;
}

.bt-cal-day.bt-cal-today {
    box-shadow: 0 0 0 1px #2563eb;
}

.bt-cal-day.bt-cal-selected {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.bt-cal-legend {
    margin-top: 8px;
    font-size: 11px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.bt-cal-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 4px;
}

.bt-cal-available.bt-cal-dot {
    background: #22c55e;
}

.bt-cal-unavailable.bt-cal-dot {
    background: #9ca3af;
}

.bt-cal-today.bt-cal-dot {
    background: #2563eb;
}

/* Zeit-Slots rechts neben dem Kalender */
.bt-time-slots {
    margin-top: 0;
}

.bt-time-slots-header {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.bt-time-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bt-time-slot {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 10px;
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.bt-time-slot.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.bt-no-slots {
    font-size: 13px;
    color: #6b7280;
}

/* Personenauswahl-Schritt */
.bt-persons-step {
    display: none;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.bt-persons-step.active {
    display: block;
}

.bt-persons-stepper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.bt-persons-stepper button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bt-persons-stepper button:hover:not(:disabled) {
    border-color: #2563eb;
    background: #e0e7ff;
}

.bt-persons-stepper button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bt-persons-display {
    min-width: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #162447;
}

.bt-persons-input {
    display: none;
}

/* Warenkorb-Schritt */
.bt-cart-step {
    display: none;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.bt-cart-step.active {
    display: block;
}

.bt-cart-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.bt-cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.bt-cart-item-title {
    font-weight: 600;
    font-size: 16px;
    color: #162447;
}

.bt-cart-item-actions {
    display: flex;
    gap: 8px;
}

.bt-cart-item-action-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #6b7280;
}

.bt-cart-item-action-btn:hover {
    background: #e5e7eb;
    color: #162447;
}

.bt-cart-item-details {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.bt-cart-item-price {
    margin-top: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #162447;
}

.bt-cart-empty {
    text-align: center;
    padding: 32px;
    color: #6b7280;
}

.bt-cart-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.bt-add-booking-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.bt-add-booking-btn:hover {
    background: #059669;
}

/* Kundeninformationen-Schritt */
.bt-customer-step {
    display: none;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.bt-customer-step.active {
    display: block;
}

.bt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.bt-form-row-full {
    grid-column: 1 / -1;
}

.bt-form-group input[type="text"],
.bt-form-group input[type="email"],
.bt-form-group input[type="tel"],
.bt-form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
}

.bt-form-group input:focus,
.bt-form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.2);
}

.bt-phone-wrapper {
    display: flex;
    gap: 8px;
}

.bt-phone-country {
    width: 100px;
    flex-shrink: 0;
}

.bt-phone-number {
    flex: 1;
}

.bt-privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.bt-privacy-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.bt-privacy-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
}

.bt-form-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

/* Zurück-Button */
.bt-prev-btn {
    background: #ffffff;
    color: #162447;
    border: 1px solid #d1d5db;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
}

.bt-prev-btn:hover {
    background: #f3f4f6;
}

@media (max-width: 768px) {
    .bt-calendar-layout {
        grid-template-columns: 1fr;
    }
    
    .bt-form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-tool {
        flex-direction: column;
    }
    
    .bt-sidebar {
        width: 100%;
    }
}
