/**
 * Smoco Essentials V2 — Repeater item modifiers (shared across widgets).
 *
 * Surface + layout classes map to theme tokens. Widget blocks use
 * --sev-item-* / --cmp-item-* with fallbacks to widget-level tokens.
 */

/* ── Shared text-only alignment helpers ─────────────────────── */

.sev-card--layout-text-only .sev-card__body,
.cmp-support-center__card--layout-text-only,
.cmp-testimonials-grid__card--layout-text-only blockquote {
    text-align: left;
}

/* Horizontal */
.sev-card--text-x-left .sev-card__body,
.cmp-support-center__card--text-x-left,
.cmp-testimonials-grid__card--text-x-left blockquote,
.cmp-testimonials-grid__card--text-x-left figcaption {
    text-align: left;
    align-items: flex-start;
}

.sev-card--text-x-center .sev-card__body,
.cmp-support-center__card--text-x-center,
.cmp-testimonials-grid__card--text-x-center blockquote,
.cmp-testimonials-grid__card--text-x-center figcaption {
    text-align: center;
    align-items: center;
}

.sev-card--text-x-right .sev-card__body,
.cmp-support-center__card--text-x-right,
.cmp-testimonials-grid__card--text-x-right blockquote,
.cmp-testimonials-grid__card--text-x-right figcaption {
    text-align: right;
    align-items: flex-end;
}

.cmp-support-center__card--text-x-center .cmp-support-center__card-head {
    justify-content: center;
}

.cmp-support-center__card--text-x-right .cmp-support-center__card-head {
    justify-content: flex-end;
}

/* Vertical (flex containers) */
.sev-card.sev-card--layout-text-only {
    display: flex;
    flex-direction: column;
    min-height: var(--sev-card-text-min-height, 180px);
}

.sev-card.sev-card--layout-text-only .sev-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: var(--sev-card-text-min-height, 180px);
    box-sizing: border-box;
}

.sev-card.sev-card--layout-text-only.sev-card--text-y-top .sev-card__body {
    place-content: flex-start;
}

.sev-card.sev-card--layout-text-only.sev-card--text-y-center .sev-card__body {
    place-content: center;
}

.sev-card.sev-card--layout-text-only.sev-card--text-y-bottom .sev-card__body {
    place-content: flex-end;
}

.cmp-support-center__card--layout-text-only {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 140px;
}

.cmp-support-center__card--text-y-center.cmp-support-center__card--layout-text-only {
    justify-content: center;
}

.cmp-support-center__card--text-y-bottom.cmp-support-center__card--layout-text-only {
    justify-content: flex-end;
}

.cmp-testimonials-grid__card--layout-text-only {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 160px;
}

.cmp-testimonials-grid__card--text-y-center.cmp-testimonials-grid__card--layout-text-only {
    justify-content: center;
}

.cmp-testimonials-grid__card--text-y-bottom.cmp-testimonials-grid__card--layout-text-only {
    justify-content: flex-end;
}

.cmp-testimonials-grid__card--layout-text-only figcaption {
    display: flex;
}

/* ── Bedarfs-Cards (.sev-card) ─────────────────────────────── */

/* Item „Hell“ — nur im hellen Theme */
html:not(.is-dark) .sev-card--surface-light {
    --sev-item-surface: #fff;
    --sev-item-heading: var(--regal, #003f7d);
    --sev-item-body: #64748b;
    --sev-item-accent: var(--malibu, #60adfd);
}

.sev-card--surface-dark {
    --sev-item-surface: var(--regal-deep, #002952);
    --sev-item-heading: var(--text-heading, #e8f2fc);
    --sev-item-body: var(--gray-400);
    --sev-item-accent: var(--malibu);
}

.sev-card--surface-muted {
    --sev-item-surface: var(--gray-100);
    --sev-item-heading: var(--text-heading, var(--regal));
    --sev-item-body: var(--gray-500);
}

html.is-dark .sev-card--surface-muted {
    --sev-item-heading: var(--text-heading, #e8f2fc);
    --sev-item-body: var(--gray-500);
}

.sev-card--surface-transparent {
    --sev-item-surface: transparent;
    box-shadow: none;
}

.sev-card--surface-transparent:hover,
.sev-card--surface-transparent:focus-visible {
    box-shadow: none;
}

.sev-card--layout-text-only .sev-card__img {
    display: none;
}

/* ── Support Center cards ────────────────────────────────────── */

html:not(.is-dark) .cmp-support-center__card--surface-light {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--gray-200);
}

.cmp-support-center__card--surface-dark {
    background: rgba(0, 41, 82, 0.72);
}

.cmp-support-center__card--layout-text-only .cmp-support-center__icon {
    display: none;
}

/* ── Testimonials grid cards ─────────────────────────────────── */

.cmp-testimonials-grid__card {
    background: var(--cmp-item-surface, var(--cmp-card-bg));
}

html:not(.is-dark) .cmp-testimonials-grid__card--surface-light {
    --cmp-item-surface: #fff;
}

.cmp-testimonials-grid__card--surface-dark {
    --cmp-item-surface: var(--regal-deep, #002952);
    --cmp-item-heading: var(--text-heading, #e8f2fc);
    --cmp-item-body: var(--gray-400);
}

.cmp-testimonials-grid__card--surface-dark blockquote p {
    color: var(--cmp-item-body, var(--cmp-body));
}

.cmp-testimonials-grid__card--surface-dark figcaption strong {
    color: var(--cmp-item-heading, var(--cmp-heading));
}

.cmp-testimonials-grid__card--layout-text-only figcaption img {
    display: none;
}
