/* =========================================================
   NDG Haupt-CMS 1.4.1c
   Öffentliche Kundenbewertungen und Einreichungsformular
   ========================================================= */

.ndg-reviews {
    --review-accent: #60a5fa;
    --review-gold: #fbbf24;
    padding: clamp(72px, 9vw, 124px) 20px;
    overflow: hidden;
}

.ndg-reviews-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.ndg-reviews-head {
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.ndg-reviews-head > span,
.ndg-review-form-intro > span {
    color: var(--review-accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ndg-reviews-head h2 {
    margin: 0.55rem 0 0.85rem;
    font-size: clamp(2rem, 5vw, 3.55rem);
    line-height: 1.08;
}

.ndg-reviews-head p,
.ndg-review-form-intro p {
    margin: 0;
    line-height: 1.75;
    opacity: 0.78;
}

.ndg-review-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 11px 15px;
    gap: 9px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.07);
}

.ndg-review-summary strong {
    font-size: 1.15rem;
}

.ndg-review-summary span {
    color: var(--review-gold);
    letter-spacing: 0.08em;
}

.ndg-review-summary small {
    opacity: 0.72;
}

.ndg-review-slider {
    position: relative;
    isolation: isolate;
}

.ndg-review-viewport {
    overflow: hidden;
    border-radius: 30px;
    touch-action: pan-y;
}

.ndg-review-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ndg-review-slide {
    min-width: 100%;
    padding: 3px;
}

.ndg-review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 335px;
    padding: clamp(30px, 6vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(127, 127, 127, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 36%),
        radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.12), transparent 34%),
        color-mix(in srgb, currentColor 4%, transparent);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.11);
}

.ndg-review-card::before {
    position: absolute;
    top: -38px;
    right: 32px;
    color: var(--review-accent);
    content: "\201C";
    opacity: 0.11;
    pointer-events: none;
    font: 800 12rem/1 Georgia, serif;
}

.ndg-review-stars {
    color: var(--review-gold);
    font-size: 1.42rem;
    letter-spacing: 0.13em;
}

.ndg-review-card h3 {
    max-width: 780px;
    margin: 17px 0 12px;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.ndg-review-text {
    max-width: 850px;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.82;
    opacity: 0.86;
}

.ndg-review-author {
    display: block;
    margin-top: 24px;
}

.ndg-review-author small {
    display: block;
    margin-top: 4px;
    font-weight: 500;
    opacity: 0.66;
}

.ndg-review-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    gap: 14px;
}

.ndg-review-button {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: inherit;
    border: 1px solid rgba(127, 127, 127, 0.28);
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 5%, transparent);
    font: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.ndg-review-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ndg-review-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.24;
    cursor: pointer;
}

.ndg-review-dot.is-active {
    width: 30px;
    background: var(--review-accent);
    opacity: 1;
}

.ndg-review-counter {
    min-width: 62px;
    text-align: center;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.68;
}

.ndg-review-empty {
    margin-bottom: 28px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(127, 127, 127, 0.18);
    border-radius: 20px;
    background: color-mix(in srgb, currentColor 3%, transparent);
}

.ndg-review-form-card {
    margin-top: 38px;
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 35%),
        color-mix(in srgb, currentColor 3%, transparent);
}

.ndg-review-form-intro {
    max-width: 760px;
    margin-bottom: 25px;
}

.ndg-review-form-intro h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
}

.ndg-review-notice {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 13px;
}

.ndg-review-notice.is-success {
    background: rgba(34, 197, 94, 0.13);
}

.ndg-review-notice.is-error {
    background: rgba(239, 68, 68, 0.13);
}

.ndg-review-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ndg-review-form label,
.ndg-rating-fieldset {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.ndg-review-form label > span,
.ndg-rating-fieldset legend {
    font-weight: 750;
}

.ndg-review-form input[type="text"],
.ndg-review-form textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    color: inherit;
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 13px;
    outline: none;
    background: color-mix(in srgb, currentColor 4%, transparent);
    font: inherit;
}

.ndg-review-form textarea {
    min-height: 165px;
    resize: vertical;
}

.ndg-review-form input:focus,
.ndg-review-form textarea:focus {
    border-color: var(--review-accent);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.13);
}

.ndg-review-form-full {
    grid-column: 1 / -1;
}

.ndg-rating-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.ndg-rating-options {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.ndg-rating-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ndg-rating-options label {
    color: #64748b;
    font-size: 2rem;
    cursor: pointer;
}

.ndg-rating-options input:checked ~ label,
.ndg-rating-options label:hover,
.ndg-rating-options label:hover ~ label {
    color: var(--review-gold);
}

.ndg-rating-options input:focus-visible + label {
    outline: 3px solid var(--review-accent);
    outline-offset: 3px;
}

.ndg-review-consent {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    flex-direction: row;
    font-size: 0.93rem;
    line-height: 1.55;
}

.ndg-review-consent input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
}

.ndg-review-consent a {
    color: var(--review-accent);
    text-decoration: underline;
}

.ndg-review-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.ndg-review-form .btn {
    margin-top: 22px;
}

@media (max-width: 640px) {
    .ndg-reviews {
        padding-right: 17px;
        padding-left: 17px;
    }

    .ndg-review-card {
        min-height: 390px;
        padding: 30px 25px;
    }

    .ndg-review-dots {
        max-width: 130px;
        overflow: hidden;
    }

    .ndg-review-form-grid {
        grid-template-columns: 1fr;
    }

    .ndg-review-form-full {
        grid-column: auto;
    }

    .ndg-review-form .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ndg-review-track {
        transition: none;
    }
}
