/* Hilfe-Assistent (FAQ) — schwebender Button + Panel */

.mk-help-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 90;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: linear-gradient(145deg, #1f2430 0%, #141820 100%);
    color: #fbbf24;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mk-help-fab:hover {
    transform: translateY(-2px);
    border-color: #f59e0b;
    color: #fde68a;
}

.mk-help-fab:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.mk-help-fab-icon,
.mk-help-fab svg {
    width: 1.35rem;
    height: 1.35rem;
}

.mk-help-panel {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(3.25rem + 1.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 91;
    width: min(22.5rem, calc(100vw - 2rem));
    max-height: min(32rem, calc(100vh - 6rem));
    display: flex;
    flex-direction: column;
    background: #151a22;
    border: 1px solid #3d4450;
    border-radius: 0.85rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    color: var(--text-primary, #e8e4dc);
}

.mk-help-panel[hidden] {
    display: none !important;
}

.mk-help-head {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 0.85rem 0.65rem;
    border-bottom: 1px solid #2c3340;
    background: linear-gradient(180deg, #1b2130 0%, #151a22 100%);
}

.mk-help-head-text {
    flex: 1;
    min-width: 0;
}

.mk-help-title {
    margin: 0;
    font-family: Cinzel, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8f1e3;
    line-height: 1.25;
}

.mk-help-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted, #a8a29a);
    line-height: 1.35;
}

.mk-help-icon-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.4rem;
    border: 1px solid #3d4450;
    background: #12161e;
    color: #d6d3d1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mk-help-icon-btn:hover {
    border-color: #f59e0b;
    color: #fde68a;
}

.mk-help-icon-btn[hidden] {
    display: none !important;
}

.mk-help-body {
    padding: 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mk-help-hint {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted, #a8a29a);
}

.mk-help-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.mk-help-topic,
.mk-help-question {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    text-align: left;
    border: 1px solid #3d4450;
    background: #1a1f28;
    color: #e8e4dc;
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.mk-help-topic:hover,
.mk-help-question:hover {
    border-color: rgba(245, 158, 11, 0.65);
    background: #222833;
}

.mk-help-topic span {
    font-weight: 600;
}

.mk-help-questions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mk-help-answer {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #e7e5e4;
}

.mk-help-cta,
.mk-help-faq-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
}

.mk-help-cta {
    background: var(--btn-primary-bg, #c2410c);
    border: 1px solid rgba(0, 0, 0, 0.35);
    color: var(--btn-primary-text, #fff) !important;
}

.mk-help-cta:hover {
    background: var(--btn-primary-hover, #9a3412);
}

.mk-help-faq-link {
    background: transparent;
    border: 1px solid #3d4450;
    color: #fbbf24 !important;
}

.mk-help-faq-link:hover {
    border-color: #f59e0b;
    color: #fde68a !important;
}

@media (max-width: 420px) {
    .mk-help-topics {
        grid-template-columns: 1fr;
    }

    .mk-help-panel {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: calc(3.25rem + 1.1rem + env(safe-area-inset-bottom, 0px));
        max-height: calc(100vh - 5.5rem);
    }
}
