/**
 * WEMOVE Kurse Frontend CSS
 * Mobile-First Design für Kursübersicht und Einzelkurs-Ansicht
 */
body {
    --primary-color: #e74540; /* Corporate Design Farbe */
}

/* ========================================
   Container & Base Styles
   ======================================== */
.wemove-kurse-container {
    margin: 0 auto;
}

/* ========================================
   Filter Section
   ======================================== */
.wemove-kurse-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.filter-buttons,
.filter-buttons-kategorie {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    min-height: 80px;
    font-family: 'Oswald', sans-serif;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #e74540;
}

.filter-btn.active {
    background: #fff;
    border-color: #000;
    border-width: 3px;
}

.filter-icon {
    font-size: 24px;
    display: block;
    flex-shrink: 0;
}

.filter-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.filter-text {
    font-size: 18px;
    font-weight: 700;
    color: #e74540;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.2;
}

.filter-age {
    font-size: 12px;
    color: #000;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    font-family: "Oswald";
    display: block;
    line-height: 1.3;
}

/* Kategorie-Filter als kleine Badges */
.filter-buttons-kategorie {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.filter-btn-kategorie {
    min-width: auto;
    min-height: auto;
    padding: 6px 14px;
    background: #fff;
    border: 1px dashed #7e7c7c;
    border-radius: 20px;
    flex-direction: row;
    gap: 6px;
}

.filter-btn-kategorie .filter-icon {
    font-size: 14px;
}

.filter-btn-kategorie .filter-text {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-transform: none;
}

.filter-btn-kategorie:hover {
    background: #d63939;
    border-color: #d63939;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 69, 64, 0.3);
}

.filter-btn-kategorie:hover .filter-text {
    color: #fff;
}

.filter-btn-kategorie.active {
    background: #000;
    border-color: #000;
    border-width: 2px;
}

.filter-btn-kategorie.active .filter-text {
    color: #fff;
}

/* ========================================
   Kurse Grid
   ======================================== */
.wemove-kurse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.no-kurse-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* ========================================
   Kurs Card
   ======================================== */
.kurs-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.kurs-card:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    transform: translateY(-4px);
}

.kurs-card.hidden {
    display: none;
}

.kurs-image {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.kurs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kurs-card:hover .kurs-image img {
    transform: scale(1.05);
}

.kurs-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.kurs-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    padding: 15px;
    line-height: 1.2;
    color: #fff !important;
    text-align: center;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),
        0 4px 8px rgba(0,0,0,0.6),
        0 8px 16px rgba(0,0,0,0.4),
        2px 2px 4px rgba(0,0,0,0.9);
    z-index: 2;
}

.kurs-content {
    padding: 20px;
}

.kurs-header {
    margin-bottom: 15px;
}

.kurs-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

/* Alte Badge-Styles entfernt - jetzt einheitliche .kurs-badge Styles */

