/* ═══════════════════════════════════════════════════════════════
   LaunchBro · Testimonials – Form + Display
   ═══════════════════════════════════════════════════════════════ */

/* ── Formular ─────────────────────────────────────────────────── */

.lbro-tf {
    max-width: 600px;
    margin: 0 auto;
}

.lbro-tf-header {
    margin-bottom: 2rem;
}

.lbro-tf-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lbro-color-text, #0f172a);
    margin: 0 0 .4rem;
}

.lbro-tf-sub {
    color: var(--lbro-color-text-muted, #64748b);
    font-size: .95rem;
    margin: 0;
}

.lbro-tf-field {
    margin-bottom: 1.25rem;
}

.lbro-tf-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--lbro-color-text, #0f172a);
    margin-bottom: .4rem;
}

.lbro-tf-required {
    color: #ef4444;
}

.lbro-tf-hint {
    font-weight: 400;
    color: var(--lbro-color-text-muted, #64748b);
}

.lbro-tf-input,
.lbro-tf-textarea {
    width: 100%;
    border: 1.5px solid var(--lbro-color-border, #e2e8f0);
    border-radius: 6px;
    padding: .6rem .8rem;
    font-size: 1rem;
    color: var(--lbro-color-text, #0f172a);
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
}

.lbro-tf-input:focus,
.lbro-tf-textarea:focus {
    outline: none;
    border-color: var(--lbro-color-primary, #39639e);
    box-shadow: 0 0 0 3px rgba(57, 99, 158, .1);
}

.lbro-tf-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Stars */
.lbro-tf-stars {
    display: flex;
    gap: .2rem;
}

.lbro-tf-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #d1d5db;
    transition: color .1s, transform .1s;
    line-height: 1;
}

.lbro-tf-star:hover,
.lbro-tf-star.active {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Upload */
.lbro-tf-upload {
    border: 2px dashed var(--lbro-color-border, #e2e8f0);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.lbro-tf-upload:hover,
.lbro-tf-upload--filled {
    border-color: var(--lbro-color-primary, #39639e);
    background: rgba(57, 99, 158, .03);
}

.lbro-tf-upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: var(--lbro-color-text-muted, #64748b);
}

.lbro-tf-upload-empty svg {
    color: #94a3b8;
}

.lbro-tf-upload-empty span {
    font-weight: 500;
    color: var(--lbro-color-text, #0f172a);
}

.lbro-tf-upload-empty small {
    font-size: .8rem;
}

.lbro-tf-upload-filled {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
    font-size: .9rem;
    color: var(--lbro-color-primary, #39639e);
}

.lbro-tf-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #94a3b8;
    padding: 0 .2rem;
    line-height: 1;
}

.lbro-tf-remove:hover {
    color: #ef4444;
}

.lbro-tf-hidden {
    display: none;
}

/* Submit */
.lbro-tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .8rem 1.5rem;
    background: var(--lbro-color-primary, #39639e);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    margin-top: .5rem;
}

.lbro-tf-btn:hover:not(:disabled) {
    background: var(--lbro-color-primary-dark, #2d527f);
}

.lbro-tf-btn:disabled,
.lbro-tf-btn--loading {
    opacity: .65;
    cursor: not-allowed;
}

/* Feedback */
.lbro-tf-error-msg {
    margin: .3rem 0 0;
    font-size: .8rem;
    color: #ef4444;
}

.lbro-tf-error-global {
    font-size: .9rem;
    text-align: center;
    padding: .6rem;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.lbro-tf-msg {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .95rem;
}

.lbro-tf-msg--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.lbro-tf-msg--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.lbro-tf-success {
    text-align: center;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #166534;
    font-size: 1rem;
}

.lbro-tf-success p {
    margin: 0;
    font-weight: 500;
}

/* ── Anzeige (Grid) ───────────────────────────────────────────── */

.lbro-testimonials {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.lbro-testimonials--cols-2 { grid-template-columns: repeat(2, 1fr); }
.lbro-testimonials--cols-3 { grid-template-columns: repeat(3, 1fr); }
.lbro-testimonials--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .lbro-testimonials--cols-2,
    .lbro-testimonials--cols-3,
    .lbro-testimonials--cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .lbro-testimonials--cols-3,
    .lbro-testimonials--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lbro-testimonials-empty {
    color: var(--lbro-color-text-muted, #64748b);
    font-size: .95rem;
}

/* Karte */
.lbro-tc {
    background: #fff;
    border: 1px solid var(--lbro-color-border, #e2e8f0);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.lbro-tc-head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lbro-tc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lbro-color-primary, #39639e);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lbro-tc-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.lbro-tc-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--lbro-color-text, #0f172a);
}

.lbro-tc-stars {
    display: flex;
    gap: 1px;
}

.lbro-ts-star {
    color: #d1d5db;
    font-size: 14px;
}

.lbro-ts-star.active {
    color: #f59e0b;
}

.lbro-tc-headline {
    font-weight: 600;
    font-size: .9rem;
    color: var(--lbro-color-text, #0f172a);
    margin: 0;
}

.lbro-tc-body {
    font-size: .9rem;
    color: var(--lbro-color-text-muted, #64748b);
    line-height: 1.65;
    margin: 0;
}

.lbro-tc-photo {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

/* Produkt-Rating unter dem Titel */
.lbro-product-rating {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-left: .75rem;
    font-size: .85rem;
    vertical-align: middle;
}

.lbro-product-rating__avg {
    font-weight: 600;
    color: var(--lbro-color-text, #0f172a);
}

.lbro-product-rating__count {
    color: var(--lbro-color-text-muted, #64748b);
}
