/* ═══════════════════════════════════════════════════
   The Weekender Mitfahrzentrale – Frontend Styles
   ═══════════════════════════════════════════════════ */

:root {
    --wmfz-primary: #1a1a2e;
    --wmfz-secondary: #16213e;
    --wmfz-accent: #e94560;
    --wmfz-accent-hover: #d63851;
    --wmfz-success: #2e7d32;
    --wmfz-success-bg: #e8f5e9;
    --wmfz-warning: #f57c00;
    --wmfz-text: #1a1a2e;
    --wmfz-text-light: #6c7a89;
    --wmfz-bg: #f5f6fa;
    --wmfz-card-bg: #ffffff;
    --wmfz-border: #e0e4ea;
    --wmfz-radius: 14px;
    --wmfz-radius-sm: 8px;
    --wmfz-shadow: 0 2px 12px rgba(26, 26, 46, 0.08);
    --wmfz-shadow-hover: 0 8px 32px rgba(26, 26, 46, 0.15);
    --wmfz-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --wmfz-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.wmfz-app {
    font-family: var(--wmfz-font);
    color: var(--wmfz-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero ────────────────────────────────── */
.wmfz-hero {
    background: linear-gradient(135deg, var(--wmfz-primary) 0%, var(--wmfz-secondary) 50%, #0f3460 100%);
    border-radius: 0 0 var(--wmfz-radius) var(--wmfz-radius);
    padding: 60px 40px;
    text-align: center;
    margin: -20px -20px 40px;
    position: relative;
    overflow: hidden;
}
.wmfz-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.wmfz-hero__title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    position: relative;
    letter-spacing: -0.02em;
}
.wmfz-hero__title span {
    color: var(--wmfz-accent);
    display: block;
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 6px;
}
.wmfz-hero__subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin: 16px 0 0;
    position: relative;
}

/* ── Filters ─────────────────────────────── */
.wmfz-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 6px;
    background: var(--wmfz-card-bg);
    border-radius: 50px;
    box-shadow: var(--wmfz-shadow);
}
.wmfz-filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--wmfz-text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wmfz-transition);
    white-space: nowrap;
}
.wmfz-filter-btn:hover {
    background: var(--wmfz-bg);
    color: var(--wmfz-text);
}
.wmfz-filter-btn.active {
    background: var(--wmfz-primary);
    color: #fff;
}

/* ── Section ─────────────────────────────── */
.wmfz-section {
    margin-bottom: 50px;
}
.wmfz-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--wmfz-primary);
}
.wmfz-section--cta {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f8f9fa, #eef1f5);
    border-radius: var(--wmfz-radius);
}
.wmfz-section--cta p {
    color: var(--wmfz-text-light);
    margin: 8px 0 24px;
    font-size: 1.05rem;
}

/* ── Ride Cards ──────────────────────────── */
.wmfz-rides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.wmfz-ride-card {
    background: var(--wmfz-card-bg);
    border-radius: var(--wmfz-radius);
    padding: 24px;
    box-shadow: var(--wmfz-shadow);
    transition: var(--wmfz-transition);
    border: 1px solid var(--wmfz-border);
    position: relative;
}
.wmfz-ride-card:hover {
    box-shadow: var(--wmfz-shadow-hover);
    transform: translateY(-3px);
}
.wmfz-ride-card__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.wmfz-ride-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--wmfz-primary);
}
.wmfz-ride-card__details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.wmfz-ride-card__detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--wmfz-text-light);
}
.wmfz-icon { font-size: 1rem; }

/* Capacity Bar */
.wmfz-ride-card__capacity {
    margin-bottom: 18px;
}
.wmfz-capacity-bar {
    height: 8px;
    background: #eef1f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}
.wmfz-capacity-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wmfz-success), #66bb6a);
    border-radius: 10px;
    transition: width 0.6s ease;
}
.wmfz-capacity-text {
    font-size: 0.82rem;
    color: var(--wmfz-text-light);
}
.wmfz-capacity-text strong { color: var(--wmfz-success); }

/* Card Footer */
.wmfz-ride-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--wmfz-border);
}
.wmfz-ride-card__price {
    font-size: 0.9rem;
    color: var(--wmfz-text-light);
}
.wmfz-ride-card__price strong {
    font-size: 1.3rem;
    color: var(--wmfz-accent);
}
.wmfz-ride-card__price small {
    font-size: 0.78rem;
}

