/* ==========================================================================
   ARI/WE/SO — preise.css
   ========================================================================== */

/* --- 1. Umschalter Einmalzahlung / WaaS ---------------------------------- */

.pricing-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 18px;
}

.switch-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--dur-base) ease, text-shadow var(--dur-base) ease;
}

.switch-label.is-active {
    color: var(--text-strong);
    text-shadow: 0 0 12px rgb(var(--rgb-blue) / 0.4);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.switch .track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    transition: background var(--dur-base) ease, border-color var(--dur-base) ease;
    pointer-events: none;
}

.switch .track::before {
    content: '';
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) ease;
}

.switch input:checked + .track {
    background: rgb(var(--rgb-purple) / 0.2);
    border-color: var(--neon-purple);
}
.switch input:checked + .track::before {
    transform: translateX(26px);
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}
.switch input:focus-visible + .track { outline: 2px solid var(--neon-blue); outline-offset: 3px; }

/* Eigene Klasse — die globale .is-hidden nutzt display:none !important
   und würde die Überblendung unmöglich machen. */
.waas-note {
    max-width: 62ch;
    margin: 0 auto;
    overflow: hidden;
    opacity: 1;
    max-height: 220px;
    transition: opacity var(--dur-base) ease, max-height 0.45s var(--ease-out), margin var(--dur-base) ease;
}
.waas-note.is-collapsed {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
}

/* --- 2. Preiskarten ------------------------------------------------------ */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-md);
    align-items: stretch;
}

@media (min-width: 600px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-soft);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) ease;
}

.pricing-card:hover { transform: translateY(-6px); border-color: rgb(var(--rgb-blue) / 0.3); }

.pricing-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.pricing-card .card-tagline { color: var(--text-muted); font-size: var(--fs-small); min-height: 2.6em; }

.pricing-card.is-recommended {
    border-color: rgb(var(--rgb-blue) / 0.45);
    box-shadow: 0 12px 40px rgb(var(--rgb-blue) / 0.07);
}

.ribbon {
    position: absolute;
    top: 18px;
    right: -38px;
    width: 148px;
    padding: 5px 0;
    background: var(--neon-blue);
    color: #000;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
    transform: rotate(45deg);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 20px 0 4px;
}

.price-amount {
    font-size: clamp(2.4rem, 2rem + 1.4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.price-currency { font-size: 1.4rem; font-weight: 700; margin-left: 4px; color: var(--text-strong); }
.price-suffix { width: 100%; margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex-grow: 1;
    margin: 22px 0;
}

.pricing-features li {
    display: flex;
    gap: 9px;
    font-size: var(--fs-small);
    color: var(--text-muted);
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line-subtle);
}
.pricing-features li:last-child { border-bottom: 0; }
.pricing-features svg { width: 15px; height: 15px; color: var(--neon-green); flex-shrink: 0; margin-top: 4px; }

/* --- 3. Aufklappbarer Vergleich ------------------------------------------ */

.expand-wrap { text-align: center; }

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-weight: 600;
    transition: all var(--dur-base) ease;
}
.btn-expand:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.btn-expand .chevron { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.btn-expand.is-active .chevron { transform: rotate(180deg); }

/* grid-template-rows statt max-height: keine geratenen Pixelwerte,
   nichts wird auf schmalen Displays abgeschnitten */
.expandable {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease-out);
}
.expandable.is-open { grid-template-rows: 1fr; }
.expandable > div { overflow: hidden; }
.expandable .table-scroll { margin-top: 28px; }
