/**
 * CAMPWERK Booking - Brand Styles
 * Design System v6.3.5
 */

:root {
    /* Brand Colors */
    --primary-red: rgb(241, 41, 53);
    --text-primary: rgb(29, 29, 31);
    --text-emphasis: #1d1d1f;
    
    /* Legacy colors (für Kompatibilität) */
    --primary-color: rgb(241, 41, 53);
    --secondary-color: rgb(29, 29, 31);
    --bg-dark: rgb(29, 29, 31);
    --bg-light: #ffffff;
    --text-dark: rgb(29, 29, 31);
    --text-light: #ffffff;
    --text-muted: #7F8C8D;
    --border-color: #E0E0E0;
    --hover-color: rgba(241, 41, 53, 0.9);
    --disabled-color: #95A5A6;
    --success-color: #27AE60;
    --error-color: rgb(241, 41, 53);
    
    /* Typography */
    --font-size-base: 21px;
    --font-weight-base: 600;
    --letter-spacing-base: 0.39px;
    --line-height-base: 29px;
    --line-height-button: 23px;
    
    /* Button Styles */
    --button-bg: rgb(241, 41, 53);
    --button-border: 2px solid rgb(29, 29, 31);
    --button-radius: 30px;
    
    /* Spacing */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-base);
    letter-spacing: var(--letter-spacing-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: #F5F7FA;
}

/* Text Utilities */
.text-emphasis,
strong,
b,
h1, h2, h3, h4, h5, h6 {
    color: var(--text-emphasis);
    font-weight: var(--font-weight-base);
}

.booking-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* ==================== KALENDER-SEKTION (Links) ==================== */

.calendar-section {
    flex: 0 0 500px;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.brand-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin: 0 auto 20px;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.calendar-wrapper {
    flex: 1;
}

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

.calendar-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: white;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 0;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: rgba(255,255,255,0.8);
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: rgba(255,255,255,0.1);
    color: white;
}

.calendar-day.selected {
    background: white;
    color: var(--bg-dark);
    font-weight: 600;
}

.calendar-day.disabled {
    opacity: 0.1;
    pointer-events: none;
    cursor: not-allowed;
}

.calendar-day.fully-booked {
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    background: rgba(255,255,255,0.05);
}

.calendar-day.other-month {
    color: rgba(255,255,255,0.2);
    cursor: default;
}

.calendar-day.empty {
    visibility: hidden;
    pointer-events: none;
}

.calendar-day.today {
    border: 2px solid rgba(255,255,255,0.5);
}

/* ==================== BUCHUNGS-SEKTION (Rechts) ==================== */

.booking-section {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
    background: white;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.info-box {
    margin-bottom: 30px;
}

.info-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.location {
    font-size: 15px !important;
}

.duration {
    font-size: 16px !important;
    color: var(--text-dark) !important;
    background: #F0F4F8;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    display: inline-block;
}

.instruction {
    font-size: 14px !important;
    color: var(--text-muted) !important;
}

#selectedDateDisplay {
    font-weight: 600;
    color: var(--text-dark);
}

.timezone-selector {
    margin-bottom: 30px;
}

.timezone-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.time-slot {
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    background: white;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--hover-color);
    background: #F0F8FF;
    transform: translateY(-2px);
}

.time-slot.disabled {
    background: #F5F5F5;
    color: var(--disabled-color);
    cursor: not-allowed;
    border-color: #E8E8E8;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--hover-color);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 8px 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    color: var(--primary-color);
}

.booking-summary {
    background: #F9FAFB;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.booking-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.summary-item {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.summary-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.booking-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group select {
    cursor: pointer;
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--hover-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 30px;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--button-bg);
    color: white;
    border: none;
    border-bottom: var(--button-border);
    border-radius: var(--button-radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-base);
    letter-spacing: var(--letter-spacing-base);
    line-height: var(--line-height-button);
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 41, 53, 0.3);
}

.submit-btn:disabled {
    background: var(--disabled-color);
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* ==================== ERFOLGSMELDUNG ==================== */

.success-screen {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-screen h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.success-details {
    background: #F9FAFB;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.success-details p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.success-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

.success-details span {
    color: var(--text-dark);
    font-weight: 500;
}

.success-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-muted) !important;
}

.btn-secondary {
    margin-top: 20px;
    padding: 12px 32px;
    background: white;
    color: var(--hover-color);
    border: 2px solid var(--hover-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--hover-color);
    color: white;
}

/* ==================== SPAMSCHUTZ ==================== */

.campwerk-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ==================== ERROR MESSAGES ==================== */

.error-message {
    background: #FEE;
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    font-size: 14px;
}

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

@media (max-width: 968px) {
    .booking-container {
        flex-direction: column;
    }
    
    .calendar-section {
        flex: none;
        width: 100%;
    }
    
    .booking-section {
        padding: 30px 20px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 640px) {
    .calendar-section {
        padding: 20px 15px;
    }
    
    .brand-header {
        margin-bottom: 20px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .booking-section {
        padding: 20px 15px;
    }
    
    .time-slots {
        grid-template-columns: 1fr 1fr;
    }
}