/* Notfall-Helfer (SOS) – groß, kontrastreich, auch mit zittrigen Händen bedienbar */
#ml-sos-launch {
    position: fixed; right: 14px; bottom: 14px; z-index: 9000;
    min-width: 58px; height: 44px; padding: 0 14px; border: 2px solid rgba(255,255,255,0.85); border-radius: 999px;
    font-family: inherit; font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; color: #fff;
    background: linear-gradient(135deg, #ff3b30, #c81e1e); box-shadow: 0 6px 18px rgba(0,0,0,0.45); cursor: pointer;
}
#ml-sos-launch:active { transform: scale(0.96); }
.ml-ui2 #ml-sos-launch { bottom: calc(var(--ml-nav-h, 64px) + 14px + env(safe-area-inset-bottom, 0px)); }
html.ml-sos-open, html.ml-sos-open body { overflow: hidden !important; }

.ml-sos-dash {
    margin-left: auto; margin-right: 10px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.7);
    background: #c81e1e; color: #fff; font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer;
}

#ml-sos {
    position: fixed; inset: 0; z-index: 100500; display: flex; flex-direction: column;
    background: #0b0d10; color: #fff; font-family: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-top: env(safe-area-inset-top, 0px);
}
#ml-sos .ml-sos-head {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-shrink: 0;
    background: linear-gradient(90deg, #7a1010, #3a0a0a); border-bottom: 1px solid rgba(255,90,90,0.4);
}
#ml-sos .ml-sos-head .t { flex: 1; font-weight: 800; font-size: 1.15rem; text-align: center; }
#ml-sos .ml-sos-head button {
    width: 44px; height: 44px; border-radius: 12px; border: none; background: rgba(255,255,255,0.12);
    color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}
#ml-sos-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 24px; overscroll-behavior: contain; }
#ml-sos .ml-sos-foot { flex-shrink: 0; padding: 8px 14px calc(env(safe-area-inset-bottom, 0px) + 8px); font-size: 0.72rem; color: #8a94a0; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
#ml-sos h3 { font-size: 1.05rem; margin: 20px 2px 10px; color: #ffd1cc; }
#ml-sos h3:first-child { margin-top: 2px; }
#ml-sos a { color: #7fd8ff; }

