
/* =========================================================
   HBS Garage · Community
   Fragen & Tipps + Empfehlungen
   ========================================================= */

.community-page,
.community-detail-page,
.community-create-page {
    padding: 18px 0 54px;
}

.community-hero {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-end;
    padding: clamp(24px, 5vw, 46px);
    margin-bottom: 24px;
    border: 1px solid #dfe9e1;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(78, 146, 95, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f5faf5,
            #ffffff
        );
}

.community-hero h1 {
    max-width: 760px;
    margin: 6px 0 12px;
    color: #183426;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.community-hero h1 span {
    color: #278653;
}

.community-hero p {
    max-width: 680px;
    margin: 0;
    color: #647269;
    font-size: 1rem;
    line-height: 1.65;
}

.community-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf5ef;
    color: #466253;
    font-size: 0.83rem;
    font-weight: 700;
}

.community-filterbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid #e2e9e4;
    border-radius: 18px;
    background: #fff;
}

.community-filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.community-filter-links a {
    padding: 9px 13px;
    border-radius: 11px;
    color: #55655b;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.community-filter-links a.is-active {
    background: #eaf4ed;
    color: #176c43;
}

.community-category-filter,
.recommendation-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-category-filter label,
.recommendation-filter label {
    color: #6b786f;
    font-size: 0.78rem;
    font-weight: 700;
}

.community-category-filter select,
.recommendation-filter select {
    min-width: 200px;
    padding: 9px 11px;
    border: 1px solid #dce5de;
    border-radius: 11px;
    background: #fff;
    color: #27392f;
}

.question-list {
    display: grid;
    gap: 14px;
}

.question-card {
    overflow: hidden;
    border: 1px solid #dfe7e1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 59, 42, 0.05);
}

.question-card-main {
    display: block;
    padding: 21px 22px 17px;
    color: inherit;
    text-decoration: none;
}

.question-card-main:hover h2 {
    color: #267b4e;
}

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

.community-chip,
.community-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef4ef;
    color: #52685a;
    font-size: 0.72rem;
    font-weight: 800;
}

.community-status.solved {
    background: #e2f3e8;
    color: #167444;
}

.question-card h2 {
    margin: 13px 0 7px;
    color: #1c3426;
    font-size: 1.2rem;
    transition: color 0.18s ease;
}

.question-card p {
    margin: 0;
    color: #69766e;
    line-height: 1.55;
}

.question-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    color: #7a867f;
    font-size: 0.78rem;
}

.community-author {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-top: 1px solid #edf1ee;
    color: #637168;
    font-size: 0.82rem;
}

.community-author-large {
    padding: 0;
    border: 0;
}

.community-author-large > span:last-child,
.experience-card .community-author > span:last-child {
    display: grid;
}

.community-author small {
    color: #879189;
}

.community-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #dcebe0;
    color: #286744;
    font-weight: 900;
}

.community-avatar.small {
    width: 27px;
    height: 27px;
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-empty {
    display: grid;
    justify-items: center;
    padding: 55px 24px;
    border: 1px dashed #d3ded6;
    border-radius: 22px;
    background: #fafcfb;
    text-align: center;
}

.community-empty > span {
    font-size: 2rem;
}

.community-empty h2 {
    margin: 10px 0 5px;
    color: #20372a;
}

.community-empty p {
    max-width: 520px;
    margin: 0 0 18px;
    color: #718078;
}

.community-empty.compact {
    padding: 30px 18px;
}

.community-back {
    display: inline-flex;
    margin-bottom: 15px;
    color: #49705a;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

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

.community-form-card,
.community-info-card,
.question-detail-card,
.community-reply-card,
.recommendation-detail-card {
    border: 1px solid #dfe7e1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 59, 42, 0.05);
}

.community-form-card {
    padding: clamp(22px, 4vw, 38px);
}

.community-form-card h1 {
    max-width: 700px;
    margin: 7px 0 8px;
    color: #1b3325;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.05;
}

.community-form-intro {
    max-width: 670px;
    margin: 0 0 25px;
    color: #69766e;
    line-height: 1.6;
}

.community-form {
    display: grid;
    gap: 18px;
}

.community-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.community-field {
    display: grid;
    gap: 7px;
}

.community-field > label {
    color: #314a3a;
    font-size: 0.83rem;
    font-weight: 800;
}

.community-field input,
.community-field textarea,
.community-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #d7e1da;
    border-radius: 12px;
    background: #fff;
    color: #26382f;
    font: inherit;
}

.community-field textarea {
    resize: vertical;
    line-height: 1.55;
}

.community-field input:focus,
.community-field textarea:focus,
.community-field select:focus {
    outline: 3px solid rgba(57, 139, 88, 0.12);
    border-color: #62a27a;
}

.field-error {
    color: #b43d3d;
    font-weight: 700;
}

.community-field-help {
    color: #7a867e;
    font-size: 0.76rem;
}

.community-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.community-info-card {
    padding: 23px;
    position: sticky;
    top: 105px;
}

.community-info-card > span {
    font-size: 2rem;
}

.community-info-card h2 {
    margin: 10px 0;
    color: #1f392a;
    font-size: 1.15rem;
}

.community-info-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: #66746b;
    font-size: 0.86rem;
    line-height: 1.5;
}

.question-detail-card,
.recommendation-detail-card {
    padding: clamp(22px, 4vw, 38px);
}

.question-detail-card h1,
.recommendation-detail-card h1 {
    margin: 13px 0 18px;
    color: #1b3325;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.08;
}

.community-rich-text {
    margin-top: 25px;
    color: #3d4e43;
    font-size: 0.98rem;
    line-height: 1.72;
}

.answer-section,
.experience-section {
    margin-top: 34px;
}

.community-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: end;
    margin-bottom: 14px;
}

