/**
 * sportspaß Kurssuche - Combined Styles
 * Version 3.15.7
 */

/* ========== CSS VARIABLES (Defaults) ========== */
.sp-kurssuche {
    --sp-primary: #e31e24;
    --sp-secondary: #c41a1f;
    --sp-text: #333333;
    --sp-title: #1a1a1a;
    --sp-bg: #ffffff;
    --sp-card-bg: #ffffff;
    --sp-filter-bg: #e31e24;
    --sp-radius: 8px;
    --sp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --sp-shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --sp-shadow-lg: 0 4px 15px rgba(0,0,0,0.12);
}

/* ========== CONTAINER ========== */
.sp-kurssuche {
    font-family: var(--sp-font);
    max-width: 100%;
    color: var(--sp-text);
    background: var(--sp-bg);
    line-height: 1.6;
}

/* ========== HEADER ========== */
.sp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Layout Toggle */
.sp-layout-toggle {
    display: flex;
    gap: 3px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: var(--sp-radius, 8px);
    border: 1px solid #e0e0e0;
}

.sp-toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    color: #555;
}

.sp-toggle-btn:hover {
    background: rgba(255,255,255,0.8);
    color: #333;
}

.sp-toggle-btn.active {
    background: var(--sp-primary, #e31e24);
    color: white;
    font-weight: 600;
}

/* Week Navigation */
.sp-week-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sp-nav-btn {
    background: var(--sp-primary, #e31e24);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: var(--sp-radius, 8px);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sp-nav-btn:hover {
    background: var(--sp-secondary, #c41a1f);
    transform: translateY(-1px);
}

.sp-nav-btn:active {
    transform: translateY(0);
}

.sp-week-label {
    font-weight: 600;
    min-width: 180px;
    text-align: center;
    color: #333;
    font-size: 14px;
}

/* ========== FILTERS (List View) ========== */
.sp-filters {
    background: var(--sp-filter-bg, #e31e24);
    padding: 20px;
    border-radius: var(--sp-radius, 8px);
    margin-bottom: 20px;
}

.sp-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.sp-filter-row:last-child {
    margin-bottom: 0;
}

.sp-filter-group {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 300px;
    position: relative;
}

.sp-filter-group label {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sp-filter-group:hover label {
    color: #ffffff;
    transform: translateX(3px);
}

.sp-filter-group input,
.sp-filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sp-filter-group input:hover,
.sp-filter-group select:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.sp-filter-group input:focus,
.sp-filter-group select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.8);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.sp-filter-group input::placeholder {
    color: #999;
    transition: all 0.3s ease;
}

.sp-filter-group input:focus::placeholder {
    color: #ccc;
}

/* Select Dropdown - robuste Lösung ohne SVG */
.sp-filter-group select {
    cursor: pointer;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: rgba(255,255,255,0.95) !important;
    background-image: none !important;
    padding-right: 40px !important;
}

/* THEME COMPATIBILITY FIX - Sicherstellen dass Select-Text sichtbar ist */
.sp-kurssuche select,
.sp-kurssuche .sp-filter-group select,
.sp-kurssuche .sp-filters select {
    color: #333 !important;
    background-color: #fff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: #333 !important;
}

.sp-kurssuche select option {
    color: #333 !important;
    background-color: #fff !important;
    padding: 8px 12px !important;
}

/* IE/Edge Dropdown-Pfeil entfernen */
.sp-filter-group select::-ms-expand {
    display: none !important;
}

/* Custom Pfeil nur für Select-Gruppen */
.sp-select-group {
    position: relative;
}

.sp-select-group::after {
    content: '▼';
    position: absolute;
    right: 15px;
    bottom: 14px;
    font-size: 10px;
    color: #667eea;
    pointer-events: none;
    z-index: 2;
}

.sp-select-group:focus-within::after {
    color: #764ba2;
}

.sp-filter-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-filter-status #sp-count {
    font-weight: 700;
    font-size: 18px;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 5px;
}

.sp-reset-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: var(--sp-radius, 8px);
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.sp-reset-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* Echtzeit-Toggle */
.sp-realtime-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    margin-left: auto;
    margin-right: 10px;
}

.sp-realtime-toggle:hover {
    opacity: 1;
}

.sp-realtime-toggle input {
    cursor: pointer;
    accent-color: white;
}

.sp-realtime-toggle span {
    white-space: nowrap;
}

.sp-realtime-toggle input:checked + span {
    font-weight: 600;
}

/* ========== LEGEND (Week View) ========== */
.sp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: var(--sp-radius, 8px);
    border: 1px solid #e0e0e0;
}

.sp-legend-item {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0.7;
    user-select: none;
}

.sp-legend-item:hover {
    opacity: 0.9;
}

.sp-legend-item.active {
    opacity: 1;
    outline: 2px solid white;
    outline-offset: 1px;
}

.sp-legend-all {
    background: var(--sp-primary, #e31e24);
}

/* ========== LOADING ========== */
.sp-loading {
    text-align: center;
    padding: 50px 20px;
}

.sp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top-color: var(--sp-primary, #e31e24);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

.sp-loading p {
    color: #666;
    font-size: 14px;
}

/* Loading Overlay für Wochenansicht */
.sp-loading-overlay {
    position: relative;
    pointer-events: none;
    opacity: 0.4;
    filter: grayscale(30%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.sp-loading-overlay::after {
    content: 'Lade aktuelle Daten...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
    white-space: nowrap;
}

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

/* ========== ERROR ========== */
.sp-error {
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    color: white;
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
    animation: sp-shake 0.5s ease-in-out;
}

@keyframes sp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========== LIST VIEW ========== */
.sp-list-view .sp-courses {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Day Section */
.sp-day-section {
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

.sp-day-section:first-child {
    border-radius: var(--sp-radius, 8px) var(--sp-radius, 8px) 0 0;
}

.sp-day-section:last-child {
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 0 var(--sp-radius, 8px) var(--sp-radius, 8px);
}

.sp-day-section:only-child {
    border-radius: var(--sp-radius, 8px);
    border-bottom: 1px solid #e0e0e0;
}

.sp-day-section-header {
    background: var(--sp-primary, #e31e24);
    color: white;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}

.sp-day-section-courses {
    background: #ffffff;
    padding: 0;
    border: none;
}

/* Course Card (List) - Tabellen-Stil */
.sp-course-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    -webkit-transition: all 0.2s ease !important;
    transition: all 0.2s ease !important;
    border-left: 4px solid transparent;
    position: relative;
    cursor: pointer;
    border-radius: 0;
}

.sp-course-card:last-child {
    border-bottom: none;
}

/* Hover Gradient Overlay */
.sp-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(227, 30, 36, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease !important;
    pointer-events: none;
}

/* Hover Effects */
.sp-kurssuche .sp-course-card:hover,
body .sp-kurssuche .sp-course-card:hover,
.sp-course-card:hover {
    background: #fafafa !important;
    border-left-color: var(--sp-primary, #e31e24) !important;
    z-index: 10 !important;
}

.sp-kurssuche .sp-course-card:hover::before,
body .sp-kurssuche .sp-course-card:hover::before,
.sp-course-card:hover::before {
    opacity: 1 !important;
}

.sp-kurssuche .sp-course-card:hover .sp-course-time-box,
body .sp-kurssuche .sp-course-card:hover .sp-course-time-box,
.sp-course-card:hover .sp-course-time-box {
    transform: scale(1.02) !important;
}

.sp-kurssuche .sp-course-card:hover .sp-course-title,
body .sp-kurssuche .sp-course-card:hover .sp-course-title,
.sp-course-card:hover .sp-course-title {
    color: var(--sp-primary, #e31e24) !important;
}

.sp-kurssuche .sp-course-card:hover .sp-badge,
body .sp-kurssuche .sp-course-card:hover .sp-badge,
.sp-course-card:hover .sp-badge {
    transform: scale(1.05) !important;
}

.sp-course-card.sp-full {
    opacity: 0.5;
    background: #f9f9f9;
}

.sp-course-card.sp-full:hover {
    opacity: 0.7 !important;
}

/* Time Box */
.sp-course-time-box {
    background: var(--sp-primary, #e31e24);
    color: white;
    padding: 10px 14px;
    border-radius: var(--sp-radius, 8px);
    text-align: center;
    min-width: 80px;
    margin-right: 20px;
    position: relative;
    z-index: 1;
    -webkit-transition: all 0.2s ease !important;
    transition: all 0.2s ease !important;
}

.sp-course-time-start {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.sp-course-time-end {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

.sp-course-info {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.sp-course-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sp-title, #1a1a1a);
    margin-bottom: 4px;
    line-height: 1.4;
    -webkit-transition: color 0.2s ease !important;
    transition: color 0.2s ease !important;
}

.sp-course-trainer {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.sp-info-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.sp-course-card:hover .sp-info-icon {
    opacity: 0.8;
}

.sp-course-location {
    font-size: 12px;
    color: #777;
}

.sp-course-status {
    text-align: right;
    position: relative;
    z-index: 1;
    margin-left: 15px;
}

.sp-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    -webkit-transition: all 0.2s ease !important;
    transition: all 0.2s ease !important;
}

.sp-badge-available {
    background: #28a745;
    color: white;
}

.sp-badge-full {
    background: #e9e9e9;
    color: #888;
}

.sp-no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

/* ========== WEEK VIEW ========== */
.sp-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border-radius: var(--sp-radius, 8px);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.sp-day {
    background: #ffffff;
    min-width: 130px;
    transition: all 0.2s ease;
}

.sp-day:hover {
    background: #fafafa;
}

.sp-day.sp-today {
    background: #fffbf0;
}

.sp-day-header {
    background: var(--sp-primary, #e31e24);
    color: white;
    padding: 14px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sp-day.sp-today .sp-day-header {
    background: linear-gradient(135deg, #e31e24 0%, #ff4444 100%);
}

.sp-day.sp-today .sp-day-header::after {
    content: ' ●';
    font-size: 8px;
}

.sp-day-courses {
    padding: 8px;
    min-height: 120px;
}

/* Course Card (Week) */
.sp-week-course {
    background: #f8f8f8;
    border-left: 3px solid;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 0 var(--sp-radius, 8px) var(--sp-radius, 8px) 0;
    font-size: 11px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.sp-week-course:hover {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transform: translateX(2px) !important;
}

.sp-week-course-time {
    font-weight: 700;
    color: var(--sp-title, #1a1a1a);
    margin-bottom: 3px;
    font-size: 12px;
}

.sp-week-course-title {
    color: var(--sp-title, #1a1a1a);
    font-weight: 600;
    margin-bottom: 3px;
    word-wrap: break-word;
    line-height: 1.3;
    font-size: 11px;
}

.sp-week-course-trainer {
    color: #666;
    font-size: 10px;
    margin-bottom: 4px;
}

.sp-week-course-standort {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    margin-top: 4px;
    transition: transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sp-week-course:hover .sp-week-course-standort {
    transform: scale(1.05) !important;
}

.sp-week-course.sp-week-full {
    opacity: 0.4;
}

.sp-week-course.sp-week-full:hover {
    opacity: 0.6 !important;
}

.sp-week-no-courses {
    text-align: center;
    padding: 20px 8px;
    color: #999;
    font-size: 11px;
    font-style: italic;
}

/* ========== WEEK VIEW - DARK MODE ========== */
.sp-week-grid:not(.sp-week-light) {
    background: linear-gradient(135deg, #1e1e3f 0%, #2d2d5a 100%);
    border-color: #1e1e3f;
}

.sp-week-grid:not(.sp-week-light) .sp-day {
    background: linear-gradient(180deg, #292952 0%, #252550 100%);
}

.sp-week-grid:not(.sp-week-light) .sp-day:hover {
    background: linear-gradient(180deg, #323265 0%, #2a2a58 100%);
}

.sp-week-grid:not(.sp-week-light) .sp-day.sp-today {
    background: linear-gradient(180deg, #3a3a70 0%, #2f2f60 100%);
}

.sp-week-grid:not(.sp-week-light) .sp-day-header {
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.sp-week-grid:not(.sp-week-light) .sp-week-course {
    background: rgba(255,255,255,0.08);
}

.sp-week-grid:not(.sp-week-light) .sp-week-course:hover {
    background: rgba(255,255,255,0.12) !important;
}

.sp-week-grid:not(.sp-week-light) .sp-week-course-time,
.sp-week-grid:not(.sp-week-light) .sp-week-course-title {
    color: #ffffff;
}

.sp-week-grid:not(.sp-week-light) .sp-week-course-trainer {
    color: #b0b0d0;
}

.sp-week-grid:not(.sp-week-light) .sp-week-no-courses {
    color: #666688;
}

/* Scrollbar (Week) */
.sp-day-courses::-webkit-scrollbar {
    width: 5px;
}

.sp-day-courses::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.sp-day-courses::-webkit-scrollbar-thumb {
    background: #3a3a5e;
    border-radius: 3px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .sp-week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sp-filter-group {
        flex: 1 1 180px;
        min-width: 150px;
    }
}

@media (max-width: 900px) {
    .sp-filter-group {
        flex: 1 1 45%;
        min-width: 140px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .sp-week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sp-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sp-layout-toggle {
        justify-content: center;
    }
    
    .sp-week-nav {
        justify-content: center;
    }
    
    .sp-course-card {
        flex-wrap: wrap;
    }
    
    .sp-course-status {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }
    
    .sp-filter-group {
        flex: 1 1 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .sp-week-grid {
        grid-template-columns: 1fr;
    }
    
    .sp-day-courses {
        min-height: 200px;
        max-height: 300px;
    }
    
    .sp-filter-status {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== MODAL ========== */
.sp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.sp-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.sp-modal-header {
    background: linear-gradient(135deg, var(--sp-primary, #e31e24) 0%, var(--sp-secondary, #c41a1f) 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sp-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.sp-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sp-modal-body {
    padding: 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

#sp-modal-course-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.sp-modal-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.sp-modal-info-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sp-modal-info-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.sp-modal-info-value {
    color: #666;
}

#sp-modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

#sp-modal-description:empty::before {
    content: 'Keine Beschreibung verfügbar.';
    color: #999;
    font-style: italic;
}

/* ========== MODAL ACTION BUTTONS ========== */
.sp-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.sp-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.sp-btn-trial {
    background: linear-gradient(135deg, var(--sp-primary, #e31e24) 0%, var(--sp-secondary, #c41a1f) 100%);
    color: white;
}

.sp-btn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
    color: white;
    text-decoration: none;
}

.sp-btn-membership {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.sp-btn-membership:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
    color: white;
    text-decoration: none;
}

.sp-btn-icon {
    font-size: 20px;
}

.sp-btn-text {
    flex: 1;
    text-align: center;
}

/* Responsive Action Buttons */
@media (min-width: 500px) {
    .sp-modal-actions {
        flex-direction: row;
    }
    
    .sp-action-btn {
        flex: 1;
    }
}

/* ========== CALENDAR BUTTON ========== */
.sp-calendar-section {
    position: relative;
}

.sp-calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--sp-primary, #e31e24) 0%, var(--sp-secondary, #c41a1f) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.sp-calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.sp-calendar-btn .sp-btn-icon {
    font-size: 18px;
}

.sp-calendar-btn .sp-btn-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.sp-calendar-btn.active .sp-btn-arrow {
    transform: rotate(180deg);
}

.sp-calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
    animation: calendarDropdownIn 0.2s ease;
}

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

.sp-calendar-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sp-calendar-option:last-child {
    border-bottom: none;
}

.sp-calendar-option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sp-calendar-option span {
    font-size: 18px;
}

/* ========== PRINT ========== */
@media print {
    .sp-layout-toggle,
    .sp-week-nav,
    .sp-filters,
    .sp-modal-overlay,
    .sp-calendar-section {
        display: none !important;
    }
}

/* ========== KURSART & UMKREISSUCHE ========== */
.sp-filter-row-extra {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.sp-radius-group {
    min-width: 250px;
}

.sp-radius-inputs {
    display: flex;
    gap: 8px;
}

.sp-radius-inputs input[type="text"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: var(--sp-filter-font, 12px);
}

.sp-radius-inputs select {
    flex: 1;
    min-width: 100px;
}

#sp-plz.sp-valid {
    border-color: #27ae60;
    background-color: #f0fff4;
}

#sp-plz.sp-invalid {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.sp-radius-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

/* Kursart-Badge in Kurskarten */
.sp-course-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.sp-course-type-badge.center {
    background: #3498db;
    color: white;
}

.sp-course-type-badge.outdoor {
    background: #27ae60;
    color: white;
}

.sp-course-type-badge.school {
    background: #9b59b6;
    color: white;
}

/* Entfernung in Kurskarten */
.sp-distance-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: #ecf0f1;
    color: #7f8c8d;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-radius-inputs {
        flex-direction: column;
    }
    
    .sp-radius-inputs input[type="text"],
    .sp-radius-inputs select {
        width: 100%;
    }
    
    .sp-radius-group {
        min-width: 100%;
    }
}
