/* Frontend Design für den Buchungskalender */

:root {
    --l4zy-booking-primary: #059669;
    --l4zy-booking-primary-hover: #047857;
    --l4zy-booking-secondary: #2563eb;
    --l4zy-booking-dark: #0f172a;
    --l4zy-booking-text: #334155;
    --l4zy-booking-text-light: #64748b;
    --l4zy-booking-bg-light: #f8fafc;
    --l4zy-booking-white: #ffffff;
    --l4zy-booking-border: #e2e8f0;
    --l4zy-booking-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --l4zy-booking-radius: 16px;
    --l4zy-booking-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#l4zy-booking-frontend, .l4zy-booking-search-card, .l4zy-booking-rental-card, .l4zy-booking-modal-content {
    font-family: var(--l4zy-booking-font);
    color: var(--l4zy-booking-text);
}

/* --- Search Form Styling --- */
.l4zy-booking-search-card {
    background: var(--l4zy-booking-white);
    padding: 30px;
    border-radius: var(--l4zy-booking-radius);
    box-shadow: var(--l4zy-booking-shadow);
    border: 1px solid var(--l4zy-booking-border);
    margin: 20px 0;
}

.l4zy-booking-search-form .search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--l4zy-booking-text-light);
}

.search-field select, .search-field input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--l4zy-booking-border);
    background: var(--l4zy-booking-bg-light);
    font-size: 1rem;
    transition: all 0.2s;
}

.search-field select:focus, .search-field input:focus {
    border-color: var(--l4zy-booking-primary);
    outline: none;
    background: var(--l4zy-booking-white);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-submit .button {
    width: 100%;
    padding: 14px;
    background: var(--l4zy-booking-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit .button:hover {
    background: var(--l4zy-booking-primary-hover);
}

/* --- Rental Card (Listing) --- */
.l4zy-booking-rental-card {
    background: var(--l4zy-booking-white);
    border-radius: var(--l4zy-booking-radius);
    overflow: hidden;
    box-shadow: var(--l4zy-booking-shadow);
    border: 1px solid var(--l4zy-booking-border);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.l4zy-booking-rental-card:hover {
    transform: translateY(-5px);
}

.l4zy-booking-rental-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.l4zy-booking-rental-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l4zy-booking-rental-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.l4zy-booking-rental-content {
    padding: 20px;
    flex-grow: 1;
}

.l4zy-booking-rental-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: var(--l4zy-booking-dark);
}

.l4zy-booking-rental-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--l4zy-booking-text-light);
}

.l4zy-booking-rental-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--l4zy-booking-primary);
}