.kurs-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.kurs-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.kurs-trainer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.trainer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trainer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.trainer-name {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.meta-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.kurs-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.kurs-next-date {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.next-date-label {
    font-weight: 600;
    color: rgba(76, 175, 80, 0.9);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.next-date-value {
    font-size: 15px;
    font-weight: 600;
    color: rgba(76, 175, 80, 0.9);
    font-family: 'Oswald', sans-serif;
}

.next-date-vacation,
.next-date-holiday {
    font-size: 13px;
    font-weight: 600;
    color: #e74540;
    display: flex;
    align-items: center;
    gap: 5px;
}


.next-date-ausfall {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.next-valid-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-date-heute {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.heute-highlight {
    font-size: 15px;
    font-weight: 700;
    color: #0fbf5c;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.5px;
}

.heute-status {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    font-style: italic;
}

.heute-time {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
}

.next-date-begonnen {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.begonnen-status {
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
    font-style: italic;
}

.kurs-preise-wrapper {
    margin-bottom: 15px;
}

.preise-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.preise-toggle:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.kurs-preise {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.preis-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.preis-item.preis-highlight {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 700;
}

.preis-item.preis-highlight .preis-label,
.preis-item.preis-highlight .preis-value {
    color: #fff;
}

.preis-label {
    font-weight: 600;
    color: #666;
}

.preis-value {
    color: #000;
    font-weight: 700;
}

.kurs-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 75%;
    margin: 0 auto;
}

.kurs-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 12px 62px;
    background: #000;
    color: #fff !important;
    border: 1px solid #fff;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kurs-book-btn:hover {
    background: #fff;
    color: #000 !important;
    border: 1px solid #000;
}

.kurs-book-btn .monkey-in-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    opacity: 0;
    pointer-events: none;
}

.kurs-book-btn:hover .monkey-in-button {
    animation: monkey-jump 1.2s forwards;
}

@keyframes monkey-jump {
    0% {
        left: 0;
        opacity: 1;
    }
    100% {
        left: calc(100% - 50px);
        transform: translateY(-50%);
        opacity: 1;
    }
}

.kurs-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px !important;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 14px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kurs-details-btn:hover {
    background: #333;
    color: #fff;
    gap: 12px;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.kurs-details-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ========================================
   Popup Overlay
   ======================================== */
.kurs-popup-overlay,
#kurs-details-popup {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.8) !important;
    z-index: 999999 !important;
    padding: 20px !important;
    overflow-y: auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.kurs-popup-overlay.open,
#kurs-details-popup.open {
    display: flex !important;
}

.kurs-popup-content {
    background: #fff !important;
    max-width: 800px !important;
    width: 100% !important;
    min-height: 200px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    animation: none !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1000000 !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kurs-popup-close {
    position: sticky;
    top: 15px;
    align-self: flex-end;
    margin: 15px 15px 0 0;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.kurs-popup-close:hover {
    transform: rotate(90deg);
}

.kurs-popup-body {
    padding: 0;
}

/* ========================================
   Single Kurs View
   ======================================== */
.wemove-kurs-single {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.kurs-single-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.kurs-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kurs-single-content {
    padding: 30px 20px;
}

.kurs-single-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.kurs-single-meta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    min-width: 100px;
    flex-shrink: 0;
}

.meta-value {
    flex: 1;
    color: #666;
}

.meta-value small {
    color: #999;
}

.maps-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.maps-link:hover {
    text-decoration: underline;
}

.kurs-single-description {
    margin-bottom: 30px;
}

.kurs-single-description h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
}

.kurs-single-description p {
    line-height: 1.8;
    color: #333;
}

.kurs-single-ferien {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
}

.kurs-single-ferien h3 {
    margin: 0 0 10px 0;
    color: #856404;
}

.kurs-single-ferien p {
    margin: 0;
    color: #856404;
}




/* ========================================
   Loading State
   ======================================== */
.kurs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.kurs-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Accessibility
   ======================================== */
.kurs-card:focus,
.filter-btn:focus,
.kurs-details-btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* ========================================
   Popup Details Styles
   ======================================== */
.popup-kurs-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    margin-top: 0;
    flex-shrink: 0;
    
    margin-top: -55px;
}

.popup-kurs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   EINHEITLICHE BADGE-STYLES
   ======================================== */

/* Basis Badge Style */
.kurs-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Badge Container über Bild */
.kurs-image-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

/* Alter Badge */
.kurs-badge-age {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    backdrop-filter: blur(10px);
}

/* Level Badge */
.kurs-badge-level {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    backdrop-filter: blur(10px);
}

/* Auslastungs Badge (in next-date) */
.kurs-badge-auslastung {
    color: #fff;
    margin-right: 8px;
}

.kurs-badge-auslastung.freie-plaetze {
    background: #4caf50;
}

.kurs-badge-auslastung.wenige-plaetze {
    background: #ff9800;
}

.kurs-badge-auslastung.fast-ausgebucht {
    background: #ff5722;
}

.kurs-badge-auslastung.ausgebucht {
    background: #f44336;
}

/* Popup verwendet jetzt die einheitlichen .kurs-badge Styles */

.popup-kurs-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 32px !important;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    padding: 30px;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),
        0 4px 8px rgba(0,0,0,0.6),
        0 8px 16px rgba(0,0,0,0.4),
        2px 2px 4px rgba(0,0,0,0.9);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

.popup-kurs-content {
    padding: 30px 40px;
}

.popup-kurs-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.popup-meta-left,
.popup-meta-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-meta-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
}

.popup-meta-item .meta-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 4px;
}

.popup-meta-item span {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    font-family: "Oswald";
    font-weight: 600;
    color: #000;
}

.popup-meta-item .maps-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.popup-meta-item .maps-link:hover {
    text-decoration: underline;
}

.popup-meta-item .trainer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.popup-meta-item .trainer-link:hover {
    text-decoration: underline;
    color: #d63939;
}

.popup-trainer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.popup-trainer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-trainer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Popup Sections */
.popup-next-date-section,
.popup-preise-section,
.popup-kurs-description {
    margin-bottom: 25px;
}

.popup-next-date-section h3{
    font-family: 'Oswald', sans-serif;
    font-size: 16px !important;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: #000;
}

.popup-preise-section .popup-preise-toggle {
    margin-bottom: 10px;
}

.popup-preise-section .popup-preise-content {
    display: grid;
}

.popup-kurs-description .description-content {
    line-height: 1.8;
    color: #333;
}

.popup-kurs-description .description-content p {
    margin-bottom: 15px;
}

.popup-kurs-description .description-content ul,
.popup-kurs-description .description-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.popup-kurs-ferien {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.popup-kurs-ferien h3 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
}

.popup-kurs-ferien p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
}

