/**
 * Divergence Subscription – Frontend Styles v2.9.1
 *
 * Änderungen v2.6:
 * - Schriftgrößen durchgängig auf mind. 16px angehoben (Lesbarkeit)
 * - Hervorgehobene Karte (.ds-sales-card-highlight) + Band
 * - Abgrenzungshinweis (.ds-sales-disclaimer)
 * - MwSt.-Zeile (.ds-sales-card-vat)
 * - Breakpoint für 3 Spalten von 900px auf 1100px (größere Schrift braucht mehr Platz)
 */

/* ─── Buttons ──────────────────────────────────────────── */
.ds-btn { display: inline-block; padding: 16px 34px; font-size: 18px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; text-align: center; line-height: 1.4; text-decoration: none; }
.ds-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-decoration: none; }
.ds-btn:active { transform: translateY(0); }
.ds-btn-primary { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }
.ds-btn-primary:hover { background: linear-gradient(135deg, #6d28d9, #5b21b6); color: #fff; }
.ds-btn-outline { background: transparent; color: #6d28d9; border: 2px solid #c4b5fd; padding: 10px 22px; }
.ds-btn-outline:hover { background: #f5f3ff; }
.ds-btn-owned { background: #d1fae5; color: #065f46; cursor: default; opacity: 0.8; }
.ds-btn-owned:hover { transform: none; box-shadow: none; }
.ds-btn-small { padding: 10px 20px; font-size: 16px; border-radius: 5px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }
.ds-btn-small:hover { color: #fff; }


/* ═══════════════════════════════════════════════════════════
   SALES PAGE
   ═══════════════════════════════════════════════════════════ */

.ds-sales-page { max-width: 1180px; margin: 0 auto; padding: 20px 0; }

/* Header: weisse Schrift (für dunklen Hintergrund) */
.ds-sales-header { text-align: center; margin-bottom: 44px; }
.ds-sales-headline { font-size: 42px; font-weight: 700; color: #ffffff; margin: 0 0 14px 0; line-height: 1.15; }
.ds-sales-subtitle { font-size: 21px; line-height: 1.5; color: rgba(255,255,255,0.82); margin: 0; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Einleitung unter der Überschrift */
.ds-sales-intro {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    max-width: 760px;
    margin: 20px auto 0 auto;
}

/* Abgrenzungshinweis über den Karten */
.ds-sales-disclaimer {
    max-width: 820px;
    margin: 0 auto 40px auto;
    padding: 20px 26px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-left: 4px solid rgba(255,255,255,0.45);
    border-radius: 12px;
    text-align: left;
}
.ds-sales-disclaimer p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
}
.ds-sales-disclaimer strong { color: rgba(255,255,255,0.95); }

/* Grid */
.ds-sales-grid { display: grid; gap: 28px; align-items: stretch; }
.ds-sales-cols-1 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
.ds-sales-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ds-sales-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ds-sales-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Größere Schrift braucht mehr Platz – früher umbrechen */
@media (max-width: 1100px) { .ds-sales-cols-3, .ds-sales-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px)  { .ds-sales-cols-2, .ds-sales-cols-3, .ds-sales-cols-4 { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
@media (max-width: 600px) {
    .ds-sales-headline { font-size: 32px; }
    .ds-sales-subtitle { font-size: 19px; }
    .ds-sales-intro { font-size: 17px; }
    .ds-sales-disclaimer { padding: 18px 20px; }
    .ds-sales-disclaimer p { font-size: 16px; }
}

/* Sales Card */
.ds-sales-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ds-sales-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.ds-sales-card-owned { opacity: 0.75; }

/* Hervorgehobene Karte */
.ds-sales-card-highlight {
    border-color: #7c3aed;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.28);
}
.ds-sales-card-highlight:hover { box-shadow: 0 10px 36px rgba(124, 58, 237, 0.34); }

.ds-sales-card-ribbon {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 10px 16px;
    line-height: 1.3;
}

.ds-sales-card-image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f4f6; }
.ds-sales-card-image img { width: 100%; height: 100%; object-fit: cover; }

.ds-sales-card-body {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left; /* ausdrücklich linksbündig */
}

.ds-sales-card-title { font-size: 26px; font-weight: 700; color: #1f2937; margin: 0 0 10px 0; line-height: 1.25; text-align: left; }

/* "Aktiv"-Badge: unter dem Titel, inline, nicht überdeckend */
.ds-sales-card-active-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    background: #d1fae5;
    color: #065f46;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* Preis */
.ds-sales-card-price {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.15;
    text-align: left;
}

/* PAngV-Hinweis unter dem Preis */
.ds-sales-card-vat {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 14px;
    text-align: left;
}

/* Sessions-Badge */
.ds-sales-card-sessions {
    display: inline-block;
    padding: 6px 15px;
    background: #f0fdf4;
    color: #065f46;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
}

.ds-sales-card-text { font-size: 17px; line-height: 1.65; color: #4b5563; margin-bottom: 20px; text-align: left; }
.ds-sales-card-text p:last-child { margin-bottom: 0; }

.ds-sales-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    flex: 1;
    text-align: left;
}
.ds-sales-card-features li {
    position: relative;
    padding: 8px 0 8px 34px;
    font-size: 17px;
    color: #374151;
    line-height: 1.5;
    text-align: left;
}
.ds-sales-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 9px;
    width: 23px; height: 23px;
    border-radius: 50%;
    background: #d1fae5; color: #059669;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

.ds-sales-card-cta { margin-top: auto; }
.ds-sales-card-cta .ds-btn { width: 100%; display: block; }

@media (max-width: 600px) {
    .ds-sales-card-body { padding: 26px 22px; }
    .ds-sales-card-title { font-size: 24px; }
    .ds-sales-card-price { font-size: 32px; }
}

/* Legal-Hinweise (Digistore24 Pflicht) */
.ds-sales-legal {
    margin-top: 40px;
    padding: 26px 30px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,0.70);
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.ds-sales-legal p { margin: 0 0 14px 0; }
.ds-sales-legal p:last-child { margin-bottom: 0; }
.ds-sales-legal strong { color: rgba(255,255,255,0.92); }
.ds-sales-legal a { color: rgba(255,255,255,0.92); text-decoration: underline; }
.ds-sales-legal a:hover { color: #ffffff; }


/* ═══════════════════════════════════════════════════════════
   THANK YOU PAGE
   ═══════════════════════════════════════════════════════════ */

.ds-thank-you { max-width: 700px; margin: 0 auto; padding: 20px 0; }

.ds-thank-you-hero { text-align: center; margin-bottom: 40px; }
.ds-thank-you-checkmark {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff; font-size: 36px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}
.ds-thank-you-headline { font-size: 34px; font-weight: 700; color: #1f2937; margin: 0 0 12px 0; }
.ds-thank-you-product { font-size: 20px; color: #4b5563; margin: 0; }
.ds-thank-you-image { margin-top: 20px; border-radius: 12px; overflow: hidden; max-width: 360px; margin-left: auto; margin-right: auto; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.ds-thank-you-image img { width: 100%; height: auto; display: block; }

.ds-thank-you-steps { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px; margin-bottom: 24px; }
.ds-thank-you-steps-title { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 24px 0; }

.ds-thank-you-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.ds-thank-you-step:last-of-type { border-bottom: none; padding-bottom: 0; }
.ds-thank-you-step:first-of-type { padding-top: 0; }

.ds-step-number { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ds-step-done .ds-step-number { background: #d1fae5; color: #059669; }
.ds-step-action .ds-step-number { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }

.ds-step-content { flex: 1; }
.ds-step-content strong { display: block; font-size: 18px; color: #1f2937; margin-bottom: 4px; }
.ds-step-content p { font-size: 17px; color: #5b6472; margin: 0 0 10px 0; line-height: 1.6; }
.ds-step-content p:last-child { margin-bottom: 0; }
.ds-step-content .ds-btn { margin-top: 4px; }

/* Legal / Abbuchungshinweis (Digistore24 Pflicht) */
.ds-thank-you-login {
    text-align: center;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    font-size: 17px;
    color: #4b5563;
}
.ds-thank-you-login p { margin: 0; }
.ds-thank-you-login a { color: #6d28d9; font-weight: 600; word-break: break-all; }

.ds-thank-you-legal {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.65;
    color: #5b6472;
}
.ds-thank-you-legal p { margin: 0 0 8px 0; }
.ds-thank-you-legal p:last-child { margin-bottom: 0; }
.ds-thank-you-legal strong { color: #475569; }
.ds-thank-you-legal a { color: #7c3aed; }

.ds-thank-you-help { text-align: center; padding: 16px; font-size: 16px; color: #6b7280; }
.ds-thank-you-help a { color: #7c3aed; font-weight: 500; }


/* ═══════════════════════════════════════════════════════════
   SESSION COUNTER
   ═══════════════════════════════════════════════════════════ */

.ds-session-counter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 20px; font-size: 16px; color: #065f46; }
.ds-session-counter-number { font-weight: 700; font-size: 19px; }
.ds-session-counter-label { font-weight: 500; }
.ds-session-counter-detail { font-size: 16px; color: #6b7280; border-left: 1px solid #d1d5db; padding-left: 8px; }


/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD (Teaser / Upsell) + HINT
   ═══════════════════════════════════════════════════════════ */

.ds-product-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; max-width: 480px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s ease; }
.ds-product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.ds-product-context { padding: 14px 26px; background: linear-gradient(135deg, #faf5ff, #f0e7ff); font-size: 16px; font-weight: 500; color: #6b21a8; border-bottom: 1px solid #e9d5ff; }
.ds-product-image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f4f6; }
.ds-product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-product-body { padding: 24px; }
.ds-product-title { font-size: 24px; font-weight: 700; color: #1f2937; margin: 0 0 12px 0; line-height: 1.3; }
.ds-product-text { font-size: 17px; line-height: 1.65; color: #4b5563; margin-bottom: 16px; }
.ds-product-text p:last-child { margin-bottom: 0; }
.ds-product-features { list-style: none; padding: 0; margin: 0 0 20px 0; }
.ds-product-features li { position: relative; padding: 8px 0 8px 32px; font-size: 17px; color: #374151; line-height: 1.5; }
.ds-product-features li::before { content: '✓'; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: #d1fae5; color: #059669; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.ds-product-cta { padding-top: 4px; }
.ds-product-cta .ds-btn { width: 100%; display: block; text-align: center; }

.ds-product-hint { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(135deg, #faf5ff, #f5f3ff); border: 1px solid #e9d5ff; border-radius: 10px; max-width: 480px; }
.ds-hint-icon { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ds-hint-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-hint-context { font-size: 16px; color: #9ca3af; font-weight: 500; }
.ds-hint-title { font-size: 17px; color: #1f2937; }
.ds-hint-link { font-size: 16px; color: #7c3aed; font-weight: 600; text-decoration: none; }
.ds-hint-link:hover { text-decoration: underline; color: #6d28d9; }


/* ─── Subscription Cards ───────────────────────────────── */

.ds-subscriptions-list { max-width: 560px; }
.ds-subscription-card { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 22px; margin-bottom: 14px; }
.ds-subscription-card.ds-card-active { border-left: 4px solid #059669; }
.ds-subscription-card.ds-card-inactive { border-left: 4px solid #d1d5db; opacity: 0.8; }
.ds-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ds-card-name { font-weight: 700; font-size: 19px; color: #1f2937; }
.ds-card-detail { display: flex; justify-content: space-between; padding: 6px 0; font-size: 17px; color: #4b5563; }
.ds-card-label { color: #6b7280; font-size: 16px; }
.ds-card-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; }


/* ─── Badges / Notices / Misc ──────────────────────────── */

.ds-status-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.ds-status-badge.ds-status-active, .ds-status-badge.ds-status-purchased { background: #d1fae5; color: #065f46; }
.ds-status-badge.ds-status-cancelled { background: #fef3c7; color: #92400e; }
.ds-status-badge.ds-status-expired, .ds-status-badge.ds-status-refunded, .ds-status-badge.ds-status-pastdue, .ds-status-badge.ds-status-past_due { background: #fee2e2; color: #991b1b; }
.ds-status-badge.ds-status-none { background: #f3f4f6; color: #6b7280; }

.ds-access-denied { text-align: center; padding: 40px 20px; background: linear-gradient(135deg, #faf5ff, #f0e7ff); border: 1px solid #e9d5ff; border-radius: 12px; max-width: 600px; margin: 40px auto; }
.ds-access-denied p { font-size: 18px; color: #4b5563; margin-bottom: 16px; }
.ds-access-denied a { color: #7c3aed; font-weight: 600; text-decoration: none; }
.ds-access-denied a:hover { text-decoration: underline; }

.ds-sub-hint { font-size: 16px; color: #6b7280; margin-top: 16px; }
.ds-sub-hint a { color: #7c3aed; font-weight: 600; }
.ds-notice { padding: 14px 18px; border-radius: 6px; font-size: 17px; line-height: 1.6; }
.ds-notice-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.ds-notice-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.ds-notice a { color: inherit; font-weight: 600; }

/* ─── Gesperrtes Zusatzprodukt (requires_account) ─────────── */
.ds-btn-locked {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    width: 100%;
    display: block;
    border: 2px dashed #e5e7eb;
}
.ds-sales-card-locked-note {
    font-size: 16px;
    line-height: 1.55;
    color: #6b7280;
    margin: 12px 0 0 0;
    text-align: left;
}
.ds-sales-card-locked-note a { color: #6d28d9; font-weight: 600; }

.ds-sales-card-locked { border-style: dashed; border-color: #d1d5db; }
.ds-sales-card-locked .ds-sales-card-price { color: #6b7280; }
