/**
 * Template Workflow CSS
 * 
 * Styles für das Template-basierte Buchungsworkflow-System
 * Moderne, responsive Gestaltung mit klarer UX
 * 
 * @package BW_Wohnmobilvermietung
 * @since 1.0.0
 */

/* ==========================================================================
   WORKFLOW CONTAINER
   ========================================================================== */

.bw-workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.bw-workflow-container * {
    box-sizing: border-box;
}

/* ==========================================================================
   WORKFLOW HEADER
   ========================================================================== */

.bw-workflow-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.bw-workflow-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #007cba;
    margin: 0 0 10px 0;
}

.bw-workflow-description {
    font-size: 1.1em;
    color: #666;
    margin: 0 0 15px 0;
}

.bw-workflow-step-indicator {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.bw-workflow-progress {
    margin-bottom: 30px;
}

.bw-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.bw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #005a87 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bw-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bw-progress-step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.bw-progress-step.completed {
    background: #007cba;
    color: white;
}

.bw-progress-step.active {
    background: #007cba;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* Spezielle Regel für Schritt 5: Alle Schritte sollen blau sein */
.bw-workflow-container[data-step="5"] .bw-progress-step {
    background: #007cba;
    color: white;
}

/* Spezielle Regel für Schritt 5: Fortschrittsbalken komplett blau */
.bw-workflow-container[data-step="5"] .bw-progress-fill {
    width: 100% !important;
    background: #007cba;
}

/* ==========================================================================
   WORKFLOW CONTENT
   ========================================================================== */

.bw-workflow-content {
    min-height: 400px;
    margin-bottom: 30px;
}

.bw-step-content {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bw-step-header {
    margin-bottom: 25px;
}

.bw-step-header h3 {
    font-size: 1.8em;
    color: #007cba;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.bw-step-description {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.bw-select,
.bw-input,
.bw-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.bw-select:focus,
.bw-input:focus,
.bw-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.bw-textarea {
    resize: vertical;
    min-height: 100px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.bw-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bw-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
}

.bw-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.bw-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.bw-btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.bw-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.bw-btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.bw-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.bw-btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ==========================================================================
   WORKFLOW NAVIGATION
   ========================================================================== */

.bw-workflow-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
}

.bw-workflow-navigation .bw-btn {
    min-width: 120px;
}

/* ==========================================================================
   INFO BOXES
   ========================================================================== */

.bw-info-box {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.bw-info-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.bw-info-box.success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.bw-info-box.warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.bw-info-box.error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.bw-info-box.info {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    color: #0c5460;
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.bw-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.bw-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: bw-spin-clean 1s linear infinite;
}

@keyframes bw-spin-clean {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bw-loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Moderner Spinner für verschiedene Zustände */
.bw-spinner-small {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.bw-spinner-large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Loading-Overlay für bessere UX */
.bw-loading-overlay {
    position: relative;
    overflow: hidden;
}

.bw-loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step-Navigation Loading Overlay */
.bw-step-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bw-step-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.bw-step-loading-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.bw-step-loading-content h3 {
    margin: 20px 0 10px 0;
    color: #007cba;
    font-size: 1.4em;
    font-weight: 600;
}

.bw-step-loading-content p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1em;
}

.bw-loading-progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.bw-loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #005a87 100%);
    border-radius: 2px;
    width: 0%;
    animation: bw-loading-progress 2s ease-in-out infinite;
}

@keyframes bw-loading-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ==========================================================================
   ERROR STATES
   ========================================================================== */

.bw-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.bw-error-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

/* ==========================================================================
   FALLBACK CONTENT
   ========================================================================== */

.bw-workflow-fallback {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    margin: 20px 0;
}

.bw-workflow-fallback h3 {
    color: #007cba;
    margin: 0 0 15px 0;
}

.bw-development-info {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.bw-development-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.bw-development-info li {
    margin-bottom: 5px;
}

/* ==========================================================================
   DEBUG INFORMATION
   ========================================================================== */

.bw-workflow-debug {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.bw-workflow-debug h4 {
    color: #007cba;
    margin: 0 0 15px 0;
    font-family: inherit;
}

.bw-workflow-debug pre {
    background: white;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .bw-workflow-container {
        padding: 15px;
    }
    
    .bw-workflow-title {
        font-size: 1.8em;
    }
    
    .bw-workflow-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .bw-workflow-navigation .bw-btn {
        width: 100%;
    }
    
    .bw-progress-steps {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .bw-progress-step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bw-workflow-container {
        padding: 10px;
    }
    
    .bw-workflow-title {
        font-size: 1.5em;
    }
    
    .bw-step-header h3 {
        font-size: 1.4em;
    }
    
    .bw-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .bw-select,
    .bw-input,
    .bw-textarea {
        padding: 10px 12px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.bw-workflow-container *:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.bw-workflow-container button:focus,
.bw-workflow-container .bw-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Screen Reader Only */
.bw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bw-workflow-container {
        background: white;
        color: black;
    }
    
    .bw-btn-primary {
        background: black;
        color: white;
        border: 2px solid black;
    }
    
    .bw-btn-secondary {
        background: white;
        color: black;
        border: 2px solid black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .bw-step-content {
        animation: none;
    }
    
    .bw-spinner {
        animation: none;
    }
    
    .bw-skeleton {
        animation: none;
    }
    
    .bw-btn {
        transition: none;
    }
    
    .bw-progress-fill {
        transition: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .bw-workflow-navigation,
    .bw-workflow-debug {
        display: none;
    }
    
    .bw-workflow-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .bw-btn {
        border: 1px solid #000;
        background: white !important;
        color: black !important;
    }
}

/* Fahrzeug-Grid Layout */
.bw-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding: 0;
    /* Maximale Breite für besseres Layout bei wenigen Fahrzeugen */
    justify-content: center;
}

/* Maximale Breite für einzelne Fahrzeugkacheln */
.bw-vehicles-grid .bw-vehicle-card {
    max-width: 400px;
    margin: 0 auto;
}

/* Einzelne Fahrzeug-Karte */
.bw-vehicle-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.bw-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.bw-vehicle-card.selected {
    border-color: #007cba;
    box-shadow: 0 8px 30px rgba(0,124,186,0.2);
    transform: translateY(-3px);
}

/* Fahrzeug-Bild */
.bw-vehicle-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bw-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bw-vehicle-card:hover .bw-vehicle-image img {
    transform: scale(1.05);
}

/* Placeholder für fehlende Bilder */
.bw-vehicle-image.no-image,
.bw-vehicle-image:empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bw-vehicle-image.no-image::before,
.bw-vehicle-image:empty::before {
    content: "🚐";
    font-size: 5rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.bw-vehicle-image.no-image::after,
.bw-vehicle-image:empty::after {
    content: "Wohnmobil";
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bw-placeholder-icon {
    font-size: 5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Schnupper-Badge */
.bw-schnupper-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

/* Fahrzeug-Content */
.bw-vehicle-content {
    padding: 24px;
}

.bw-vehicle-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

/* Fahrzeug-Spezifikationen */
.bw-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.bw-spec {
    background: #f8f9fa;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Fahrzeug-Features */
.bw-vehicle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Fahrzeug-Preisanzeige */
.bw-vehicle-price {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.bw-vehicle-price.dynamic {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.bw-vehicle-price.schnupper {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    border-color: #ff9800;
}

.bw-price-amount {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.bw-vehicle-price.dynamic .bw-price-amount {
    color: #1976d2;
}

.bw-vehicle-price.schnupper .bw-price-amount {
    color: #f57c00;
}

.bw-price-period {
    display: block;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-top: 2px;
}

.bw-price-note {
    font-size: 11px;
    color: #1976d2;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.3;
}

/* Auswahl-Button */
.bw-select-vehicle {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bw-select-vehicle:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,124,186,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bw-vehicles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bw-vehicle-specs {
        justify-content: center;
    }
    
    .bw-spec {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Keine Fahrzeuge gefunden */
.bw-no-vehicles {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 30px 0;
}

.bw-no-vehicles h3 {
    color: #666;
    font-size: 24px;
    margin-bottom: 12px;
}

.bw-no-vehicles p {
    color: #888;
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   INTERAKTIVER BELEGUNGSKALENDER - 2-SPALTIG LAYOUT
   ========================================================================== */

/* Kalender-Container - 2-spaltig */
.bw-calendar-container {
    margin-top: 30px;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-areas: 
        "calendar-header calendar-header"
        "calendar-grid calendar-sidebar";
}

.bw-calendar-header {
    grid-area: calendar-header;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

.bw-calendar-title h4 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bw-calendar-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.bw-calendar-nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bw-calendar-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.bw-calendar-month {
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-align: center;
    flex: 1;
}

/* Kalender-Grid - links */
.bw-calendar-grid-container {
    grid-area: calendar-grid;
    padding: 15px;
    background: white;
}

.bw-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

/* Wochentage-Header */
.bw-calendar-weekdays {
    display: contents;
}

.bw-calendar-weekday {
    background: #e74c3c;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
}

/* Kalender-Tag */
.bw-calendar-day {
    position: relative;
    height: 45px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2px;
    
    /* Verhindert Text-Selektion beim Drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.bw-calendar-day:hover {
    background: #f8f9fa;
    border-color: #e74c3c;
}

/* Datum-Zahl */
.bw-calendar-day .bw-day-number {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    
    /* Verhindert Text-Selektion */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none; /* Komplett ignorieren für Events */
}

/* Preis-Anzeige */
.bw-calendar-day .bw-day-price {
    font-size: 9px;
    color: #27ae60;
    font-weight: 500;
    line-height: 1;
    margin-top: 2px;
    
    /* Verhindert Text-Selektion */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none; /* Komplett ignorieren für Events */
}

/* Tag-Status */
.bw-calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.bw-calendar-day.other-month .bw-day-price {
    color: #6c757d;
    font-size: 11px;
}

.bw-calendar-day.booked {
    background: #ffebee;
    cursor: not-allowed;
}

.bw-calendar-day.booked .bw-day-number {
    color: #c62828;
}

.bw-calendar-day.booked .bw-day-price {
    color: #c62828;
}

.bw-calendar-day.pending {
    background: #ffeb3b;
    border-color: #ffc107;
    cursor: not-allowed;
}

.bw-calendar-day.pending .bw-day-number {
    color: #333;
}

.bw-calendar-day.pending .bw-day-price {
    color: #333;
}

.bw-calendar-day.blocked {
    background: #f5f5f5;
    cursor: not-allowed;
}

.bw-calendar-day.blocked .bw-day-number {
    color: #757575;
}

.bw-calendar-day.blocked .bw-day-price {
    display: none;
}

/* Auswahl-Status */
.bw-calendar-day.selected {
    background: #e3f2fd;
}

.bw-calendar-day.selection-start {
    background: #1976d2;
    color: white;
}

.bw-calendar-day.selection-start .bw-day-number,
.bw-calendar-day.selection-start .bw-day-price {
    color: white;
}

.bw-calendar-day.selection-end {
    background: #1976d2;
    color: white;
}

.bw-calendar-day.selection-end .bw-day-number,
.bw-calendar-day.selection-end .bw-day-price {
    color: white;
}

.bw-calendar-day.in-range {
    background: #bbdefb;
}

/* Sidebar - rechts */
.bw-calendar-sidebar {
    grid-area: calendar-sidebar;
    background: #f8f9fa;
    padding: 20px;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Kalender-Legende - in Sidebar */
.bw-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.bw-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bw-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.bw-legend-available { background: white; }
.bw-legend-selected { background: #bbdefb; }
.bw-legend-booked { background: #ffebee; }
.bw-legend-pending { background: #ffeb3b; }
.bw-legend-blocked { background: #f5f5f5; }

/* Datum-Eingabe-Felder - in Sidebar */
.bw-date-selection {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bw-date-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bw-date-col {
    width: 100%;
}

.bw-date-col label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.bw-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.bw-date-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Preis-Zusammenfassung - in Sidebar */
.bw-price-summary {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #28a745;
}

.bw-price-summary h5 {
    margin: 0 0 12px 0;
    color: #155724;
    font-size: 15px;
}

.bw-price-breakdown {
    margin-bottom: 12px;
}

.bw-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 3px 0;
    font-size: 14px;
}

.bw-price-row.total {
    border-top: 1px solid #c3e6cb;
    padding-top: 8px;
    font-weight: 600;
    font-size: 15px;
}

.bw-price-value {
    font-weight: 600;
    color: #155724;
}

.bw-check-availability {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bw-check-availability:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.bw-check-availability:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bw-reset-selection {
    width: 100%;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.bw-reset-selection:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive Design für 2-spaltig Layout */
@media (max-width: 768px) {
    .bw-calendar-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "calendar-header"
            "calendar-grid"
            "calendar-sidebar";
        max-width: 100%;
        margin: 20px 10px;
    }
    
    .bw-calendar-sidebar {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .bw-calendar-header {
        padding: 12px 15px;
    }
    
    .bw-calendar-title h4 {
        font-size: 15px;
    }
    
    .bw-calendar-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .bw-calendar-month {
        font-size: 15px;
    }
    
    .bw-calendar-grid-container {
        padding: 12px;
    }
    
    .bw-calendar-day {
        min-height: 40px;
        padding: 3px;
    }
    
    .bw-day-number {
        font-size: 11px;
    }
    
    .bw-day-price {
        font-size: 8px;
    }
    
    .bw-calendar-sidebar {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bw-calendar-container {
        margin: 15px 5px;
        border-radius: 8px;
    }
    
    .bw-calendar-header {
        padding: 10px 12px;
    }
    
    .bw-calendar-navigation {
        padding: 0 12px;
    }
    
    .bw-calendar-grid-container {
        padding: 10px;
    }
    
    .bw-calendar-day {
        min-height: 35px;
        padding: 2px;
    }
    
    .bw-day-number {
        font-size: 10px;
    }
    
    .bw-day-price {
        font-size: 7px;
    }
    
    .bw-calendar-sidebar {
        padding: 12px;
        gap: 12px;
    }
    
    .bw-calendar-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Galerie-Indikator - Verbessertes Design */
.bw-gallery-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255,255,255,0.8);
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    min-width: auto;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bw-vehicle-image:hover .bw-gallery-indicator {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    color: #333;
}

/* Fahrzeug-Bild klickbar machen wenn Galerie vorhanden */
.bw-vehicle-image[data-gallery]:not([data-gallery="[]"]) {
    cursor: pointer;
    position: relative;
}

.bw-vehicle-image[data-gallery]:not([data-gallery="[]"]):hover {
    opacity: 0.9;
}

.bw-vehicle-image[data-gallery]:not([data-gallery="[]"]):hover .bw-gallery-indicator {
    background: rgba(255,255,255,0.8);
}

/* Inline-Galerie-Navigation - Verbessertes Design */
.bw-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(255,255,255,0.9);
    color: #333;
    font-size: 20px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.bw-vehicle-image:hover .bw-gallery-nav {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.bw-gallery-nav:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,1);
    color: #333;
}

.bw-gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.bw-gallery-prev {
    left: 12px;
}

.bw-gallery-next {
    right: 12px;
}

/* Galerie-Punkte (Dots) - Verbessertes Design */
.bw-gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.bw-vehicle-image:hover .bw-gallery-dots {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bw-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bw-gallery-dot.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.3);
    border-color: rgba(255,255,255,1);
    animation: pulse 2s ease-in-out infinite;
    color: #333;
}

.bw-gallery-dot:hover:not(.active) {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

/* Fahrzeug-Bild Hover-Effekt verbessern */
.bw-vehicle-image[data-gallery]:not([data-gallery="[]"]) {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.bw-vehicle-image[data-gallery]:not([data-gallery="[]"]):hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.bw-vehicle-image[data-gallery]:not([data-gallery="[]"]) img {
    transition: all 0.3s ease;
}

.bw-vehicle-image[data-gallery]:not([data-gallery="[]"]):hover img {
    filter: brightness(1.1) contrast(1.05);
}

/* Smooth Image Transition */
.bw-vehicle-image img {
    transition: all 0.4s ease, opacity 0.3s ease;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .bw-gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .bw-gallery-prev {
        left: 8px;
    }
    
    .bw-gallery-next {
        right: 8px;
    }
    
    .bw-gallery-dots {
        bottom: 10px;
        gap: 6px;
        padding: 6px 10px;
    }
    
    .bw-gallery-dot {
        width: 8px;
        height: 8px;
    }
    
    .bw-gallery-indicator {
        top: 4px;
        right: 4px;
        font-size: 8px;
        padding: 1px 4px;
        border-radius: 6px;
    }
}

/* Loading-Indikator für Bildwechsel */
.bw-vehicle-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 4;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pulse-Effekt für aktiven Dot */
@keyframes pulse {
    0% { box-shadow: 0 0 8px rgba(255,255,255,0.6); }
    50% { box-shadow: 0 0 15px rgba(255,255,255,0.8); }
    100% { box-shadow: 0 0 8px rgba(255,255,255,0.6); }
}

/* Deaktivierte Navigation-Buttons */
.bw-gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.bw-gallery-nav:disabled:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ==========================================================================
   EXTRAS & ZUSATZLEISTUNGEN (STEP 2)
   ========================================================================== */

.bw-step-extras .bw-step-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.bw-step-extras .bw-step-title h2 {
    font-size: 2em;
    color: #007cba;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.bw-step-extras .bw-step-title p {
    color: #666;
    font-size: 1.1em;
    margin: 0 0 20px 0;
}

/* Buchungsübersicht */
.bw-booking-summary {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.bw-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.bw-summary-item:last-child {
    border-bottom: none;
}

.bw-summary-label {
    font-weight: 600;
    color: #495057;
}

.bw-summary-value {
    font-weight: 700;
    color: #007cba;
}

/* Extras-Kategorien */
.bw-extras-category {
    margin-bottom: 35px;
}

.bw-category-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 20px 0;
    padding: 15px 0;
    border-bottom: 3px solid #007cba;
    position: relative;
}

.bw-category-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff6b35;
}

/* Extras-Grid */
.bw-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bw-extra-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.bw-extra-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.1);
    transform: translateY(-2px);
}

.bw-extra-item:has(.bw-extra-checkbox-input:checked) {
    border-color: #007cba;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.15);
}

/* Checkbox-Styling */
.bw-extra-checkbox {
    position: relative;
}

.bw-extra-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.bw-extra-label {
    display: block;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 40px;
}

.bw-extra-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.bw-extra-label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 16px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.bw-extra-checkbox-input:checked + .bw-extra-label::before {
    background: #007cba;
    border-color: #007cba;
}

.bw-extra-checkbox-input:checked + .bw-extra-label::after {
    opacity: 1;
}

.bw-extra-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bw-extra-name {
    font-weight: 700;
    color: #343a40;
    font-size: 1.1em;
    line-height: 1.3;
}

.bw-extra-price {
    font-weight: 700;
    color: #007cba;
    font-size: 1.1em;
    white-space: nowrap;
    margin-left: 15px;
}

.bw-extra-price small {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 500;
}

.bw-extra-description {
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.4;
    margin-top: 8px;
}

/* Mengen-Auswahl */
.bw-extra-quantity {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.bw-extra-quantity label {
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.bw-extra-quantity-select {
    width: 100%;
    max-width: 120px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.bw-extra-quantity-select:focus {
    outline: none;
    border-color: #007cba;
}

/* Kostenübersicht */
.bw-cost-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    position: sticky;
    top: 20px;
}

.bw-cost-summary h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 20px 0;
    text-align: center;
}

.bw-cost-breakdown {
    space-y: 10px;
}

.bw-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.bw-cost-row:last-child {
    border-bottom: none;
}

.bw-cost-row.bw-basic-cost {
    font-weight: 600;
    color: #495057;
}

.bw-cost-row.bw-extra-cost {
    color: #6c757d;
    font-size: 0.95em;
}

.bw-cost-row.bw-total-cost {
    font-weight: 700;
    font-size: 1.1em;
    color: #007cba;
    border-top: 2px solid #007cba;
    margin-top: 10px;
    padding-top: 15px;
}

.bw-cost-label {
    flex: 1;
}

.bw-cost-value {
    font-weight: 700;
    white-space: nowrap;
}

/* Step Navigation */
.bw-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.bw-btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bw-btn-back:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.bw-btn-next {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bw-btn-next:hover {
    background: #005a87;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bw-booking-summary {
        grid-template-columns: 1fr;
    }
    
    .bw-extras-grid {
        grid-template-columns: 1fr;
    }
    
    .bw-extra-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bw-extra-price {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .bw-step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .bw-step-navigation .bw-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bw-step-extras .bw-step-header {
        padding: 20px;
    }
    
    .bw-extra-item {
        padding: 15px;
    }
    
    .bw-cost-summary {
        padding: 20px;
        position: static;
    }
}

/* ==========================================================================
   STEP 3 - CUSTOMER DATA
   ========================================================================== */

.bw-step-customer .bw-step-header {
    margin-bottom: 30px;
}

.bw-step-customer .bw-step-title h2 {
    font-size: 1.8em;
    color: #007cba;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.bw-step-customer .bw-step-title p {
    color: #666;
    margin: 0;
    font-size: 1.1em;
}

/* Preisaufschlüsselung in Step 3 */
.bw-price-details {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.bw-price-details summary {
    cursor: pointer;
    color: #007cba;
    font-weight: 600;
    padding: 8px 0;
    outline: none;
    transition: color 0.3s ease;
}

.bw-price-details summary:hover {
    color: #005a87;
}

.bw-price-details summary::marker {
    color: #007cba;
}

.bw-price-breakdown {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bw-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.bw-price-item:last-child {
    border-bottom: none;
}

.bw-price-item.bw-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #007cba;
    font-size: 1.1em;
}

.bw-price-item span:first-child {
    color: #495057;
}

.bw-price-item span:last-child {
    color: #007cba;
    font-weight: 600;
}

.bw-price-item.bw-total span {
    color: #007cba;
}

/* Customer Form Styles */
.bw-customer-form {
    max-width: 800px;
}

.bw-form-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bw-form-section h3 {
    margin: 0 0 20px 0;
    color: #007cba;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.bw-field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.bw-field-row:last-child {
    margin-bottom: 0;
}

.bw-field-group {
    flex: 1;
}

.bw-field-group.bw-field-full {
    flex: 1 1 100%;
}

.bw-field-group.bw-field-small {
    flex: 0 0 120px;
}

.bw-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.bw-field-group input,
.bw-field-group select,
.bw-field-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.bw-field-group input:focus,
.bw-field-group select:focus,
.bw-field-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.bw-field-note {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Login Section */
.bw-login-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bw-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.bw-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.bw-checkbox-text {
    font-weight: 500;
    color: #495057;
}

.bw-login-fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.bw-login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.bw-forgot-password-link {
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bw-forgot-password-link:hover {
    color: #007cba !important;
    text-decoration: underline;
}

/* Elementor Override - spezifischer Selektor */
.elementor-kit-5 .bw-forgot-password-link,
.elementor-kit-5 .bw-login-actions .bw-forgot-password-link {
    color: #333 !important;
}

.elementor-kit-5 .bw-forgot-password-link:hover,
.elementor-kit-5 .bw-login-actions .bw-forgot-password-link:hover {
    color: #007cba !important;
}

.bw-divider {
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
    font-style: italic;
    position: relative;
    background: white;
    padding: 0 15px;
    z-index: 2;
}

.bw-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
    z-index: 1;
}

/* Conditions Section */
.bw-conditions-section {
    border-color: #ffc107;
    background: #fff8e1;
}

.bw-conditions-section h3 {
    color: #f57c00;
    border-bottom-color: #ffc107;
}

.bw-conditions-list {
    space-y: 15px;
}

.bw-condition-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.bw-condition-item input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.2);
    flex-shrink: 0;
}

.bw-condition-item .bw-checkbox-text {
    line-height: 1.5;
    color: #333;
}

/* Responsive Design für Step 3 */
@media (max-width: 768px) {
    .bw-field-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .bw-field-group.bw-field-small {
        flex: 1;
    }
    
    .bw-form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .bw-form-section h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .bw-customer-form {
        max-width: 100%;
    }
    
    .bw-form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .bw-field-group input,
    .bw-field-group select,
    .bw-field-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ==========================================================================
   SUCCESS PAGE - KOMPAKT
   ========================================================================== */

.bw-step-success {
    max-width: 800px;
    margin: 0 auto;
}

/* Success Card - Highlight */
.bw-success-highlight {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    margin-bottom: 20px;
}

.bw-success-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.bw-success-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.bw-success-details h3 {
    color: #28a745;
    margin: 0 0 15px 0;
    font-size: 1.8em;
    font-weight: 700;
}

.bw-booking-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
    font-size: 14px;
    line-height: 1.6;
}

.bw-trip-info {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

/* Payment Info - Kompakt */
.bw-payment-compact {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.bw-payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.bw-payment-icon {
    font-size: 24px;
}

.bw-discount-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.bw-price-info {
    margin-bottom: 15px;
}

.bw-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.bw-price-row:last-child {
    border-bottom: none;
}

.bw-price-row.bw-discount {
    color: #28a745;
    font-weight: 600;
}

.bw-price-row.bw-total {
    background: #f8f9fa;
    margin: 10px -10px 0 -10px;
    padding: 12px 10px;
    border-radius: 6px;
    font-size: 1.1em;
    border: none;
}

.bw-payment-steps {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    color: #666;
    line-height: 1.5;
}

/* Next Steps Grid */
.bw-next-steps h3 {
    margin-bottom: 20px;
    color: #333;
}

.bw-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bw-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bw-step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bw-step-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.bw-step-item strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.bw-step-item small {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* Contact Info - Kompakt */
.bw-contact-compact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.bw-contact-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.bw-contact-icon {
    font-size: 24px;
    color: #007cba;
    flex-shrink: 0;
}

.bw-contact-info strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.bw-contact-info a,
.bw-step-success .bw-contact-info a,
.bw-workflow-container .bw-contact-info a {
    color: #007cba !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.bw-contact-info a:hover,
.bw-step-success .bw-contact-info a:hover,
.bw-workflow-container .bw-contact-info a:hover {
    text-decoration: underline;
    color: #0056b3 !important;
}

.bw-contact-info small {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .bw-success-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .bw-success-icon {
        font-size: 36px;
    }
    
    .bw-success-details h3 {
        font-size: 1.5em;
    }
    
    .bw-steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bw-step-item {
        padding: 12px;
    }
    
    .bw-contact-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bw-step-success {
        margin: 0;
    }
    
    .bw-success-card {
        padding: 15px;
    }
    
    .bw-payment-compact {
        padding: 15px;
    }
    
    .bw-booking-info,
    .bw-trip-info {
        padding: 12px;
        font-size: 13px;
    }
    
    .bw-payment-steps {
        padding: 10px;
        font-size: 13px;
    }
}

/* ==========================================================================
   SCHNUPPER-KALENDER (nur Fr-So Auswahl)
   ========================================================================== */

.bw-schnupper-calendar-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.bw-schnupper-calendar h4 {
    color: #007cba;
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.bw-schnupper-info {
    margin-bottom: 25px;
}

.bw-schnupper-info .bw-info-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffd93d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.bw-schnupper-info .bw-info-box p {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    color: #856404;
}

.bw-schnupper-info .bw-info-box p:last-child {
    margin-bottom: 0;
}

.bw-schnupper-date-selection {
    margin-bottom: 25px;
}

.bw-schnupper-date-selection .bw-date-row {
    display: flex;
    gap: 20px;
    align-items: end;
}

.bw-schnupper-date-selection .bw-date-col {
    flex: 1;
}

.bw-schnupper-date-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.bw-schnupper-date-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.bw-schnupper-date-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.bw-schnupper-date-input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.bw-check-schnupper-availability {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bw-check-schnupper-availability:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.bw-check-schnupper-availability:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bw-schnupper-availability-result {
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bw-schnupper-availability-result .bw-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    color: #155724;
}

.bw-schnupper-availability-result .bw-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    color: #856404;
}

/* Mobile Anpassungen für Schnupper-Kalender */
@media (max-width: 768px) {
    .bw-schnupper-calendar-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .bw-schnupper-date-selection .bw-date-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .bw-check-schnupper-availability {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .bw-schnupper-calendar-container {
        padding: 15px;
    }
    
    .bw-schnupper-calendar h4 {
        font-size: 1.2em;
    }
    
    .bw-schnupper-date-input {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

/* ==========================================================================
   VISUELLER SCHNUPPER-KALENDER (Kalender-Widget)
   ========================================================================== */

.bw-schnupper-calendar-widget {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bw-schnupper-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.bw-schnupper-month-title {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #007cba;
}

.bw-schnupper-nav-btn {
    background: #007cba;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bw-schnupper-nav-btn:hover {
    background: #005a87;
    transform: scale(1.1);
}

.bw-schnupper-calendar-grid {
    margin-bottom: 20px;
}

.bw-schnupper-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.bw-schnupper-weekday {
    text-align: center;
    padding: 10px 5px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border-radius: 4px;
}

.bw-schnupper-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.bw-schnupper-day {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.bw-schnupper-day.empty {
    border: none;
    background: transparent;
}

.bw-schnupper-day.past {
    background: #f8f9fa;
    color: #6c757d;
}

.bw-schnupper-day.available {
    background: #e8f5e8;
    border-color: #28a745;
}

.bw-schnupper-day.booked {
    background: #ffebee;
    border-color: #dc3545;
    color: #721c24;
}

.bw-schnupper-day.pending {
    background: #ffeb3b;
    border-color: #ffc107;
    color: #333;
}

.bw-schnupper-day.bw-schnupper-friday {
    font-weight: bold;
}

.bw-schnupper-day.bw-schnupper-friday.available {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    cursor: pointer;
    border-color: #007cba;
}

.bw-schnupper-day.bw-schnupper-friday.available:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.bw-schnupper-day.selected {
    background: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
    font-weight: bold;
}

.bw-schnupper-day.weekend-selected {
    background: #bbdefb !important;
    border-color: #2196f3 !important;
    color: #0d47a1 !important;
}

.bw-day-number {
    font-size: 16px;
    font-weight: 600;
}

.bw-friday-label {
    font-size: 10px;
    margin-top: 2px;
    background: rgba(255,255,255,0.2);
    padding: 1px 4px;
    border-radius: 3px;
}

.bw-schnupper-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.bw-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.bw-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.bw-legend-available {
    background: #e8f5e8;
    border-color: #28a745;
}

.bw-legend-friday {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    border-color: #007cba;
}

.bw-legend-booked {
    background: #ffebee;
    border-color: #dc3545;
}

.bw-legend-selected {
    background: #bbdefb;
    border-color: #2196f3;
}

/* Mobile Anpassungen für visuellen Kalender */
@media (max-width: 768px) {
    .bw-schnupper-calendar-widget {
        padding: 15px;
        margin: 15px 0;
    }
    
    .bw-schnupper-day {
        min-height: 40px;
        font-size: 14px;
    }
    
    .bw-day-number {
        font-size: 14px;
    }
    
    .bw-friday-label {
        font-size: 8px;
    }
    
    .bw-schnupper-legend {
        gap: 10px;
    }
    
    .bw-legend-item {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .bw-schnupper-calendar-header {
        margin-bottom: 15px;
    }
    
    .bw-schnupper-month-title {
        font-size: 1.1em;
    }
    
    .bw-schnupper-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .bw-schnupper-day {
        min-height: 35px;
    }
    
    .bw-schnupper-weekday {
        padding: 8px 3px;
        font-size: 0.9em;
    }
}

/* Schnupper Continue Button */
.bw-schnupper-continue {
    background: #007cba !important;
    border-color: #007cba !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bw-schnupper-continue:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
} 