/**
 * Responsive Optimierungen für das Buchungssystem
 * Optimiert für PC, Laptop, Tablet und Smartphone
 */

/* ========================================
   KALENDER GRID - RESPONSIVE
   ======================================== */

/* Tablet Landscape & kleinere Desktops (bis 1024px) */
@media (max-width: 1024px) {
    #wz-cal-grid {
        gap: 0.6rem;
        padding: 1rem;
    }

    .calendar-day {
        min-height: 100px;
        padding: 0.85rem 0.45rem;
        gap: 0.4rem;
        font-size: 0.9rem;
    }

    .calendar-title {
        font-size: 1.15rem;
    }
}

/* Tablet Portrait (bis 768px) */
@media (max-width: 768px) {
    #wz-cal-grid {
        gap: 0.5rem;
        padding: 0.85rem;
        min-height: 350px;
    }

    .calendar-day {
        min-height: 85px;
        padding: 0.7rem 0.4rem;
        gap: 0.35rem;
        font-size: 0.85rem;
        border-radius: 14px;
    }

    .calendar-grid-header {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .calendar-title {
        font-size: 1.15rem;
    }

    .wizard-stepper__item {
        min-width: 190px;
        padding: 0.65rem 1rem;
        gap: 0.7rem;
    }

    .booking-calendar__legend {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Smartphone (bis 640px) */
@media (max-width: 640px) {
    #wz-cal-grid {
        gap: 0.4rem;
        padding: 0.65rem;
        min-height: auto;
    }

    .calendar-day {
        min-height: 72px;
        padding: 0.6rem 0.3rem;
        gap: 0.3rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }

    .calendar-grid-header {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .calendar-title {
        font-size: 1.05rem;
    }

    .booking-calendar__legend {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem 0.5rem;
        font-size: 0.68rem;
    }

    .booking-calendar__legend span {
        gap: 0.35rem;
    }
}

/* ========================================
   KALENDERTAG TYPOGRAFIE - RESPONSIVE
   ======================================== */

.day-number {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 1024px) {
    .day-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .day-number {
        font-size: 1.15rem;
    }
}

@media (max-width: 640px) {
    .day-number {
        font-size: 1.05rem;
    }
}

.availability-label {
    line-height: 1.2;
}

@media (max-width: 768px) {
    .availability-label {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 640px) {
    .availability-label {
        font-size: 0.6rem;
        letter-spacing: 0.03em;
    }
}

.availability-remaining {
    line-height: 1.1;
}

@media (max-width: 768px) {
    .availability-remaining {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 640px) {
    .availability-remaining {
        font-size: 0.64rem;
        letter-spacing: 0.02em;
    }
}

/* ========================================
   BOOKING STAGE & PANELS - RESPONSIVE
   ======================================== */

.booking-stage__content {
    gap: clamp(1.5rem, 3vw, 2.75rem);
}

@media (max-width: 640px) {
    .booking-stage {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .booking-stage__heading {
        margin-bottom: 1.5rem;
    }

    .booking-stage__heading h2 {
        font-size: 1.5rem;
    }

    .booking-stage__heading p {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .booking-stage__content {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .booking-stage__content {
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .booking-stage__content {
        gap: clamp(2.5rem, 3vw, 2.75rem);
    }
}

/* Booking Panels */
@media (max-width: 640px) {
    .booking-panel {
        padding: 1rem;
        border-radius: 20px;
        gap: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .booking-panel {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) {
    .booking-panel {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .booking-panel {
        padding: 1.65rem;
    }
}

/* ========================================
   ZEITFENSTER SLOTS - RESPONSIVE
   ======================================== */

.slot-card {
    gap: 1rem;
}

@media (max-width: 640px) {
    .slot-card {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1rem;
        padding-right: 3rem;
        border-radius: 18px;
    }

    .slot-card__text {
        width: 100%;
    }

    .slot-card__time {
        font-size: 1.05rem;
    }

    .slot-card__meta {
        width: 100%;
        gap: 0.5rem;
    }

    .slot-card__capacity {
        flex: 1;
        min-width: 0;
        text-align: center;
        align-items: center;
    }

    .slot-card__capacity-label {
        font-size: 0.65rem;
    }

    .slot-card__capacity-value {
        font-size: 1rem;
    }

    .slot-card__icon {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .slot-card {
        padding: 0.85rem;
    }
}

.booking-slot-list {
    gap: clamp(1rem, 2.2vw, 1.5rem);
}

@media (max-width: 640px) {
    .booking-slot-list {
        gap: 0.85rem;
    }
}

/* ========================================
   WIZARD NAVIGATION - RESPONSIVE (Issue #6)
   Mobile: Buttons stacked, Back as ghost link
   ======================================== */

@media (max-width: 640px) {
    .wizard-navigation {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 1rem;
        padding-top: 0.5rem;
    }

    .wizard-navigation__cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-left: 0 !important;
    }

    /* Primary buttons: full width with good touch targets */
    #wizard-next,
    #wizard-finish {
        width: 100%;
        min-height: 52px;
        padding: 14px 24px;
        font-size: 1.05rem;
        font-weight: 600;
        justify-content: center;
        border-radius: 12px;
    }

    /* Back button: Ghost link style (Issue #6) */
    #wizard-back,
    .wizard-back-link {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        background: transparent !important;
        border: none !important;
        border-color: transparent !important;
        color: #94a3b8;
        font-size: 0.95rem;
        font-weight: 500;
        justify-content: center;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    #wizard-back:hover,
    #wizard-back:focus-visible,
    .wizard-back-link:hover,
    .wizard-back-link:focus-visible {
        background: transparent !important;
        color: #e2e8f0;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    /* Add arrow icon before back text */
    #wizard-back::before {
        content: '←';
        margin-right: 0.5rem;
        font-size: 1.1rem;
    }
}

/* Tablet: Slight adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    .wizard-navigation {
        gap: 1rem;
    }

    #wizard-back {
        min-width: 120px;
    }

    #wizard-next,
    #wizard-finish {
        min-width: 180px;
    }
}

/* ========================================
   PAKETWAHL - RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    #package-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #package-selection button {
        padding: 1.25rem;
    }
}

/* ========================================
   STEP 4: ZAHLUNG - RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    [data-wizard-step="4"] .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    [data-wizard-step="4"] .text-right {
        text-align: left;
    }

    #sum-price {
        font-size: 2.25rem;
    }

    #discount-code-input {
        font-size: 0.9rem;
    }
}

/* ========================================
   KALENDER CONTROLS - RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .booking-calendar__controls {
        gap: 0.5rem;
    }

    .booking-calendar__nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .booking-calendar__nav svg,
    .booking-calendar__nav i {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   SLOT HINTS - RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .slot-hint {
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }
}

/* ========================================
   WIZARD SUMMARY CHIPS - RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .wizard-summary {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .wizard-summary__chip {
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   IMPROVED TOUCH TARGETS FOR MOBILE
   ======================================== */

@media (max-width: 640px) and (hover: none) {
    .calendar-day {
        min-height: 70px;
    }

    .slot-card {
        min-height: 80px;
    }

    .booking-calendar__nav {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Kleine Touch-Screens (< 420px) - kompaktere Kalender-Kacheln */
@media (max-width: 420px) and (hover: none) {
    .calendar-day {
        min-height: 48px !important;
        min-width: unset !important;
    }
}

/* Extra kleine Touch-Screens (< 400px) */
@media (max-width: 400px) and (hover: none) {
    .calendar-day {
        min-height: 44px !important;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIX
   ======================================== */

@media (max-width: 900px) and (max-height: 500px) {
    #wz-cal-grid {
        min-height: 280px;
    }

    .calendar-day {
        min-height: 65px;
        padding: 0.5rem 0.3rem;
    }

    .booking-stage {
        padding: 1rem;
    }
}

/* ========================================
   ACCESSIBILITY - FOCUS STATES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .calendar-day,
    .slot-card,
    .wizard-stepper__item {
        transition: none;
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .calendar-day,
    .slot-card {
        border-width: 2px;
    }

    .calendar-grid-header,
    .availability-label {
        font-weight: 600;
    }
}

/* ========================================
   PREVENT TEXT OVERFLOW
   ======================================== */

.calendar-day .availability-label,
.calendar-day .availability-remaining,
.slot-card__capacity-label {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 640px) {
    .calendar-day .availability-label,
    .calendar-day .availability-remaining {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ========================================
   ISSUE #7: KALENDER MOBILE OPTIMIERUNG
   Mobile: Nur Zahl zeigen, Verfügbarkeit über Dot
   ======================================== */

/* Basis-Styling für die neuen spans */
.calendar-day__seats-count .seats-number {
    font-weight: 700;
}

.calendar-day__seats-count .seats-label {
    font-weight: 500;
}

/* Größere Smartphones (421-480px): Label ausblenden */
@media (max-width: 480px) and (min-width: 421px) {
    .calendar-day__seats-count .seats-label {
        display: none;
    }

    .calendar-day__seats-count .seats-number {
        font-size: 0.75rem;
    }

    /* Kompaktere Kalender-Tage */
    #wz-cal-grid .calendar-day {
        min-height: 58px !important;
        padding: 0.4rem 0.25rem !important;
        gap: 0.2rem !important;
    }

    #wz-cal-grid .calendar-day .day-number {
        font-size: 1rem !important;
    }

    /* Verfügbarkeits-Dot */
    #wz-cal-grid .calendar-day::before {
        width: 6px !important;
        height: 6px !important;
        top: 4px !important;
        right: 4px !important;
    }
}

/* NOTE: iPhone 13/14/15 (381-420px) Styles sind in Issue #108 Sektion definiert */

/* iPhone SE und sehr kleine Bildschirme (max 380px) */
@media (max-width: 380px) {
    .calendar-day__seats-count .seats-label {
        display: none !important;
    }

    .calendar-day__seats-count .seats-number {
        font-size: 0.6rem !important;
    }

    #wz-cal-grid .calendar-day {
        min-height: 48px !important;
        padding: 0.3rem 0.2rem !important;
    }

    #wz-cal-grid .calendar-day .day-number {
        font-size: 0.95rem !important;
    }

    /* Wochentags-Header kompakter */
    #wz-cal-grid .calendar-grid-header {
        font-size: 0.55rem !important;
        letter-spacing: 0.03em !important;
        padding: 0.25rem 0 !important;
    }
}

/* ========================================
   KALENDER LEGENDE MIT DOT-ERKLÄRUNG
   ======================================== */

@media (max-width: 640px) {
    .booking-calendar__legend {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        font-size: 0.65rem !important;
    }

    .booking-calendar__legend span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        white-space: nowrap;
    }

    /* Dot-Indikatoren in der Legende */
    .booking-calendar__legend span::before {
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }
}

/* ========================================
   WOCHENTAGS-HEADER ZENTRIERT
   ======================================== */

.calendar-grid-header {
    text-align: center !important;
    justify-content: center !important;
}

@media (max-width: 640px) {
    .calendar-grid-header {
        font-size: 0.6rem;
        font-weight: 600;
        color: #94a3b8;
        padding: 0.35rem 0;
        letter-spacing: 0.05em;
    }
}

/* ========================================
   HORIZONTALE SCROLLBARKEIT VERHINDERN
   ======================================== */

#wz-cal-grid {
    max-width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    #wz-cal-grid {
        padding: 0.5rem !important;
        gap: 0.15rem !important;
    }

    /* Booking Stage Container begrenzen */
    .booking-stage,
    .booking-panel {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ========================================
   ISSUE #108: MOBILE KALENDER OPTIMIERUNG
   Alle 7 Wochentage vollständig sichtbar
   ======================================== */

/* iPhone 13/14/15 Serie (390px-414px) - Optimierte Lesbarkeit */
@media (max-width: 420px) and (min-width: 381px) {
    #wz-cal-grid {
        padding: 0.5rem !important;
        gap: 4px !important;
        border-radius: 16px;
    }

    .calendar-day {
        min-height: 56px !important;
        min-width: 0 !important;
        aspect-ratio: 1;
        padding: 0.35rem 0.25rem !important;
        border-radius: 8px !important;
        gap: 2px !important;
    }

    .day-number {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }

    .calendar-grid-header {
        font-size: 0.65rem !important;
        padding: 0.3rem 0 !important;
        letter-spacing: 0.02em !important;
        font-weight: 600 !important;
    }

    .calendar-day__seats-count {
        font-size: 0.7rem !important;
        margin-top: 2px !important;
        line-height: 1.2 !important;
    }

    .calendar-day__seats-count .seats-number {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
    }

    .calendar-day__seats-count .seats-label {
        display: inline !important;
        font-size: 0.65rem !important;
    }

    .calendar-day::before {
        width: 6px !important;
        height: 6px !important;
        top: 4px !important;
        right: 4px !important;
    }
}

/* Sehr kleine Screens (< 380px) - z.B. iPhone SE */
@media (max-width: 380px) {
    #wz-cal-grid {
        padding: 0.35rem !important;
        gap: 3px !important;
    }

    .calendar-day {
        min-height: 48px !important;
        border-radius: 6px !important;
        padding: 0.3rem 0.2rem !important;
    }

    .day-number {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }

    .calendar-grid-header {
        font-size: 0.55rem !important;
        font-weight: 600 !important;
    }

    .calendar-day__seats-count {
        font-size: 0.6rem !important;
    }

    .calendar-day__seats-count .seats-label {
        display: none !important;
    }

    .calendar-day::before {
        width: 5px !important;
        height: 5px !important;
    }
}

/* ========================================
   IMPROVED LOADING STATE
   ======================================== */

@media (max-width: 640px) {
    .calendar-status[data-state="loading"] {
        font-size: 0.8rem;
    }

    .calendar-status[data-state="loading"]::before {
        width: 0.65rem;
        height: 0.65rem;
        margin-right: 0.4rem;
    }
}

/* ========================================
   ISSUE #191: EMBEDDED PAYMENT UI
   Stripe Elements & Payment Methods
   ======================================== */

/* Payment Step Container */
.vr-payment-step {
    max-width: 600px;
    margin: 0 auto;
}

/* Payment Method Selector */
.vr-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vr-payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vr-payment-method:hover {
    border-color: #4b5563;
    background: rgba(31, 41, 55, 0.8);
}

.vr-payment-method--selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.vr-payment-method__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #9ca3af;
}

.vr-payment-method--selected .vr-payment-method__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.vr-payment-method__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vr-payment-method__title {
    font-weight: 600;
    color: #f9fafb;
    font-size: 1rem;
}

.vr-payment-method__desc {
    font-size: 0.85rem;
    color: #9ca3af;
}

.vr-payment-method__check {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vr-payment-method--selected .vr-payment-method__check {
    opacity: 1;
}

/* =============================================================================
   STRIPE PAYMENT ELEMENT STYLES (Issue #218)
   ============================================================================= */

/* Payment Element Container */
.vr-payment-element-container {
    margin-bottom: 1.5rem;
}

#vr-payment-element {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1rem;
    min-height: 150px;
}

/* Loading State for Payment Element */
#vr-payment-element.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

#vr-payment-element.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid #374151;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: vr-spinner 0.8s linear infinite;
}

@keyframes vr-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Payment Methods Info */
.vr-payment-methods-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(31, 41, 55, 0.4);
    border-radius: 8px;
}

.vr-payment-methods-info__label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vr-payment-methods-info__icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Issue #225: New hint styles for payment methods */
.vr-payment-methods-info__hint {
    font-size: 0.875rem;
    color: #d1d5db;
    text-align: center;
}

.vr-payment-methods-info__note {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

/* Issue #225: Fix hidden class specificity for wizard buttons */
#wizard-next.hidden,
#wizard-finish.hidden {
    display: none !important;
}

.vr-payment-icon {
    display: inline-flex;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.vr-payment-icon:hover {
    opacity: 1;
}

.vr-payment-icon svg {
    display: block;
}

/* Payment Pending State */
.vr-payment-pending {
    text-align: center;
    padding: 2rem;
}

/* =============================================================================
   LEGACY CARD FORM STYLES (kept for backwards compatibility)
   ============================================================================= */

/* Card Form Container */
.vr-card-form {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.vr-card-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

/* Stripe Card Element Container */
#vr-card-element {
    padding: 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

#vr-card-element:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Card Errors */
#vr-card-errors {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

/* Payment Error Message */
#vr-payment-error {
    display: none;
    color: #fca5a5;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Express Checkout (Apple Pay / Google Pay) */
#vr-express-checkout {
    margin-bottom: 1.5rem;
}

#vr-payment-request-button {
    min-height: 48px;
}

.vr-express-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.vr-express-divider::before,
.vr-express-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #374151;
}

/* Pay Button */
#vr-pay-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
}

#vr-pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#vr-pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Payment Amount Display */
.vr-payment-amount {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
}

.vr-payment-amount__label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.vr-payment-amount__value {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
}

/* Security Badge */
.vr-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.vr-security-badge svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

/* Test Mode Banner */
.vr-test-mode-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ===========================================
   Payment Method Selection (PayPal + Stripe)
   =========================================== */
.vr-payment-method-choice {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vr-payment-method-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vr-payment-method-option:hover {
    border-color: #4b5563;
    background: rgba(31, 41, 55, 0.8);
}

.vr-payment-method-option--selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.vr-payment-method-option--selected:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.vr-payment-method-option input[type="radio"] {
    display: none;
}

.vr-payment-method-option__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vr-payment-method-option__icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vr-payment-method-option__label {
    font-weight: 600;
    color: #f9fafb;
    font-size: 1rem;
}

.vr-payment-method-option__description {
    font-size: 0.85rem;
    color: #9ca3af;
}

.vr-payment-method-option__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #374151;
    color: transparent;
    transition: all 0.2s ease;
}

.vr-payment-method-option--selected .vr-payment-method-option__check {
    background: #22c55e;
    color: #fff;
}

.vr-payment-icon {
    width: 24px;
    height: 24px;
    color: #9ca3af;
}

.vr-payment-method-option--selected .vr-payment-icon {
    color: #22c55e;
}

.vr-payment-icon--paypal {
    color: #003087;
}

/* ===========================================
   Payment Methods Grid - All Equal Buttons
   Issue #231 - Alle Zahlungsmethoden gleichwertig
   =========================================== */

.vr-payment-methods-grid {
    margin-bottom: 1.5rem;
}

.vr-payment-methods-grid__title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-align: center;
}

.vr-payment-methods-grid__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* Payment Method Button */
.vr-payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vr-payment-method-btn:hover {
    border-color: #4b5563;
    background: rgba(31, 41, 55, 0.8);
    transform: translateY(-2px);
}

.vr-payment-method-btn:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.vr-payment-method-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.vr-payment-method-btn__icon svg {
    width: 32px;
    height: 32px;
}

.vr-payment-method-btn__icon--klarna {
    color: #ffb3c7;
}

.vr-payment-method-btn__icon--paypal svg {
    fill: #003087;
}

.vr-payment-method-btn__icon--wallet {
    display: flex;
    gap: 0.25rem;
}

.vr-payment-method-btn__icon--wallet svg {
    width: 24px;
    height: 24px;
}

.vr-payment-method-btn__label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f9fafb;
}

