/* HBS Garage · Nachbarschaftshilfe */

.nh-page {
    display: grid;
    gap: 30px;
    padding: 20px 0 48px;
}

.nh-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: stretch;
    border: 1px solid #e4ebe5;
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 18%, rgba(177, 209, 160, .28), transparent 26%),
        linear-gradient(115deg, #f8fbf8 0%, #f1f7f2 54%, #e9f2e8 100%);
}

.nh-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 48px;
}

.nh-kicker {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e6f2e4;
    color: #0b5a35;
    font-size: 14px;
    font-weight: 800;
}

.nh-hero h1 {
    margin: 18px 0 14px;
    color: #10281d;
    font-size: clamp(42px, 4.2vw, 66px);
    line-height: .98;
    letter-spacing: -.045em;
}

.nh-hero h1 span {
    color: #55a942;
}

.nh-hero-copy > p {
    max-width: 620px;
    margin: 0;
    color: #33453c;
    font-size: 18px;
    line-height: 1.55;
}

.nh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.nh-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .15s ease, box-shadow .15s ease;
}

.nh-button:hover {
    transform: translateY(-1px);
}

.nh-button-primary {
    background: #075d37;
    color: #fff;
    box-shadow: 0 8px 20px rgba(7, 93, 55, .14);
}

.nh-button-secondary {
    border-color: #d8e0da;
    background: rgba(255, 255, 255, .84);
    color: #193128;
}

.nh-hero-art {
    position: relative;
    min-height: 340px;
}

.nh-hero-art::before {
    content: "";
    position: absolute;
    right: -4%;
    bottom: -22%;
    width: 112%;
    height: 72%;
    border-radius: 50% 50% 0 0;
    background: #cbdcaa;
    opacity: .72;
}

.nh-house {
    position: absolute;
    bottom: 78px;
    color: rgba(255,255,255,.86);
    font-size: 112px;
    line-height: 1;
}

.nh-house-one { left: 4%; }
.nh-house-two { right: 6%; font-size: 92px; }

.nh-tree {
    position: absolute;
    bottom: 44px;
    color: #6f9856;
    font-size: 96px;
    line-height: 1;
}

.nh-tree-one { left: 0; }
.nh-tree-two { right: 1%; font-size: 126px; }

.nh-sun {
    position: absolute;
    top: 54px;
    left: 53%;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #6aae4c;
    font-size: 30px;
    box-shadow: 0 10px 28px rgba(42, 76, 52, .08);
}

.nh-person {
    position: absolute;
    bottom: 34px;
    z-index: 2;
    display: grid;
    justify-items: center;
}

.nh-person-left { left: 35%; }
.nh-person-right { right: 20%; }

.nh-head {
    color: #bb8a64;
    font-size: 52px;
    line-height: .8;
}

.nh-body {
    color: #376b3f;
    font-size: 92px;
    line-height: .9;
}

.nh-person-right .nh-body {
    color: #12472d;
}

.nh-box {
    position: absolute;
    z-index: 3;
    bottom: 84px;
    left: 48%;
    color: #c99457;
    font-size: 72px;
    transform: rotate(2deg);
}

.nh-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.nh-main {
    min-width: 0;
}

.nh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.nh-tabs {
    display: flex;
    overflow-x: auto;
    border: 1px solid #e2e7e3;
    border-radius: 12px;
    background: #fff;
}

.nh-tabs a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-right: 1px solid #edf0ed;
    color: #33423a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.nh-tabs a:last-child {
    border-right: 0;
}

.nh-tabs a.is-active {
    color: #075d37;
    box-shadow: inset 0 -2px #16864e;
}

.nh-sort select {
    min-height: 48px;
    padding: 0 38px 0 14px;
    border: 1px solid #e2e7e3;
    border-radius: 12px;
    background: #fff;
    color: #27372f;
    font: inherit;
    font-weight: 700;
}

.nh-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.nh-request-card,
.nh-empty,
.nh-side-card {
    border: 1px solid #e2e7e3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(29, 52, 39, .035);
}

.nh-request-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 22px;
}

.nh-request-top,
.nh-request-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nh-category,
.nh-status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.nh-category {
    background: #eef5ec;
    color: #29633e;
}

.nh-status {
    background: #edf4ff;
    color: #355c87;
}

.nh-status-helper_found { background: #edf8ef; color: #277145; }
.nh-status-completed { background: #edf7ee; color: #347047; }
.nh-status-cancelled { background: #f2f3f2; color: #6c756f; }

.nh-request-card h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

.nh-request-card h2 a {
    color: #14281e;
    text-decoration: none;
}

.nh-request-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0;
    color: #536159;
    line-height: 1.55;
}

.nh-request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #657169;
    font-size: 13px;
}

.nh-request-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eef1ef;
}

.nh-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #46564d;
    font-size: 13px;
    font-weight: 700;
}

