/* === NLPM Forms === */
.nlpm-form {
    max-width: 100%;
    margin: 0 auto;
}
/* Bot-Schutz: Honeypot-Feld für Menschen unsichtbar auslagern (nicht display:none,
   das würden manche Bots erkennen und überspringen) */
.nlpm-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.nlpm-form form {
    max-width: 100%;
    margin: 0 auto;
}
.nlpm-form__row {
    margin-bottom: 12px;
}
.nlpm-form__label {
    font-size: 14px;
    color: var(--c-ink);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.nlpm-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    background: var(--c-paper);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.nlpm-form__input {
    resize: vertical;
}
.nlpm-form__input.is-valid {
    border-color: #4a8c3f;
    box-shadow: inset 0 1px 3px rgba(74,140,63,0.15);
}
.nlpm-form__input.is-invalid {
    border-color: #c00430;
    box-shadow: inset 0 1px 3px rgba(192,4,48,0.15);
}
.nlpm-form__consent {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: 0 0 16px !important;
}
.nlpm-form__submit {
    width: 100%;
    padding: 16px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, opacity 0.15s;
    box-shadow: 0 2px 8px rgba(var(--c-primary-rgb),0.3);
}
.nlpm-form__submit:hover {
    background: var(--c-primary-dark);
}
.nlpm-form__submit:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Erfolg / Fehler */
.nlpm-form__success,
.nlpm-form__error {
    text-align: center;
    padding: 20px;
    border-radius: 6px;
    margin-top: 12px;
}
.nlpm-form__success {
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.2);
}
.nlpm-form__success-title {
    color: #166534;
    font-weight: 600;
    margin: 0 0 8px !important;
}
.nlpm-form__success-text {
    color: #555;
    margin: 0 !important;
    font-size: 14px;
}
.nlpm-form__error {
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.2);
}
.nlpm-form__error p {
    color: #991b1b;
    font-weight: 600;
    margin: 0 !important;
}

/* Dunkles Theme (z. B. Newsletter auf dunklem Hintergrund) */
.nlpm-form--dark .nlpm-form__success {
    background: rgba(74,222,128,0.15);
    border: 1px solid rgba(74,222,128,0.5);
}
.nlpm-form--dark .nlpm-form__success-title {
    color: #86efac;
}
.nlpm-form--dark .nlpm-form__success-text {
    color: #e5e7eb;
}
.nlpm-form--dark .nlpm-form__error {
    background: rgba(248,113,113,0.15);
    border: 1px solid rgba(248,113,113,0.5);
}
.nlpm-form--dark .nlpm-form__error p {
    color: #fca5a5;
}

/* ==========================================================================
   Erfahrungsberichte ([nlpm_berichte id="..."]) – helle Karten
   Eigenständige Styles; überschreiben die dunklen .testimonial-card-Regeln
   aus edoobox.css über die höhere Spezifität des .nlpm-berichte-Scopes.
   ========================================================================== */

.nlpm-berichte {
    columns: 2;
    column-gap: 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
}

.nlpm-berichte .testimonial-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 1.25rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-left: 3px solid var(--c-primary);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.nlpm-berichte .testimonial-card::before {
    content: "\201E";
    font-size: 3rem;
    line-height: 1;
    color: var(--c-primary);
    opacity: 0.5;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
}

.nlpm-berichte .nlpm-bericht__titel {
    margin: 0 !important;
    font-weight: 700;
    color: var(--c-ink);
    padding-right: 2.5rem;
}

.nlpm-berichte .testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0 !important;
    color: #444;
}

.nlpm-berichte .testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-style: normal;
    margin-top: auto;
}

.nlpm-berichte .testimonial-author strong {
    font-size: 0.95rem;
    color: var(--c-ink);
}

.nlpm-berichte .testimonial-author span {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 767px) {
    .nlpm-berichte {
        columns: 1;
    }
}

/* Lange Berichte: eingeklappt mit "Mehr lesen"-Toggle */
.nlpm-bericht--long:not(.is-open) .testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.nlpm-berichte .nlpm-bericht__toggle {
    align-self: flex-start;
    margin: -0.4rem 0 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--c-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nlpm-berichte .nlpm-bericht__toggle:hover {
    color: var(--c-primary-dark);
}

/* Optionaler Link in der Erfolgsmeldung (z. B. Google-Bewertung) */
.nlpm-form__success-link {
    display: inline-block;
    margin-top: 0.9rem;
    padding: 0.55rem 1.2rem;
    background: var(--c-primary);
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.nlpm-form__success-link:hover {
    background: var(--c-primary-dark);
    color: #fff;
}

/* Google-Rezensionen: Sterne + Quellenangabe */
.nlpm-berichte .nlpm-bericht__stars {
    margin: 0 !important;
    color: #f5a623;
    font-size: 1rem;
    letter-spacing: 2px;
}

.nlpm-berichte .nlpm-bericht__source {
    font-size: 0.75rem;
    color: #aaa;
}