.community-section-heading h2 {
    margin: 3px 0 0;
    color: #20382a;
}

.community-section-heading > small {
    color: #7b877f;
}

.answer-list,
.experience-list {
    display: grid;
    gap: 14px;
}

.answer-card,
.experience-card {
    position: relative;
    padding: 20px;
    border: 1px solid #dfe7e1;
    border-radius: 20px;
    background: #fff;
}

.answer-card.is-accepted {
    border-color: #9bcbae;
    background:
        linear-gradient(
            180deg,
            #f5fbf7,
            #ffffff 120px
        );
}

.answer-best-label {
    display: inline-flex;
    margin-bottom: 13px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #dff2e6;
    color: #177045;
    font-size: 0.75rem;
    font-weight: 900;
}

.answer-layout {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 18px;
}

.answer-vote {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 3px;
}

.vote-button {
    width: 40px;
    height: 38px;
    border: 1px solid #d9e3dc;
    border-radius: 11px;
    background: #fff;
    color: #697a70;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
}

.vote-button.is-active {
    border-color: #79b58d;
    background: #e6f4eb;
    color: #1d7849;
}

.vote-button.is-disabled {
    display: grid;
    place-items: center;
    opacity: 0.4;
    cursor: default;
}

.answer-vote strong {
    color: #254333;
    font-size: 1.1rem;
}

.answer-vote small {
    color: #879189;
    font-size: 0.65rem;
}

.answer-content .community-rich-text {
    margin-top: 0;
}

.answer-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid #edf1ee;
}

.answer-footer .community-author {
    padding: 0;
    border: 0;
}

.community-text-button {
    border: 0;
    background: transparent;
    color: #27764d;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
}

.community-reply-card {
    margin-top: 25px;
    padding: 24px;
}

.community-reply-card h2 {
    margin: 4px 0 8px;
    color: #20382a;
}

.recommendation-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.recommendation-card {
    display: block;
    padding: 21px;
    border: 1px solid #dfe7e1;
    border-radius: 20px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(31, 59, 42, 0.05);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(31, 59, 42, 0.09);
}

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

.recommendation-icon {
    font-size: 1.4rem;
}

.recommendation-card h2 {
    margin: 15px 0 5px;
    color: #1f3829;
}

.recommendation-place {
    color: #718078;
    font-size: 0.82rem;
}

.recommendation-card p {
    margin: 13px 0;
    color: #69766e;
    line-height: 1.55;
}

.recommendation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-top: 16px;
    color: #66736b;
    font-size: 0.8rem;
}

.recommendation-stats strong {
    color: #21784a;
}

.recommendation-detail-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.recommendation-detail-icon {
    width: 58px;
    height: 58px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    background: #f4f0db;
    font-size: 1.65rem;
}

.recommendation-detail-head h1 {
    margin: 8px 0 5px;
}

.recommendation-score {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 24px 0;
    padding: 17px 19px;
    border-radius: 17px;
    background: #edf7f0;
    color: #326047;
}

.recommendation-score strong {
    color: #187144;
    font-size: 1.8rem;
}

.recommendation-description {
    padding: 20px 0;
    border-top: 1px solid #edf1ee;
}

.recommendation-description p {
    color: #46584d;
    line-height: 1.65;
}

.recommendation-description small {
    color: #7d8881;
}

.recommendation-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0 18px;
}

.recommendation-like-button {
    width: 100%;
    padding: 13px 17px;
    border: 1px solid #a8cbb4;
    border-radius: 13px;
    background: #fff;
    color: #267449;
    cursor: pointer;
    font-weight: 900;
}

.recommendation-like-button.is-active {
    background: #e8f5ec;
}

.experience-card .community-author {
    padding: 0 0 13px;
    border: 0;
}

.experience-card p {
    margin: 0;
    color: #46574c;
    line-height: 1.65;
}

.community-mini-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.community-mini-card {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid #e0e8e2;
    border-radius: 17px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.community-mini-card strong {
    color: #233c2d;
}

.community-mini-card > span:last-child,
.community-mini-meta {
    color: #738078;
    font-size: 0.76rem;
}

.nb-choice-questions {
    background:
        linear-gradient(
            145deg,
            #f1f6ff,
            #ffffff
        );
}

.nb-choice-recommendations {
    background:
        linear-gradient(
            145deg,
            #fff9e9,
            #ffffff
        );
}


@media (max-width: 850px) {
    .community-create-layout {
        grid-template-columns: 1fr;
    }

    .community-info-card {
        position: static;
    }

    .community-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 650px) {
    .community-filterbar,
    .community-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .community-category-filter,
    .recommendation-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .community-category-filter select,
    .recommendation-filter select {
        width: 100%;
        min-width: 0;
    }

    .community-form-grid,
    .community-mini-grid {
        grid-template-columns: 1fr;
    }

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

    .answer-vote {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .answer-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .recommendation-detail-head {
        flex-direction: column;
    }
}

/* =========================================================
   Nachbarschaft Dropdown – deutlicherer Menü-Trigger
   ========================================================= */

.nav-neighborhood-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 82, 50, 0.09);
    color: #0f5232;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.nav-neighborhood-toggle:hover {
    background: rgba(15, 82, 50, 0.16);
}

.nav-neighborhood-toggle:active {
    transform: scale(0.94);
}

.nav-neighborhood-toggle .nav-dropdown-chevron {
    display: block;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/*
 * Das vorhandene JavaScript setzt den geöffneten Zustand
 * am Dropdown-Container. aria-expanded funktioniert zusätzlich
 * unabhängig davon.
 */
.nav-neighborhood-toggle[aria-expanded="true"]
    .nav-dropdown-chevron {
    transform:
        translateY(1px)
        rotate(180deg);
}

