/* Preise-Seite: Kaufkarten (Free · Premium · Lifetime), Zusätze und aufklappbarer Funktionsvergleich */

.sub-buy {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

.sub-buy__head {
    text-align: center;
}

.sub-buy__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 800;
    color: #f2f5fb;
}

.sub-buy__lead {
    margin: 6px auto 0;
    max-width: 620px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #aab3c2;
}

.sub-buy__hint {
    margin: 0 auto;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.sub-buy__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.sub-buy-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(20, 24, 42, 0.85), rgba(10, 12, 24, 0.85));
    backdrop-filter: blur(10px);
    transition: border-color 0.15s, transform 0.15s;
}

.sub-buy-card:hover {
    border-color: rgba(88, 101, 242, 0.45);
}

.sub-buy-card--premium {
    border-color: rgba(139, 156, 255, 0.6);
    background: linear-gradient(180deg, rgba(48, 44, 110, 0.75), rgba(16, 16, 38, 0.9));
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.25);
}

.sub-buy-card--lifetime {
    border-color: rgba(251, 191, 36, 0.4);
}

.sub-buy-card--in-cart {
    box-shadow: 0 0 0 2px rgba(87, 242, 135, 0.45);
}

.sub-buy-card__badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1206;
    background: #fbbf24;
}

.sub-buy-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-buy-card__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #c7d2fe;
    background: rgba(88, 101, 242, 0.22);
}

.sub-buy-card--premium .sub-buy-card__icon {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.18);
}

.sub-buy-card--lifetime .sub-buy-card__icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
}

.sub-buy-card__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f2f5fb;
}

.sub-buy-card__price {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.sub-buy-card__price small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aab3c2;
}

.sub-buy-card__was {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8d97a8;
}

.sub-buy-card__note {
    margin-top: -4px;
    font-size: 0.8rem;
    color: #8d97a8;
}

.sub-buy-card .sub-tier-card__perks {
    flex: 1 1 auto;
    margin: 4px 0 0;
}

.sub-buy-card__actions {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.sub-buy-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #5865f2, #7c4dff);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.4);
    cursor: pointer;
    transition: transform 0.12s, filter 0.12s;
}

.sub-buy-card__cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.sub-buy-card__cta--gold {
    color: #1a1206;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    box-shadow: 0 6px 22px rgba(251, 191, 36, 0.3);
}

.sub-buy-card__cta--ghost {
    color: #e8eef8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.sub-buy-card__link {
    justify-self: center;
    padding: 2px 6px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a5b4fc;
    text-decoration: none;
    cursor: pointer;
}

.sub-buy-card__link:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

.sub-buy-card__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 12px;
    font-weight: 700;
    color: #9de8bc;
    background: rgba(46, 204, 129, 0.12);
    border: 1px solid rgba(46, 204, 129, 0.3);
}

/* Zusätze */
.sub-buy__addons {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 24, 0.6);
}

.sub-buy__addons-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #f2f5fb;
}

.sub-buy__addons-head p {
    margin: 3px 0 0;
    font-size: 0.84rem;
    color: #aab3c2;
}

.sub-buy__addon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.sub-buy-addon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 24, 42, 0.7);
}

.sub-buy-addon--in-cart {
    border-color: rgba(87, 242, 135, 0.45);
}

.sub-buy-addon__main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sub-buy-addon__name {
    font-weight: 700;
    color: #f2f5fb;
}

.sub-buy-addon__save {
    font-size: 0.72rem;
    font-weight: 700;
    color: #57f287;
}

.sub-buy-addon__price {
    font-size: 0.85rem;
    color: #c5cdd8;
    font-variant-numeric: tabular-nums;
}

.sub-buy-addon__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(88, 101, 242, 0.5);
    border-radius: 10px;
    background: rgba(88, 101, 242, 0.18);
    color: #e8eef8;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.sub-buy-addon__btn:hover {
    background: rgba(88, 101, 242, 0.32);
}

.sub-buy-addon__qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #fff;
}

.sub-buy-addon__qty button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e8eef8;
    cursor: pointer;
}

/* Funktionsvergleich zum Aufklappen */
.sub-features-details {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 24, 0.45);
}

.sub-features-details__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #e8eef8;
}

.sub-features-details__summary::-webkit-details-marker {
    display: none;
}

.sub-features-details__summary::after {
    content: '\25BE';
    color: #a5b4fc;
}

.sub-features-details[open] .sub-features-details__summary::after {
    content: '\25B4';
}

.sub-features-details__summary small {
    flex: 1 1 auto;
    font-weight: 500;
    color: #8d97a8;
}

.sub-features-details > .sub-panel {
    margin: 0 12px 12px;
}

@media (max-width: 860px) {
    .sub-buy__cards {
        grid-template-columns: 1fr;
    }
    .sub-buy-card--premium {
        order: -1;
    }
}

