:root {
    --moon-bg-1: #fff8fd;
    --moon-bg-2: #f3ecff;
    --moon-card: rgba(255, 255, 255, 0.88);
    --moon-border: rgba(216, 185, 255, 0.45);
    --moon-title: #9b5ccf;
    --moon-text: #5f5471;
    --moon-soft-text: #8e84a3;
    --moon-accent-1: #f7b9df;
    --moon-accent-2: #d8b6ff;
    --moon-accent-3: #ffe89d;
    --moon-shadow: 0 14px 40px rgba(178, 134, 216, 0.18);
    --moon-shadow-soft: 0 8px 22px rgba(178, 134, 216, 0.12);
    --moon-radius-xl: 28px;
    --moon-radius-lg: 20px;
    --moon-radius-md: 14px;
}

.moon-comments-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--moon-bg-1), var(--moon-bg-2));
    border: 1px solid var(--moon-border);
    border-radius: var(--moon-radius-xl);
    padding: 30px;
    box-shadow: var(--moon-shadow);
    color: var(--moon-text);
    margin-bottom: 40px;
}

.moon-comments-wrap::before,
.moon-comments-wrap::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.moon-comments-wrap::before {
    width: 180px;
    height: 180px;
    top: -65px;
    right: -65px;
    background: radial-gradient(circle, rgba(255, 232, 157, 0.65), rgba(255, 232, 157, 0));
}

.moon-comments-wrap::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -90px;
    background: radial-gradient(circle, rgba(247, 185, 223, 0.55), rgba(247, 185, 223, 0));
}

.moon-comments-header {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.moon-comments-header h2 {
    margin: 10px 0 6px;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.05;
    color: var(--moon-title);
}

.moon-comments-header p {
    margin: 0;
    color: var(--moon-soft-text);
}

.moon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    color: #9a6cc0;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--moon-shadow-soft);
}

.moon-comment-box,
.moon-comment-card,
.moon-empty-state {
    position: relative;
    z-index: 1;
    background: var(--moon-card);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: var(--moon-radius-lg);
    box-shadow: var(--moon-shadow-soft);
    backdrop-filter: blur(8px);
}

.moon-comment-box {
    padding: 22px;
}

.moon-comment-form {
    display: grid;
    gap: 16px;
}

.moon-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.moon-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #8a5db7;
}

.moon-field label span {
    font-weight: 400;
    color: var(--moon-soft-text);
}

.moon-field input,
.moon-field textarea {
    width: 100%;
    border: 1px solid rgba(213, 192, 240, 0.65);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.92);
    color: var(--moon-text);
    font: inherit;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.moon-field textarea {
    resize: vertical;
    min-height: 150px;
}

.moon-field input:focus,
.moon-field textarea:focus {
    outline: none;
    border-color: #cf9bf0;
    box-shadow: 0 0 0 4px rgba(215, 182, 255, 0.25);
    transform: translateY(-1px);
}

.moon-hidden-field {
    display: none;
}

.moon-emoji-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.62);
    border: 1px dashed rgba(208, 179, 244, 0.8);
    border-radius: 16px;
    padding: 12px 14px;
}

.moon-emoji-toolbar span {
    font-size: 0.92rem;
    font-weight: 700;
    color: #9164bf;
}

.moon-emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.moon-emoji-list button {
    border: none;
    border-radius: 14px;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    font-size: 1.15rem;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(251, 238, 255, 0.95));
    box-shadow: 0 8px 18px rgba(181, 142, 213, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.moon-emoji-list button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 24px rgba(181, 142, 213, 0.2);
}

.moon-emoji-more {
    margin-top: 8px;
    text-align: right;
}

.moon-emoji-more a {
    font-size: 0.8rem;
    color: #a363d6;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.moon-emoji-more a:hover {
    text-decoration: underline;
    opacity: 1;
}

.moon-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--moon-soft-text);
}

.moon-submit-btn,
.moon-read-more-btn {
    border: none;
    cursor: pointer;
    font: inherit;
}

.moon-submit-btn {
    justify-self: start;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--moon-accent-1), var(--moon-accent-2));
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(189, 141, 226, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.moon-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(189, 141, 226, 0.3);
}

.moon-alert {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.moon-success {
    background: rgba(232, 253, 241, 0.92);
    color: #297d4d;
    border: 1px solid rgba(86, 176, 116, 0.22);
}

.moon-error {
    background: rgba(255, 240, 245, 0.95);
    color: #ad4769;
    border: 1px solid rgba(215, 118, 154, 0.24);
}

.moon-comment-list {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.moon-comment-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 18px;
}

.moon-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(183, 106, 203, 0.22);
    flex-shrink: 0;
}

.moon-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.moon-admin-reply {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    border: 1px solid rgba(210, 180, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.moon-admin-reply strong {
    display: block;
    margin-bottom: 6px;
    color: #b76acb;
    font-size: 0.95rem;
}

.moon-admin-reply-text {
    color: #564b66;
    line-height: 1.7;
}

.moon-comment-top h3 {
    margin: 0;
    color: #9158c3;
    font-size: 1.08rem;
}

.moon-comment-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--moon-soft-text);
}

.moon-comment-subline a {
    background: rgba(198, 170, 255, 0.15);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.moon-comment-subline a:hover {
    background: rgba(198, 170, 255, 0.28);
}

.moon-comment-text {
    margin-top: 12px;
    line-height: 1.75;
    word-break: break-word;
}

.moon-read-more-btn {
    margin-top: 10px;
    padding: 0;
    background: transparent;
    color: #a363d6;
    font-weight: 700;
}

.moon-read-more-btn:hover {
    text-decoration: underline;
}

.moon-empty-state {
    padding: 28px 22px;
    text-align: center;
}

.moon-empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ============================= */
/* Mehr anzeigen Button */
/* ============================= */

.moon-comment-hidden {
    display: none;
}

.moon-load-more-wrap {
    margin-top: 22px;
    text-align: center;
}

.moon-load-more-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f6b6dc, #caa7ff);
    box-shadow: 0 10px 22px rgba(183, 106, 203, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.moon-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(183, 106, 203, 0.28);
}

@media (max-width: 700px) {
    .moon-comments-wrap {
        padding: 20px;
    }

    .moon-grid-two,
    .moon-comment-card {
        grid-template-columns: 1fr;
    }

    .moon-comment-card {
        gap: 12px;
    }

    .moon-avatar {
        width: 54px;
        height: 54px;
    }

    .moon-comment-box {
        padding: 16px;
    }

    .moon-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
