/* ========================================================
   Schwimmclub Gröden - Kursauswahl / Course Boxes Styling
   ======================================================== */

.scg-courses-container {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: left;
    margin: 10px auto 50px auto;
    max-width: 1400px;
}

/* Section Header */
.scg-courses-header {
    text-align: center;
    margin-bottom: 35px;
}

.scg-courses-title {
    font-size: 32px;
    font-weight: 800;
    color: #002d4b;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.scg-courses-subtitle {
    color: #64748b;
    font-size: 16px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Grid */
.scg-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* Individual Course Box Card */
.scg-course-box {
    background: #ffffff;
    border: 1px solid rgba(90, 196, 222, 0.35);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 45, 75, 0.07);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    text-align: left;
}

.scg-course-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #002d4b 0%, #0284c7 50%, #5ac4de 100%);
}

.scg-course-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(90, 196, 222, 0.22);
    border-color: #5ac4de;
}

.scg-box-title {
    font-size: 21px;
    font-weight: 800;
    color: #002d4b;
    margin: 0 0 12px 0;
    line-height: 1.35;
    min-height: 54px;
}

.scg-box-desc {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.scg-box-desc p {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

/* Info Items (Datum, Preis) */
.scg-box-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.scg-box-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scg-box-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(90, 196, 222, 0.15);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.scg-box-info-data {
    display: flex;
    flex-direction: column;
}

.scg-box-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 2px;
}

.scg-box-info-val {
    font-size: 14px;
    font-weight: 700;
    color: #002d4b;
}

/* Action Button */
.scg-box-action {
    margin-top: auto;
    padding-top: 6px;
}

.scg-box-btn {
    background: linear-gradient(135deg, #0284c7 0%, #5ac4de 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.28);
    transition: all 0.25s ease;
    width: 100%;
    border: none;
}

.scg-box-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.4);
    color: #ffffff !important;
}

/* Responsive */
@media (min-width: 1200px) {
    .scg-courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 767px) {
    .scg-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .scg-courses-title {
        font-size: 24px;
    }
    .scg-course-box {
        padding: 22px 18px;
    }
    .scg-box-title {
        min-height: auto;
    }
}
