/* Schwarzes Popup Design - Volle Platzausnutzung */
.popup.modal-in {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: auto;
    background-color: #000000;
    position: fixed;
}

/* Verhindere weiße Flashes beim Tab-Wechsel */
.popup {
    background-color: #000000 !important;
}

.popup .page {
    background-color: #000000 !important;
}

.popup .page-content {
    background-color: #000000 !important;
}

/* Verhindere Übergangseffekte die weiße Flashes verursachen */
.popup.modal-in,
.popup.modal-out {
    background-color: #000000 !important;
}

/* Stelle sicher, dass alle Popup-Elemente schwarz sind */
#classes-popup,
#private-lesson-popup {
    background-color: #000000 !important;
}

#classes-popup .page,
#private-lesson-popup .page {
    background-color: #000000 !important;
}

#classes-popup .page-content,
#private-lesson-popup .page-content {
    background-color: #000000 !important;
}

/* Blurry Hintergrund */
.popup-backdrop {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.7);
}

/* Schwarzer Header mit goldenem Titel */
.classes-header {
    background-color: #000000;
    margin: 0;
    padding: 30px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #c8a165;
    flex-shrink: 0;
}

/* Page Content für volle Höhe */
.page[data-name="classes"] .page-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.gold-title {
    color: #c8a165;
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Filter Container - Neue Struktur für Tabs und Suchfunktion */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    gap: 30px;
}

/* Solo/Paartanz Tabs */
.dance-type-tabs {
    display: flex;
    justify-content: center;
    background-color: #000000;
    transition: all 0.3s ease;
}

/* Verhindere weiße Flashes beim Tab-Wechsel */
.tab-item {
    position: relative;
    margin: 0 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
}

.tab-item:hover {
    background-color: transparent;
}

.tab-text {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.tab-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.tab-item.active .tab-text {
    color: #ffffff;
}

.tab-item.active .tab-underline {
    width: 100%;
}

.tab-item:hover .tab-text {
    color: #ffffff;
}

.tab-item:hover .tab-underline {
    width: 100%;
}

/* Suchlense */
.search-lens {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border: 2px solid #555;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
    font-size: 1.1em;
}

.search-lens:hover {
    background: #c8a165;
    border-color: #c8a165;
    color: #000000;
    transform: scale(1.1);
}

/* Suchcontainer */
.search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 20;
    animation: slideIn 0.3s ease;
}

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

.search-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    background: #111;
    border: 2px solid #333;
    border-radius: 25px;
    padding: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.search-input-wrapper:focus-within {
    border-color: #c8a165;
    box-shadow: 0 0 10px rgba(200, 161, 101, 0.3);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.8em;
    padding: 10px 15px;
    outline: none;
    padding-right: 50px;
}

.search-input::placeholder {
    color: #666;
}

.search-close-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.search-close-btn:hover {
    background: #333;
    color: #c8a165;
}

/* Tagesstruktur Container - Neue Struktur */
.days-container {
    padding: 20px;
    background-color: #000000;
    min-height: calc(100vh - 200px);
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 5;
}

/* Verhindere weiße Flashes beim Neuladen der Tagesstruktur */
.days-container:empty {
    background-color: #000000;
}

.days-container * {
    background-color: inherit;
}

/* Tages-Header */
.day-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #c8a165;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(200, 161, 101, 0.2);
}

.day-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8a165, #ffd700, #c8a165);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.day-title {
    color: #c8a165;
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
}

/* Datums-Container für mehrere Wochen */
.dates-container {
    margin-bottom: 30px;
}

.date-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.date-section:hover {
    border-color: #c8a165;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200, 161, 101, 0.1);
}

