/* ════════════════════════════════════════════════════════════════
   hilfe.css — Hilfe-Knopf, Menü und Formular (25.11.2026)
   Glass (ohne data-theme), White und Dark. Flach, keine Verläufe.
   ════════════════════════════════════════════════════════════════ */
.hilfe-knopf {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 5000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.82);
    color: #4f4a8c;
    box-shadow: 0 8px 24px rgba(30, 26, 70, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hilfe-knopf:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 26, 70, 0.28); }
.hilfe-knopf svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hilfe-knopf[aria-expanded="true"] { background: #4f4a8c; color: #fff; border-color: #4f4a8c; }
[data-theme="white"] .hilfe-knopf { background: #fff; border-color: rgba(29, 29, 31, 0.1); box-shadow: 0 6px 20px rgba(30, 26, 70, 0.14); }
[data-theme="dark"] .hilfe-knopf { background: #232b3d; border-color: rgba(255, 255, 255, 0.12); color: #c9c4ff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
[data-theme="dark"] .hilfe-knopf[aria-expanded="true"] { background: #7d76d6; color: #fff; }
/* Geöffnet (26.11.2026): In White überschrieb die Theme-Regel den lila
   Grund, das weiße Symbol stand auf Weiß. In Glass verschwamm der lila
   Knopf mit dem lila Hintergrund — weißer Rand hebt ihn ab. */
[data-theme="white"] .hilfe-knopf[aria-expanded="true"] { background: #4f4a8c; border-color: #4f4a8c; color: #fff; }
html:not([data-theme]) .hilfe-knopf[aria-expanded="true"] {
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(79, 74, 140, 0.35), 0 8px 24px rgba(30, 26, 70, 0.3);
}
/* Handy mit unterer Leiste: kein schwebender Knopf — Hilfe & Feedback
   liegt dort unter „Mehr" (view_manager.js) */
@media (max-width: 600px) {
    body.has-mob-nav .hilfe-knopf,
    body.has-mob-nav .hilfe-menue { display: none; }
}

.hilfe-menue {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 5001;
    width: 240px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(29, 29, 31, 0.08);
    box-shadow: 0 18px 50px rgba(30, 26, 70, 0.24);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: hilfeEin 0.14s ease;
}
@keyframes hilfeEin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hilfe-menue-kopf { padding: 8px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(29, 29, 31, 0.45); }
.hilfe-punkt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}
.hilfe-punkt:hover { background: rgba(91, 84, 168, 0.08); }
.hilfe-punkt svg, .hilfe-icon svg { width: 18px; height: 18px; fill: none; stroke: #5b54a8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[data-theme="dark"] .hilfe-menue { background: #1C2333; border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .hilfe-menue-kopf { color: rgba(232, 234, 240, 0.5); }
[data-theme="dark"] .hilfe-punkt { color: #E8EAF0; }
[data-theme="dark"] .hilfe-punkt:hover { background: rgba(201, 196, 255, 0.1); }
[data-theme="dark"] .hilfe-punkt svg { stroke: #c9c4ff; }

/* ── Formular ─────────────────────────────────────────────────────── */
.hilfe-huelle {
    position: fixed; inset: 0; z-index: 6950;
    display: flex; align-items: center; justify-content: center;
    padding: 18px; background: rgba(20, 18, 40, 0.45);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hilfe-fenster {
    position: relative;
    width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
    box-sizing: border-box; margin: 0;
    padding: 26px 24px 20px; border-radius: 22px;
    background: #fff; color: #1d1d1f;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.hilfe-zu {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, 0.05); font-size: 18px; line-height: 1; color: rgba(0, 0, 0, 0.55); cursor: pointer;
}
.hilfe-icon {
    width: 46px; height: 46px; border-radius: 14px; margin-bottom: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(91, 84, 168, 0.12);
}
.hilfe-icon svg { width: 22px; height: 22px; }
.hilfe-icon-ok { background: rgba(52, 199, 89, 0.14); }
.hilfe-icon-ok svg { stroke: #1f7a3a; }
.hilfe-fenster h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; letter-spacing: -0.4px; }
.hilfe-text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: rgba(29, 29, 31, 0.65); }
.hilfe-arten { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hilfe-art {
    padding: 6px 12px; border-radius: 16px; border: 1px solid rgba(29, 29, 31, 0.12);
    background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: rgba(29, 29, 31, 0.7); cursor: pointer;
}
.hilfe-art.is-aktiv { background: #4f4a8c; border-color: #4f4a8c; color: #fff; }
.hilfe-feld { position: relative; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; color: rgba(29, 29, 31, 0.6); }
.hilfe-feld span { font-weight: 500; color: rgba(29, 29, 31, 0.4); }
.hilfe-feld input, .hilfe-feld textarea {
    box-sizing: border-box; width: 100%;
    padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(29, 29, 31, 0.14);
    background: #f7f7fb; font: inherit; font-size: 14px; font-weight: 400; color: #1d1d1f; outline: none; resize: vertical;
}
.hilfe-feld textarea { min-height: 110px; }
.hilfe-feld input:focus, .hilfe-feld textarea:focus { border-color: #8f88e0; background: #fff; box-shadow: 0 0 0 3px rgba(143, 136, 224, 0.2); }
.hilfe-zaehler { align-self: flex-end; font-size: 11px !important; }
.hilfe-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hilfe-check { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 12.5px; color: rgba(29, 29, 31, 0.6); }
.hilfe-check input { accent-color: #5b54a8; }
.hilfe-fehler { margin: 0 0 10px; color: #b03a2e; font-size: 13px; font-weight: 600; }
.hilfe-senden {
    width: 100%; height: 46px; border: 0; border-radius: 12px;
    background: #1d1d1f; color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.hilfe-senden:hover { background: #3a3a40; }
.hilfe-senden:disabled { opacity: 0.6; cursor: default; }
.hilfe-klein { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: rgba(29, 29, 31, 0.45); }
.hilfe-klein a { color: #4f4a8c; }

[data-theme="dark"] .hilfe-fenster { background: #1C2333; color: #E8EAF0; }
[data-theme="dark"] .hilfe-text, [data-theme="dark"] .hilfe-feld, [data-theme="dark"] .hilfe-check { color: rgba(232, 234, 240, 0.65); }
[data-theme="dark"] .hilfe-feld input, [data-theme="dark"] .hilfe-feld textarea { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); color: #E8EAF0; }
[data-theme="dark"] .hilfe-art { background: transparent; border-color: rgba(255, 255, 255, 0.16); color: rgba(232, 234, 240, 0.75); }
[data-theme="dark"] .hilfe-art.is-aktiv { background: #7d76d6; border-color: #7d76d6; color: #fff; }
[data-theme="dark"] .hilfe-senden { background: #7d76d6; }
[data-theme="dark"] .hilfe-zu { background: rgba(255, 255, 255, 0.08); color: rgba(232, 234, 240, 0.7); }
[data-theme="dark"] .hilfe-klein { color: rgba(232, 234, 240, 0.45); }
[data-theme="dark"] .hilfe-klein a { color: #c9c4ff; }
