﻿
/* ========================================================================== */
/*  Ticket Picker - Mining Theme (Responsive, Mobile-First)                   */
/* ========================================================================== */

.ticket-picker {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Header */
.ticket-picker-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(184, 115, 51, 0.2);
    background: rgba(26, 26, 26, 0.6);
}

@media (min-width: 480px) {
    .ticket-picker-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.ticket-picker-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ticket-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 999px;
    background: rgba(184, 115, 51, 0.15);
    border: 1px solid rgba(184, 115, 51, 0.3);
    font-size: 0.75rem;
    color: #a0a0a0;
    white-space: nowrap;
}

    .ticket-badge svg {
        width: 14px;
        height: 14px;
        color: #b87333;
        flex-shrink: 0;
    }

.ticket-badge-warning {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

    .ticket-badge-warning svg {
        color: #ef4444;
    }

.ticket-picker-total {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
}

@media (min-width: 480px) {
    .ticket-picker-total {
        align-items: flex-end;
    }
}

.total-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6b6b;
}

.total-value {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #b87333;
}

/* Options Grid - Responsive: 1 Spalte auf sehr kleinen Screens, 2 ab 480px */
.ticket-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 480px) {
    .ticket-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Option Card */
.ticket-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(184, 115, 51, 0.2);
    background: linear-gradient(135deg, #1a1a1a, #222222);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

    .ticket-option-card:hover {
        border-color: rgba(184, 115, 51, 0.4);
    }

.ticket-option-selected {
    border-color: #b87333;
    background: linear-gradient(135deg, #1a1a1a, #252018);
    box-shadow: 0 4px 16px rgba(184, 115, 51, 0.15);
}

/*.ticket-option-invalid {
    border-color: #ef4444;
}*/

/* Card Header */
.ticket-option-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.ticket-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(184, 115, 51, 0.15);
    color: #b87333;
    flex-shrink: 0;
}

    .ticket-option-icon svg {
        width: 16px;
        height: 16px;
    }

.ticket-option-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #f5f5f5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .ticket-option-title {
        white-space: normal;
        line-height: 1.3;
    }
}

.ticket-option-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #b87333;
    color: white;
    flex-shrink: 0;
}

    .ticket-option-check svg {
        width: 12px;
        height: 12px;
    }

/* Price */
.ticket-option-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.price-amount {
    font-family: "Playfair Display", serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #d4915d;
}

.price-unit {
    font-size: 0.6875rem;
    color: #6b6b6b;
}

/* Description */
.ticket-option-description {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #808080;
    line-height: 1.4;
}

    .ticket-option-description svg {
        width: 12px;
        height: 12px;
        color: #6b6b6b;
        flex-shrink: 0;
    }

/* Quantity Controls */
.ticket-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-top: 0.5rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(184, 115, 51, 0.3);
    background: rgba(26, 26, 26, 0.8);
    max-width: 140px;
}

.ticket-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: #b87333;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

    .ticket-qty-btn:hover:not(:disabled) {
        background: rgba(184, 115, 51, 0.2);
    }

    .ticket-qty-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .ticket-qty-btn svg {
        width: 14px;
        height: 14px;
    }

.ticket-qty-input {
    flex: 1;
    min-width: 0;
    width: 2.5rem;
    padding: 0.25rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f5f5f5;
}

    .ticket-qty-input:focus {
        outline: none;
    }

/* Warnings */
.ticket-option-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    line-height: 1.3;
}

.ticket-warning-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

    .ticket-warning-error svg {
        width: 12px;
        height: 12px;
        color: #ef4444;
        flex-shrink: 0;
        margin-top: 1px;
    }

.ticket-warning-info {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
}

    .ticket-warning-info svg {
        width: 12px;
        height: 12px;
        color: #eab308;
        flex-shrink: 0;
        margin-top: 1px;
    }

/* Actions */
.ticket-picker-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.btn-ticket-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(135deg, #b87333, #a05a20);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.25);
    width: 100%;
}

@media (min-width: 480px) {
    .btn-ticket-confirm {
        width: auto;
    }
}

.btn-ticket-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4915d, #b87333);
}

.btn-ticket-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ticket-confirm svg {
    width: 16px;
    height: 16px;
}

/* Ticket-Liste in Selection Summary (bereits in Calendar CSS, aber zur Sicherheit) */
.selection-tickets {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
}

.selection-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.selection-ticket-item {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f5f5f5;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(184, 115, 51, 0.5);
    word-wrap: break-word;
}

.ticket-person-count {
    color: #808080;
    font-weight: 400;
    font-size: 0.8125rem;
}

