/* ===========================
   Premium Page Styling (Dark + Gelb)
=========================== */
.premium-page {
    min-height: 100vh;
    padding: 40px 20px;
    background-color: #1a1b2f;
    color: #f3f4f6;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.premium-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.premium-subtitle {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
}

/* ===========================
   Features Vergleich
=========================== */
.features-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: #2c2a4d;
    border-radius: 1rem;
    padding: 2rem;
    flex: 1 1 250px;
    max-width: 300px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(251,191,36,0.25);
}

.feature-card.premium {
    border: 2px solid #fbbf24;
}

.feature-card h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-card li {
    margin-bottom: 0.8rem;
}

/* ===========================
   Kaufoptionen / Plan Cards
=========================== */
.plans-container {
    display: flex;
    justify-content: center;  
    align-items: stretch;     
    gap: 20px;
    flex-wrap: nowrap;        
    margin-bottom: 3rem;
}

.plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
    padding: 2rem 1.5rem;
    flex: 1 1 220px;
    max-width: 220px;
    border-radius: 1rem;
    background-color: #2c2a4d;
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    overflow: hidden; /* verhindert, dass Glow den Hoverbereich erweitert */
}

/* Hover: leicht hochheben + verstärkter Schatten (wie Feature-Cards) */
.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(251,191,36,0.35);
}

.plan-card h4 {
    color: #fbbf24;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.plan-price {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #f3f4f6;
    white-space: nowrap;
}

/* ===========================
   Ribbon / Ersparnis kompakter & feine schwarze Schrift
=========================== */
.savings {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    background: linear-gradient(135deg, #22c55e, #10b981, #34d399);
    color: #1a1b1f;           /* schwarze Schrift */
    font-weight: 600;          /* feiner als vorher */
    font-size: 0.85rem;        /* kompakte Größe */
    padding: 4px 18px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 2;
    text-align: center;

    /* subtiler Text-Schatten für Lesbarkeit */
    text-shadow: 0 1px 1px rgba(255,255,255,0.2);

    /* Inner Glow / 3D-Effekt */
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.15);

    /* Schrägen Enden */
    clip-path: polygon(
        10px 0%, 
        calc(100% - 10px) 0%, 
        100% 50%, 
        calc(100% - 10px) 100%, 
        10px 100%, 
        0% 50%
    );

    /* Subtile pulsierende Animation */
    animation: ribbonPulse 2.5s ease-in-out infinite alternate;
}

/* Pulsieren Animation */
@keyframes ribbonPulse {
    0% { transform: translateX(-50%) rotate(-8deg) scale(1); }
    50% { transform: translateX(-50%) rotate(-8deg) scale(1.02); }
    100% { transform: translateX(-50%) rotate(-8deg) scale(1); }
}

/* Hover auf Karte */
.plan-card:hover .savings {
    transform: translateX(-50%) rotate(-6deg) scale(1.03);
    box-shadow: 0 5px 14px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.15);
}


/* ===========================
   Buttons
=========================== */
.btn-buy.btn-premium {
    width: 100%;
    padding: 12px 0;
    border-radius: 50px;
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(251,191,36,0.3);
    transition: all 0.3s ease;
}

.btn-buy.btn-premium:hover {
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(251,191,36,0.4);
}

/* ===========================
   Glow-Effekt hinter Plan Cards
=========================== */
.plan-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(251,191,36,0.08), transparent 60%);
    z-index: 1;
    border-radius: 1rem;
    animation: glowRotate 8s linear infinite;
}

.plan-card * {
    position: relative;
    z-index: 2;
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
    100% { transform: rotate(0deg); }
}

/* Top-Plan Intensiver Glow */
.plan-card.btn-top::before {
    background: radial-gradient(circle at center, rgba(251,191,36,0.25), transparent 60%);
    animation: glowRotateTop 6s linear infinite;
}

@keyframes glowRotateTop {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(40deg); }
    100% { transform: rotate(0deg); }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1024px) {
    .plans-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .features-container, .plans-container {
        flex-direction: column;
        gap: 15px;
    }
    .plan-card, .feature-card {
        max-width: 100%;
    }
}

/* ===========================
   Index CTA Section Styling
=========================== */
.index-cta-section {
    padding: 50px 20px;
    background-color: #1a1b2f;
    color: #f3f4f6;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.index-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.8rem;
}

.index-cta-subtext {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
}

.index-plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* ===========================
   Plan Cards
=========================== */
.index-plan-card {
    background-color: #2c2a4d;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    flex: 1 1 250px;
    max-width: 280px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.index-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(251,191,36,0.35);
}

.index-plan-title {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.index-plan-price {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.index-plan-features {
    text-align: left;
    padding: 0;
    list-style: none;
}

.index-plan-features li {
    margin-bottom: 0.8rem;
}

/* ===========================
   Ribbon
=========================== */
.index-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 18px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2;
}

/* ===========================
   Buttons
=========================== */
.index-btn-premium {
    width: 100%;
    padding: 12px 0;
    border-radius: 50px;
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(251,191,36,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: #000;
}

.index-btn-premium:hover {
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(251,191,36,0.4);
}

.index-btn-dashboard {
    width: 100%;
    padding: 12px 0;
    border-radius: 50px;
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(251,191,36,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: #000;
}

.index-btn-dashboard:hover {
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(251,191,36,0.4);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1024px) {
    .index-plans-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .index-plans-container {
        flex-direction: column;
        gap: 15px;
    }
    .index-plan-card {
        max-width: 100%;
    }
}