.nh-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #edf4ee;
    color: #075d37;
}

.nh-detail-link {
    color: #075d37;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.nh-empty {
    min-height: 385px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px;
    text-align: center;
}

.nh-empty-illustration {
    display: grid;
    width: 92px;
    height: 92px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: #f2f7f0;
    color: #61965a;
    font-size: 48px;
}

.nh-empty h2 {
    margin: 0;
    color: #172b21;
    font-size: 25px;
}

.nh-empty > p {
    max-width: 560px;
    margin: 10px 0 22px;
    color: #66736b;
}

.nh-location-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f1f7f2;
    color: #496156;
    font-size: 13px;
}

.nh-location-note span {
    color: #13824b;
}

.nh-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 14px;
    background: #fff9eb;
    color: #554a32;
}

.nh-tip p {
    margin: 0;
}

.nh-sidebar {
    display: grid;
    gap: 18px;
}

.nh-side-card {
    padding: 24px;
}

.nh-side-card h2 {
    margin: 0 0 22px;
    color: #172b21;
    font-size: 17px;
}

.nh-steps {
    display: grid;
    gap: 22px;
}

.nh-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
}

.nh-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 20px;
    width: 1px;
    height: calc(100% + 5px);
    background: #dbe8da;
}

.nh-step-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #eaf4e8;
    color: #137343;
    font-weight: 900;
}

.nh-step strong {
    display: block;
    margin: 2px 0 4px;
    color: #203129;
}

.nh-step p,
.nh-trust-card p {
    margin: 0;
    color: #69756e;
    font-size: 13px;
    line-height: 1.5;
}

.nh-trust-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
}

.nh-trust-card h2 {
    margin-bottom: 6px;
}

.nh-shield {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #eaf4e8;
    color: #137343;
    font-size: 25px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    .nh-hero {
        grid-template-columns: 1fr;
    }

    .nh-hero-art {
        display: none;
    }

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

    .nh-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nh-page {
        padding-top: 8px;
    }

    .nh-hero {
        min-height: auto;
        border-radius: 22px;
    }

    .nh-hero-copy {
        padding: 30px 24px;
    }

    .nh-hero h1 {
        font-size: 44px;
    }

    .nh-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .nh-tabs {
        width: 100%;
    }

    .nh-tabs a {
        flex: 1 0 auto;
    }

    .nh-sort select {
        width: 100%;
    }

    .nh-request-grid,
    .nh-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nh-hero h1 {
        font-size: 38px;
    }

    .nh-hero-copy > p {
        font-size: 16px;
    }

    .nh-hero-actions {
        display: grid;
    }

    .nh-button {
        width: 100%;
        box-sizing: border-box;
    }

    .nh-empty {
        min-height: 330px;
        padding: 28px 18px;
    }

    .nh-request-top,
    .nh-request-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   Detailansicht & private Unterhaltung
   ========================================================= */

.help-detail-page,
.help-chat-page {
    display: grid;
    gap: 24px;
    padding: 20px 0 48px;
}

.help-back-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: #075d37;
    text-decoration: none;
    font-weight: 800;
}

.help-back-link:hover {
    text-decoration: underline;
}

.help-detail-card,
.help-owner-panel,
.help-chat-summary,
.help-chat-card {
    border: 1px solid #e2e7e3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(29, 52, 39, .035);
}

.help-detail-card {
    padding: 30px;
}

.help-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.help-category,
.help-status,
.help-selected-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.help-category {
    background: #eef5ec;
    color: #29633e;
}

.help-status {
    background: #edf4ff;
    color: #355c87;
}

.help-status-helper_found,
.help-selected-badge {
    background: #edf8ef;
    color: #277145;
}

.help-status-completed {
    background: #edf7ee;
    color: #347047;
}

.help-status-cancelled {
    background: #f2f3f2;
    color: #6c756f;
}

.help-detail-card h1 {
    margin: 0 0 18px;
    color: #13271d;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.help-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #66736b;
    font-size: 14px;
}

.help-detail-description {
    max-width: 900px;
    margin-top: 24px;
    color: #35473e;
    font-size: 17px;
    line-height: 1.7;
}

.help-selected-helper,
.help-info,
.help-empty-small {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f1f7f2;
    color: #365246;
}

.help-selected-helper {
    border: 1px solid #d9ead9;
}

.help-detail-actions,
.help-owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.help-detail-actions form,
.help-owner-actions form {
    margin: 0;
}

.help-detail-actions .button,
.help-owner-actions .button,
.help-chat-summary .button,
.help-message-form .button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.help-detail-actions .button.primary,
.help-owner-actions .button.primary,
.help-chat-summary .button.primary,
.help-message-form .button.primary {
    background: #075d37;
    color: #fff;
}

