/* =========================================================
   HBS Garage · Nachbarschaft
   ========================================================= */

.nb-page {
    display: grid;
    gap: 1.15rem;
}

.nb-hero {
    position: relative;
    overflow: hidden;

    min-height: 270px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    padding: clamp(1.5rem, 4vw, 3rem);

    border: 1px solid var(--color-border);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(103, 145, 91, .18),
            transparent 19rem
        ),
        linear-gradient(
            135deg,
            #f8f7f1,
            #edf4e9
        );
}

.nb-hero-copy {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.nb-hero h1 {
    max-width: 650px;

    margin: .15rem 0 .7rem;

    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.nb-hero h1 span {
    color: var(--hbs-green-900);
}

.nb-hero-copy > p {
    max-width: 520px;

    margin: 0;

    color: var(--color-text-muted);

    font-size: .88rem;
    line-height: 1.6;
}

.nb-location {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: .55rem;

    margin-top: 1.1rem;
    padding: .55rem .7rem;

    border: 1px solid rgba(49, 92, 59, .13);
    border-radius: 12px;

    background: rgba(255, 255, 255, .75);
}

.nb-location > span:first-child {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--color-primary-light);
}

.nb-location small,
.nb-location strong {
    display: block;
}

.nb-location small {
    color: var(--color-text-muted);

    font-size: .56rem;
}

.nb-location strong {
    margin-top: .05rem;

    font-size: .68rem;
}

.nb-location a {
    margin-left: .35rem;

    color: var(--hbs-green-900);

    font-size: .62rem;
    font-weight: 800;
    text-decoration: none;
}

.nb-hero-symbol {
    position: relative;

    width: 250px;
    height: 210px;

    flex: 0 0 250px;
}

.nb-hero-symbol > span {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;

    width: 105px;
    height: 105px;

    display: grid;
    place-items: center;

    transform: translate(-50%, -50%);

    border-radius: 30px;

    background: var(--hbs-green-900);
    color: #fff;

    box-shadow: 0 22px 50px rgba(36, 75, 45, .18);

    font-size: 3rem;
}

.nb-hero-symbol i {
    position: absolute;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .8);
}

.nb-hero-symbol i:nth-of-type(1) {
    top: 10px;
    left: 30px;
}

.nb-hero-symbol i:nth-of-type(2) {
    right: 12px;
    top: 62px;

    width: 58px;
    height: 58px;
}

.nb-hero-symbol i:nth-of-type(3) {
    left: 22px;
    bottom: 14px;

    width: 50px;
    height: 50px;
}


/* Hauptauswahl */

.nb-choices {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.nb-choice {
    min-height: 210px;

    display: grid;
    grid-template-columns:
        52px minmax(0, 1fr);
    gap: .8rem;

    padding: 1.2rem;

    border: 1px solid var(--color-border);
    border-radius: 18px;

    color: var(--color-text);
    text-decoration: none;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.nb-choice:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-small);
}

.nb-choice-help {
    background:
        linear-gradient(
            145deg,
            #f4f8ef,
            #fff
        );
}

.nb-choice-purchase {
    background:
        linear-gradient(
            145deg,
            #fff9ed,
            #fff
        );
}

.nb-choice-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: #fff;

    font-size: 1.35rem;

    box-shadow: var(--shadow-small);
}

.nb-choice-copy {
    display: block;
}

.nb-choice-copy strong {
    display: block;

    margin: .2rem 0 .35rem;

    font-size: 1.25rem;
}

.nb-choice-copy small {
    display: block;

    max-width: 400px;

    color: var(--color-text-muted);

    font-size: .72rem;
    line-height: 1.5;
}

.nb-choice-bottom {
    grid-column: 1 / -1;

    align-self: end;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;

    padding-top: .75rem;

    border-top: 1px solid var(--color-border);

    color: var(--color-text-muted);

    font-size: .67rem;
}

.nb-choice-bottom b {
    color: var(--color-text);

    font-size: .8rem;
}

.nb-choice-bottom > span:last-child {
    color: var(--hbs-green-900);

    font-weight: 850;
}


/* Aktionen */

.nb-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    padding: .75rem 1rem;

    border: 1px solid var(--color-border);
    border-radius: 14px;

    background: #fff;
}

.nb-actions > span {
    font-size: .72rem;
    font-weight: 750;
}

.nb-actions > div {
    display: flex;
    gap: .45rem;
}

.nb-actions .btn {
    min-height: 36px;

    padding: .45rem .65rem;

    font-size: .65rem;
}


/* Feeds */

.nb-feed {
    padding: 1.2rem;

    border: 1px solid var(--color-border);
    border-radius: 18px;

    background: #fff;
}

.nb-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;

    margin-bottom: .9rem;
}

.nb-section-heading h2 {
    margin: .1rem 0 0;

    font-size: 1.4rem;
}

.nb-section-heading > a {
    color: var(--hbs-green-900);

    font-size: .68rem;
    font-weight: 800;
    text-decoration: none;
}


/* Hilfe */

.nb-help-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.nb-help-card {
    display: grid;
    gap: .6rem;

    padding: .9rem;

    border: 1px solid var(--color-border);
    border-radius: 15px;

    background: var(--color-surface);

    color: var(--color-text);
    text-decoration: none;
}

.nb-help-card:hover {
    border-color: rgba(49, 92, 59, .25);
}

.nb-card-top {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}