.vr-payment-method-btn__sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Selected state animation */
.vr-payment-method-btn--selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* Payment Form Container */
.vr-payment-form-container {
    animation: fadeIn 0.3s ease;
}

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

.vr-payment-form__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 1rem;
}

.vr-payment-form__back:hover {
    color: #e2e8f0;
}

.vr-payment-form__selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.vr-payment-form__selected-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #22c55e;
}

.vr-payment-form__selected-icon svg {
    width: 24px;
    height: 24px;
}

.vr-payment-form__selected-name {
    font-weight: 600;
    color: #f9fafb;
}

/* Responsive - Mobile: Stack buttons 2x2 or 1 column on very small */
@media (max-width: 480px) {
    .vr-payment-methods-grid__buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .vr-payment-method-btn {
        padding: 1rem 0.75rem;
    }

    .vr-payment-method-btn__icon {
        width: 40px;
        height: 40px;
    }

    .vr-payment-method-btn__icon svg {
        width: 28px;
        height: 28px;
    }

    .vr-payment-method-btn__label {
        font-size: 0.85rem;
    }

    .vr-payment-method-btn__sub {
        font-size: 0.7rem;
    }
}

/* PayPal Container */
.vr-paypal-container {
    margin-bottom: 1.5rem;
}

.vr-paypal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 12px;
    text-align: center;
}

.vr-paypal-logo {
    height: 32px;
    width: auto;
}

.vr-paypal-info p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
    max-width: 400px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .vr-payment-step {
        padding: 0 0.5rem;
    }

    .vr-payment-method {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .vr-payment-method__icon {
        width: 40px;
        height: 40px;
    }

    .vr-payment-method__title {
        font-size: 0.95rem;
    }

    .vr-payment-method__desc {
        font-size: 0.8rem;
    }

    .vr-card-form {
        padding: 1rem;
    }

    #vr-pay-button {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        min-height: 52px;
    }

    .vr-payment-amount__value {
        font-size: 1.75rem;
    }

    /* Payment Element responsive */
    #vr-payment-element {
        padding: 0.75rem;
    }

    .vr-payment-methods-info {
        padding: 0.5rem;
    }

    .vr-payment-icon svg {
        width: 32px;
        height: auto;
    }
}

/* Loading Animation */
@keyframes vr-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: vr-spin 1s linear infinite;
}

/* Shake Animation for Errors */
@keyframes vr-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: vr-shake 0.5s ease-in-out;
}
