/**
 * Dynamic Buffet Pricing Widget - Modern Restaurant Design
 * Matches the elegant Kaisergarten restaurant aesthetics with gold, red, and black accents
 */

/* Buffet Quality Badge */
.buffet-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buffet-quality-badge i {
    font-size: 1.2rem;
}

.buffet-quality-badge strong {
    font-weight: 700;
}

/* Loading State */
.dynamic-buffet-pricing .loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Widget Container */
.dynamic-buffet-pricing {
    margin-top: 3rem;
    padding: 2.5rem;
    background: transparent;
    border-radius: 20px;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.dynamic-buffet-pricing p,
.dynamic-buffet-pricing .package-description,
.dynamic-buffet-pricing .pricing-widget-subtitle {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Widget Header */
.pricing-widget-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.current-time-info {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary-color), #b8302a);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.current-time-info i {
    font-size: 1.1rem;
}

.pricing-widget-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0.5rem 0;
}

.pricing-widget-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Package Selection */
.package-selector {
    margin-bottom: 1.5rem;
}

.package-combined-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.package-option {
    flex: 0 1 auto;
    min-width: 160px;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(250, 183, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.package-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(250, 183, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.package-option.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(250, 183, 0, 0.15), rgba(196, 30, 58, 0.1));
    box-shadow: 0 2px 12px rgba(250, 183, 0, 0.25);
}

.package-option.active::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: #1a1a1a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(250, 183, 0, 0.3);
}

.package-name {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.package-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
    word-spacing: 0.1em;
    display: none;
}

/* Package Separator "oder" */
.package-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    position: relative;
    min-width: 40px;
}

