/* TICKET CARDS FIX - Neue saubere Implementierung */

/* Event Highlights & Tagesprogramm Titel zentrieren */
.section-header--centered {
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto var(--spacing-xl) auto !important;
    display: block !important;
}

/* Tickets-Sektion spezifischer Abstand - ENTFERNT für konsistente Abstände */
/* #tickets .section-header--centered {
    margin-bottom: 20px !important;
} */

.section-header--centered .section__title {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

#highlights .section-header--centered,
#programm .section-header--centered {
    text-align: center !important;
}

#highlights .section__title,
#programm .section__title {
    text-align: center !important;
}

/* Grid Container - Platz für Badge */
.tickets__grid {
    overflow: visible !important;
    padding-top: 60px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    position: relative !important;
    z-index: 10000 !important;
    align-items: center !important;
}

.tickets {
    overflow: visible !important;
    position: relative !important;
    z-index: 10000 !important;
}

.container {
    overflow: visible !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* GEZIELT: Nur Ticket-Bereich Container für Badge Overflow */
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.main-content {
    overflow: visible !important;
}

section#tickets,
.tickets {
    overflow: visible !important;
}

.tickets .container {
    overflow: visible !important;
}

.tickets .tickets__grid {
    overflow: visible !important;
}

.tickets .ticket-card {
    overflow: visible !important;
}

.tickets .ticket-card--featured {
    overflow: visible !important;
}

/* Base Ticket Card - SEITLICHE KLEINER ALS MITTE */
.ticket-card {
    position: relative !important;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.4) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(0, 0, 0, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: visible !important;
    margin: 50px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 520px !important;
    height: 520px !important;
    max-height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    transform: scale(0.95) !important;
}

/* Mittlere Ticket Card (Featured) - GRÖßER */
.ticket-card--featured {
    min-height: 580px !important;
    height: 580px !important;
    max-height: 580px !important;
    transform: scale(1.0) !important;
    z-index: 2 !important;
}

/* Ticket Wrapper für Badge */
.ticket-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

/* Beliebt Badge - ECHTES HTML ELEMENT */
.badge-beliebt {
    position: absolute !important;
    top: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        #dc2626 100%) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 25px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    z-index: 10001 !important;
    white-space: nowrap !important;
    display: block !important;
    text-align: center !important;
}

/* Entferne das ::after Pseudo-Element */
.ticket-card--featured::after {
    display: none !important;
}

@keyframes badge-glow {
    from {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.8),
            0 10px 30px rgba(0, 0, 0, 0.6),
            inset 0 3px 0 rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 
            0 25px 80px rgba(0, 0, 0, 1),
            0 15px 40px rgba(0, 0, 0, 0.8),
            inset 0 3px 0 rgba(255, 255, 255, 0.7);
    }
}

/* Zusätzliche Badge-Sichtbarkeit erzwingen */
.ticket-card--featured {
    position: relative !important;
    z-index: 10 !important;
}

/* Content Layout */
.ticket-card .ticket-card__content {
    position: relative !important;
    z-index: 5 !important;
    padding: 24px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
    height: 100% !important;
}

/* Header */
.ticket-card .ticket-card__header {
    margin-bottom: 16px !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ticket-card .ticket-card__title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Price */
.ticket-card .ticket-card__price {
    margin-bottom: 20px !important;
    height: 4rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.ticket-card .ticket-card__amount {
    display: block !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    text-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.8),
        0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.ticket-card .ticket-card__period {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* Features */
.ticket-card .ticket-card__features {
    list-style: none !important;
    margin-bottom: 16px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    max-height: 200px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 16px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.3) !important;
    text-align: left !important;
    overflow: hidden !important;
}

.ticket-card .ticket-card__features li {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    position: relative !important;
    padding-left: 20px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.ticket-card .ticket-card__features li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #DC143C !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-shadow: 
        0 0 6px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.ticket-card .ticket-card__features li:last-child {
    margin-bottom: 0 !important;
}

/* CTA Container */
.ticket-card .ticket-card__cta {
    margin-top: auto !important;
    padding: 0 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
}

/* KAUFEN BUTTON - SICHTBAR UND FUNKTIONAL */
.ticket-card__button {
    display: block !important;
    background: linear-gradient(135deg, 
        #DC143C 0%, 
        #d32f2f 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    text-align: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.ticket-card__button:hover {
    background: linear-gradient(135deg, 
        #b91c1c 0%, 
        #991b1b 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Shimmer Effekt */
.ticket-card__button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent) !important;
    transition: left 0.5s ease !important;
}

.ticket-card__button:hover::before {
    left: 100% !important;
}

/* Hover-Effekt für ganze Karte */
.ticket-card:hover {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.5) 100%) !important;
    border-color: rgba(0, 0, 0, 0.6) !important;
    box-shadow: 
        0 16px 64px rgba(0, 0, 0, 0.7),
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-8px) scale(0.98) !important;
}

/* Hover-Effekt für Featured Card */
.ticket-card--featured:hover {
    transform: translateY(-8px) scale(1.03) !important;
}

/* Featured Card Enhancement */
.ticket-card--featured {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.1) 100%) !important;
    border-color: rgba(0, 0, 0, 0.6) !important;
    box-shadow: 
        0 16px 64px rgba(0, 0, 0, 0.7),
        0 6px 32px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25) !important;
}

.ticket-card--featured:hover {
    border-color: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.8),
        0 10px 48px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
}