/* ============================================
   ONLINE COACHING PAGE STYLES
   Premium corporate design with animations
   ============================================ */

/* ============================================
   COACHING HERO SECTION
   ============================================ */
.coaching-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
}

.coaching-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.coaching-hero-bg .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, #1a2a3a 60%, var(--color-accent) 100%);
}

.coaching-hero-bg .hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239DD4D0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.coaching-hero .container {
    position: relative;
    z-index: 1;
}

.coaching-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.coaching-hero-content .label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(157, 212, 208, 0.15);
    border-radius: 30px;
    border: 1px solid rgba(157, 212, 208, 0.3);
}

.coaching-hero-content h1 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.coaching-hero-content h1 .accent {
    color: var(--color-primary);
    position: relative;
}

.coaching-hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.hero-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.filter-header h2 {
    margin-bottom: 0.5rem;
}

.filter-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Theme Filter Tags */
.theme-filter-container {
    position: relative;
    margin-bottom: 2rem;
}

.theme-filter-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.theme-filter-scroll::-webkit-scrollbar {
    display: none;
}

.theme-filter-tags {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.theme-filter-btn {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.theme-filter-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-off-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.theme-filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(61, 122, 119, 0.3);
}

.theme-filter-btn .filter-icon {
    font-size: 1rem;
}

/* Filter fade overlays for scroll indication */
.filter-fade-left,
.filter-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    display: none;
}

.filter-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--color-cream), transparent);
}

.filter-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--color-cream), transparent);
}

/* Active Filter Indicator */
.active-filter-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.filter-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.filter-value {
    font-weight: 600;
    color: var(--color-accent);
}

.clear-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-filter-btn:hover {
    background: var(--color-cream);
    border-color: var(--color-text-light);
    color: var(--color-text);
}

.clear-filter-btn svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   COACHES GRID
   ============================================ */
.coaches-count {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.coaches-count span {
    font-weight: 600;
    color: var(--color-accent);
}

.coaching-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ============================================
   COACH CARD
   ============================================ */
.coach-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.coach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
}

.coach-card:hover::before {
    opacity: 1;
}

/* Card Header with Photo */
.coach-card-header {
    position: relative;
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Same structure as Team section; smaller size (64px) so high-res sources scale cleanly */
.coach-photo-container {
    position: relative;
    overflow: hidden;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coach-photo {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    background: var(--color-team-photo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.coach-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-cream), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-photo-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-secondary);
}

/* Placeholder variants */
.coach-photo-placeholder.large svg {
    width: 64px;
    height: 64px;
}

.coach-photo-placeholder.small svg {
    width: 32px;
    height: 32px;
}

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

.coach-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-deep-blue);
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
}

.coach-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Card Body */
.coach-card-body {
    padding: 1.25rem 1.5rem;
}

.coach-motto {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coach-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Theme Tags on Card */
.coach-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.coach-theme-tag {
    padding: 0.25rem 0.65rem;
    background: var(--color-cream);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

/* Card Footer */
.coach-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.coach-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: all var(--transition-fast);
    /* Remove button default styles */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.coach-profile-link:hover {
    color: var(--color-accent-hover);
    gap: 0.75rem;
}

.coach-profile-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.coach-profile-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   CARD FILTER ANIMATIONS
   ============================================ */
.coach-card.filtering-out {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.coach-card.filtering-in {
    animation: cardFilterIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFilterIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-text-muted);
}

.empty-state h3 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.coaching-cta-section {
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, #1a2a3a 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .coaching-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .coaching-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--spacing-lg);
    }

    .coaching-hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat .stat-value {
        font-size: 2rem;
    }

    .theme-filter-tags {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0 1rem;
    }

    .filter-fade-left,
    .filter-fade-right {
        display: block;
    }
}

@media (max-width: 768px) {
    .coaching-hero {
        padding-top: 80px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-stat {
        flex: 1 1 calc(50% - 0.75rem);
    }

    .coaching-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .active-filter-indicator {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .coach-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .coach-header-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .coaching-hero-content .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stat .stat-value {
        font-size: 1.75rem;
    }

    .hero-stat .stat-label {
        font-size: 0.75rem;
    }

    .theme-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .coach-photo-container {
        width: 56px;
        height: 56px;
    }

    .coach-card-body {
        padding: 1rem;
    }

    .coach-card-footer {
        padding: 0.75rem 1rem 1rem;
    }
}

/* ============================================
   COACH MODAL OVERRIDES
   ============================================ */

/* Business-Coaching tags: uniform gray (no seminar category colors) */
#coach-modal .modal-tags .modal-tag,
#coach-modal .modal-tags .coach-theme-tag {
    background-color: #e5e5e5;
    color: #525252;
    border: none;
}
#coach-modal .modal-tags .modal-tag:hover,
#coach-modal .modal-tags .coach-theme-tag:hover {
    background-color: #d4d4d4;
    color: #404040;
}

/* Description paragraph (same text as on card); visibility toggled via JS */
.modal-description-wrap {
    margin-bottom: 1.25rem;
    display: none;
}
#coach-modal .modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Modal left area: photo fills the full left column again */
#coach-modal .modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Add more padding to Schwerpunkte section */
#coach-modal .modal-quick-info {
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

#coach-modal .modal-quick-info h4 {
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

#coach-modal .quick-info-list {
    gap: 0.75rem;
}

#coach-modal .quick-info-list li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    opacity: 1;
    animation: none;
}

#coach-modal .quick-info-list li:last-child {
    border-bottom: none;
}

/* Checkmark is rendered inline via JS (no ::before) to avoid double checkmarks */