/* ==========================================================================
   Projekt Kommentare & Community-Feedback (Design matching dorfgarten-idee.html)
   ========================================================================== */

.custom-comments-wrapper {
    font-family: var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    margin: 40px 0 60px;
    color: #333333;
    width: 100%;
    box-sizing: border-box;
}

.custom-comments-heading {
    margin: 0 0 22px !important;
    font-family: var(--h1_typography-font-family, var(--headings_typography-font-family, inherit)) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #333333 !important;
    line-height: 1.25;
}

/* 1. Formular-Bereich: Deine Meinung zählt */
.custom-comment-form-container {
    margin-bottom: 52px;
}

.custom-comment-form-box {
    border: 1px solid #ece8e2;
    border-radius: 12px;
    padding: 26px;
    background: #faf8f5;
    box-sizing: border-box;
}

.custom-comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.custom-comment-form-box input[type="text"],
.custom-comment-form-box input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd6cd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    box-sizing: border-box;
    color: #333333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-comment-form-box textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #ddd6cd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
    background: #ffffff;
    color: #333333;
    outline: none;
    min-height: 110px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-comment-form-box input:focus,
.custom-comment-form-box textarea:focus {
    border-color: #e8641e;
    box-shadow: 0 0 0 3px rgba(232, 100, 30, 0.1);
}

.custom-comment-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    background: #e8641e;
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-submit-btn:hover {
    background: #d45515;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232, 100, 30, 0.35);
}

.custom-comment-success-box {
    background-color: #fdfaf9;
    border: 1px solid #f2d8d1;
    border-radius: 8px;
    padding: 20px;
    color: #4a403b;
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* 2. Liste: Community-Feedback */
.community-feedback-section {
    margin-bottom: 56px;
}

.custom-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.custom-comment-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.custom-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* Der runde Avatar */
.custom-comment-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 18px;
    box-sizing: border-box;
}

.custom-comment-avatar svg {
    width: 18px;
    height: 18px;
    vertical-align: -0.15em;
}

.custom-comment-author {
    color: #333333 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.custom-comment-time {
    color: #8a8378 !important;
    font-size: 13px !important;
}

/* Die graue Sprechblase */
.custom-comment-bubble {
    background: #f4f2ee;
    border-radius: 8px;
    padding: 14px 18px;
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    box-sizing: border-box;
}

.no-comments-yet {
    color: #8a8378;
    font-style: italic;
    font-size: 15px;
    margin: 0;
}

/* Spinner */
.spinner {
    animation: rotate 2s linear infinite;
    width: 18px;
    height: 18px;
}

.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .custom-comment-form-grid {
        grid-template-columns: 1fr;
    }
    .custom-comment-form-box {
        padding: 20px 16px;
    }
}
