/* Pricing Cards Component */

.pricing-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
    min-height: 550px; /* Einheitliche Höhe für alle Karten */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card-header {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-lg);
    position: relative;
}

.pricing-card-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: var(--spacing-md) 0;
    color: var(--text-dark);
}

.pricing-card-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    flex: 1;
}

.pricing-card-features li {
    padding: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
}

.pricing-card-features li::before {
    content: "✓";
    color: var(--status-available);
    margin-right: var(--spacing-sm);
    font-weight: bold;
}

.pricing-card-features li.text-muted {
    color: var(--text-muted);
}

.pricing-card-features li.text-muted::before {
    content: "";
}

/* Beliebt Badge */
.badge-popular {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffab00;
    color: black;
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(8deg);
    z-index: 5;
    border: 2px solid #fff;
}

/* Pricing Container für Tablet/Mobile */
.pricing-mobile-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Entfernt das Wrapper-Element, damit der Container die volle Breite nutzen kann */

.pricing-scroll-container {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Für besseres Scrolling auf iOS */
    scroll-behavior: smooth; /* Sanftes Scrollen */
    scrollbar-width: none; /* Firefox */
    padding: 10px 0 20px 0;
    margin: 0 -10px; /* Ausgleich für das Padding */
}

.pricing-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.pricing-slider .pricing-card {
    flex: 0 0 100%; /* Jede Karte nimmt 100% des sichtbaren Bereichs ein */
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    transform: translateZ(0); /* Verhindert flackern */
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: row; /* Waagerechte Anordnung */
    justify-content: center;
    margin-top: 15px;
}

.scroll-dot {
    width: 30px;
    height: 6px;
    border-radius: 3px;
    background-color: var(--gray-300);
    margin: 0 4px;
    transition: background-color 0.3s, transform 0.2s;
}

.scroll-dot.active {
    background-color: var(--primary);
    transform: scaleX(1.2);
}

/* Dieser Block wurde entfernt, da wir jetzt den Scroll-Hinweis über den Karten anzeigen */

/* Styling für die mobile Scroll-Anleitung */
.mobile-scroll-hint {
    color: var(--gray-700);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    animation: pulse 2s infinite;
    width: 100%;
    max-width: 250px;
    padding: 8px 15px;
    background-color: var(--primary-lighter, #e6f0ff);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-light, #c5d9ff);
    font-weight: 500;
}

.mobile-scroll-hint i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--primary);
}

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

/* Responsive-Anpassungen */
@media (max-width: 991.98px) {
    .pricing-mobile-container {
        display: flex;
        flex-direction: column;
    }
    
    .columns-3 {
        display: none; /* Verstecke das standard grid layout */
    }
    
    /* Styling für mobile Preiskarten */
    .pricing-mobile-container .pricing-card {
        width: 100%;
        min-width: 270px;
        margin: 0 auto;
        padding: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.3s ease;
    }
    
    /* Verbessertes visuelles Feedback beim Antippen */
    .pricing-card:active,
    .pricing-card.card-touch {
        transform: scale(0.98);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 768px) {
    .pricing-scroll-container .pricing-card {
        flex: 0 0 85%;
        min-width: 270px;
        padding: 0 10px;
        min-height: 550px; /* Einheitliche Höhe für mobile Ansicht */
        margin: 0 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-scroll-hint {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .scroll-dot {
        width: 24px;
        height: 4px;
        margin: 0 6px;
    }
    
    /* Interaktives Hover-Feedback */
    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    /* Stilvolle ScrollBar für Firefox */
    .pricing-scroll-container {
        scrollbar-color: var(--primary) transparent;
        scrollbar-width: thin;
    }
}

@media (min-width: 992px) {
    .pricing-mobile-container {
        display: none;
    }
    
    .columns-3 {
        display: grid; /* Zeige grid layout für Desktop */
    }
}
