/**
 * CRM Guide Styles
 * Extrahiert aus crm-guide.php für bessere Wartbarkeit
 */

/* Hero Section */
.guide-hero {
    background: linear-gradient(135deg, #005a73 0%, #0077a0 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.guide-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Main Container Layout */
.guide-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    align-items: flex-start;
}

.guide-sidebar-left {
    flex: 0 0 250px;
}

.guide-content {
    flex: 1;
    min-width: 0;
}

.guide-sidebar-right {
    flex: 0 0 300px;
}

@media (max-width: 1200px) {
    .guide-container {
        gap: 1.5rem;
    }
    .guide-sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .guide-container {
        flex-direction: column;
    }
    .guide-sidebar-left {
        display: none;
    }
}

/* Sidebars */
.guide-sidebar-left,
.guide-sidebar-right {
    height: fit-content;
}

/* Category Navigation */
.category-nav {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.category-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav li {
    margin-bottom: 0.5rem;
}

.category-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-nav a:hover,
.category-nav a.active {
    background: #f0f7ff;
    color: #005a73;
}

.category-nav i {
    margin-right: 0.75rem;
    width: 20px;
}

.category-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #999;
}


/* Article Grid */
.article-grid {
    display: grid;
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    background: #f0f7ff;
    color: #005a73;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    text-decoration: none;
    display: block;
}

.article-title:hover {
    color: #005a73;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #005a73;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

.article-date {
    font-size: 0.9rem;
    color: #999;
}

/* Popular Articles Sidebar */
.popular-articles {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.popular-articles h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.popular-article {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-article:last-child {
    border-bottom: none;
}

.popular-number {
    background: #f0f7ff;
    color: #005a73;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-content a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.popular-content a:hover {
    color: #005a73;
}

.popular-views {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

/* CTA Section */
.guide-cta {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.guide-cta h3 {
    margin-bottom: 1rem;
}

.guide-cta p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Mobile Navigation */
.mobile-category-toggle {
    display: none;
    background: white;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
    cursor: pointer;
}

.mobile-category-toggle i {
    float: right;
}

@media (max-width: 768px) {
    .mobile-category-toggle {
        display: block;
    }
    
    .guide-sidebar-left {
        display: block !important;
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .guide-sidebar-left.active {
        left: 0;
    }
    
    .category-nav {
        position: static;
        border-radius: 0;
        height: 100%;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .mobile-overlay.active {
        display: block;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .guide-sidebar-left,
    .guide-sidebar-right,
    .guide-cta {
        display: none;
    }
    
    .guide-container {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .article-card {
        border: 2px solid #000;
    }
    
    .category-nav a.active {
        background: #000;
        color: #fff;
    }
    
    .popular-number {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .article-card,
    .category-nav a,
    .read-more {
        transition: none;
    }
    
    .article-card:hover {
        transform: none;
    }
}