/* LIBRO COMMUNITY – ÖFFENTLICHE BEWERTUNGEN UND KOMMENTARE */

.community-login-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--green-700, #4f7356);
    font-weight: 850;
    text-decoration: none;
}

.community-login-link:hover {
    background: var(--green-900, #34503a);
}

.community-card-rating {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #5e685f;
    font-size: 12px;
    font-weight: 750;
}

.community-rating-stars {
    color: #e5a92c;
    letter-spacing: 1px;
    white-space: nowrap;
}

.community-rating-value {
    color: #314137;
    font-weight: 900;
}

.community-rating-count {
    color: #6b756d;
    white-space: nowrap;
}

.community-panel {
    margin: 28px 0 0;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #ced8cc;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(41, 62, 44, 0.10);
}

.community-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.community-heading h2,
.community-comments-layout h3,
.community-comment-form h3 {
    margin: 0;
}

.community-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #55735b;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.community-summary {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: fit-content;
    padding: 9px 12px;
    border-radius: 999px;
    background: #eef4eb;
    font-size: 13px;
    font-weight: 800;
}

.community-rating-box {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    border-radius: 16px;
    background: #f5f8f2;
}

.community-star-buttons {
    display: inline-flex;
    gap: 2px;
}

.community-star-buttons button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    color: #c4ccc4;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform 120ms ease, color 120ms ease;
}

.community-star-buttons button:hover,
.community-star-buttons button:focus-visible,
.community-star-buttons button.selected {
    color: #e5a92c;
    transform: translateY(-1px) scale(1.06);
}

.community-comments-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 24px;
    margin-top: 24px;
}

.community-comments {
    display: grid;
    gap: 11px;
    margin-top: 12px;
}

.community-comment {
    padding: 14px 16px;
    border: 1px solid #d8e0d6;
    border-radius: 15px 15px 15px 4px;
    background: #f8faf7;
}

.community-comment header {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
}

.community-comment time {
    color: #788078;
    font-size: 11px;
    white-space: nowrap;
}

.community-comment p {
    margin: 0;
    line-height: 1.55;
}

.community-comment-form {
    position: relative;
    display: grid;
    gap: 12px;
    align-self: start;
    padding: 16px;
    border: 1px solid #d8e0d6;
    border-radius: 17px;
    background: #fbfcfa;
}

.community-comment-form label {
    display: grid;
    gap: 5px;
    font-weight: 800;
}

.community-comment-form label span small {
    color: #788078;
    font-weight: 600;
}

.community-comment-form input,
.community-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.community-comment-form textarea {
    resize: vertical;
}

.community-privacy-note,
.community-empty,
.community-status,
.community-error {
    margin: 0;
    color: #6d766f;
    font-size: 12px;
    line-height: 1.45;
}

.community-error {
    color: #9b332e;
}

.community-status:not(:empty) {
    padding-top: 5px;
    font-weight: 750;
}

.community-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

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

    .community-heading {
        display: grid;
    }

    .community-summary {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .community-panel {
        border-radius: 17px;
    }

    .community-rating-box {
        align-items: flex-start;
    }

    .community-star-buttons button {
        width: 34px;
        height: 34px;
        font-size: 27px;
    }

    .community-comment header {
        display: grid;
        gap: 2px;
    }
}