.help-detail-actions .button.secondary,
.help-owner-actions .button.secondary {
    border-color: #d8e0da;
    background: #fff;
    color: #23382d;
}

.help-owner-panel {
    padding: 26px 30px;
}

.help-owner-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef1ef;
}

.help-owner-panel-header h2 {
    margin: 5px 0 0;
    color: #172b21;
    font-size: 26px;
}

.help-eyebrow {
    display: inline-block;
    color: #33704a;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.help-conversation-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.help-conversation-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid #e6ebe7;
    border-radius: 15px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

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

.help-conversation-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    background: #eaf4e8;
    color: #075d37;
    font-weight: 850;
}

.help-conversation-person {
    display: grid;
    flex: 1;
    min-width: 0;
}

.help-conversation-person strong {
    color: #1d3026;
}

.help-conversation-person small {
    overflow: hidden;
    margin-top: 3px;
    color: #718078;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-selected-badge {
    white-space: nowrap;
}

.help-chat-layout {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.7fr);
    gap: 18px;
    align-items: start;
}

.help-chat-summary {
    position: sticky;
    top: 100px;
    padding: 24px;
}

.help-chat-summary h1 {
    margin: 8px 0 16px;
    color: #172b21;
    font-size: 28px;
    line-height: 1.12;
}

.help-chat-summary > p {
    margin: 20px 0;
    color: #56645c;
    line-height: 1.6;
}

.help-chat-summary form {
    margin-top: 18px;
}

.help-chat-card {
    overflow: hidden;
}

.help-chat-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 17px 20px;
    border-bottom: 1px solid #e8ece9;
    background: #fbfdfb;
}

.help-chat-header div {
    display: grid;
}

.help-chat-header strong {
    color: #1b3025;
}

.help-chat-header small {
    margin-top: 2px;
    color: #718078;
}

.help-messages {
    display: grid;
    gap: 12px;
    min-height: 360px;
    max-height: 590px;
    overflow-y: auto;
    padding: 22px;
    background: #fcfdfc;
}

.help-message {
    display: flex;
    justify-content: flex-start;
}

.help-message.is-own {
    justify-content: flex-end;
}

.help-message-bubble {
    max-width: min(76%, 620px);
    padding: 11px 14px;
    border: 1px solid #e5ebe7;
    border-radius: 17px 17px 17px 5px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(26, 56, 39, .035);
}

.help-message.is-own .help-message-bubble {
    border-color: #cfe4d3;
    border-radius: 17px 17px 5px 17px;
    background: #edf7ef;
}

.help-message-bubble strong {
    display: block;
    color: #1f382a;
    font-size: 12px;
}

.help-message-bubble p {
    margin: 5px 0 7px;
    color: #34483d;
    line-height: 1.5;
}

.help-message-bubble small {
    color: #849088;
    font-size: 11px;
}

.help-chat-empty {
    margin: auto;
    padding: 40px 16px;
    color: #728078;
    text-align: center;
}

.help-chat-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #2b4035;
    font-size: 18px;
}

.help-chat-empty p {
    margin: 0;
}

.help-message-form {
    display: grid;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid #e8ece9;
    background: #fff;
}

.help-message-form textarea {
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid #dce4de;
    border-radius: 12px;
    background: #fbfcfb;
    color: #21352a;
    font: inherit;
    line-height: 1.5;
}

.help-message-form textarea:focus {
    outline: 2px solid rgba(17, 117, 68, .12);
    border-color: #5f9e78;
}

.form-error {
    display: block;
    margin-top: 5px;
    color: #a13535;
}

@media (max-width: 920px) {
    .help-chat-layout {
        grid-template-columns: 1fr;
    }

    .help-chat-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .help-detail-page,
    .help-chat-page {
        padding-top: 8px;
    }

    .help-detail-card,
    .help-owner-panel {
        padding: 21px 18px;
    }

    .help-card-top,
    .help-owner-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-detail-card h1 {
        font-size: 36px;
    }

    .help-detail-actions,
    .help-owner-actions {
        display: grid;
    }

    .help-detail-actions .button,
    .help-owner-actions .button,
    .help-detail-actions form,
    .help-owner-actions form {
        width: 100%;
        box-sizing: border-box;
    }

    .help-message-bubble {
        max-width: 90%;
    }
}

.nh-avatar {
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 50%;
}

.nh-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ---------------------------------------------------------
   Profilbilder in privaten Unterhaltungen
   --------------------------------------------------------- */

.help-conversation-avatar {
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 50%;
}

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

.help-message {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
}

.help-message.is-own {
    flex-direction: row-reverse;
}

.help-message-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eaf3e7;
    color: #0b5a35;
    font-size: 0.72rem;
    font-weight: 800;
}

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

.help-message.is-own .help-message-avatar {
    background: #dfeee5;
}

@media (max-width: 640px) {
    .help-message-avatar {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}
