/* ═════════════════════════════════════════════════════════════════
 * h24reviews — Kundenstimmen-Block
 * ═════════════════════════════════════════════════════════════════ */

.h24reviews-block {
    margin: 2rem 0;
    padding: 1rem 0;
}

.h24reviews-headline {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d4d1d;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.h24reviews-items {
    display: grid;
    gap: 1.2rem;
}

/* Grid-Layout (Default) */
.h24reviews-layout-grid .h24reviews-items {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* List-Layout: einspaltig */
.h24reviews-layout-list .h24reviews-items {
    grid-template-columns: 1fr;
}

/* Karte */
.h24reviews-card {
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: box-shadow 0.2s ease;
}

.h24reviews-card:hover {
    box-shadow: 0 2px 12px rgba(29, 77, 29, 0.08);
}

/* List-Layout: Bild links neben Text */
.h24reviews-layout-list .h24reviews-card {
    flex-direction: row;
    align-items: flex-start;
}

.h24reviews-layout-list .h24reviews-image {
    flex: 0 0 120px;
}

.h24reviews-layout-list .h24reviews-body {
    flex: 1;
}

/* Bild */
.h24reviews-image {
    text-align: center;
    margin-bottom: 0.3rem;
}

.h24reviews-image img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 4px;
    object-fit: cover;
}

.h24reviews-layout-list .h24reviews-image img {
    max-height: 120px;
}

/* Sterne */
.h24reviews-stars {
    font-size: 1.1rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.h24reviews-star--full {
    color: #f0a020;
}

.h24reviews-star--empty {
    color: #ddd;
}

/* Content */
.h24reviews-content {
    color: #333;
    line-height: 1.5;
    font-size: 0.97rem;
    margin: 0;
}

.h24reviews-content p {
    margin: 0 0 0.4rem 0;
}

.h24reviews-content p:last-child {
    margin-bottom: 0;
}

/* Meta */
.h24reviews-meta {
    font-size: 0.88rem;
    color: #556;
    margin-top: 0.3rem;
    border-top: 1px solid #f0f2ee;
    padding-top: 0.5rem;
}

.h24reviews-name {
    color: #1d4d1d;
    font-weight: 700;
}

.h24reviews-date {
    color: #888;
    margin-left: 0.3rem;
}

/* In schmalen Spalten (LeftCol/RightCol): immer single column */
.left-column .h24reviews-items,
.right-column .h24reviews-items,
#left-column .h24reviews-items,
#right-column .h24reviews-items,
aside .h24reviews-items {
    grid-template-columns: 1fr;
}

.left-column .h24reviews-headline,
.right-column .h24reviews-headline,
#left-column .h24reviews-headline,
#right-column .h24reviews-headline,
aside .h24reviews-headline {
    font-size: 1.15rem;
    text-align: left;
}

/* ═════════════════════════════════════════════════════════════════
 * Gästebuch-Seite (/module/h24reviews/list)
 * ═════════════════════════════════════════════════════════════════ */

.h24reviews-page,
.h24reviews-submit-page,
.h24reviews-thanks-page {
    max-width: 880px;
    margin: 1rem auto 2.5rem;
    padding: 0 1rem;
}

.h24reviews-page-header,
.h24reviews-submit-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.h24reviews-page-title,
.h24reviews-submit-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d4d1d;
    margin: 0 0 0.5rem 0;
}

.h24reviews-page-intro,
.h24reviews-submit-intro {
    color: #555;
    font-size: 1.02rem;
    line-height: 1.55;
    margin: 0 auto 1.2rem;
    max-width: 640px;
}

.h24reviews-page-cta {
    margin-top: 1rem;
}

/* Article-Karten (wie Blog) */
.h24reviews-articles {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.h24reviews-article {
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 8px;
    padding: 1.1rem;
    display: flex;
    gap: 1.2rem;
    transition: box-shadow 0.2s ease;
}

.h24reviews-article:hover {
    box-shadow: 0 2px 12px rgba(29, 77, 29, 0.08);
}

.h24reviews-article-image {
    flex: 0 0 180px;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f3ec;
    aspect-ratio: 4 / 3;
}

.h24reviews-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h24reviews-article-body {
    flex: 1;
    min-width: 0;
}

.h24reviews-article-header {
    margin-bottom: 0.5rem;
}

.h24reviews-article-author {
    margin: 0 0 0.2rem 0;
    color: #1d4d1d;
    font-size: 1.2rem;
    font-weight: 700;
}

.h24reviews-article-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.h24reviews-article-stars {
    font-size: 1rem;
}

.h24reviews-article-content {
    color: #333;
    line-height: 1.55;
    font-size: 0.98rem;
}

.h24reviews-article-content p {
    margin: 0 0 0.5rem 0;
}

.h24reviews-article-content p:last-child {
    margin-bottom: 0;
}

/* Mobile: einspaltig */
@media (max-width: 640px) {
    .h24reviews-article {
        flex-direction: column;
    }
    .h24reviews-article-image {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* Pagination */
.h24reviews-pagination {
    margin: 2rem 0 1rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.h24reviews-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.7rem;
    border-radius: 4px;
    color: #1d4d1d;
    text-decoration: none;
    border: 1px solid #d4dccf;
    background: #fff;
}

.h24reviews-page-link:hover {
    background: #f2f6f0;
}

.h24reviews-page-link--active {
    background: #1d4d1d;
    color: #fff;
    border-color: #1d4d1d;
    font-weight: 700;
}

.h24reviews-empty {
    text-align: center;
    color: #666;
    padding: 2rem 0;
    font-style: italic;
}

/* ═════════════════════════════════════════════════════════════════
 * Eingabe-Formular
 * ═════════════════════════════════════════════════════════════════ */

.h24reviews-form {
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 680px;
    margin: 0 auto;
}

.h24reviews-form-group {
    margin-bottom: 1.1rem;
}

.h24reviews-form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #2d4a2d;
}

.h24reviews-form-group input[type="text"],
.h24reviews-form-group input[type="email"],
.h24reviews-form-group textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cdd5c8;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.h24reviews-form-group input:focus,
.h24reviews-form-group textarea:focus {
    border-color: #6ba042;
    box-shadow: 0 0 0 3px rgba(107, 160, 66, 0.15);
    outline: none;
}

.h24reviews-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.h24reviews-hint {
    display: block;
    margin-top: 0.3rem;
    color: #888;
    font-size: 0.85rem;
}

.h24reviews-required {
    color: #c43;
}

.h24reviews-star-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.h24reviews-star-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border: 1px solid #cdd5c8;
    border-radius: 4px;
    background: #fafbf8;
    color: #f0a020;
    font-weight: 500;
    transition: background 0.15s ease;
}

.h24reviews-star-label:hover {
    background: #f0f5e8;
}

.h24reviews-star-label input {
    accent-color: #6ba042;
}

.h24reviews-form-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.5rem;
}

.h24reviews-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.2;
}