.nb-category,
.nb-distance {
    font-size: .59rem;
}

.nb-category {
    padding: .2rem .4rem;

    border-radius: 999px;

    background: var(--color-primary-light);
    color: var(--hbs-green-900);

    font-weight: 800;
}

.nb-distance {
    color: var(--color-text-muted);
}

.nb-card-title {
    font-size: .9rem;
}

.nb-help-description {
    color: var(--color-text-muted);

    font-size: .68rem;
    line-height: 1.5;
}

.nb-help-date {
    color: var(--color-text-muted);

    font-size: .63rem;
}

.nb-person {
    display: grid;
    grid-template-columns:
        30px minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: center;

    padding-top: .55rem;

    border-top: 1px solid var(--color-border);

    font-size: .65rem;
    font-weight: 750;
}

.nb-avatar {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;
    overflow: hidden;

    border-radius: 50%;

    background: var(--hbs-green-900);
    color: #fff;

    font-size: .65rem;
    font-weight: 850;
}

.nb-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Anschaffungen */

.nb-purchase-list {
    display: grid;
    gap: .45rem;
}

.nb-purchase-card {
    display: grid;
    grid-template-columns:
        44px minmax(0, 1fr) auto 20px;
    gap: .7rem;
    align-items: center;

    padding: .7rem;

    border: 1px solid var(--color-border);
    border-radius: 13px;

    background: var(--color-surface);

    color: var(--color-text);
    text-decoration: none;
}

.nb-purchase-card:hover {
    border-color: rgba(49, 92, 59, .25);
}

.nb-purchase-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #fff;

    font-size: 1.1rem;
}

.nb-purchase-copy {
    min-width: 0;
}

.nb-purchase-copy small,
.nb-purchase-copy strong,
.nb-purchase-copy > span {
    display: block;
}

.nb-purchase-copy small {
    color: var(--color-text-muted);

    font-size: .57rem;
}

.nb-purchase-copy strong {
    margin: .08rem 0;

    font-size: .75rem;
}

.nb-purchase-copy > span {
    color: var(--color-text-muted);

    font-size: .61rem;
}

.nb-purchase-price {
    text-align: right;
}

.nb-purchase-price small,
.nb-purchase-price strong {
    display: block;
}

.nb-purchase-price small {
    color: var(--color-text-muted);

    font-size: .55rem;
}

.nb-purchase-price strong {
    font-size: .72rem;
}

.nb-arrow {
    color: var(--hbs-green-900);

    font-weight: 850;
}


/* Empty */

.nb-empty {
    display: flex;
    align-items: center;
    gap: .8rem;

    padding: 1rem;

    border-radius: 14px;

    background: var(--color-primary-light);
}

.nb-empty > span {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #fff;
}

.nb-empty strong {
    font-size: .76rem;
}

.nb-empty p {
    margin: .12rem 0 0;

    color: var(--color-text-muted);

    font-size: .66rem;
}


/* Abschluss */

.nb-principle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    min-height: 180px;
    padding: 2rem;

    border-radius: 20px;

    background: var(--hbs-green-900);
    color: #fff;

    text-align: left;
}

.nb-principle > span {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .1);

    font-size: 1.5rem;
}

.nb-principle .eyebrow {
    color: rgba(255, 255, 255, .65);
}

.nb-principle h2 {
    margin: .05rem 0 .2rem;

    font-size: 1.5rem;
}

.nb-principle p {
    max-width: 430px;

    margin: 0;

    color: rgba(255, 255, 255, .75);

    font-size: .7rem;
    line-height: 1.5;
}


/* Tablet */

@media (max-width: 820px) {

    .nb-hero-symbol {
        display: none;
    }

    .nb-choices {
        grid-template-columns: 1fr;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .nb-page {
        gap: .8rem;
    }

    .nb-hero {
        min-height: 0;

        padding: 1.3rem;

        border-radius: 19px;
    }

    .nb-hero h1 {
        font-size: 2.6rem;
    }

    .nb-hero-copy > p {
        font-size: .76rem;
    }

    .nb-location {
        width: 100%;

        display: grid;
        grid-template-columns:
            32px minmax(0, 1fr) auto;
    }

    .nb-choice {
        min-height: 190px;

        padding: 1rem;
    }

    .nb-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .nb-actions > div {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .nb-actions .btn {
        width: 100%;

        justify-content: center;

        text-align: center;
    }

    .nb-feed {
        padding: .85rem;

        border-radius: 16px;
    }

    .nb-section-heading {
        align-items: flex-start;
    }

    .nb-section-heading h2 {
        font-size: 1.15rem;
    }

    .nb-help-grid {
        display: flex;

        margin-right: -.85rem;
        padding-right: .85rem;

        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .nb-help-grid::-webkit-scrollbar {
        display: none;
    }

    .nb-help-card {
        min-width: 82%;
        max-width: 82%;

        scroll-snap-align: start;
    }

    .nb-purchase-card {
        grid-template-columns:
            40px minmax(0, 1fr) auto;
    }

    .nb-purchase-icon {
        width: 40px;
        height: 40px;
    }

    .nb-purchase-card > .nb-arrow {
        display: none;
    }

    .nb-purchase-price {
        align-self: center;
    }

    .nb-principle {
        justify-content: flex-start;

        min-height: 150px;
        padding: 1.3rem;
    }

    .nb-principle > span {
        display: none;
    }
}
