/*
 * ============================================================
 * HILFE-STYLING - PERMANENTE SICHERUNG
 * ============================================================
 * © 2025 Ti-age.de Alle Rechte vorbehalten.
 *
 * Dieses Stylesheet enthält das vollständige Styling für:
 * - Help Modal (Hilfe & Dokumentation)
 * - Quick Guide (Kurzanleitung)
 * - Comment Section (Kommentar-Bereich)
 * - Documentation Section (Dokumentations-Bereich)
 * - Help Sections (Hilfe-Abschnitte)
 * - Help Button (Hilfe-Button im Header)
 *
 * WICHTIG: Diese Datei NICHT verändern!
 * Das Styling ist hier als permanente Sicherung gespeichert.
 *
 * Erstellt: 2025-12-02
 * ============================================================
 */

/* ========================================
   HELP BUTTON (Header)
   ======================================== */

.help-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--danger);
    background: transparent;
    color: var(--danger);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.help-btn:hover {
    background: var(--danger);
    color: white;
}

/* ========================================
   QUICK GUIDE (Kurzanleitung)
   ======================================== */

.quick-guide {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 1px solid var(--success);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.quick-guide h3 {
    color: var(--success);
    margin: 0 0 10px 0;
    font-size: var(--font-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-guide ul {
    margin: 0;
    padding-left: 20px;
}

.quick-guide li {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* ========================================
   COMMENT SECTION (Kommentar-Bereich)
   ======================================== */

.comment-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.comment-section p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin: 0 0 12px 0;
}

.comment-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comment-btn:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
}

/* View Comments Button (Yellow) */
.view-comments-btn {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #1a1a2e;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: var(--font-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-comments-btn:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

/* ========================================
   DOCUMENTATION SECTION
   ======================================== */

.documentation-section {
    border-top: 2px solid var(--border);
    padding-top: 20px;
    margin-top: 10px;
}

.documentation-section > h3 {
    color: var(--text-muted);
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* ========================================
   HELP MODAL OVERLAY
   ======================================== */

.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.help-modal-overlay.active {
    display: flex;
}

/* ========================================
   HELP MODAL
   ======================================== */

.help-modal {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    max-height: none;
    border: 1px solid var(--border);
}

/* ========================================
   HELP MODAL HEADER
   ======================================== */

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
}

.help-modal-header h2 {
    font-size: var(--font-lg);
    color: var(--text-primary);
    margin: 0;
}

.help-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.help-modal-close:hover {
    color: var(--text-primary);
}

/* ========================================
   HELP MODAL CONTENT
   ======================================== */

.help-modal-content {
    padding: 20px;
}

/* ========================================
   HELP SECTIONS (Hilfe-Abschnitte)
   ======================================== */

.help-section {
    margin-bottom: 25px;
}

.help-section h3 {
    font-size: var(--font-md);
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.help-section h4 {
    font-size: var(--font-sm);
    color: var(--text-primary);
    margin-top: 15px;
    margin-bottom: 8px;
}

.help-section p,
.help-section li {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-section ul {
    padding-left: 20px;
    margin: 10px 0;
}

.help-section li {
    margin-bottom: 8px;
}

/* ========================================
   HELP FORMULA (Formel-Anzeige)
   ======================================== */

.help-formula {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    margin: 10px 0;
    overflow-x: auto;
}

/* ========================================
   HELP EXAMPLE (Beispiel-Box)
   ======================================== */

.help-example {
    background: rgba(69,123,157,0.1);
    border-left: 3px solid var(--primary);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin: 15px 0;
}

.help-example-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ========================================
   HELP SECTION VARIANTS (Spezial-Styles)
   ======================================== */

/* "Was ist neu" Section - mit Highlight */
.help-section[style*="background: linear-gradient"] {
    padding: 15px;
    border-radius: 12px;
}

/* ========================================
   RESPONSIVE STYLES (Mobile)
   ======================================== */

@media (max-width: 768px) {
    .help-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .help-modal-header {
        padding: 15px;
    }

    .help-modal-header h2 {
        font-size: 1.2rem;
    }

    .help-modal-content {
        padding: 15px;
    }

    .help-section {
        margin-bottom: 20px;
    }

    .quick-guide,
    .comment-section {
        padding: 12px;
    }

    .comment-btn,
    .view-comments-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* ========================================
   END OF HELP STYLING
   ======================================== */
