/* =========================================
   LANDING PRICING — Pricing Cards, Feature-Vergleichstabelle, Credits, FAQ
   Geladen auf: Homepage + /preise/
   ========================================= */

/* ── Pricing Cards ── */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(99,91,255,0.1);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Beliebt';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-card.free {
    border-color: var(--success);
}

.pricing-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.pricing-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-card.free .pricing-card-price {
    color: var(--success);
}

.pricing-card-period {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.pricing-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Feature-Vergleichstabelle ── */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 0 auto 48px;
    max-width: 900px;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table thead th {
    padding: 16px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border);
    background: var(--bg-app);
    position: sticky;
    top: 0;
    z-index: 1;
}

.comparison-table thead th:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.comparison-table tbody tr:hover {
    background: #fafbfe;
}

.comparison-table tbody td {
    padding: 12px 20px;
    text-align: center;
    color: var(--text-main);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table .category-row td {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    padding-top: 20px;
    background: none;
    border-bottom: 1px solid var(--primary-light);
}

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
}

.comparison-table .dash {
    color: var(--text-light);
    font-size: 16px;
}

/* ── Credit-System Tabelle ── */
.credit-table-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.credit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.credit-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border);
    background: var(--bg-app);
}

.credit-table thead th:nth-child(2),
.credit-table thead th:nth-child(3) {
    text-align: center;
}

.credit-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.credit-table tbody td:nth-child(2),
.credit-table tbody td:nth-child(3) {
    text-align: center;
    font-weight: 600;
}

.credit-table tbody td:first-child {
    font-weight: 500;
}

/* ── Nachkauf-Pakete ── */
.credit-packs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 32px auto 0;
}

.credit-pack {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credit-pack:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.credit-pack.popular {
    border-color: var(--primary);
    position: relative;
}

.credit-pack-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.credit-pack-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.credit-pack-bonus {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
}

/* ── Rechenbeispiele ── */
.example-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.example-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.example-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.example-card-setup {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.example-card-total {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.example-card-total small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Pricing FAQ ── */
.faq-list {
    max-width: 740px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-stack);
    transition: color 0.2s ease;
}

.faq-question:hover { color: var(--primary); }

.faq-chevron {
    font-size: 18px;
    transition: transform 0.3s ease;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Agent-Team Tabelle (Pricing-Seite) ── */
.agent-team-table-wrapper {
    overflow-x: auto;
    max-width: 900px;
    margin: 0 auto;
}

.agent-team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.agent-team-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border);
    background: var(--bg-app);
}

.agent-team-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.agent-team-table tbody tr:hover {
    background: #fafbfe;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pricing-cards { grid-template-columns: 1fr; }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 12px;
    }

    .credit-packs { grid-template-columns: 1fr; }
    .example-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .comparison-table,
    .agent-team-table,
    .credit-table { font-size: 12px; }

    .comparison-table thead th,
    .comparison-table tbody td,
    .agent-team-table thead th,
    .agent-team-table tbody td { padding: 8px 6px; }
}