@media (max-width: 520px) {
    .sub-buy-addon {
        flex-direction: column;
        align-items: stretch;
    }
    .sub-buy-addon__main {
        grid-template-columns: 1fr auto;
        align-items: baseline;
    }
    .sub-buy-addon__save {
        grid-column: 1 / -1;
        order: 3;
    }
    .sub-buy-addon__btn {
        justify-content: center;
    }
    .sub-buy-addon__qty {
        justify-content: center;
    }
}

/* Vereinfachter Warenkorb */
.sub-cart2 {
    display: grid;
    gap: 12px;
}

.sub-cart2--empty {
    justify-items: center;
    padding: 28px 12px;
    text-align: center;
    color: #8d97a8;
}

.sub-cart2--empty > i {
    font-size: 1.8rem;
    color: #5865f2;
}

.sub-cart2__empty-title {
    margin: 4px 0 0;
    font-weight: 800;
    color: #e8eef8;
}

.sub-cart2__empty-hint {
    margin: 0;
    font-size: 0.85rem;
}

.sub-cart2__list {
    display: grid;
    gap: 8px;
}

.sub-cart2__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 24, 42, 0.7);
}

.sub-cart2__row--gold {
    border-color: rgba(251, 191, 36, 0.35);
}

.sub-cart2__info {
    display: grid;
    min-width: 0;
}

.sub-cart2__name {
    font-weight: 700;
    color: #f2f5fb;
}

.sub-cart2__meta {
    font-size: 0.75rem;
    color: #8d97a8;
}

.sub-cart2__price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e8eef8;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sub-cart2__remove,
.sub-cart2__qty button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #c5cdd8;
    cursor: pointer;
}

.sub-cart2__remove:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
}

.sub-cart2__qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: #fff;
}

.sub-cart2__totals {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.25);
}

.sub-cart2__total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #c5cdd8;
}

.sub-cart2__total strong {
    font-size: 1.05rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.sub-cart2__note {
    margin: 0;
    font-size: 0.75rem;
    color: #8d97a8;
}

.sub-cart2__checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #7c4dff);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.4);
    cursor: pointer;
}

.sub-cart2__checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.sub-cart2__reason {
    margin: -4px 0 0;
    font-size: 0.8rem;
    text-align: center;
    color: #fcd9a0;
}

.sub-cart2__secure {
    margin: 0;
    font-size: 0.74rem;
    text-align: center;
    color: #8d97a8;
}

.sub-cart2__clear {
    justify-self: center;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.8rem;
    color: #8d97a8;
    text-decoration: underline;
    cursor: pointer;
}

/* Server-Pakete */
.sub-buy__addons--server {
    border-color: rgba(251, 191, 36, 0.25);
}

.sub-buy-addon__meta {
    font-size: 0.75rem;
    color: #8d97a8;
}

.sub-buy-addon__more {
    justify-self: start;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a5b4fc;
    cursor: pointer;
}

.sub-buy-addon__more:hover {
    text-decoration: underline;
}

/* Extras: KI-Paket + Gutscheine */
.sub-buy-addon__name .fas { color: #a5b4fc; margin-right: 4px; }
.sub-buy-addon--gift { flex-wrap: wrap; }
.sub-buy-gifts { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-buy-gift { flex-direction: column; gap: 2px; min-width: 84px; padding: 8px 12px; line-height: 1.15; }
.sub-buy-gift strong { font-size: 0.86rem; }
.sub-buy-gift span { font-size: 0.76rem; font-weight: 600; opacity: 0.85; }
@media (max-width: 640px) { .sub-buy-gifts { width: 100%; } .sub-buy-gift { flex: 1 1 0; } }

/* Premium Plus + Lifetime „bald verfügbar“ */
.sub-buy__cards:has(.sub-buy-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
    .sub-buy__cards:has(.sub-buy-card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sub-buy-card--plus {
    border-color: rgba(232, 121, 249, 0.6);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(232, 121, 249, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(58, 30, 92, 0.82), rgba(16, 12, 34, 0.92));
    box-shadow: 0 12px 44px rgba(192, 38, 211, 0.25);
}
.sub-buy-card--plus .sub-buy-card__icon { color: #f5d0fe; background: rgba(232, 121, 249, 0.22); }
.sub-buy-card__badge--plus { color: #fff; background: linear-gradient(135deg, #c026d3, #7c3aed); }
.sub-buy-card__cta--plus {
    color: #fff;
    background: linear-gradient(135deg, #d946ef, #7c3aed);
    box-shadow: 0 6px 22px rgba(192, 38, 211, 0.35);
}
.sub-buy-card--soon { opacity: 0.75; border-style: dashed; }
.sub-buy-card--soon .sub-buy-card__badge { background: rgba(255, 255, 255, 0.14); color: #e5e7eb; }
.sub-buy-card__price--soon { font-size: 1.15rem; color: #fde68a; }
@media (max-width: 640px) {
    .sub-buy__cards:has(.sub-buy-card:nth-child(4)) { grid-template-columns: 1fr; }
}