.separator-text {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.separator-line {
    display: none;
}

/* Package Price Hint */
.package-price-hint {
    margin-top: 0.75rem;
    padding: 0.4rem 0.875rem;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(250, 183, 0, 0.15));
    border-radius: 16px;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    border: 1px solid rgba(250, 183, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Package Info Note */
.package-info-note {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.package-info-note i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Current Pricing Display */
.current-pricing-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(250, 183, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(250, 183, 0, 0.3), rgba(196, 30, 58, 0.3));
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(250, 183, 0, 0.2);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.pricing-card.current-period {
    border-color: var(--accent-color);
    box-shadow: 0 4px 18px rgba(250, 183, 0, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.pricing-card.current-period::before {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 5px;
}

/* Current Badge */
.current-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary-color), #e74c3c);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}

.current-badge i {
    font-size: 0.6rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Price-First Layout */
.price-primary {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(250, 183, 0, 0.2);
}

.price-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.price-label i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.price-label span {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.price-value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 1.25rem 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(250, 183, 0, 0.2);
}

.price-unit {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 0.5rem;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(250, 183, 0, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(250, 183, 0, 0.3);
}

.time-badge i {
    color: var(--accent-color);
}

/* Details Toggle Button - Large Tap Target */
.details-toggle {
    width: 100%;
    min-height: 52px; /* WCAG touch target size */
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-top: 1px solid rgba(250, 183, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.details-toggle:hover,
.details-toggle:focus {
    background: rgba(250, 183, 0, 0.15);
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.details-toggle:active {
    background: rgba(250, 183, 0, 0.2);
}

.details-toggle i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.details-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Expandable Details Section */
.price-details {
    padding: 1.5rem 2rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    display: none; /* Hidden by default */
}

.price-details:not([hidden]) {
    display: block;
}

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

.features-grid {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.2s ease;
}

.feature-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-item i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.currency {
    font-size: 1.4rem;
    font-weight: 600;
}

.per-person {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.5rem;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.price-features li i {
    color: var(--accent-color);
    font-size: 0.9rem;
    width: 16px;
}

/* Child Pricing Calculator */
.child-pricing-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.child-pricing-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.child-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.child-pricing-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.age-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.age-input-group label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 120px;
}

.age-input {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    background: white;
}

.age-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.child-price-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.child-price-calculation {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.child-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Weekly Overview Section */
.dynamic-buffet-pricing .weekly-overview {
    margin-top: 2rem;
}

.dynamic-buffet-pricing .weekly-overview-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dynamic-buffet-pricing .weekly-overview-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dynamic-buffet-pricing .weekly-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dynamic-buffet-pricing .price-group-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.dynamic-buffet-pricing .price-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d4a762;
}

.dynamic-buffet-pricing .price-group-card.has-today {
    border-color: #d4a762;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(212, 167, 98, 0.2);
}

.dynamic-buffet-pricing .price-group-card.has-today::before {
    content: 'Heute';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d4a762, #c41e3a);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dynamic-buffet-pricing .day-range-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dynamic-buffet-pricing .grouped-prices {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dynamic-buffet-pricing .time-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dynamic-buffet-pricing .time-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.dynamic-buffet-pricing .price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4a762;
}

.dynamic-buffet-pricing .grouped-days-detail {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    line-height: 1.3;
}

/* Weekly Overview Table Styles */
.dynamic-buffet-pricing .price-table {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(250, 183, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.dynamic-buffet-pricing .price-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(250, 183, 0, 0.2));
    padding: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(250, 183, 0, 0.3);
    align-items: center;
}

.dynamic-buffet-pricing .price-table-header > div:first-child {
    text-align: left;
    padding-left: 0.5rem;
}

.dynamic-buffet-pricing .price-table-header > div:nth-child(2),
.dynamic-buffet-pricing .price-table-header > div:nth-child(3) {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynamic-buffet-pricing .price-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    align-items: center;
}

.dynamic-buffet-pricing .price-table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dynamic-buffet-pricing .price-table-row.today {
    background: rgba(250, 183, 0, 0.15);
    border-left: 4px solid var(--accent-color);
}

.dynamic-buffet-pricing .price-table-row:last-child {
    border-bottom: none;
}

.dynamic-buffet-pricing .table-cell {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.dynamic-buffet-pricing .day-cell {
    font-weight: 600;
    gap: 0.5rem;
    padding-left: 0.5rem;
    justify-content: flex-start;
    text-align: left;
    display: flex;
    align-items: center;
}

.dynamic-buffet-pricing .price-cell {
    justify-content: center;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.05rem;
    text-align: center;
}

.dynamic-buffet-pricing .today-badge {
    color: var(--accent-color);
    font-size: 0.8rem;
    animation: pulse 2s ease-in-out infinite;
    margin-right: 0.25rem;
}

/* Responsive adjustments for weekly overview */
@media (max-width: 768px) {
    .dynamic-buffet-pricing {
        padding: 1.25rem;
    }
    
    .pricing-widget-header {
        margin-bottom: 1rem;
    }
    
    .pricing-widget-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .pricing-widget-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Keep horizontal layout on tablet */
    .package-combined-container {
        flex-direction: row !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
    }
    
    .package-option {
        max-width: 180px;
        min-width: 140px;
        padding: 0.875rem 0.75rem;
    }
    
    .package-name {
        font-size: 1rem;
    }
    
    .package-price-hint {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .current-pricing-display {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Optimized pricing card for mobile */
    .pricing-card {
        border-radius: 12px;
    }
    
    .current-badge {
        top: 12px;
        right: 12px;
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .price-primary {
        padding: 1.5rem;
    }
    
    .price-label i {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .price-label span {
        font-size: 1.15rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .details-toggle {
        min-height: 48px; /* Still WCAG compliant */
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .price-details {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    /* Ensure details start collapsed on mobile */
    .price-details[hidden] {
        display: none !important;
    }
    
    .features-grid {
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.65rem;
    }
    
    .feature-item i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .feature-item span {
        font-size: 0.9rem;
    }
    
    .dynamic-buffet-pricing .weekly-prices-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .dynamic-buffet-pricing .price-group-card {
        padding: 1rem;
    }
    
    /* Weekly table mobile adjustments */
    .dynamic-buffet-pricing .price-table-header {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .dynamic-buffet-pricing .price-table-row {
        padding: 0.75rem;
    }
    
    .dynamic-buffet-pricing .table-cell {
        font-size: 0.9rem;
    }
    
    .dynamic-buffet-pricing .price-cell {
        font-size: 0.95rem;
    }
    
    .dynamic-buffet-pricing .grouped-prices {
        gap: 0.5rem;
    }
    
    .dynamic-buffet-pricing .time-price {
        gap: 0.25rem;
    }
    
    .dynamic-buffet-pricing .price-value {
        font-size: 1.1rem;
    }
    
    .dynamic-buffet-pricing .day-range-name {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .dynamic-buffet-pricing {
        padding: 1rem;
    }
    
    .pricing-widget-header {
        margin-bottom: 0.75rem;
    }
    
    /* Ultra compact table for very small screens */
    .dynamic-buffet-pricing .price-table-header {
        padding: 0.65rem;
        font-size: 0.8rem;
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .dynamic-buffet-pricing .price-table-row {
        padding: 0.65rem;
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .dynamic-buffet-pricing .table-cell {
        font-size: 0.85rem;
    }
    
    .dynamic-buffet-pricing .price-cell {
        font-size: 0.9rem;
    }
    
    .pricing-widget-header h3 {
        font-size: 1.2rem;
    }
    
    .current-time-info {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* Keep horizontal layout on very small screens - don't stack */
    .package-combined-container {
        flex-direction: row !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }
    
    .package-separator {
        margin: 0 0.25rem !important;
        min-width: 30px !important;
        flex-shrink: 0;
        width: auto !important;
    }
    
    .separator-text {
        font-size: 0.75rem !important;
    }
    
    .package-option {
        max-width: none !important;
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 0.75rem 0.5rem !important;
    }
    
    .package-name {
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
    
    .package-description {
        display: none !important;
    }
    
    .package-price-hint {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    /* Ultra-compact pricing cards for small screens */
    .price-primary {
        padding: 1.125rem;
    }
    
    .price-label i {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .price-label span {
        font-size: 1.05rem;
    }
    
    .price-amount {
        font-size: 2.2rem;
    }
    
    .time-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .details-toggle {
        min-height: 44px; /* Minimum WCAG touch target */
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .price-details {
        padding: 1rem 1.25rem 1.25rem;
    }
    
    .features-grid {
        gap: 0.6rem;
    }
    
    .feature-item {
        padding: 0.6rem;
        gap: 0.75rem;
    }
    
    .feature-item i {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    /* Hide child pricing section header on mobile to show only calculator */
    .child-pricing-header {
        display: none;
    }
    
    .child-pricing-section {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
        background: white;
        border: 1px solid #e9ecef;
    }
    
    .age-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .child-price-result {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .current-time-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Extra small screens - Ultra compact calculator */
@media (max-width: 400px) {
    .child-pricing-section {
        padding: 1rem 0.75rem;
        margin-top: 1rem;
        border-radius: 12px;
    }
    
    .child-calculator-widget {
        margin: 10px 0;
    }
    
    .calculator-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .calculator-header {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .header-content h4 {
        font-size: 16px;
    }
    
    .age-input {
        width: 70px;
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .current-time-info {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .pricing-widget-title {
        font-size: 1.3rem;
    }
}

/* Responsive Design for Package Selector */
@media (max-width: 768px) {
    .package-combined-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .package-option {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .package-separator {
        min-width: auto;
        margin: 0;
        /* Keep horizontal - no rotation */
    }
    
    .separator-text {
        font-size: 1.2rem;
    }
    
    .separator-line {
        width: 40px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-50%);
    }
    
    .package-info-note {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .package-option {
        padding: 1rem;
    }
    
    .package-name {
        font-size: 1rem;
    }
    
    .package-description {
        font-size: 0.8rem;
    }
    
    .package-price-hint {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .separator-text {
        font-size: 0.9rem;
    }
    
    .package-info-note {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Touch and Mobile Optimizations */
.package-option.touch-active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special Offers Styling */
.special-offer {
    position: relative;
}

.special-offer::after {
    content: 'Sonderangebot!';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .package-option {
        border-width: 1px;
    }
    
    .package-option.active {
        border-width: 2px;
    }
    
    .separator-line {
        height: 1px;
    }
    
    @media (max-width: 768px) {
        .separator-line {
            width: 1px;
            height: 40px;
        }
    }
}

/* Mobile and Touch Device Specific Styles */
.dynamic-buffet-pricing.mobile-view {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.dynamic-buffet-pricing.touch-device .package-option {
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.dynamic-buffet-pricing.touch-device .package-option:active {
    transform: translateY(-1px) scale(0.99);
    transition: transform 0.1s ease;
}

/* Accessibility improvements for mobile */
.dynamic-buffet-pricing.mobile-view .package-option {
    position: relative;
}

.dynamic-buffet-pricing.mobile-view .package-option:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.dynamic-buffet-pricing.mobile-view .package-option:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .package-option,
    .package-option.touch-active,
    .pricing-card {
        transition: none;
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}