.l4zy-booking-rental-footer {
    padding: 15px 20px;
    background: var(--l4zy-booking-bg-light);
    border-top: 1px solid var(--l4zy-booking-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Calendar & Modal Integration --- */
#l4zy-booking-frontend {
    background: var(--l4zy-booking-white);
    padding: 12px;
    border: 1px solid var(--l4zy-booking-border);
    border-radius: var(--l4zy-booking-radius);
    box-shadow: var(--l4zy-booking-shadow);
    margin-bottom: 15px;
    width: 100%;
}

.fc .fc-toolbar-title {
    font-size: 1.1rem !important;
    font-weight: 800;
}

.fc .fc-button {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
}

.booking-legend {
    display: flex;
    gap: 15px;
    margin: 10px 0 20px;
    justify-content: center;
    background: var(--l4zy-booking-bg-light);
    padding: 8px;
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.legend-color.booked { background: #fca5a5; border: 1px solid #ef4444; }
.legend-color.available { background: #fff; border: 1px solid var(--l4zy-booking-border); }

.l4zy-booking-main-btn {
    background: var(--l4zy-booking-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

/* --- Modal & Popover Base --- */
.l4zy-booking-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.l4zy-booking-modal-content {
    background: var(--l4zy-booking-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--l4zy-booking-radius);
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.l4zy-booking-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--l4zy-booking-text-light);
    cursor: pointer;
}

.l4zy-booking-modal-close:hover {
    color: var(--l4zy-booking-dark);
}

.l4zy-booking-form-group { margin-bottom: 20px; }
.l4zy-booking-form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; color: var(--l4zy-booking-dark); }
.l4zy-booking-form-group input, .l4zy-booking-form-group select, .l4zy-booking-form-group textarea { 
    width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--l4zy-booking-border); 
    background: var(--l4zy-booking-bg-light); font-size: 1rem; transition: all 0.2s; font-family: var(--l4zy-booking-font);
}
.l4zy-booking-form-group input:focus, .l4zy-booking-form-group select:focus, .l4zy-booking-form-group textarea:focus { 
    border-color: var(--l4zy-booking-primary); outline: none; background: #fff; 
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); 
}

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 10px; font-weight: 700; border: none; cursor: pointer; text-decoration: none; font-size: 0.95rem; transition: 0.2s; gap: 8px; }
.btn-p { background: var(--l4zy-booking-primary); color: #fff; }
.btn-p:hover { background: var(--l4zy-booking-primary-hover); }
.btn-d { background: var(--l4zy-booking-bg-light); color: var(--l4zy-booking-text); border: 1px solid var(--l4zy-booking-border); }
.btn-d:hover { background: var(--l4zy-booking-border); }

/* --- Dashboard Specific Styles --- */
.l4zy-booking-dash { max-width: 1200px; margin: 50px auto; padding: 0 24px; color: var(--l4zy-booking-text); }
.l4zy-booking-dash-card { background: var(--l4zy-booking-white); border-radius: 12px; border: 1px solid var(--l4zy-booking-border); padding: 35px; margin-bottom: 30px; box-shadow: var(--l4zy-booking-shadow); }
.l4zy-booking-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.l4zy-booking-dash-header h2 { font-size: 1.75rem; font-weight: 800; color: var(--l4zy-booking-dark); margin: 0; }

.l4zy-booking-tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid var(--l4zy-booking-border); padding-bottom: 10px; }
.l4zy-booking-tab { background: none; border: none; padding: 10px 20px; font-weight: 700; color: var(--l4zy-booking-text-light); cursor: pointer; transition: 0.2s; border-radius: 8px; }
.l4zy-booking-tab:hover, .l4zy-booking-tab.active { color: var(--l4zy-booking-primary); background: #ecfdf5; }

.l4zy-booking-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.l4zy-booking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.l4zy-booking-table th { text-align: left; padding: 15px; font-size: 0.8rem; text-transform: uppercase; color: #94a3b8; border-bottom: 1px solid var(--l4zy-booking-border); }
.l4zy-booking-table td { padding: 18px 15px; border-bottom: 1px solid var(--l4zy-booking-border); vertical-align: middle; }

.l4zy-booking-badge { padding: 5px 12px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; background: var(--l4zy-booking-bg-light); color: var(--l4zy-booking-text-light); }
.l4zy-booking-badge-success { background: #ecfdf5; color: var(--l4zy-booking-primary); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.l4zy-booking-season-row { 
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: 15px; 
    margin-bottom: 15px; align-items: flex-end; background: #fff; 
    padding: 15px; border-radius: 10px; border: 1px solid var(--l4zy-booking-border);
}
.l4zy-booking-season-row .l4zy-booking-form-group { margin-bottom: 0; }
.l4zy-booking-season-row label { font-size: 0.75rem; text-transform: uppercase; color: var(--l4zy-booking-text-light); }
.l4zy-booking-season-row input { padding: 8px 12px; font-size: 0.9rem; }

.description { font-size: 0.8rem; color: var(--l4zy-booking-text-light); margin-top: 5px; line-height: 1.4; }

/* Login Page */
.l4zy-booking-login-page { padding: 100px 20px; text-align: center; }
.l4zy-booking-login-card { max-width: 400px; margin: 0 auto; background: var(--l4zy-booking-white); padding: 40px; border-radius: 20px; border: 1px solid var(--l4zy-booking-border); box-shadow: var(--l4zy-booking-shadow); }

/* --- Inquiry Modal Grid and Responsiveness --- */
.l4zy-booking-estimated-box {
    background: #f0fdf4;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #dcfce7;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.l4zy-booking-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.l4zy-booking-form-row-zip-city {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.l4zy-booking-modal-content {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3) !important;
    padding: 50px !important;
}

.l4zy-booking-form-group input, .l4zy-booking-form-group select, .l4zy-booking-form-group textarea {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

@media (max-width: 768px) {
    .l4zy-booking-modal-content {
        padding: 30px 20px !important;
        margin: 10% 15px !important;
        max-width: calc(100% - 30px) !important;
    }
    .l4zy-booking-estimated-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    #l4zy-booking-estimated-price {
        text-align: center !important;
    }
    .l4zy-booking-form-row-2col, .l4zy-booking-form-row-zip-city {
        grid-template-columns: 1fr !important;
        gap: 15px;
        margin-bottom: 15px;
    }
    .l4zy-booking-modal-close {
        top: 15px !important;
        right: 15px !important;
        font-size: 26px !important;
    }
}

/* Custom Details/Summary Styles für das Dashboard */
.l4zy-booking-dash details summary::-webkit-details-marker {
    display: none !important;
}
.l4zy-booking-dash details summary {
    list-style: none !important;
}
.l4zy-booking-dash details summary > span:last-child {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}
.l4zy-booking-dash details[open] summary > span:last-child {
    transform: rotate(180deg);
}
.l4zy-booking-dash details {
    transition: all 0.3s ease;
}

/* --- Wishlist Styling --- */
.l4zy-booking-wishlist-container {
    margin: 30px 0;
}
.l4zy-booking-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #94a3b8;
    z-index: 10;
}
.l4zy-booking-wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: #ef4444;
}
.l4zy-booking-wishlist-btn.active {
    color: #ef4444 !important;
}
.l4zy-booking-wishlist-btn svg {
    transition: transform 0.2s ease;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.l4zy-booking-wishlist-btn.active svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
}
.l4zy-booking-wishlist-btn:active svg {
    transform: scale(0.8);
}
.l4zy-booking-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    border-top-color: var(--l4zy-booking-primary);
    animation: l4zy-booking-spin 1s ease-in-out infinite;
}
@keyframes l4zy-booking-spin {
    to { transform: rotate(360deg); }
}

