/* Schwarzes Popup Design für Private Lessons - Volle Platzausnutzung */
#private-lesson-popup.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 */
#private-lesson-popup.popup {
    background-color: #000000 !important;
}

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

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

/* Verhindere Übergangseffekte die weiße Flashes verursachen */
#private-lesson-popup.popup.modal-in,
#private-lesson-popup.popup.modal-out {
    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 */
.privat-lesson-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="privat-lesson"] .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;
}

/* Kategorien Container - Volle Platzausnutzung */
.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);
}

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

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

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

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

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

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

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

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

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

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

.lesson-price {
    color: #c8a165;
    font-weight: bold;
    font-size: 1.1em;
}

/* 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;
}

/* 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;
    }
    
    .categories-container {
        padding: 15px;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-name {
        font-size: 1.1em;
    }
    
    .lesson-item {
        padding: 12px 15px;
    }
}

/* 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%;
    }
}