/* ── Buttons ─────────────────────────────── */
.wmfz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--wmfz-transition);
    text-decoration: none;
    line-height: 1.4;
}
.wmfz-btn--primary {
    background: var(--wmfz-accent);
    color: #fff;
}
.wmfz-btn--primary:hover {
    background: var(--wmfz-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.35);
    color: #fff;
    text-decoration: none;
}
.wmfz-btn--large {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ── Empty State ─────────────────────────── */
.wmfz-empty {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.wmfz-empty__icon { font-size: 3rem; margin-bottom: 16px; }
.wmfz-empty p { color: var(--wmfz-text-light); margin: 4px 0; }

/* ── How It Works ────────────────────────── */
.wmfz-how-it-works {
    background: var(--wmfz-card-bg);
    border-radius: var(--wmfz-radius);
    padding: 50px 40px;
    box-shadow: var(--wmfz-shadow);
}
.wmfz-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.wmfz-step {
    text-align: center;
}
.wmfz-step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wmfz-accent), #ff6b81);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.wmfz-step h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--wmfz-primary);
}
.wmfz-step p {
    font-size: 0.88rem;
    color: var(--wmfz-text-light);
    margin: 0;
}

/* ═══════════════════════════════════════════
   BOOKING FORM
   ═══════════════════════════════════════════ */
.wmfz-booking-container {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}
.wmfz-booking-header {
    margin-bottom: 30px;
}
.wmfz-back-link {
    color: var(--wmfz-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.wmfz-back-link:hover { text-decoration: underline; }
.wmfz-booking-header h1 {
    font-size: 2rem;
    margin: 10px 0 0;
}
.wmfz-booking-info {
    background: var(--wmfz-success-bg);
    padding: 12px 18px;
    border-radius: var(--wmfz-radius-sm);
    color: var(--wmfz-success);
    margin-top: 12px;
    font-size: 0.92rem;
}

/* Form Sections */
.wmfz-form-section {
    background: var(--wmfz-card-bg);
    border-radius: var(--wmfz-radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--wmfz-shadow);
    border: 1px solid var(--wmfz-border);
}
.wmfz-form-section__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--wmfz-bg);
}

/* Form Elements */
.wmfz-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.wmfz-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wmfz-form-group--full { grid-column: 1 / -1; }
.wmfz-form-group--small { max-width: 120px; }

.wmfz-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--wmfz-text);
}
.wmfz-form-group input,
.wmfz-form-group select,
.wmfz-form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--wmfz-border);
    border-radius: var(--wmfz-radius-sm);
    font-size: 0.95rem;
    transition: var(--wmfz-transition);
    font-family: var(--wmfz-font);
    background: #fff;
}
.wmfz-form-group input:focus,
.wmfz-form-group select:focus {
    outline: none;
    border-color: var(--wmfz-accent);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}
.wmfz-form-hint {
    font-size: 0.85rem;
    color: var(--wmfz-text-light);
}

/* Checkbox Custom */
.wmfz-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}
.wmfz-checkbox-label input[type="checkbox"] { display: none; }
.wmfz-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--wmfz-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wmfz-transition);
    flex-shrink: 0;
}
.wmfz-checkbox-label input:checked + .wmfz-checkbox-custom {
    background: var(--wmfz-accent);
    border-color: var(--wmfz-accent);
}
.wmfz-checkbox-label input:checked + .wmfz-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Radio Card (Pickup, Payment) */
.wmfz-pickup-options,
.wmfz-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.wmfz-radio-card {
    cursor: pointer;
}
.wmfz-radio-card input[type="radio"] { display: none; }
.wmfz-radio-card__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 2px solid var(--wmfz-border);
    border-radius: var(--wmfz-radius-sm);
    transition: var(--wmfz-transition);
}
.wmfz-radio-card input:checked + .wmfz-radio-card__inner {
    border-color: var(--wmfz-accent);
    background: rgba(233, 69, 96, 0.05);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}
.wmfz-radio-card__icon { font-size: 1.3rem; }
.wmfz-radio-card__label { font-weight: 600; font-size: 0.9rem; }