/* Standortkarte */
.ml-sos-loc {
    border-radius: 16px; padding: 14px 16px; background: #161b22; border: 1px solid rgba(255,255,255,0.12);
}
.ml-sos-loc.road { border-color: rgba(255,190,60,0.55); background: linear-gradient(180deg, #1d1a10, #15130c); }
.ml-sos-cap { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9aa4b0; margin-bottom: 4px; }
.ml-sos-cap .old { text-transform: none; letter-spacing: 0; color: #ffb35c; }
.ml-sos-l1 { font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.ml-sos-loc.road .ml-sos-l1 { color: #ffd257; }
.ml-sos-l2 { font-size: 1.12rem; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.ml-sos-l3 { font-size: 0.98rem; color: #c9d1da; margin-top: 4px; line-height: 1.35; }
.ml-sos-co { font-size: 1.05rem; font-weight: 700; margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.ml-sos-meta { font-size: 0.8rem; color: #8a94a0; margin-top: 3px; }
.ml-sos-meta.warn { color: #ffb35c; }
.ml-sos-loc.wait .ml-sos-l1 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.ml-sos-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff; animation: mlsosspin 0.9s linear infinite; display: inline-block; }
@keyframes mlsosspin { to { transform: rotate(360deg); } }
.ml-sos-loc.compact { padding: 10px 12px; margin-bottom: 10px; }
.ml-sos-loc.compact .ml-sos-l1 { font-size: 1.1rem; }
.ml-sos-loc.compact .ml-sos-l2 { font-size: 0.95rem; margin-top: 2px; }
.ml-sos-loc.compact .ml-sos-co { font-size: 0.95rem; margin-top: 4px; }

.ml-sos-ask { margin-top: 12px; display: grid; gap: 8px; }
.ml-sos-ask > div { font-weight: 700; color: #ffd257; }
.ml-sos-ask button {
    min-height: 48px; border-radius: 12px; border: 1px solid rgba(255,210,87,0.6); background: rgba(255,210,87,0.1);
    color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.ml-sos-actions { display: grid; grid-template-columns: 1fr 1.4fr 52px; gap: 8px; margin-top: 12px; }
.ml-sos-actions button, .ml-sos-mini, .ml-sos-row button, .ml-sos-sharebox a, .ml-sos-sharebox button {
    min-height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
    color: #fff; font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.ml-sos-actions button[data-a="share"] { background: #1f6feb; border-color: #1f6feb; }
.ml-sos-mini { min-height: 40px; margin-top: 8px; padding: 0 12px; font-size: 0.88rem; }
.ml-sos-sharebox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ml-sos-link { background: none; border: none; color: #7fd8ff; font: inherit; font-size: 0.9rem; text-decoration: underline; padding: 8px 2px; cursor: pointer; }
.ml-sos-tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,140,0,0.1); border: 1px solid rgba(255,140,0,0.3); font-size: 0.9rem; line-height: 1.4; color: #ffe2bf; }

/* Anruf-Knöpfe */
.ml-sos-call {
    display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; margin-top: 10px; padding: 8px 16px;
    border-radius: 14px; background: #1b222b; border: 1px solid rgba(255,255,255,0.16); color: #fff !important; text-decoration: none;
}
.ml-sos-call .n { font-size: 1.12rem; font-weight: 800; }
.ml-sos-call .s { font-size: 0.85rem; color: #b8c2cc; }
.ml-sos-call.big { min-height: 68px; margin-top: 14px; }
.ml-sos-call.red { background: linear-gradient(135deg, #ff3b30, #b31414); border-color: #ff6a60; }
.ml-sos-call.red .n { font-size: 1.35rem; }
.ml-sos-call.red .s { color: #ffe1de; }
.ml-sos-call.own { border-color: rgba(127,216,255,0.6); }
.ml-sos-calls .ml-sos-call:first-child { margin-top: 0; }

.ml-sos-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ml-sos-big {
    min-height: 96px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.18); background: #1b222b; color: #fff;
    font: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ml-sos-big .i { font-size: 1.9rem; }
.ml-sos-big:active, .ml-sos-call:active, .ml-sos-ci:active { transform: scale(0.98); }

/* Checklisten */
.ml-sos-check { display: grid; gap: 8px; }
.ml-sos-ci {
    display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px; border-radius: 12px;
    background: #161b22; border: 1px solid rgba(255,255,255,0.1); color: #e8edf2; font: inherit; font-size: 0.98rem; line-height: 1.35; cursor: pointer;
}
.ml-sos-ci .box {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.45);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #0b0d10;
}
.ml-sos-ci.on { background: rgba(48,209,88,0.1); border-color: rgba(48,209,88,0.45); color: #b9f0c8; }
.ml-sos-ci.on .box { background: #30d158; border-color: #30d158; }
.ml-sos-card { padding: 12px 14px; border-radius: 12px; background: #161b22; border: 1px solid rgba(255,255,255,0.1); font-size: 0.96rem; line-height: 1.45; margin-top: 10px; }
.ml-sos-card ol, .ml-sos-card ul, .ml-sos-own ul { margin: 6px 0; padding-left: 20px; }
.ml-sos-card li, .ml-sos-own li { margin: 3px 0; }

.ml-sos-own { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #12161c; border: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
.ml-sos-own summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.ml-sos-own p { color: #9aa4b0; font-size: 0.85rem; margin: 6px 0; }
.ml-sos-own input {
    width: 100%; box-sizing: border-box; margin-top: 8px; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2);
    background: #0b0d10; color: #fff; font: inherit; font-size: 1rem;
}
.ml-sos-row { display: flex; gap: 8px; margin-top: 10px; }
.ml-sos-row button { flex: 1; background: #1f6feb; border-color: #1f6feb; }
.ml-sos-row button.ghost { background: transparent; border-color: rgba(255,255,255,0.25); }

.ml-sos-toast {
    position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 60px); transform: translateX(-50%);
    background: #30d158; color: #04220d; font-weight: 800; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