/* --- Locations Grid (Cuxhaven Ortsteile) --- */
.og-filter-btn {
    font-family: var(--l4zy-booking-font);
    font-size: 0.95rem;
    color: var(--l4zy-booking-text-light);
    border: 1px solid var(--l4zy-booking-border);
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.og-filter-btn:hover {
    color: var(--l4zy-booking-primary);
    border-color: var(--l4zy-booking-primary);
    background: #ecfdf5;
}
.og-filter-btn.active {
    color: #fff !important;
    background: var(--l4zy-booking-primary) !important;
    border-color: var(--l4zy-booking-primary) !important;
}
.og-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.og-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}
.og-card:hover .og-img {
    transform: scale(1.05);
}
.og-card.is-hidden {
    display: none !important;
}
.loc-tag {
    background: #ecfdf5;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
}

/* Detailseite Wishlist Button Override */
.clean-hero .l4zy-booking-wishlist-btn {
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.clean-hero .l4zy-booking-wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}
.clean-hero .l4zy-booking-wishlist-btn.active {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #ef4444 !important;
}
.clean-hero .l4zy-booking-wishlist-btn svg {
    fill: none;
    stroke: white;
    stroke-width: 2;
}
.clean-hero .l4zy-booking-wishlist-btn.active svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
}

/* --- Rabatt & Coupon Styles --- */
#l4zy-booking-coupon-msg {
    margin-top: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

/* --- Sticky Sidebanner Styles --- */
.l4zy-booking-sidebanner-container {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9999;
    font-family: var(--l4zy-booking-font);
}

.l4zy-booking-sidebanner-trigger-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.l4zy-booking-sidebanner-hide {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: -10px;
    right: -5px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.l4zy-booking-sidebanner-hide:hover {
    transform: scale(1.1);
}

.l4zy-booking-sidebanner-btn.aggressive {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: var(--l4zy-booking-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: l4zyPulseOffers 2s infinite;
}

.l4zy-booking-sidebanner-btn.aggressive:hover {
    background: var(--l4zy-booking-primary-hover);
    transform: scale(1.05) !important;
}

.l4zy-booking-sidebanner-btn.aggressive .l4zy-booking-sidebanner-btn-icon {
    font-size: 1.4rem;
    margin-right: 10px;
}

.l4zy-booking-sidebanner-btn.aggressive .l4zy-booking-sidebanner-btn-text {
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: normal;
}

@keyframes l4zyPulseOffers {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Sidebanner Drawer (Center Popup) */
.l4zy-booking-sidebanner-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px) saturate(190%);
    -webkit-backdrop-filter: blur(12px) saturate(190%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.l4zy-booking-sidebanner-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.l4zy-booking-sidebanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.l4zy-booking-sidebanner-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.l4zy-booking-sidebanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.l4zy-booking-sidebanner-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--l4zy-booking-dark);
}

.l4zy-booking-sidebanner-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--l4zy-booking-text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.l4zy-booking-sidebanner-close:hover {
    color: var(--l4zy-booking-dark);
}

.l4zy-booking-sidebanner-body {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
}

.l4zy-booking-sidebanner-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.l4zy-booking-sidebanner-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.l4zy-booking-sidebanner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.l4zy-booking-sidebanner-item.auto {
    border-left: 4px solid #ea580c;
    background: rgba(255, 247, 237, 0.5);
}

.l4zy-booking-sidebanner-item.coupon {
    border-left: 4px solid var(--l4zy-booking-primary);
    background: rgba(240, 253, 244, 0.5);
}

.l4zy-booking-sidebanner-item-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.l4zy-booking-sidebanner-item-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--l4zy-booking-dark);
}

