/* ============================================ */
/* style.css - MAMAGEHTTANZEN Dokumentation     */
/* ============================================ */

/* ============================================ */
/* GLOBALE STYLES                              */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================ */
/* NAVIGATION                                   */
/* ============================================ */
.doc-nav {
    background: #1a1a2e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.doc-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-nav .logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.doc-nav .logo span {
    color: #FF1493;
    background: rgba(255,20,147,0.15);
    padding: 0 6px;
    border-radius: 5px;
}

.doc-nav .logo small {
    font-size: 12px;
    font-weight: 300;
    color: #888;
    display: block;
    letter-spacing: 2px;
}

.doc-nav .nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.doc-nav .nav-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 12px;
    border-radius: 8px;
}

.doc-nav .nav-links a:hover {
    color: #FF1493;
    background: rgba(255,20,147,0.1);
}

.doc-nav .nav-links a i {
    margin-right: 6px;
}

.doc-nav .badge-version {
    background: rgba(255,20,147,0.2);
    color: #FF69B4;
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 12px;
    border: 1px solid rgba(255,20,147,0.2);
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.doc-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 50px 0 40px;
    color: white;
    text-align: center;
    flex-shrink: 0;
}

.doc-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.doc-hero h1 span {
    color: #FF1493;
}

.doc-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================ */
/* HAUPT-CONTAINER                             */
/* ============================================ */
.doc-wrapper {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ============================================ */
/* SIDEBAR / INHALTSVERZEICHNIS                */
/* ============================================ */
.doc-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 3px 20px rgba(0,0,0,0.05);
    border-left: 4px solid #FF1493;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.doc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.doc-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.doc-sidebar::-webkit-scrollbar-thumb {
    background: #FF1493;
    border-radius: 10px;
}

.doc-sidebar h4 {
    font-weight: 700;
    color: #C71585;
    padding: 0 20px 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 0 10px 0;
}

.doc-sidebar h4 i {
    margin-right: 10px;
    color: #FF1493;
}

.doc-sidebar .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-sidebar .toc-list li {
    padding: 0;
    margin: 0;
}

.doc-sidebar .toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.doc-sidebar .toc-list a:hover {
    background: #FFF0F5;
    color: #FF1493;
    border-left-color: #FF1493;
}

.doc-sidebar .toc-list a.active {
    background: #FFF0F5;
    color: #FF1493;
    font-weight: 600;
    border-left-color: #FF1493;
}

.doc-sidebar .toc-list a i {
    color: #FF1493;
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================ */
/* HAUPT-INHALT (rechts)                       */
/* ============================================ */
.doc-content {
    flex: 1;
    min-width: 0;
}

/* ============================================ */
/* SEKTIONEN                                    */
/* ============================================ */
.doc-section {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    border-left: 4px solid #FF1493;
    overflow: hidden;
    transition: all 0.3s ease;
}

.doc-section:hover {
    box-shadow: 0 4px 25px rgba(255,20,147,0.08);
}

.doc-section-header {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.doc-section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #C71585;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-section-header h2 i {
    color: #FF1493;
    font-size: 1rem;
    width: 22px;
    text-align: center;
}

.doc-section-header .badge-count {
    background: #FF1493;
    color: white;
    font-size: 0.6rem;
    padding: 1px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 8px;
}

.doc-section-body {
    padding: 25px;
}

/* ============================================ */
/* INHALTS-STYLES                              */
/* ============================================ */
.doc-section-body h3 {
    color: #333;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-section-body h3 i {
    color: #FF1493;
}

.doc-section-body h4 {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 5px;
}

.doc-section-body p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.doc-section-body ul,
.doc-section-body ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.doc-section-body ul li,
.doc-section-body ol li {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.doc-section-body code {
    background: #f0f0f0;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #C71585;
    font-family: 'Courier New', monospace;
}

.doc-section-body .doc-code {
    background: #1a1a2e;
    color: #00ff9d;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    margin: 10px 0;
}

/* ============================================ */
/* BOXEN                                        */
/* ============================================ */
.doc-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px 0;
    border-left: 4px solid #FF1493;
}

.doc-box.green {
    border-left-color: #28a745;
}

.doc-box.blue {
    border-left-color: #17a2b8;
}

.doc-box.yellow {
    border-left-color: #ffc107;
}

.doc-box.red {
    border-left-color: #dc3545;
}

.doc-box .box-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.doc-box .box-title i {
    margin-right: 8px;
}

/* ============================================ */
/* STEPS                                        */
/* ============================================ */
.doc-step {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.doc-step .step-num {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.doc-step .step-content {
    flex: 1;
}

.doc-step .step-content p {
    margin: 0 0 4px 0;
}

/* ============================================ */
/* FAQ                                          */
/* ============================================ */
.doc-faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
}

.doc-faq-item:last-child {
    border-bottom: none;
}

.doc-faq-item .question {
    font-weight: 700;
    color: #C71585;
    font-size: 1rem;
    margin-bottom: 6px;
}

.doc-faq-item .answer {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
    padding-left: 10px;
    border-left: 3px solid #FF1493;
    padding-left: 15px;
}

.doc-faq-item .answer ul {
    padding-left: 20px;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.doc-footer {
    background: #1a1a2e;
    padding: 25px 0 20px;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.doc-footer p {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    margin: 0;
}

.doc-footer .heart {
    color: #FF1493;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.doc-footer a {
    color: #FF69B4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.doc-footer a:hover {
    color: #FF1493;
}

.doc-footer .badge-version {
    background: rgba(255,20,147,0.15);
    color: #FF69B4;
    padding: 1px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255,20,147,0.08);
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 992px) {
    .doc-wrapper {
        flex-direction: column;
    }
    
    .doc-sidebar {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        border-left: none;
        border-top: 4px solid #FF1493;
    }
    
    .doc-sidebar .toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2px;
        padding: 0 10px 10px;
    }
    
    .doc-sidebar .toc-list a {
        padding: 6px 12px;
        border-left: none;
        border-radius: 8px;
    }
    
    .doc-sidebar .toc-list a.active {
        border-left: none;
        background: #FF1493;
        color: white;
    }
    
    .doc-sidebar .toc-list a.active i {
        color: white;
    }
    
    .doc-sidebar .toc-list a:hover {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .doc-hero h1 {
        font-size: 1.8rem;
    }
    
    .doc-nav .container {
        flex-direction: column;
        text-align: center;
    }
    
    .doc-nav .nav-links {
        justify-content: center;
    }
    
    .doc-section-header {
        padding: 14px 18px;
    }
    
    .doc-section-header h2 {
        font-size: 1rem;
    }
    
    .doc-section-body {
        padding: 18px;
    }
    
    .doc-step {
        flex-direction: column;
        gap: 6px;
    }
    
    .doc-step .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .doc-wrapper {
        padding: 15px;
    }
    
    .doc-sidebar .toc-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .doc-hero h1 {
        font-size: 1.4rem;
    }
    
    .doc-hero p {
        font-size: 0.9rem;
    }
    
    .doc-nav .nav-links a {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .doc-sidebar .toc-list {
        grid-template-columns: 1fr;
    }
    
    .doc-section-header h2 {
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .doc-section-header h2 i {
        font-size: 0.9rem;
        width: 18px;
    }
}