/* =========================================================
   HBS Garage · Hilfeanfrage · Detailansicht V2
   ========================================================= */

.help-view-page {
    display: grid;
    gap: 18px;
    padding: 10px 0 48px;
}


/* ---------- Zurück ---------- */

.help-view-back {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    color: #38604a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.help-view-back:hover {
    color: #075d37;
}


/* ---------- Layout ---------- */

.help-view-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(280px, .72fr);
    gap: 20px;
    align-items: start;
}

.help-view-main {
    min-width: 0;
}

.help-view-card,
.help-view-action-card,
.help-view-trust-card,
.help-view-helpers {
    border: 1px solid #e1e8e3;
    background: #fff;
    box-shadow: 0 10px 32px rgba(27, 54, 38, .045);
}


/* ---------- Hauptkarte ---------- */

.help-view-card {
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(22px, 4vw, 34px);
}

.help-view-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 28px;
}

.help-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-view-own-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f6f3;
    color: #607067;
    font-size: 11px;
    font-weight: 800;
}


/* ---------- Überschrift ---------- */

.help-view-heading {
    max-width: 820px;
}

.help-view-eyebrow,
.help-view-section-label,
.help-view-action-eyebrow {
    display: block;
    color: #34714b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.help-view-heading h1 {
    margin: 8px 0 17px;
    color: #14281e;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.help-view-author {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #68766e;
    font-size: 13px;
}

.help-view-author strong {
    color: #34483d;
}

.help-view-avatar,
.help-view-helper-avatar {
    display: grid;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: #eaf3e8;
    color: #075d37;
    font-weight: 850;
}

.help-view-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.help-view-avatar img,
.help-view-helper-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* ---------- Fakten ---------- */

.help-view-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.help-view-fact {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 13px;
    border: 1px solid #e6ebe7;
    border-radius: 13px;
    background: #fbfcfb;
}

.help-view-fact-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: #eef5ec;
    font-size: 16px;
}

.help-view-fact div {
    min-width: 0;
}

.help-view-fact small {
    display: block;
    margin-bottom: 2px;
    color: #7a867f;
    font-size: 10px;
    font-weight: 750;
}

.help-view-fact strong {
    display: block;
    overflow: hidden;
    color: #283d31;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------- Beschreibung ---------- */

.help-view-description {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #edf0ee;
}

.help-view-description-text {
    max-width: 850px;
    margin-top: 10px;
    color: #35473e;
    font-size: 16px;
    line-height: 1.72;
}


/* ---------- Ausgewählter Helfer ---------- */

.help-view-selected {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid #d6e8d8;
    border-radius: 14px;
    background: #f2f8f2;
}

.help-view-selected-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #dcefdc;
    color: #19703d;
    font-weight: 900;
}

.help-view-selected strong {
    display: block;
    color: #244431;
    font-size: 13px;
}

.help-view-selected p {
    margin: 3px 0 0;
    color: #597064;
    font-size: 12px;
    line-height: 1.45;
}


/* ---------- Sidebar ---------- */

.help-view-sidebar {
    display: grid;
    gap: 12px;
}

.help-view-action-card {
    position: sticky;
    top: 94px;
    padding: 22px;
    border-radius: 20px;
}

.help-view-action-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 14px;
    background: #eaf4e8;
    font-size: 21px;
}

.help-view-action-card h2 {
    margin: 7px 0 8px;
    color: #172c21;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.help-view-action-card > p {
    margin: 0 0 18px;
    color: #68756e;
    font-size: 13px;
    line-height: 1.55;
}

.help-view-action-card form {
    margin: 0;
}

.help-view-primary-action {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.help-view-owner-actions {
    display: grid;
    gap: 8px;
}

.help-view-owner-actions form,
.help-view-owner-actions .btn {
    width: 100%;
}

.help-view-trust-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: none;
}

.help-view-trust-card > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #f0f5ef;
    color: #39714c;
}

.help-view-trust-card strong {
    display: block;
    color: #34483d;
    font-size: 12px;
}

.help-view-trust-card p {
    margin: 3px 0 0;
    color: #758078;
    font-size: 11px;
    line-height: 1.45;
}


/* ---------- Helferliste ---------- */

.help-view-helpers {
    padding: clamp(20px, 3vw, 28px);
    border-radius: 20px;
}

.help-view-helpers-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0ee;
}

.help-view-helpers-header h2 {
    margin: 6px 0 4px;
    color: #172b21;
    font-size: 24px;
    letter-spacing: -.025em;
}

.help-view-helpers-header p {
    max-width: 650px;
    margin: 0;
    color: #718078;
    font-size: 12px;
    line-height: 1.5;
}

.help-view-helper-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f1;
    color: #53645a;
    font-size: 11px;
    font-weight: 850;
}

.help-view-helper-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.help-view-helper {
    display: grid;
    grid-template-columns:
        44px
        minmax(0, 1fr)
        auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5ebe7;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.help-view-helper:hover {
    transform: translateY(-1px);
    border-color: #bdd7c3;
    box-shadow: 0 7px 20px rgba(20, 65, 40, .05);
}

.help-view-helper-avatar {
    width: 44px;
    height: 44px;
}

.help-view-helper-copy {
    display: grid;
    min-width: 0;
}

.help-view-helper-copy strong {
    color: #203429;
    font-size: 13px;
}

.help-view-helper-copy small {
    overflow: hidden;
    margin-top: 3px;
    color: #7a867f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-view-helper-selected {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eaf6eb;
    color: #277145;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.help-view-helper-arrow {
    color: #50705e;
    font-weight: 900;
}

.help-view-no-helpers {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 15px;
    border-radius: 14px;
    background: #f7f9f7;
}

.help-view-no-helpers > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #eaf3e8;
}

.help-view-no-helpers strong {
    color: #30483a;
    font-size: 13px;
}

.help-view-no-helpers p {
    margin: 3px 0 0;
    color: #748078;
    font-size: 12px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .help-view-layout {
        grid-template-columns: 1fr;
    }

    .help-view-action-card {
        position: static;
    }

    .help-view-sidebar {
        grid-row: 2;
    }
}


@media (max-width: 640px) {

    .help-view-page {
        gap: 13px;
        padding-top: 3px;
    }

    .help-view-card {
        padding: 19px 16px;
        border-radius: 17px;
    }

    .help-view-topline {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .help-view-heading h1 {
        font-size: 32px;
    }

    .help-view-facts {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 22px;
    }

    .help-view-fact {
        padding: 10px;
    }

    .help-view-description {
        margin-top: 22px;
        padding-top: 20px;
    }

    .help-view-description-text {
        font-size: 15px;
    }

    .help-view-action-card {
        padding: 18px;
        border-radius: 17px;
    }

    .help-view-helpers {
        padding: 18px 15px;
        border-radius: 17px;
    }

    .help-view-helpers-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .help-view-helper {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            auto;
        padding: 11px;
    }

    .help-view-helper-avatar {
        width: 40px;
        height: 40px;
    }

    .help-view-helper-selected {
        font-size: 0;
    }

    .help-view-helper-selected::after {
        content: "✓";
        font-size: 12px;
    }
}


@media (max-width: 420px) {

    .help-view-topline {
        flex-direction: column;
    }

    .help-view-helper {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            auto;
    }

    .help-view-helper-avatar {
        width: 38px;
        height: 38px;
    }
}