/*  Ticket Cart - Mining Theme (Best Practice Design)                        */
/* ========================================================================== */
.ticket-cart {
    width: 100%;
    max-width: 100%;
}

/* ========== Header ========== */
.cart-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cart-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #b87333, #a05a20);
    color: white;
    font-size: 1.25rem;
}

.cart-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f5f5;
}

@media (min-width: 640px) {
    .cart-title {
        font-size: 1.5rem;
    }
}

/* ========== Ticket List ========== */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ========== Ticket Card ========== */
.ticket-card {
    position: relative;
    border-radius: 0.75rem;
    border: 2px solid rgba(184, 115, 51, 0.2);
    background: linear-gradient(135deg, #1a1a1a, #222222);
    padding: 1.25rem;
    transition: all 0.3s ease;
    /*overflow: visible;*/
    opacity: 0;
    transform: scale(0.95) translateY(6px);
    animation: itemAppear 999ms cubic-bezier(.17,.84,.44,1) forwards;
    overflow-x: hidden;
}

@keyframes itemAppear {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(6px);
    }

    60% {
        opacity: 1;
        transform: scale(1.02) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
    .ticket-card:hover {
        border-color: rgba(184, 115, 51, 0.4);
    }

/* Decorative accent */
.ticket-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    background: radial-gradient(circle at top right, rgba(184, 115, 51, 0.1), transparent);
    pointer-events: none;
}

.ticket-content {
    position: relative;
}

/* ========== Ticket Header ========== */
.ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ticket-main-info {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.ticket-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: rgba(184, 115, 51, 0.15);
    color: #b87333;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ticket-title-section {
    flex: 1;
    min-width: 0;
}

.ticket-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f5f5f5;
    word-wrap: break-word;
}

@media (min-width: 640px) {
    .ticket-title {
        font-size: 1.125rem;
    }
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.ticket-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #a0a0a0;
}

    .ticket-meta-item i {
        color: #b87333;
        font-size: 1rem;
    }

.ticket-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(184, 115, 51, 0.2);
    background: rgba(26, 26, 26, 0.8);
    color: #b87333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .ticket-remove-btn:hover {
        background: rgba(184, 115, 51, 0.1);
        border-color: rgba(184, 115, 51, 0.4);
    }

/* ========== Ticket Options ========== */
.ticket-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ticket-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(184, 115, 51, 0.1);
}

.ticket-option-info {
    flex: 1;
    min-width: 0;
}

.ticket-option-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.ticket-option-quantity {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f5f5f5;
}

.ticket-option-label {
    font-size: 0.875rem;
    color: #f5f5f5;
}

.ticket-persons-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(184, 115, 51, 0.15);
    border: 1px solid rgba(184, 115, 51, 0.3);
    font-size: 0.75rem;
    color: #d4915d;
}

    .ticket-persons-badge i {
        font-size: 0.75rem;
        color: #b87333;
    }

.ticket-option-unit-price {
    font-size: 0.75rem;
    color: #808080;
    margin-top: 0.125rem;
}

.ticket-option-price {
    font-size: 1rem;
    font-weight: 600;
    color: #d4915d;
    white-space: nowrap;
}

/* ========== Ticket Subtotal ========== */
.ticket-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(184, 115, 51, 0.1);
}

.ticket-subtotal-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a0a0a0;
}

.ticket-subtotal-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #d4915d;
}

/* ========== Total Section ========== */
.cart-total-section {
    border-radius: 0.75rem;
    /*border: 2px solid rgba(184, 115, 51, 0.3);*/
    border-left: 2px solid rgba(184, 115, 51, 0.3);
    border-top: 2px solid rgba(184, 115, 51, 0.3);
    border-right: 2px solid rgba(184, 115, 51, 0.3);
    background: linear-gradient(135deg, #1a1a1a, #252018);
    padding: 1.5rem;
}

.cart-total-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 639px) {
    .cart-total-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cart-total-info {
    flex: 1;
}

.cart-total-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #808080;
    margin-bottom: 0.25rem;
}

.cart-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4915d;
}

@media (min-width: 640px) {
    .cart-total-value {
        font-size: 1.875rem;
    }
}

.cart-footer-actions {
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .cart-footer-actions {
        width: 100%;
    }
}

.btn-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(135deg, #b87333, #a05a20);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.25);
    white-space: nowrap;
}

@media (max-width: 639px) {
    .btn-checkout {
        width: 100%;
    }
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #d4915d, #b87333);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 115, 51, 0.35);
}

.btn-checkout:active {
    transform: translateY(0);
}

/* ========== Empty State ========== */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.empty-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(184, 115, 51, 0.2);
    color: rgba(184, 115, 51, 0.4);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-message {
    margin: 0;
    font-size: 1rem;
    color: #808080;
}