.h24reviews-btn--primary {
    background: #3a7a3a;
    color: #fff;
    border-color: #3a7a3a;
}

.h24reviews-btn--primary:hover {
    background: #1d4d1d;
    border-color: #1d4d1d;
    color: #fff;
}

.h24reviews-btn--ghost {
    background: transparent;
    color: #555;
    border-color: #cdd5c8;
}

.h24reviews-btn--ghost:hover {
    background: #f0f3ec;
    color: #2d4a2d;
}

.h24reviews-form-note {
    margin: 1rem 0 0;
    color: #888;
    text-align: center;
}

.h24reviews-errors {
    background: #fef2f2;
    border: 1px solid #f5c0c0;
    color: #8b2020;
    padding: 0.9rem 1.1rem;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.h24reviews-errors ul {
    margin: 0.5rem 0 0 1.2rem;
}

/* ═════════════════════════════════════════════════════════════════
 * Danke-Seite
 * ═════════════════════════════════════════════════════════════════ */

.h24reviews-thanks-page {
    text-align: center;
    padding-top: 2.5rem;
}

.h24reviews-thanks-card {
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.h24reviews-thanks-icon {
    font-size: 3rem;
    color: #6ba042;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.h24reviews-thanks-title {
    font-size: 1.8rem;
    color: #1d4d1d;
    margin: 0 0 1rem 0;
}

.h24reviews-thanks-text {
    color: #444;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ═════════════════════════════════════════════════════════════════
 * Page-Icon (Gästebuch)
 * ═════════════════════════════════════════════════════════════════ */

.h24reviews-page-icon {
    display: block;
    margin: 0 auto 0.6rem;
    height: 80px;
    width: auto;
}

.h24reviews-page-icon--small {
    height: 60px;
}

@media (max-width: 480px) {
    .h24reviews-page-icon {
        height: 60px;
    }
    .h24reviews-page-icon--small {
        height: 48px;
    }
}
