/* Hilfe-Seite */

.help-page {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.help-page .page-subtitle {
    color: var(--text-secondary);
    margin-top: 4px;
}

.help-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.15s;
}

.help-back:hover {
    background: var(--bg-hover);
    border-color: var(--warning);
    color: var(--warning);
}

.help-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0 32px;
}

.help-toc h3 {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.help-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 24px;
}

.help-toc a {
    color: var(--warning);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 4px 0;
    display: block;
    transition: opacity 0.15s;
}

.help-toc a:hover {
    color: var(--warning-hover);
    text-decoration: underline;
}

.help-section {
    margin: 40px 0;
    scroll-margin-top: 80px;
}

.help-section h2 {
    color: var(--text-primary);
    border-bottom: 2px solid var(--warning);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.help-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.help-section p,
.help-section li {
    color: var(--text-secondary);
    line-height: 1.65;
}

.help-section ul,
.help-section ol {
    padding-left: 22px;
    margin: 12px 0;
}

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

.help-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.help-section a {
    color: var(--warning);
}

.help-section a:hover {
    color: var(--warning-hover);
}

.help-section code {
    background: var(--bg-input);
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-primary);
}

.help-defs {
    margin: 12px 0;
}

.help-defs dt {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 14px;
}

.help-defs dd {
    color: var(--text-secondary);
    margin-left: 0;
    padding-left: 18px;
    border-left: 3px solid var(--warning);
    line-height: 1.55;
}

.help-tip {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.help-faq {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 10px;
}

.help-faq summary {
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    list-style: none;
    padding-right: 28px;
    position: relative;
}

.help-faq summary::-webkit-details-marker { display: none; }

.help-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--warning);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s;
}

.help-faq[open] summary::after {
    content: '−';
}

.help-faq p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .help-toc ul { grid-template-columns: 1fr; }
    .help-section h2 { font-size: 1.2rem; }
}