.date-header {
    background: linear-gradient(135deg, #222 0%, #333 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.week-label {
    color: #c8a165;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-display {
    color: #ffffff;
    font-size: 1em;
    font-weight: 500;
}

/* Kategorien Container innerhalb der Datumsstruktur */
.dates-container .categories-container {
    padding: 15px 20px;
    background-color: transparent;
    min-height: auto;
    margin-top: 0;
}

.dates-container .categories-container .category-item {
    margin-bottom: 10px;
    background-color: #111111;
}

.dates-container .categories-container .category-item:last-child {
    margin-bottom: 0;
}

/* Kategorien Container - Volle Platzausnutzung (für andere Verwendungen) */
.categories-container {
    padding: 20px;
    background-color: #000000;
    min-height: calc(100vh - 200px);
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 5;
}

/* Verhindere weiße Flashes beim Neuladen der Kategorien */
.categories-container:empty {
    background-color: #000000;
}

.categories-container * {
    background-color: inherit;
}

/* Kategorie Item */
.category-item {
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: #c8a165;
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #111111;
}

.category-name {
    color: #ffffff;
    font-size: 1.3em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-count {
    color: #c8a165;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #000000;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #c8a165;
}

.expand-arrow {
    color: #c8a165;
    font-size: 1.2em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.category-item.expanded .expand-arrow {
    transform: rotate(90deg);
}

/* Classes List (wird ausgeklappt) */
.classes-list {
    background-color: #000000;
    border-top: 1px solid #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-item.expanded .classes-list {
    max-height: 1000px;
}

/* Class Item */
.class-item {
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    background-color: #000000;
    transition: background-color 0.3s ease;
}

.class-item:last-child {
    border-bottom: none;
}

.class-item:hover {
    background-color: #111111;
    cursor: pointer;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.class-title {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.class-details {
    color: #cccccc;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-time {
    color: #c8a165;
    font-weight: 500;
}

.class-level {
    color: #999999;
    font-style: italic;
}

.class-day {
    color: #c8a165;
    font-weight: 500;
    font-size: 0.9em;
}

/* Schließen-Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #c8a165;
    font-size: 1.5em;
    text-decoration: none;
    z-index: 1000;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #ffffff;
}

/* Fehlermeldungen und "keine Daten" */
.error-message, .no-data {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    background-color: #111111;
    border-radius: 8px;
    margin: 20px;
}

.error-message i {
    color: #ff6b6b;
    font-size: 2em;
    margin-bottom: 15px;
    display: block;
}

.error-message span, .no-data {
    font-size: 1.1em;
    line-height: 1.5;
}

/* Spacer Card für besseres Scrolling */
.spacer-card {
    height: 100px;
    width: 100%;
    background-color: transparent;
    margin-bottom: 20px;
}

/* Tryout Banner Styles */
.tryout-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #c8a165;
    border-radius: 12px;
    margin: 20px 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(200, 161, 101, 0.2);
    transition: all 0.3s ease;
}

.tryout-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8a165, #ffd700, #c8a165);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tryout-banner.available {
    border-color: #ffd700;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.tryout-banner.claimed {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #1a1a1a 0%, #1e2a1e 100%);
}

.tryout-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tryout-banner .banner-text {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    min-width: 200px;
}

.claim-tryout-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    min-width: 140px;
}

.claim-tryout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.claim-tryout-btn:active {
    transform: translateY(0);
}

.claim-tryout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Registration Banner Styles */
.registration-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #c8a165;
    border-radius: 12px;
    margin: 20px 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.registration-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.registration-banner .banner-text {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

/* Responsive Design für Banners */
@media (max-width: 768px) {
    .tryout-banner .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .tryout-banner .banner-text {
        min-width: auto;
        font-size: 1em;
    }
    
    .claim-tryout-btn {
        min-width: 120px;
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .registration-banner .banner-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .registration-banner .banner-text {
        font-size: 1em;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gold-title {
        font-size: 2em;
    }
    
    .dance-type-tabs {
        padding: 15px 0;
    }
    
    .tab-item {
        margin: 0 20px;
    }
    
    .tab-text {
        font-size: 1em;
    }
    
    .days-container {
        padding: 15px;
    }
    
    .categories-container {
        padding: 15px;
    }
    
    .day-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .day-title {
        font-size: 1.5em;
    }
    
    .date-header {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .week-label {
        font-size: 0.8em;
    }
    
    .date-display {
        font-size: 0.9em;
    }
    
    .dates-container .categories-container {
        padding: 12px 15px;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-name {
        font-size: 1.1em;
    }
    
    .class-item {
        padding: 12px 15px;
    }

    .filter-container {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .dance-type-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .tab-item {
        margin: 0 15px;
    }
    
    .tab-text {
        font-size: 1em;
    }
    
    .search-lens {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
}

/* Responsive Design für Filter Container */
@media (max-width: 768px) {
    .filter-container {
        padding: 15px 0;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }
    
    .dance-type-tabs {
        width: auto;
        justify-content: center;
    }
    
    .tab-item {
        margin: 0 15px;
    }
    
    .tab-text {
        font-size: 1em;
    }
    
    .search-lens {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
}


