/* ============================================================
   Leistungs-Pakete Demo – Block Styles
   Block: kss/leistungspakete-demo
   ============================================================ */

/* ── Header / Label ───────────────────────────────────────── */
.kss-leistungspakete__header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.kss-leistungspakete__label {
    display: inline-block;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.01em;
}

/* ── Grid ─────────────────────────────────────────────────── */
.kss-leistungspakete__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
}

/* ── Karte (Standard) ─────────────────────────────────────── */
.kss-leistungspakete__card {
    --lp-accent: #F59E0B;
    --lp-featured-bg: linear-gradient(145deg, #F59E0B 0%, #F97316 100%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    padding-top: calc(clamp(1.5rem, 3vw, 2rem) + 0.75rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: visible;
}

.kss-leistungspakete__card:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* ── Karte (Featured) ─────────────────────────────────────── */
.kss-leistungspakete__card--featured {
    background: var(--lp-featured-bg);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.kss-leistungspakete__card--featured:hover {
    box-shadow: 0 20px 56px rgba(245, 158, 11, 0.45);
    transform: translateY(-6px);
}

/* ── Badge ────────────────────────────────────────────────── */
.kss-leistungspakete__badge-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
}

.kss-leistungspakete__badge {
    display: inline-block;
    background: #10B981;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 0.25rem 0.9rem;
    line-height: 1.6;
}

/* ── Titel-Zeile mit Icon ─────────────────────────────────── */
.kss-leistungspakete__title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Icon ohne Rahmen: nur das SVG, gefärbt in Akzentfarbe */
.kss-leistungspakete__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.kss-leistungspakete__icon-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--lp-accent);
    stroke: var(--lp-accent);
}

/* Icon mit Rahmen: farbiges Quadrat als Hintergrund */
.kss-leistungspakete__icon-wrap--rahmen {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--lp-accent);
    padding: 8px;
}

.kss-leistungspakete__icon-wrap--rahmen svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__icon-wrap svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__icon-wrap--rahmen {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Titel ────────────────────────────────────────────────── */
.kss-leistungspakete__card-title {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__card-title {
    color: #ffffff;
}

/* ── Preis ────────────────────────────────────────────────── */
.kss-leistungspakete__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kss-leistungspakete__price {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__price {
    color: #ffffff;
}

.kss-leistungspakete__einheit {
    font-size: clamp(0.78rem, 1vw, 0.875rem);
    color: #6b7280;
    font-weight: 400;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__einheit {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Beschreibung ─────────────────────────────────────────── */
.kss-leistungspakete__description {
    font-size: clamp(0.85rem, 1.1vw, 0.925rem);
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__description {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Features-Liste ───────────────────────────────────────── */
.kss-leistungspakete__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.kss-leistungspakete__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: clamp(0.83rem, 1.1vw, 0.9rem);
    color: #374151;
    line-height: 1.5;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__feature {
    color: rgba(255, 255, 255, 0.92);
}

.kss-leistungspakete__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--lp-accent) 15%, #ffffff);
    color: var(--lp-accent);
    margin-top: 1px;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.kss-leistungspakete__feature-icon svg {
    width: 11px;
    height: 11px;
    display: block;
}

/* ── CTA-Bereich ──────────────────────────────────────────── */
.kss-leistungspakete__cta {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ── Button ───────────────────────────────────────────────── */
.kss-leistungspakete__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: clamp(0.875rem, 1.1vw, 0.95rem);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
    box-sizing: border-box;
}

/* Filled-Button */
.kss-leistungspakete__btn--filled {
    background: #111111;
    color: #ffffff;
    border: 2px solid #111111;
}

.kss-leistungspakete__btn--filled:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
}

/* Outlined-Button */
.kss-leistungspakete__btn--outlined {
    background: transparent;
    color: #111111;
    border: 2px solid #111111;
}

.kss-leistungspakete__btn--outlined:hover {
    background: #111111;
    color: #ffffff;
}

/* Buttons auf Featured-Karte (weiß, da farbiger Hintergrund) */
.kss-leistungspakete__card--featured .kss-leistungspakete__btn--filled {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__btn--filled:hover {
    background: rgba(255, 255, 255, 0.85);
}

.kss-leistungspakete__card--featured .kss-leistungspakete__btn--outlined {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.kss-leistungspakete__card--featured .kss-leistungspakete__btn--outlined:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .kss-leistungspakete__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .kss-leistungspakete__card {
        padding: 1.5rem;
    }
}
