/* ===================================
   COURSE CARDS
   =================================== */

.course-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 249, 255, 0.95) 55%, rgba(232, 255, 244, 0.92) 100%);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: var(--radius-lg);
    overflow: visible !important; /* WICHTIG: Badges müssen über Ecke hinausragen können */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative; /* Für Badge-Positionierung */
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.2);
}

.course-card.featured:hover {
    transform: translateY(-8px) !important; /* Normaler Hover-Effekt */
}

.course-card.featured {
    border: 1px solid rgba(244, 114, 182, 0.28);
    background: linear-gradient(135deg, rgba(255, 240, 248, 0.95) 0%, rgba(236, 244, 255, 0.95) 55%, rgba(229, 246, 255, 0.95) 100%);
    /* Keine Rotation, keine Verschiebung - normale Position */
}

.courses {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 42%, #eefaf8 100%) !important;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.08);
}

.courses::before {
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.12), rgba(56, 189, 248, 0.08), transparent);
}

.courses::after {
    background: linear-gradient(to top, rgba(16, 185, 129, 0.14), rgba(96, 165, 250, 0.08), transparent);
}

.courses-grid .course-card:nth-child(1) {
    background: linear-gradient(140deg, rgba(255, 251, 235, 0.95) 0%, rgba(255, 240, 219, 0.95) 48%, rgba(234, 247, 255, 0.94) 100%);
}

.courses-grid .course-card:nth-child(2) {
    background: linear-gradient(140deg, rgba(250, 245, 255, 0.96) 0%, rgba(246, 238, 255, 0.95) 48%, rgba(232, 246, 255, 0.95) 100%);
}

.courses-grid .course-card:nth-child(3) {
    background: linear-gradient(140deg, rgba(237, 252, 255, 0.96) 0%, rgba(224, 246, 255, 0.95) 48%, rgba(237, 254, 245, 0.95) 100%);
}

.courses-grid .course-card:nth-child(4) {
    background: linear-gradient(140deg, rgba(241, 253, 247, 0.96) 0%, rgba(225, 248, 236, 0.95) 48%, rgba(234, 247, 255, 0.95) 100%);
}

.courses-grid .course-card:nth-child(5) {
    background: linear-gradient(140deg, rgba(255, 241, 247, 0.96) 0%, rgba(254, 231, 245, 0.95) 48%, rgba(240, 244, 255, 0.95) 100%);
}

.courses-grid .course-card:nth-child(6) {
    background: linear-gradient(140deg, rgba(255, 249, 235, 0.96) 0%, rgba(255, 236, 206, 0.95) 48%, rgba(240, 250, 255, 0.95) 100%);
}

.course-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-content h3 {
    margin-bottom: 12px;
    color: #243b69;
}

.course-content > p {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.course-features {
    margin-bottom: 24px;
    flex: 1;
}

.course-content .btn {
    margin-top: auto;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 0.9rem;
}

.course-features i {
    color: #2563eb;
    font-size: 0.8rem;
}

.courses .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #22c55e 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.26);
}

.courses .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.3);
}

.courses .btn-secondary {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.26);
}

.courses .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.courses-cta {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.2) 0%, rgba(74, 111, 165, 0.15) 100%);
    border: 1px solid rgba(74, 111, 165, 0.3);
    border-radius: var(--radius-lg);
    color: var(--dark);
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex: 1;
    margin-bottom: 20px;
    text-align: left;
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary);
}

.cta-content > div {
    flex: 1;
    text-align: left;
}

.cta-content h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--text);
    max-width: 400px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .courses-grid .course-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .courses-grid .course-card:last-child {
        grid-column: auto;
    }
    
    .courses-cta {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cta-content {
        flex-direction: column;
    }
}
