/* Dokumentations-spezifische Styles */

.docs-body {
    background: #f8fafc;
}

.docs-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Docs Container */
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.docs-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.docs-sidebar-inner {
    padding: 32px 24px;
}

.docs-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 4px;
}

.docs-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.docs-nav a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.docs-nav a.active {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

/* Main Content */
.docs-content {
    padding: 48px 64px;
    background: var(--white);
    max-width: 900px;
}

.docs-section {
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.docs-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 48px;
    color: var(--text-dark);
}

.docs-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 32px;
    color: var(--text-dark);
}

.docs-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
    color: var(--text-dark);
}

.docs-section p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 16px;
}

.docs-section .lead {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.6;
}

.docs-section ul,
.docs-section ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.docs-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-light);
}

.docs-section ul li {
    list-style: disc;
}

.docs-section ol li {
    list-style: decimal;
}

.docs-section li strong {
    color: var(--text-dark);
}

/* Code Blocks */
.docs-section pre,
.docs-section pre * {
    background: #1e293b !important;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    color: #ffffff !important;
    /* Force white text on pre and all children */
    font-family: 'Monaco', 'Courier New', monospace;
}

.docs-section code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.docs-section pre code {
    background: transparent;
    color: #f8fafc;
    /* Much lighter color for better contrast */
    padding: 0;
    font-size: 15px;
    /* Slightly larger */
}

/* Info Boxes */
.docs-info-box,
.docs-warning-box,
.docs-tip-box {
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid;
}

.docs-info-box {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.docs-info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.docs-warning-box {
    background: #fef3c7;
    border-color: #f59e0b;
}

.docs-warning-box h4 {
    color: #f59e0b;
    margin-top: 0;
}

.docs-tip-box {
    background: #ecfdf5;
    border-color: #10b981;
}

.docs-tip-box h4 {
    color: #10b981;
    margin-top: 0;
}

/* Version Cards */
.version-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.version-card {
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.version-card.featured {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
}

.version-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
    color: var(--text-dark);
}

/* Version Badges */
.version-badge {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.version-badge span {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pro {
    background: var(--primary-color);
    color: var(--white);
}

.badge-business {
    background: #7c3aed;
    color: var(--white);
}

/* Responsive */
@media (max-width: 968px) {
    .docs-container {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .docs-content {
        padding: 32px 24px;
    }

    .version-cards {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-padding-top: 100px;
}