/* Kontext-Hilfe (?-Icon neben Seitentitel) */

.context-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: var(--vereins-blau, #1e3a8a);
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.context-help-btn:hover,
.context-help-btn:focus {
    color: var(--vereins-blau, #1e3a8a);
    background-color: rgba(59, 130, 246, 0.2);
}

.bg-primary .context-help-btn,
.card-header.bg-primary .context-help-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.bg-primary .context-help-btn:hover,
.bg-primary .context-help-btn:focus,
.card-header.bg-primary .context-help-btn:hover,
.card-header.bg-primary .context-help-btn:focus {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.context-help-btn:focus-visible {
    outline: 2px solid var(--vereins-blau-hell, #3b82f6);
    outline-offset: 2px;
}

.context-help-btn .fa-circle-question {
    font-size: 1.15rem;
    margin-right: 0;
}

.page-title-with-help {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Modal: breiter, kompakter Text */
.context-help-dialog {
    max-width: min(42rem, calc(100vw - 1.5rem));
    margin: 0.75rem auto;
}

.context-help-modal .modal-header {
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.context-help-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.context-help-title .fa-circle-question {
    font-size: 0.95rem;
}

.context-help-modal .modal-body {
    padding: 0.85rem 1.1rem 1rem;
}

.context-help-body {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--vereins-text, #1f2937);
}

.context-help-body p {
    margin-bottom: 0.65rem;
}

.context-help-body h6 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--vereins-blau, #1e3a8a);
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
}

.context-help-body h6:first-child {
    margin-top: 0;
}

.context-help-body ul,
.context-help-body ol {
    padding-left: 1.15rem;
    margin-bottom: 0.65rem;
}

.context-help-body li {
    margin-bottom: 0.2rem;
}

.context-help-body li:last-child {
    margin-bottom: 0;
}

.context-help-body p:last-child,
.context-help-body ul:last-child,
.context-help-body ol:last-child {
    margin-bottom: 0;
}

.context-help-footer {
    padding: 0.5rem 1.1rem 0.65rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .context-help-dialog {
        max-width: 42rem;
    }

    .context-help-modal .modal-header {
        padding: 0.75rem 1.25rem;
    }

    .context-help-modal .modal-body {
        padding: 0.9rem 1.25rem 1.1rem;
    }

    .context-help-footer {
        padding: 0.55rem 1.25rem 0.75rem;
    }
}
