/**
 * Russhaupten Booking Calendar
 * Frontend Styles
 */

/* Page Background - Blumenwiese auf der Anfrage-Seite */
body {
    background-image: url('https://russhaupten.de/wp-content/uploads/2026/01/Blumenwiese.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Wrapper */
.rus-booking-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

/* Legend */
.rus-booking-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rus-legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.rus-legend-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 4px;
}

.rus-legend-available::before {
    background: #d4edda;
    border: 1px solid #28a745;
}

.rus-legend-pending::before {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.rus-legend-booked::before,
.rus-legend-confirmed::before {
    background: #f8d7da;
    border: 1px solid #dc3545;
}

.rus-legend-blocked::before {
    background: #e2e3e5;
    border: 1px solid #6c757d;
}

/* Calendar Container */
.rus-calendar-container {
    margin-bottom: 30px;
}

.rus-calendar-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Calendar Navigation */
.rus-calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rus-nav-prev,
.rus-nav-next {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.rus-nav-prev:hover,
.rus-nav-next:hover {
    background: #0056b3;
}

/* Calendar Months Grid */
.rus-calendar-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Single Month */
.rus-calendar-month {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.rus-month-header {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

/* Weekdays */
.rus-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 5px;
}

.rus-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 5px;
}

/* Days Grid */
.rus-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Day Cell */
.rus-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.rus-day:hover:not(.rus-day-disabled):not(.rus-day-past):not(.rus-day-empty) {
    background: #c3e6cb;
    border-color: #1e7e34;
}

.rus-day-empty {
    cursor: default;
    background: transparent;
    border-color: transparent;
}

.rus-day-past {
    background: #f8f9fa;
    border-color: #e0e0e0;
    color: #bbb;
    cursor: not-allowed;
}

.rus-day-disabled {
    cursor: not-allowed;
}

/* Status Colors */
.rus-day-pending {
    background: #fff3cd;
    color: #856404;
}

.rus-day-confirmed {
    background: #f8d7da;
    color: #721c24;
}

.rus-day-blocked {
    background: #e2e3e5;
    color: #383d41;
}

/* Selection */
.rus-day-selected {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
}

.rus-day-start {
    border-radius: 4px 0 0 4px;
}

.rus-day-end {
    border-radius: 0 4px 4px 0;
}

.rus-day-start.rus-day-end {
    border-radius: 4px;
}

.rus-day-in-range {
    background: #cce5ff;
    color: #004085;
    border-radius: 0;
}

/* Form Container */
.rus-booking-form-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

/* Selection Display */
.rus-form-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.rus-selection-dates {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rus-selection-date {
    text-align: center;
}

.rus-selection-date label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.rus-date-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rus-selection-arrow {
    font-size: 20px;
    color: #999;
}

.rus-selection-nights {
    text-align: center;
    padding-left: 15px;
    border-left: 1px solid #e0e0e0;
}

.rus-nights-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.rus-selection-nights label {
    font-size: 12px;
    color: #666;
}

.rus-btn-reset {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.rus-btn-reset:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* Form Fields */
.rus-form-fields {
    display: grid;
    gap: 15px;
}

.rus-form-row {
    display: flex;
    flex-direction: column;
}

.rus-form-row label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.rus-form-row label .required {
    color: #dc3545;
}

.rus-form-row input,
.rus-form-row textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rus-form-row input:focus,
.rus-form-row textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.rus-form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.rus-form-submit {
    margin-top: 10px;
}

.rus-btn-submit {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.rus-btn-submit:hover {
    background: #218838;
}

.rus-btn-submit:disabled {
    background: #94d3a2;
    cursor: not-allowed;
}

/* Messages */
.rus-booking-messages {
    margin-top: 15px;
}

.rus-message {
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.rus-message-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.rus-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rus-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Info Box */
.rus-booking-info {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    border-radius: 0 8px 8px 0;
}

.rus-booking-info p {
    margin: 0;
    font-size: 14px;
    color: #155724;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .rus-booking-wrapper {
        padding: 10px;
    }

    .rus-booking-legend {
        justify-content: center;
    }

    .rus-calendar-months {
        grid-template-columns: 1fr;
    }

    .rus-form-selection {
        flex-direction: column;
        text-align: center;
    }

    .rus-selection-dates {
        justify-content: center;
    }

    .rus-selection-nights {
        border-left: none;
        padding-left: 0;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }

    .rus-day {
        font-size: 12px;
    }
}
