/* SL-UP Hilfezentrum - CSS Styles */
:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --accent: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    padding-top: 70px;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.search-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
}

.search-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

.search-btn {
    background: var(--primary);
    border: none;
    color: white;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 600;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.category-vacation { background: linear-gradient(135deg, var(--success), #059669); color: white; }
.category-approval { background: linear-gradient(135deg, var(--warning), #D97706); color: white; }
.category-team { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.category-settings { background: linear-gradient(135deg, var(--accent), #0891B2); color: white; }
.category-user { background: linear-gradient(135deg, var(--gray-600), var(--gray-700)); color: white; }
.category-admin { background: linear-gradient(135deg, var(--danger), #DC2626); color: white; }

.glossary-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.glossary-term {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.glossary-definition {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.badge-category {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 0.25rem;
}

.badge-vacation { background: var(--success-light); color: var(--success); }
.badge-approval { background: var(--warning-light); color: var(--warning); }
.badge-team { background: var(--primary-100); color: var(--primary); }
.badge-settings { background: var(--accent-light); color: var(--accent); }
.badge-user { background: var(--gray-100); color: var(--gray-600); }
.badge-admin { background: var(--danger-light); color: var(--danger); }

.toc-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--gray-600);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.toc-link.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-50);
    padding-left: 0.5rem;
}

.footer {
    background: var(--gray-900);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: var(--gray-300);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.highlight {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.step {
    display: flex;
    margin-bottom: 1rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray-600);
}

.search-result {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.search-result:hover {
    background: var(--primary-50);
}

.search-result-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.search-result-category {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.search-result-category span {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-right: 0.25rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-400);
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-results-container {
    max-height: 400px;
    overflow-y: auto;
}

.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.category-header h2 {
    margin-bottom: 0;
}

.category-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.category-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.alert-info {
    background: var(--primary-50);
    border-color: var(--primary-100);
    color: var(--primary);
}

.alert-info .alert-link {
    color: var(--primary-dark);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .search-container {
        margin: 0.5rem 0;
    }

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

/* =============================================
   HILFE DARK MODE
   ============================================= */
[data-theme="dark"] body {
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .card-header {
    background: #1e293b;
    border-bottom-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .card-body {
    color: #e2e8f0;
}

[data-theme="dark"] .glossary-item {
    background: #1e293b;
    border-left-color: #3b82f6;
}

[data-theme="dark"] .glossary-definition {
    color: #cbd5e1;
}

[data-theme="dark"] .search-box {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .search-result:hover {
    background: rgba(59,130,246,0.1);
}

[data-theme="dark"] .search-result-excerpt {
    color: #94a3b8;
}

[data-theme="dark"] .search-result-category span {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .toc-link {
    color: #94a3b8;
    border-bottom-color: #334155;
}

[data-theme="dark"] .toc-link:hover {
    color: #60a5fa;
}

[data-theme="dark"] .toc-link.active {
    color: #60a5fa;
    background: rgba(59,130,246,0.1);
}

[data-theme="dark"] .nav-link {
    color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #60a5fa;
    background: rgba(59,130,246,0.1);
}

[data-theme="dark"] .footer {
    background: #0b1120;
}

[data-theme="dark"] .step-content p {
    color: #94a3b8;
}

[data-theme="dark"] .feature-card p {
    color: #94a3b8;
}

[data-theme="dark"] .highlight {
    background: linear-gradient(120deg, rgba(59,130,246,0.2) 0%, rgba(96,165,250,0.15) 100%);
    color: #93c5fd;
}

[data-theme="dark"] .search-container {
    background: rgba(0,0,0,0.3);
}

[data-theme="dark"] .search-no-results {
    color: #64748b;
}

/* Tip-Boxes im Artikel-Inhalt */
[data-theme="dark"] .tip-box {
    background: #162032 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .tip-box.success {
    background: rgba(16,185,129,0.1) !important;
    border-color: rgba(16,185,129,0.25) !important;
}

[data-theme="dark"] .tip-box.warn {
    background: rgba(245,158,11,0.1) !important;
    border-color: rgba(245,158,11,0.25) !important;
}