.popup-kurs-videos {
    margin-bottom: 25px;
}

.popup-kurs-videos h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    text-align: center;
}

.popup-kurs-description h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;  
    margin-top: 60px;
}

.btn-book-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10px 50px;
    background: #000;
    color: #fff !important;
    border: 1px solid #fff;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-book-inline:hover {
    background: #fff;
    color: #000 !important;
    border: 1px solid #000;
}

.btn-book-inline .monkey-in-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    opacity: 0;
    pointer-events: none;
}

.btn-book-inline:hover .monkey-in-button {
    animation: monkey-jump-inline 1.2s forwards;
}

@keyframes monkey-jump-inline {
    0% {
        left: 0;
        opacity: 1;
    }
    100% {
        left: calc(100% - 40px);
        transform: translateY(-50%);
        opacity: 1;
    }
}

.popup-kurs-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    width: 66.666%;
    margin-left: auto;
    margin-right: auto;
}

.btn-close-popup {
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-popup:hover {
    background: #000;
    color: #fff;
}

.btn-book-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 12px 62px;
    background: #000;
    color: #fff !important;
    border: 1px solid #fff;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book-popup:hover {
    background: #fff;
    color: #000 !important;
    border: 1px solid #000;
}

.btn-book-popup .monkey-in-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    opacity: 0;
    pointer-events: none;
}

.btn-book-popup:hover .monkey-in-button {
    animation: monkey-jump-popup 1.2s forwards;
}

