/* KOMPLETTE Navigation Styles mit Search */

/* Base Navigation */
.nav-container {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
}

.nav-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-radius: 0.375rem;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo-link:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

.nav-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-text {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

.nav-desktop {
    display: none;
}

.nav-desktop-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
    border-radius: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.nav-link:hover {
    color: #111827;
}

.nav-link:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

.search-toggle-btn.active {
    color: #3b82f6;
}

.search-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.2s ease;
}

/* CTA Buttons */
.nav-cta-buttons {
    display: none;
    align-items: center;
    gap: 1rem;
}

.nav-cta-login {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem;
}

.nav-cta-signup {
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow 0.3s;
}

.nav-cta-signup:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: flex;
    background: #f9fafb;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-button:hover {
    background: #f3f4f6;
    color: #111827;
}

.mobile-menu-button:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Mobile Search Section */
.mobile-search-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.mobile-search-btn:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.mobile-search-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-link {
    color: #374151;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.3s;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.mobile-cta-section {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-cta-login {
    color: #374151;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cta-login:hover {
    background: #f3f4f6;
}

.mobile-cta-signup {
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: box-shadow 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cta-signup:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== SEARCH PANEL STYLES ===== */

/* Search Panel */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    max-height: 70vh;
    overflow-y: auto;
}

.search-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Search Close Button für Mobile */
.search-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 50;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.search-close-btn svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.search-close-btn:hover {
    background: #e5e7eb;
}

.mobile-only {
    display: none;
}

/* Search Panel Content */
.search-panel-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    pointer-events: none;
}

/* Search Filters */
.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

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

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #111827;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
    min-height: 44px;
}

.filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Results */
.search-results {
    min-height: 200px;
}

.search-results-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1rem;
    margin: 0;
}

/* Loading State */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Profile Cards */
.search-results-list {
    display: grid;
    gap: 1rem;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.profile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.profile-specialization {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-availability {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.availability-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #10b981;
}

.profile-actions {
    flex-shrink: 0;
}

.book-profile-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-height: 44px;
}

.book-profile-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.book-profile-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Desktop Breakpoint */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
    }
    
    .nav-cta-buttons {
        display: flex;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }
    
    .search-close-btn {
        display: flex;
    }
    
    .search-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        max-height: none;
        transform: translateX(100%);
        opacity: 1;
        visibility: visible;
        border-top: none;
    }
    
    .search-panel.active {
        transform: translateX(0);
    }
    
    .search-panel-content {
        padding: 4rem 1rem 1rem 1rem;
        height: 100%;
        overflow-y: auto;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .book-profile-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ACCESSIBILITY ===== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .search-panel,
    .search-toggle-btn,
    .profile-card,
    .loading-spinner,
    .mobile-menu-button,
    .nav-link {
        transition: none;
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .search-panel {
        border: 2px solid #000;
    }
    
    .search-input {
        border: 2px solid #000;
    }
    
    .profile-card {
        border: 2px solid #000;
    }
    
    .nav-link:focus,
    .mobile-menu-button:focus,
    .search-toggle-btn:focus {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}

/* Focus Management */
.search-panel:focus-within .search-input {
    border-color: #3b82f6;
}

/* Custom Scrollbar */
.search-panel::-webkit-scrollbar {
    width: 6px;
}

.search-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}