html, body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: #f6f7fb;
}


/* ===== GLOBAL TYPOGRAPHY ===== */
body {
    font-family: 'Inter', sans-serif;
}

/* Headlines */
h1, h2, h3, h4, h5, h6,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.3px;
}

/* Buttons & Inputs */
.mud-button,
.mud-input {
    font-family: 'Inter', sans-serif;
}


.event-card {
    height: 100%;
}

.ticket-summary {
    border-radius: 12px;
    background: white;
    padding: 1rem;
}


/* ===== Layout / Sections ===== */

.hero-clean {
    background: white;
    border-radius: 16px;
    border: 1px solid #eee;
}

.hero-title {
    font-weight: 700;
    color: #111;
}

.hero-subtitle {
    color: #666;
}

.hero-search {
    max-width: 500px;
}

.section-title {
    font-weight: 600;
}

.event-card-clean {
    background: white;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

    .event-card-clean:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.event-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.text-muted {
    color: #666;
}

.page-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 24px;
}

.section-title {
    font-weight: 700;
    color: #111;
}

/* ===== Hero ===== */

.hero-event {
    margin: 24px;
}

.event-hero-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 320px;
}

/* ===== Typography ===== */

.event-title {
    font-weight: 800;
    line-height: 1.2;
}

.text-muted {
    color: #666;
}

/* ===== Meta Info ===== */

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

/* ===== Cards ===== */

.card-clean {
    background: white;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 20px;
}

.ticket-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

    .ticket-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

/* ===== Date Header ===== */

.date-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* ===== Loading ===== */

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* ===== Ticket Page ===== */

.ticket-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.ticket-name {
    font-weight: 600;
}

.ticket-price {
    font-weight: 600;
    color: #111;
    min-width: 90px;
    text-align: right;
}

.ticket-quantity {
    width: 100px;
}

/* ===== Summary ===== */

