.ad-help-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    font-family: inherit;
}

.ad-help-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 50%;
    background: #b92838;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .2);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.ad-help-launcher:hover,
.ad-help-launcher:focus {
    background: #981f2d;
    transform: translateY(-2px);
}

.ad-help-launcher.is-open {
    background: #2d313c;
}

.ad-help-panel {
    position: absolute;
    right: 0;
    bottom: 4.25rem;
    display: flex;
    flex-direction: column;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(38rem, calc(100vh - 6rem));
    overflow: hidden;
    border: 1px solid #e2e6ec;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .2);
}

.ad-help-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.1rem 1.15rem .9rem;
    background: #2d313c;
    color: #fff;
}

.ad-help-kicker {
    display: block;
    margin-bottom: .25rem;
    color: #d4d9e2;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.ad-help-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 750;
}

.ad-help-close {
    border: 0;
    background: transparent;
    color: #dfe3e9;
    font-size: 1.1rem;
    cursor: pointer;
}

.ad-help-tabs {
    display: flex;
    border-bottom: 1px solid #e8ebef;
    background: #fff;
}

.ad-help-tabs button {
    flex: 1;
    padding: .75rem .35rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #596273;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.ad-help-tabs button.is-active {
    border-bottom-color: #b92838;
    color: #b92838;
}

.ad-help-body {
    overflow: auto;
    padding: .65rem;
}

.ad-help-view {
    display: none;
}

.ad-help-view.is-active {
    display: block;
}

.ad-help-loading,
.ad-help-empty {
    padding: 1.25rem .7rem;
    color: #6b7280;
    font-size: .88rem;
    text-align: center;
}

.ad-help-update,
.ad-help-article {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .8rem .7rem;
    border-bottom: 1px solid #eef0f3;
    color: #2d313c;
    text-decoration: none;
}

.ad-help-update:last-child,
.ad-help-article:last-child {
    border-bottom: 0;
}

.ad-help-update:hover,
.ad-help-article:hover {
    background: #f8f9fa;
}

.ad-help-update-meta {
    color: #b92838;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ad-help-update-meta time {
    float: right;
    color: #8a929e;
    font-weight: 600;
    text-transform: none;
}

.ad-help-update strong {
    font-size: .92rem;
    line-height: 1.3;
}

/* Nur den Vorschautext kürzen; der umgebende Textblock behält sein vertikales Flex-Layout. */
.ad-help-update .ad-help-update-teaser {
    display: -webkit-box;
    overflow: hidden;
    color: #687180;
    font-size: .8rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ad-help-article {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    align-items: center;
    gap: .65rem;
    flex-direction: row;
    font-size: .87rem;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.ad-help-article-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    background: #fbecee;
    color: #b92838;
}

.ad-help-article > i {
    color: #a4abb5;
    font-size: .7rem;
}

.ad-help-inline-back {
    margin: .2rem .7rem .7rem;
    border: 0;
    background: transparent;
    color: #b92838;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
}

.ad-help-article-detail {
    padding: .7rem;
}

.ad-help-article-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: .7rem;
    border-radius: .65rem;
    background: #fbecee;
    color: #b92838;
}

.ad-help-article-detail > small {
    color: #b92838;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ad-help-article-detail h3 {
    margin: .25rem 0 .45rem;
    color: #2d313c;
    font-size: 1.05rem;
    line-height: 1.3;
}

.ad-help-article-detail > p {
    color: #687180;
    font-size: .82rem;
    line-height: 1.5;
}

.ad-help-article-detail ol {
    display: grid;
    gap: .65rem;
    margin: .9rem 0 1rem;
    padding: 0;
    list-style: none;
}

.ad-help-article-detail li {
    display: grid;
    grid-template-columns: 1.45rem 1fr;
    gap: .5rem;
    align-items: start;
}

.ad-help-article-detail li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: #fbecee;
    color: #b92838;
    font-size: .68rem;
    font-weight: 800;
}

.ad-help-article-detail li p {
    margin: .05rem 0 0;
    color: #596273;
    font-size: .8rem;
    line-height: 1.45;
}

.ad-help-detail-action {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: .5rem;
    padding: .55rem .7rem;
    background: #b92838;
    color: #fff;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
}

.ad-help-article small {
    display: block;
    margin-bottom: .15rem;
    color: #b92838;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ad-help-article-tools {
    display: grid;
    gap: .55rem;
    margin: .15rem .35rem .65rem;
}

