/* =====================================================
   Preisliste / Price List Styles - Modern & Clean Design
   ===================================================== */

/* Section Container */
.price-list-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Header */
.price-list-header {
    text-align: center;
    margin-bottom: 40px;
}

.price-list-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.price-list-header p {
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filter Tabs */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: #ffffff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-btn:hover {
    border-color: #799AA1;
    color: #799AA1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(121, 154, 161, 0.2);
}

.category-btn.active {
    background: #799AA1;
    border-color: #799AA1;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(121, 154, 161, 0.3);
}

.category-btn i {
    font-size: 0.9rem;
}

/* Search Box */
.search-container {
    max-width: 100%;
    margin-bottom: 25px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.search-input:focus {
    outline: none;
    border-color: #799AA1;
    box-shadow: 0 4px 20px rgba(121, 154, 161, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon,
.search-container:hover .search-icon {
    color: #799AA1;
}

/* Service Groups */
.service-groups-container {
    max-width: 100%;
}

.service-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.group-title .count {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
}

/* Service Cards - Compact */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    border-color: #799AA1;
    box-shadow: 0 4px 20px rgba(121, 154, 161, 0.15);
    transform: translateX(3px);
}

.service-card:hover .service-name {
    color: #799AA1;
}

/* Service Info */
.service-info {
    flex: 1;
    min-width: 0;
}

.service-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 3px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.service-duration {
    font-size: 0.75rem;
    color: #888;
}

.service-link {
    font-size: 0.85rem;
    color: #799AA1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #5d7a80;
    text-decoration: underline;
}

.service-info-badge {
    font-size: 0.7rem;
    background: #fff3e0;
    color: #e65100;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* Service Price */
.service-price-container {
    text-align: right;
    min-width: 90px;
    flex-shrink: 0;
}

.service-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* 6er-Paket - More Prominent */
.service-package {
    font-size: 0.7rem;
    color: #ffffff;
    background: linear-gradient(135deg, #799AA1 0%, #5d7a80 100%);
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 3px;
    display: inline-block;
}

.service-package span {
    font-weight: 700;
}

/* Arrow Icon */
.service-arrow {
    margin-left: 10px;
    font-size: 0.85rem;
    color: #ccc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-arrow {
    color: #799AA1;
    transform: translateX(3px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    animation: fadeInUp 0.5s ease;
}

.no-results i {
    font-size: 2.5rem;
    color: #ddd;
    margin-bottom: 15px;
}

.no-results h4 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 8px;
}

.no-results p {
    color: #888;
    font-size: 0.85rem;
}

/* Package Info Box - More Prominent */
.package-info-box {
    background: linear-gradient(135deg, #799AA1 0%, #5d7a80 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 25px rgba(121, 154, 161, 0.25);
}

.package-info-box i {
    font-size: 2rem;
    opacity: 0.9;
}

.package-info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.package-info-content p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #799AA1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #888;
    font-size: 0.9rem;
}

/* Stats Counter - Compact */
.stats-counter {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    display: inline-flex;
    gap: 25px;
    justify-content: center;
}

.stats-counter .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-counter .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #799AA1;
}

.stats-counter .stat-label {
    font-size: 0.75rem;
    color: #888;
}

/* =====================================================
   Sidebar Styles - Sticky (JavaScript controlled)
   ===================================================== */

/* Ensure the row doesn't interfere with sticky */
.price-list-section .row {
    align-items: flex-start;
}

/* Left column */
.price-list-section .col-lg-8 {
    position: relative;
}

/* Right column - container for sticky */
.price-list-section .col-lg-4 {
    position: relative;
}


/* Booking Form Widget */
.booking-form-widget .form-group {
    margin-bottom: 12px;
}

.booking-form-widget .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.booking-form-widget .form-control:focus {
    border-color: #799AA1;
    box-shadow: 0 0 0 3px rgba(121, 154, 161, 0.1);
}

.booking-form-widget select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.booking-form-widget textarea.form-control {
    resize: none;
}

.booking-form-widget .captcha-group {
    margin-bottom: 15px;
}

.booking-form-widget .captcha-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.booking-form-widget .captcha-input {
    width: 70px !important;
    text-align: center;
}

.booking-form-widget .theme-btn {
    font-size: 0.9rem;
    padding: 12px 20px;
}

/* Contact Info Widget */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-list a:hover {
    background: #799AA1;
    color: #ffffff;
}

.contact-list a i {
    width: 20px;
    text-align: center;
}

/* Selected Service Highlight */
.service-card.selected {
    border-color: #799AA1;
    background: rgba(121, 154, 161, 0.05);
    box-shadow: 0 4px 20px rgba(121, 154, 161, 0.2);
}

.service-card.selected::before {
    content: '✓';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #799AA1;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar-sticky {
        position: relative;
        top: 0;
        margin-top: 40px;
        max-height: none;
        overflow-y: visible;
    }
    
    .price-list-section .row {
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .price-list-section {
        padding: 40px 0;
    }
    
    .price-list-header h2 {
        font-size: 1.5rem;
    }
    
    .category-filter {
        gap: 6px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .service-info {
        width: 100%;
    }
    
    .service-price-container {
        text-align: left;
        min-width: auto;
    }
    
    .service-arrow {
        margin-left: auto;
    }
    
    .package-info-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .group-title {
        font-size: 0.95rem;
    }
    
    .stats-counter {
        width: 100%;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .category-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .category-btn i {
        display: none;
    }
    
    .search-input {
        padding: 8px 12px 8px 35px;
        font-size: 0.85rem;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
}

/* Animation for cards appearing - only on initial load and filter change */
#service-groups-wrapper .service-card {
    animation: slideIn 0.25s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#service-groups-wrapper .service-card:nth-child(1) { animation-delay: 0.02s; }
#service-groups-wrapper .service-card:nth-child(2) { animation-delay: 0.04s; }
#service-groups-wrapper .service-card:nth-child(3) { animation-delay: 0.06s; }
#service-groups-wrapper .service-card:nth-child(4) { animation-delay: 0.08s; }
#service-groups-wrapper .service-card:nth-child(5) { animation-delay: 0.1s; }
#service-groups-wrapper .service-card:nth-child(6) { animation-delay: 0.12s; }
#service-groups-wrapper .service-card:nth-child(7) { animation-delay: 0.14s; }
#service-groups-wrapper .service-card:nth-child(8) { animation-delay: 0.16s; }
#service-groups-wrapper .service-card:nth-child(9) { animation-delay: 0.18s; }
#service-groups-wrapper .service-card:nth-child(10) { animation-delay: 0.2s; }

/* Stats and info box - no animation on filter/search */
.stats-info-wrapper {
    animation: none;
}

.stats-info-wrapper .stats-counter,
.stats-info-wrapper .package-info-box {
    transition: opacity 0.2s ease;
}