.summary-box {
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #444;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== Cart ===== */

.cart-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px 40px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.cart-title {
    font-weight: 600;
}

.cart-quantity {
    width: 100px;
}

.cart-price {
    font-weight: 600;
    text-align: right;
}

/* Mobile */
@media (max-width: 900px) {
    .cart-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cart-price {
        text-align: left;
    }
}

/* ===== Checkout ===== */

.checkout-button {
    height: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.summary-box {
    position: sticky;
    top: 100px;
}

/* ===== Payment Selection ===== */

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.payment-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

    .payment-card:hover {
        border-color: #FFC107;
        transform: translateY(-2px);
    }

    .payment-card.selected {
        border-color: #FFC107;
        box-shadow: 0 0 0 2px rgba(255,193,7,0.2);
    }

.payment-logo {
    height: 64px;
    object-fit: contain;
    margin-bottom: 0px;
}

.payment-name {
    font-size: 0.85rem;
    color: #444;
}

.payment-card.selected {
    border-color: #FFC107;
    background: #fff9e6;
    background: white;
}

/* ===== Footer ===== */

.app-footer {
    background: #ffffff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-text {
    color: #777;
    font-size: 0.9rem;
}

.footer-links a {
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
}

    .footer-links a:hover {
        color: #FFC107;
    }

/* Mobile */
@media (max-width: 768px) {
    .footer-links {
        justify-content: flex-start !important;
        margin-top: 10px;
    }
}

.main-appbar {
    background: #ffffff !important;
    border-bottom: 1px solid #eee;
}

/* Links */
.nav-link {
    color: #333 !important;
    font-weight: 500;
}

    .nav-link:hover {
        color: #FFC107 !important;
    }

/* Icons */
.nav-icon {
    color: #333 !important;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 4px 8px;
    background: #fafafa;
}

.quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Buttons größer für Mobile */
.quantity-stepper .mud-icon-button {
    width: 36px;
    height: 36px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .quantity-stepper {
        padding: 6px 10px;
    }

        .quantity-stepper .mud-icon-button {
            width: 42px;
            height: 42px;
        }
}

/* ===== Cart Animation ===== */

.cart-bounce {
    animation: cartPop 0.3s ease;
}

@keyframes cartPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
}

    .breadcrumb a {
        color: #666;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: #FFC107;
        }


/* ===== Event Info Text ===== */

.event-info-text {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

    /* schöne Formatierung für HTML */
    .event-info-text p {
        margin-bottom: 8px;
    }

    .event-info-text strong {
        font-weight: 600;
    }

    .event-info-text a {
        color: #FFC107;
        text-decoration: none;
    }

        .event-info-text a:hover {
            text-decoration: underline;
        }

.event-hero-image {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

/* Desktop: gleiche Höhe */
@media (min-width: 960px) {
    .event-hero-image {
        position: sticky;
        height: 100%;
    }
}

/* ===== Banner ===== */

.event-banner {
    width: 100%;
    height: auto; /* 🔥 wichtig: kein Stretch mehr */
    border-radius: 12px;
    display: block;
}

/* Desktop: Hero Look */
@media (min-width: 960px) {
    .event-banner {
        height: auto;
        object-fit: cover; /* nur Desktop croppen */
    }
}

/* ===== Info Box rechts ===== */

.event-info-box {
    background: #fff9e6;
    border-left: 4px solid #FFC107;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

    /* HTML Styling */
    .event-info-box p {
        margin-bottom: 8px;
    }

    .event-info-box a {
        color: #FFC107;
        text-decoration: none;
    }

        .event-info-box a:hover {
            text-decoration: underline;
        }


.ticketset-hero-image,
.event-banner {
    width: 100%;
    height: auto; /* 🔥 wichtig */
    display: block;
    border-radius: 12px;
}

/* Desktop Hero Look */
@media (min-width: 960px) {
    .ticketset-hero-image,
    .event-banner {
        height: auto;
        object-fit: cover;
    }
}
.payment-list {
    width: 100%;
}

.payment-item {
    width: 100%;
}

/* CARD */
.payment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

    /* HOVER */
    .payment-card:hover {
        border-color: #1976d2;
        box-shadow: 0 6px 16px rgba(0,0,0,0.06);
        transform: translateY(-1px);
    }

/* SELECTED */
.mud-selected .payment-card {
    border: 2px solid #1976d2;
    background: #f5f9ff;
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.15);
}

/* LEFT SIDE */
.payment-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* LOGO */
.payment-logo {
    height: 64px;
    width: auto;
}

/* TEXT */
.payment-text {
    display: flex;
    flex-direction: column;
}

.payment-name {
    font-weight: 600;
    font-size: 14px;
}

.payment-sub {
    font-size: 12px;
    color: #6b7280;
}

/* RIGHT SIDE */
.payment-right {
    display: flex;
    align-items: center;
}

.payment-radio {
    color: #9ca3af;
}
.payment-card {
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.payment-card {
    cursor: pointer;
}


/* ToggleGroup vertikal erzwingen */
.payment-toggle-group {
    width: 100%;
}

    /* DAS ist der entscheidende Fix */
    .payment-toggle-group .mud-toggle-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
    }

    /* jedes Item volle Breite */
    .payment-toggle-group .mud-toggle-item {
        width: 100%;
    }

    /* Button innerhalb */
    .payment-toggle-group .mud-button-root {
        width: 100%;
        justify-content: flex-start;
    }

.payment-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-toggle-item.mud-selected .payment-card {
    border: 2px solid #1976d2;
    background: #f5f9ff;
}

.payment-left {
    display: flex;
    align-items: center;
}

.payment-logo {
    height: 28px;
    pointer-events: none;
}

.payment-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;

    
}

    .payment-card:hover {
        border-color: #1976d2;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

    .payment-card.selected {
        border: 2px solid #1976d2;
        background: #f5f9ff;
    }

.payment-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-logo {
    height: 26px;
    pointer-events: none;
}

.payment-name {
    font-weight: 600;
    font-size: 14px;
}

.payment-right {
    display: flex;
    align-items: center;
}

.summary-box {
    position: sticky;
    top: 90px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 18px;
}

.checkout-button {
    height: 52px;
    font-size: 16px;
    border-radius: 12px;
}

.payment-logo {
    pointer-events: none;
}

.payment-grid {
    position: relative;
    z-index: 5;
}

.payment-grid {
    position: relative;
    z-index: 5;
}

.payment-logo {
    pointer-events: none;
}

.payment-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* WICHTIG: Default Radio verstecken */
.payment-radio-wrapper .mud-radio-button {
    display: none;
}

/* volle Breite */
.payment-radio-wrapper {
    width: 100%;
    margin: 0;
}

/* CARD DESIGN */
.payment-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* HOVER */
    .payment-card:hover {
        border-color: #1976d2;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

/* SELECTED */
.payment-radio-wrapper.mud-checked .payment-card {
    border: 2px solid #1976d2;
    background: #f5f9ff;
}

/* LEFT */
.payment-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-logo {
    height: 48px;
    pointer-events: none;
}

.payment-name {
    font-weight: 600;
}

/* RIGHT */
.payment-right {
    display: flex;
    align-items: center;
}