.ad-help-article-search {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #dce1e8;
    border-radius: .5rem;
    background: #fff;
}

.ad-help-article-search > i {
    padding-left: .65rem;
    color: #8a929e;
    font-size: .78rem;
}

.ad-help-article-search input {
    width: 100%;
    border: 0;
    padding: .55rem 2rem .55rem .45rem;
    background: transparent;
    color: #2d313c;
    font: inherit;
    font-size: .78rem;
    outline: 0;
}

.ad-help-article-search-clear {
    position: absolute;
    right: .45rem;
    border: 0;
    background: transparent;
    color: #8a929e;
    cursor: pointer;
}

.ad-help-article-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.ad-help-article-filter {
    border: 1px solid #dfe4ea;
    border-radius: 2rem;
    padding: .3rem .55rem;
    background: #fff;
    color: #596273;
    font-size: .68rem;
    font-weight: 750;
    cursor: pointer;
}

.ad-help-article-filter.is-active,
.ad-help-article-filter:hover {
    border-color: #b92838;
    background: #b92838;
    color: #fff;
}

.ad-help-article-results {
    display: grid;
    gap: .1rem;
}

.ad-help-feedback-form {
    display: grid;
    gap: .45rem;
    padding: .35rem;
}

.ad-help-feedback-intro {
    margin: 0 0 .35rem;
    color: #687180;
    font-size: .82rem;
    line-height: 1.45;
}

.ad-help-feedback-form label {
    color: #596273;
    font-size: .76rem;
    font-weight: 750;
}

.ad-help-feedback-form input,
.ad-help-feedback-form select,
.ad-help-feedback-form textarea {
    width: 100%;
    border: 1px solid #dce1e8;
    border-radius: .45rem;
    padding: .55rem .6rem;
    background: #fff;
    color: #2d313c;
    font: inherit;
    font-size: .82rem;
}

.ad-help-feedback-form textarea {
    resize: vertical;
}

.ad-help-feedback-form input:focus,
.ad-help-feedback-form select:focus,
.ad-help-feedback-form textarea:focus {
    border-color: #b92838;
    outline: 2px solid rgba(185, 40, 56, .12);
}

.ad-help-feedback-submit {
    margin-top: .3rem;
    border: 0;
    border-radius: .5rem;
    padding: .6rem .75rem;
    background: #b92838;
    color: #fff;
    font-size: .8rem;
    font-weight: 750;
    cursor: pointer;
}

.ad-help-feedback-submit:hover,
.ad-help-feedback-submit:focus {
    background: #981f2d;
}

.ad-help-feedback-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.ad-help-feedback-status {
    min-height: 1.1rem;
    color: #687180;
    font-size: .76rem;
}

.ad-help-feedback-status.is-success {
    color: #198754;
}

.ad-help-feedback-status.is-error {
    color: #b42318;
}

.ad-help-footer {
    display: flex;
    gap: .75rem;
    padding: .8rem 1rem;
    border-top: 1px solid #e8ebef;
    background: #fafbfc;
}

.ad-help-footer a {
    flex: 1;
    color: #b92838;
    font-size: .75rem;
    font-weight: 750;
    text-decoration: none;
}

.ad-help-footer a:last-child {
    text-align: right;
}

.ad-help-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 575px) {
    .ad-help-widget {
        right: .75rem;
        bottom: .75rem;
    }

    .ad-help-panel {
        bottom: 4.1rem;
        max-height: calc(100vh - 5rem);
    }
}