.l4zy-booking-sidebanner-item-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--l4zy-booking-text);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .l4zy-booking-sidebanner-drawer {
        width: 95%;
    }
}

/* --- Verfügbarkeits-Belegungskalender (3-Monats-Grid) --- */
.l4zy-availability-calendar {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.l4zy-calendar-table th {
    color: #64748b !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 8px 0 !important;
    background: none !important;
}

.calendar-day-cell {
    position: relative;
    color: #fff !important;
    transition: all 0.2s ease;
    border: 1px solid #fff !important;
}

.calendar-day-cell.is-free {
    background: #3b82f6 !important; /* Blau */
}

.calendar-day-cell.is-booked {
    background: #ef4444 !important; /* Rot */
}

.calendar-day-cell.is-transition {
    background: #ef4444 !important; /* Rot (Abreise + neue Anreise) */
}

.calendar-day-cell.is-checkin {
    /* Anreisetag: Vormittag frei (Blau), Nachmittag belegt (Rot) */
    background: linear-gradient(135deg, #3b82f6 50%, #ef4444 50%) !important;
}

.calendar-day-cell.is-checkout {
    /* Abreisetag: Vormittag belegt (Rot), Nachmittag frei (Blau) */
    background: linear-gradient(135deg, #ef4444 50%, #3b82f6 50%) !important;
}

.l4zy-calendar-nav-btn {
    transition: all 0.2s ease;
}

.l4zy-calendar-nav-btn:hover {
    background: var(--l4zy-booking-primary, #059669) !important;
    transform: scale(1.05);
}

.legend-box {
    border: 1px solid #cbd5e1;
}

/* --- Sidebar Buchungs-Widget --- */
.l4zy-booking-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
    font-family: var(--l4zy-booking-font);
}

.l4zy-booking-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.l4zy-booking-sidebar-hearts {
    display: flex;
    gap: 4px;
    color: #1b547c;
    font-size: 1.2rem;
}

.l4zy-booking-sidebar-pin-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #94a3b8;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.l4zy-booking-sidebar-pin-btn:hover {
    color: #1b547c;
    transform: scale(1.1);
}

.l4zy-booking-sidebar-pin-btn.active {
    color: #ef4444; /* Rot, wenn gemerkt */
}

.l4zy-booking-sidebar-price-section {
    padding: 20px 20px 10px;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.l4zy-booking-sidebar-price-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1b547c;
    margin: 0 4px;
}

.l4zy-booking-sidebar-body {
    padding: 20px 20px 0;
}

.l4zy-booking-sidebar-body-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 20px;
}

.l4zy-booking-sidebar-dates-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.l4zy-booking-sidebar-dates-split {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.l4zy-booking-sidebar-field {
    flex: 1;
    padding: 12px 16px;
    position: relative;
}

.l4zy-booking-sidebar-dates-split .l4zy-booking-sidebar-field:first-child {
    border-right: 1px solid #e2e8f0;
}

.l4zy-booking-sidebar-label {
    display: block;
    font-size: 0.8rem;
    color: #1b547c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    pointer-events: none;
}

.l4zy-booking-sidebar-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    pointer-events: none;
}

.l4zy-booking-sidebar-field input[type="date"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.l4zy-booking-sidebar-guests {
    padding: 12px 16px;
    position: relative;
    background: #ffffff;
}

.l4zy-booking-sidebar-guests select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0;
    margin-top: 2px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.l4zy-booking-sidebar-guests::after {
    content: "▼";
    font-size: 0.75rem;
    color: #1b547c;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-2px);
    pointer-events: none;
}

.l4zy-booking-sidebar-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px;
    margin-top: 10px;
}

.l4zy-booking-sidebar-total-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
}

.l4zy-booking-sidebar-total-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1b547c;
}

.l4zy-booking-sidebar-submit-btn {
    background: #1b547c;
    color: white !important;
    width: 100%;
    border: none;
    padding: 18px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    display: block;
    text-decoration: none !important;
}

.l4zy-booking-sidebar-submit-btn:hover {
    background: #154261;
}

.l4zy-booking-sidebar-submit-btn:active {
    transform: scale(0.98);
}

.l4zy-booking-sidebar-objnr {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 15px;
    text-align: left;
    padding: 0 20px 20px;
}

.l4zy-booking-sidebar-error-msg {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-top: 15px;
    animation: sidebarShake 0.4s ease;
}

@keyframes sidebarShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

