/* Kollegium-spezifische Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

/* Team Photo Section */
.team-photo-section {
    margin-bottom: 3rem;
}

.team-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1.75rem;
    color: #1e3a8a;
    font-size: 1.3rem;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1.25rem 4.5rem 1.25rem 4rem;
    border: 3px solid transparent;
    border-radius: 60px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
    transform: translateY(-2px);
}

.clear-search {
    position: absolute;
    right: 1.25rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.clear-search:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.search-info {
    text-align: center;
    padding: 0.75rem 1.5rem;
    color: #475569;
    font-size: 1rem;
    background: white;
    border-radius: 30px;
    display: inline-block;
    margin: 0 auto;
    width: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.search-info.highlight {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.search-info i {
    margin-right: 0.5rem;
}

.search-section .search-container {
    text-align: center;
}

.highlight-match {
    background: #fef08a;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Email Info */
.email-info {
    background: #eff6ff;
    border-left: 4px solid #1e3a8a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.email-info i {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.email-info code {
    background: #dbeafe;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1e3a8a;
}

/* Teachers Grid */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Teacher Card */
.teacher-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.teacher-card.hidden {
    display: none;
}

.teacher-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: #f3f4f6;
}

.teacher-info {
    padding: 1.5rem;
}

.teacher-name {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-role {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.teacher-code {
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.teacher-contact {
    display: flex;
    gap: 0.75rem;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-icon:hover {
    background: #1e3a8a;
    color: white;
    transform: scale(1.1);
}

.contact-icon.email:hover {
    background: #22c55e;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .search-section {
        padding: 2rem 1.5rem;
    }

    .search-input {
        padding: 1.1rem 4rem 1.1rem 3.5rem;
        font-size: 0.95rem;
    }

    .search-icon {
        left: 1.25rem;
        font-size: 1.1rem;
    }

    .clear-search {
        right: 1rem;
        width: 34px;
        height: 34px;
    }

    .search-info {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .teacher-image {
        height: 300px;
    }

    .email-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .search-section {
        padding: 1.5rem 1rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 1rem 3.5rem 1rem 3rem;
    }
    
    .search-icon {
        left: 1rem;
    }
}