/* Passenger Counter */
.wmfz-passenger-counter {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--wmfz-border);
    border-radius: var(--wmfz-radius-sm);
    overflow: hidden;
}
.wmfz-counter-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--wmfz-bg);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--wmfz-transition);
    color: var(--wmfz-text);
    font-weight: 600;
}
.wmfz-counter-btn:hover { background: var(--wmfz-accent); color: #fff; }
.wmfz-passenger-counter input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    background: transparent;
}

/* Price Display */
.wmfz-price-display {
    background: linear-gradient(135deg, #fef3f5, #fff);
    border: 2px solid rgba(233, 69, 96, 0.15);
    border-radius: var(--wmfz-radius-sm);
    padding: 18px;
    margin: 16px 0;
}
.wmfz-price-table {
    width: 100%;
}
.wmfz-price-table__header {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wmfz-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(233, 69, 96, 0.15);
}
.wmfz-price-table__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--wmfz-border);
}
.wmfz-price-table__row:last-of-type { border-bottom: none; }
.wmfz-price-table__row--active {
    background: rgba(46, 125, 50, 0.08);
    border-radius: 6px;
    padding: 10px 8px;
    font-weight: 700;
}
.wmfz-price-table__row--active .wmfz-price {
    color: #2e7d32;
    font-size: 1.1em;
}
.wmfz-price { font-weight: 700; color: var(--wmfz-accent); }
.wmfz-price-table__hint {
    text-align: center;
    font-size: 0.83rem;
    color: var(--wmfz-success);
    font-weight: 600;
    margin-top: 10px;
}

/* Summary */
.wmfz-summary {
    background: linear-gradient(135deg, #f0f4ff, #fff);
    border: 2px solid rgba(22, 33, 62, 0.1);
}

/* Form Actions */
.wmfz-form-actions {
    text-align: center;
    padding: 30px 0;
}
.wmfz-total-display {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--wmfz-text-light);
}
.wmfz-total-display strong {
    font-size: 1.8rem;
    color: var(--wmfz-accent);
}

/* Loading */
.wmfz-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #fff;
}
.wmfz-loading__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--wmfz-accent);
    border-radius: 50%;
    animation: wmfzSpin 0.8s linear infinite;
    margin-bottom: 20px;
}
@keyframes wmfzSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   CONFIRMATION
   ═══════════════════════════════════════════ */
.wmfz-confirmation {
    max-width: 650px;
    margin: 40px auto;
    text-align: center;
}
.wmfz-confirmation__icon { font-size: 4rem; margin-bottom: 10px; }
.wmfz-confirmation h1 {
    font-size: 2rem;
    color: var(--wmfz-success);
    margin: 0 0 8px;
}
.wmfz-confirmation__ref {
    color: var(--wmfz-text-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
}
.wmfz-confirmation__details {
    background: var(--wmfz-card-bg);
    border-radius: var(--wmfz-radius);
    padding: 30px;
    box-shadow: var(--wmfz-shadow);
    text-align: left;
    margin-bottom: 30px;
}
.wmfz-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.wmfz-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wmfz-detail-label {
    font-size: 0.82rem;
    color: var(--wmfz-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.wmfz-detail-value {
    font-weight: 700;
    font-size: 1rem;
}
.wmfz-confirmation__total {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: var(--wmfz-bg);
    border-radius: var(--wmfz-radius-sm);
    font-size: 1.1rem;
}
.wmfz-confirmation__total strong {
    color: var(--wmfz-accent);
    font-size: 1.4rem;
}
.wmfz-confirmation__hint {
    background: var(--wmfz-success-bg);
    border-radius: var(--wmfz-radius-sm);
    padding: 16px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--wmfz-success);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .wmfz-hero { padding: 40px 20px; }
    .wmfz-hero__title { font-size: 2rem; }
    .wmfz-rides-grid { grid-template-columns: 1fr; }
    .wmfz-form-row { grid-template-columns: 1fr; }
    .wmfz-pickup-options { grid-template-columns: 1fr; }
    .wmfz-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
    .wmfz-detail-grid { grid-template-columns: 1fr; }
    .wmfz-filters { border-radius: var(--wmfz-radius-sm); }
    .wmfz-filter-btn { padding: 8px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .wmfz-hero__title { font-size: 1.6rem; }
    .wmfz-steps { grid-template-columns: 1fr; }
    .wmfz-payment-options { grid-template-columns: 1fr; }
}