@keyframes monkey-jump-popup {
    0% {
        left: 0;
        opacity: 1;
    }
    100% {
        left: calc(100% - 50px);
        transform: translateY(-50%);
        opacity: 1;
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper-short {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper-short iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
}


.video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.video-link:hover {
    background: #333;
}

.popup-kurs-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}


.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.error-message p {
    margin: 10px 0;
}




/* ========================================
   Mobile Styles (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
    /* Filter kompakter für Mobile */
    .wemove-kurse-filter {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* ALLE Button: Kleiner und allein in erster Reihe */
    .filter-btn[data-filter="alle"] {
        width: 100%;
        max-width: 80px;
        height: 80px;
        padding: 6px;
        border-radius: 50%;
    }
    
    .filter-btn[data-filter="alle"] .filter-icon {
        font-size: 20px;
    }
    
    .filter-btn[data-filter="alle"] .filter-text {
        font-size: 12px;
    }
    
    /* Altersgruppen: Alle in einer Reihe, quadratisch */
    .filter-btn {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        gap: 2px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px;
        border-radius: 50%;
    }
    
    .filter-icon {
        font-size: 18px;
        margin: 0;
        order: 1;
    }
    
    .filter-content {
        align-items: center;
        gap: 1px;
        order: 2;
        display: flex;
        flex-direction: column;
    }
    
    .filter-text {
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        order: 1;
    }
    
    .filter-age {
        font-size: 9px;
        text-align: center;
        order: 2;
    }
    
    /* Kategorie-Filter: Flexible Breite */
    .filter-buttons-kategorie {
        gap: 6px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn-kategorie {
        padding: 8px 12px;
        font-size: 11px;
        min-width: auto;
        width: auto;
        white-space: nowrap;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        min-height: 36px;
        max-height: 35px;
    }
    
    /* Altersfilter Toggle - nur auf Mobile */
    .age-filter-toggle {
        width: 100%;
        padding: 12px 15px;
        background: #fff;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        font-family: 'Oswald', sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }
    
    .age-filter-toggle:hover {
        border-color: #e74540;
    }
    
    .age-filter-toggle.active {
        border-color: #000;
        border-width: 3px;
    }
    
    .age-filter-toggle-icon {
        font-size: 18px;
        transition: transform 0.3s ease;
    }
    
    .age-filter-toggle.active .age-filter-toggle-icon {
        transform: rotate(180deg);
    }
    
    .filter-buttons.collapsed {
        display: none;
    }
    
    .filter-buttons {
        margin-top: 10px;
    }
    
    /* Kurs-Cards: 1 Spalte mit seitlichem Padding */
    .wemove-kurse-grid {
        grid-template-columns: 1fr;
        gap: 65px;
        padding: 0 15px;
    }
    
    /* Popup-Optimierung für Mobile - EXAKT WIE DESKTOP */
    .kurs-popup-overlay,
    #kurs-details-popup {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0,0,0,0.8) !important;
        z-index: 999999 !important;
        padding: 0 !important;
        overflow-y: auto !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .kurs-popup-overlay.open,
    #kurs-details-popup.open {
        display: flex !important;
    }
    
    .kurs-popup-content {
        background: #fff !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 200px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        position: relative !important;
        animation: none !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1000000 !important;
        border-radius: 0 !important;
    }
    
    .kurs-popup-close {
        margin: 10px 10px 0 0;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .popup-kurs-image {
        height: 200px;
        margin-top: -45px;
    }
    
    .popup-kurs-title {
        font-size: 24px !important;
        padding: 20px 15px;
    }
    
    .popup-kurs-content {
        padding: 20px 15px;
    }
    
    .popup-kurs-meta {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .popup-meta-item {
        font-size: 14px;
    }
    
    .popup-next-date-section {
        padding: 15px;
    }
    
    .popup-preise-section {
        margin: 10px 0;
    }
    
    .popup-kurs-description {
        margin-bottom: 20px;
    }
    
    /* Jetzt Buchen Button vor Beschreibung - nur auf Mobile */
    .popup-book-before-description {
        display: block;
        margin-bottom: 20px;
    }
    
    .btn-book-mobile-top {
        display: flex;
        width: 100%;
    }
    
    .description-header {
        margin-bottom: 15px;
    }
    
    .description-header .btn-book-inline {
        display: none;
    }
    
    /* Buttons volle Breite auf Mobile */
    .btn-book-inline,
    .btn-book-popup {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .popup-kurs-actions {
        padding: 15px;
        margin-top: 20px;
    }
    
    .popup-kurs-videos {
        margin-bottom: 20px;
    }
    
    .video-wrapper-short {
        max-width: 100%;
    }
}

/* Desktop: Toggle verstecken, Filter immer sichtbar */
@media (min-width: 768px) {
    .age-filter-toggle {
        display: none;
    }
    
    .filter-buttons.collapsed {
        display: flex !important;
    }
    
    /* Jetzt Buchen Button vor Beschreibung verstecken auf Desktop */
    .popup-book-before-description {
        display: none;
    }
    
    .description-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .description-header .btn-book-inline {
        display: flex !important;
    }
    
    .popup-kurs-actions {
        padding: 15px;
        margin-top: 20px;
    }
    
    .popup-kurs-videos {
        margin-bottom: 20px;
    }
    
    .video-wrapper-short {
        max-width: 100%;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .wemove-kurse-filter,
    .kurs-actions,
    .kurs-popup-overlay {
        display: none !important;
    }
    
    .kurs-card {
        page-break-inside: avoid;
    }
}
