/* restaurants-search.css - Spezifische Styles für die Restaurant-Suche */

/* =================== FILTER BEREICH =================== */
.search-filters {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.search-filters h2 {
    color: #E7A800;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.search-filters p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.filter-form {
    margin-top: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-control {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-control:focus {
    border-color: #E7A800;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 168, 0, 0.1);
}

.filter-options {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #495057;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.filter-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.filter-btn-primary {
    background: linear-gradient(135deg, #E7A800 0%, #ffcc00 100%);
    color: #3A3A2E;
}

.filter-btn-primary:hover {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 168, 0, 0.3);
}

.filter-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.filter-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* =================== KI-ASSISTENT BANNER =================== */
.assistant-banner {
    background: linear-gradient(135deg, #6f42c1, #4a148c);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
    border-radius: 10px;
}

.assistant-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.assistant-banner i {
    font-size: 28px;
    color: #FFD700;
}

.assistant-banner h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.assistant-banner p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* =================== ERGEBNISSE HEADER =================== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.results-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-count {
    background: #E7A800;
    color: #3A3A2E;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* =================== RESTAURANT GRID =================== */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.restaurant-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.restaurant-card:hover .card-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
    flex: 1;
}

.rating {
    background: #48bb78;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-description {
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-badge {
    background: #d1fae5;
    color: #065f46;
}

.feature-badge.seasonal {
    background: #fef3c7;
    color: #92400e;
}

.feature-badge.ai {
    background: #6f42c1;
    color: white;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #E7A800 0%, #ffcc00 100%);
    color: #3A3A2E;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 168, 0, 0.3);
}

.btn-secondary {
    background: #4299e1;
    color: white;
}

.btn-secondary:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

/* =================== KEINE ERGEBNISSE =================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.no-results i {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 1rem;
}

.search-suggestions {
    max-width: 500px;
    margin: 0 auto 25px auto;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.search-suggestions p {
    font-weight: 600;
    margin-bottom: 10px;
}

.search-suggestions ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
}

.search-suggestions li {
    margin-bottom: 5px;
}

/* =================== PLACEHOLDER TABS =================== */
.tab-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.tab-placeholder i {
    color: #E7A800;
    margin-bottom: 20px;
}

.tab-placeholder h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.tab-placeholder p {
    color: #666;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =================== ANIMATIONEN =================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 768px) {
    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .assistant-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .search-filters {
        padding: 20px 15px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .feature-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ==================== KORREKTUREN FR RESTAURANT-LIST ==================== */

/* 1. Filter Buttons - sicherstellen dass sie klickbar sind */
.type-filter-btn {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.type-filter-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 2. Restaurant Cards - vollstndige Hhe, kein Abschneiden */
.restaurant-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 380px;
    max-height: none;
    overflow: visible;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.card-description {
    overflow: visible;
    display: block;
    margin-bottom: 15px;
    line-height: 1.5;
}

.restaurant-types-badges {
    overflow: visible;
    flex-wrap: wrap;
}

/* 3. Footer Navigation - Mobile Scroll Fix */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-nav-items {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.footer-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
    cursor: pointer;
}

.footer-nav-link i {
    font-size: 20px;
}

.footer-nav-link.active {
    color: #E7A800;
}

/* 4. Karten gleichmige Hhe im Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* 5. Sticky Filter Bar - korrekte Positionierung */
.sticky-type-filter {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sticky-type-filter.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* 6. Mobile Optimierungen */
@media (max-width: 768px) {
    .restaurant-card {
        min-height: 350px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .restaurant-types-badges {
        margin: 8px 0;
    }
    
    .restaurant-type-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Footer Navigation Icons grӏer fr Touch */
    .footer-nav-link i {
        font-size: 22px;
    }
    
    .footer-nav-link span {
        font-size: 10px;
    }
}