/* Gemeinsame AlarmDispo-Oberfläche: dunkler Kopfbereich, rote Aktionen und ruhige helle Flächen. */
.ad-help-widget{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;z-index:1040}
.ad-help-panel{width:min(410px,calc(100vw - 2rem));max-height:min(720px,calc(100dvh - 7rem));border:1px solid #e2e6ec;border-radius:1.2rem;background:#fff;box-shadow:0 20px 55px rgba(15,23,42,.2)}
.ad-help-header{background:linear-gradient(135deg,#2d313c,#3b4252);color:#fff;padding:1.25rem 1.4rem}
.ad-help-header h2{font-size:1.25rem;font-weight:700;letter-spacing:-.02em;color:#fff}
.ad-help-kicker{color:#cbd2dc;letter-spacing:.12em;font-size:.65rem}
.ad-help-close{color:#fff;background:rgba(255,255,255,.1);border-radius:.6rem}
.ad-help-launcher{background:#dc3545;border-radius:1.1rem;box-shadow:0 8px 24px rgba(220,53,69,.25)}
.ad-help-launcher:hover{background:#bb2d3b}
.ad-help-tabs{background:#f4f6f9;padding:.45rem;gap:.3rem;border-bottom:1px solid #e2e6ec}
.ad-help-tabs button{border-radius:.6rem;font-weight:600}
.ad-help-tabs button.is-active{background:#2d313c;color:#fff;box-shadow:0 3px 8px rgba(15,23,42,.1)}
.ad-help-body{background:#fff;padding:1.15rem;overscroll-behavior:contain}
.ad-help-update,.ad-help-article{border:1px solid #e2e6ec;border-radius:.8rem;box-shadow:none;background:#fff}
.ad-help-update:hover,.ad-help-article:hover{border-color:#dc3545;background:#fff8f8}
.ad-help-feedback-form input,.ad-help-feedback-form select,.ad-help-feedback-form textarea{border:1px solid #dce1e8;border-radius:.65rem;padding:.7rem;background:#f8f9fb;color:#2d313c;font:inherit;box-sizing:border-box;max-width:100%}
.ad-help-feedback-form label{font-weight:600;color:#2d313c}
.ad-help-feedback-submit,.ad-help-detail-action{border-radius:.65rem;background:#dc3545;color:#fff;padding:.75rem 1rem;font-weight:600}
.ad-help-detail-action{display:inline-flex;text-decoration:none;margin:.5rem 0}
.ad-help-footer{background:#f4f6f9;border-top:1px solid #e2e6ec}
.ad-help-widget button:focus-visible,.ad-help-widget a:focus-visible,.ad-help-widget input:focus-visible,.ad-help-widget textarea:focus-visible,.ad-help-widget select:focus-visible{outline:2px solid #dc3545;outline-offset:3px}
@media(max-width:575px){.ad-help-widget{right:1rem;bottom:max(1rem,env(safe-area-inset-bottom))}.ad-help-panel{right:0;width:calc(100vw - 2rem)}}

/* Das display:flex des Panels darf das native hidden-Attribut nicht überschreiben. */
.ad-help-panel[hidden]{display:none!important}

/* Reduzierte Navigation: dezente Trennlinien statt vieler verschachtelter Karten. */
.ad-help-header{padding:1.1rem 1.25rem}
.ad-help-kicker{display:none}
.ad-help-body{padding:1.25rem}
.ad-help-tabs{padding:.35rem .5rem}
.ad-help-menu-heading{font-size:1rem;color:#2d313c;margin:1.4rem 0 .5rem;font-weight:700}
.ad-help-menu-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;padding:1rem .2rem;border:0;border-bottom:1px solid #e9edf2;background:#fff;text-align:left;color:#2d313c;font:inherit;font-size:.9rem;cursor:pointer}
.ad-help-menu-row:hover{color:#dc3545;background:#fafbfc}
.ad-help-menu-row small{display:block;margin-top:.3rem;font-size:.75rem;color:#7b8491}
.ad-help-update.ad-help-update-preview{display:flex;flex-direction:row;align-items:center;gap:1rem;padding:1rem 0;margin:0;border:0;border-bottom:1px solid #e9edf2;border-radius:0;background:#fff}
.ad-help-update-image{flex:0 0 88px;width:88px;height:68px;object-fit:contain;background:#fff;border-radius:.5rem}
.ad-help-update-copy{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.ad-help-update-copy strong{font-size:.9rem;line-height:1.45}
.ad-help-update-teaser{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.8rem;color:#697386;line-height:1.5}
.ad-help-update-meta{font-size:.7rem;color:#7b8491}
.ad-help-footer{padding:.8rem 1.25rem;text-align:center}
.ad-help-footer[hidden],.ad-help-footer a[hidden]{display:none!important}

/* Kleine Statusübersicht ohne Diagramme oder zusätzliche Navigation. */
.ad-help-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.ad-help-stats>div{display:flex;flex-direction:column;gap:.3rem;padding:1rem;background:#f4f6f9;border-radius:.8rem}
.ad-help-stats strong{font-size:1.65rem;font-weight:700;color:#2d313c}
.ad-help-stats span{font-size:.75rem;color:#596273}
.ad-help-stat-note{font-size:.7rem;line-height:1.5;color:#7b8491;margin:1rem 0 0}
