/* ============================================================
   TRSuite Produktseiten (crs.html, fatca.html) - Ergaenzung zu
   downloads.css. Die Seite laedt ZUERST downloads.css (Kopf,
   Hero, Karten, Buttons, Fussbereich) und danach diese Datei;
   hier steht nur, was die Produktseiten zusaetzlich brauchen.
   Der Preisblock wird aus homepage/pricing.json erzeugt von
   homepage/tools/PricingPageGenerator.java
   ============================================================ */

/* ---------- Hero mit Handlungsaufforderung ---------- */

.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.6rem; }

.hero-actions .btn-quiet {
    background: transparent;
    border-color: #3c4757;
    color: #e7ecf3;
}

.hero-actions .btn-quiet:hover { border-color: #7e8ea5; color: #fff; }

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    margin: 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid #2b3340;
    list-style: none;
    font-size: .85rem;
    color: #9aa5b4;
}

.hero-facts b { display: block; color: #fff; font-size: .98rem; font-weight: 650; }

/* ---------- Fliesstext ---------- */

.prose { max-width: 72ch; color: var(--ink-soft); }
.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Merkmalskarten ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
}

.feature h3 { margin: 0 0 .45rem; font-size: 1rem; }
.feature p  { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.feature-more { margin: .9rem 0 0; font-size: .88rem; font-weight: 600; }

.feature-num {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    margin-bottom: .7rem;
    border-radius: 7px;
    background: rgba(42, 93, 159, .1);
    color: var(--action);
    font-size: .74rem;
    font-weight: 800;
}

/* ---------- Bildschirmfotos ---------- */

.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.shot {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Die Bildschirmfotos haben sehr verschiedene Seitenverhaeltnisse. Ein festes
   Bildfeld mit object-fit: contain haelt die Karten einer Reihe auf gleicher
   Hoehe, ohne etwas abzuschneiden - bei Bildschirmfotos waere Beschnitt fatal. */
.shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    padding: .9rem;
    border-bottom: 1px solid var(--line);
    background: #eef1f6;
}

.shot-wide img { aspect-ratio: auto; object-fit: fill; padding: 0; }

.shot figcaption { padding: .9rem 1.2rem; font-size: .88rem; color: var(--ink-soft); }
.shot figcaption b { display: block; color: var(--ink); font-weight: 650; margin-bottom: .2rem; }

.shot-wide { grid-column: 1 / -1; }

/* ---------- Zweispaltiger Abschnitt ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.split .shot { margin-top: .3rem; }

/* ---------- Preistabelle ---------- */

.table-wrap { overflow-x: auto; }

.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }

.price-table th, .price-table td {
    padding: .7rem 1.6rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: baseline;
}

.price-table thead th {
    background: #fcfdfe;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

.price-table tbody th { font-weight: 650; white-space: nowrap; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #fbfcfd; }

.price-table td {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

.price-text { color: var(--ink-soft); font-style: italic; }

.price-note {
    display: block;
    margin-top: .1rem;
    font-size: .78rem;
    font-weight: 400;
    color: var(--ink-faint);
    white-space: normal;
}

.star { color: var(--brand); font-weight: 700; }

.resources b { color: var(--ink); font-weight: 650; }

/* ---------- Lizenzbedingungen ---------- */

.lic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.lic {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 1.2rem 1.35rem;
}

.lic h3 { margin: 0 0 .4rem; font-size: .98rem; }
.lic p  { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Rabattkarten nebeneinander (Preisseiten) ---------- */

.discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* ---------- Rabattkarten (aus pricing.json) ---------- */

.renewal {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem;
}

.renewal h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.renewal > p { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); }

.renewal-list { margin: 0; padding: 0; list-style: none; }

.renewal-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
}

.renewal-list li:last-child { border-bottom: 0; }

.renewal-list b {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.renewal-note { margin: .9rem 0 0; font-size: .8rem; color: var(--ink-faint); }

/* ---------- Abschlussband ---------- */

.cta {
    background: var(--dark);
    color: #c8d1de;
    border-radius: var(--radius);
    padding: 1.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.3rem; }
.cta p  { margin: 0; font-size: .92rem; max-width: 58ch; }
.cta .btn-quiet { background: transparent; border-color: #3c4757; color: #e7ecf3; }
.cta .btn-quiet:hover { border-color: #7e8ea5; color: #fff; }
.cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Verweisliste ---------- */

.link-list { margin: 1rem 0 0; padding: 0; list-style: none; }

.link-list li {
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
}

.link-list li:last-child { border-bottom: 0; }
.link-list .src { display: block; font-size: .8rem; color: var(--ink-faint); }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 720px) {
    .price-table th, .price-table td { padding-left: 1.1rem; padding-right: 1.1rem; }
    .cta { padding: 1.4rem 1.2rem; }
}

/* Unter 560px wird die Preistabelle zu gestapelten Bloecken - sonst muesste
   man auf dem Telefon waagerecht scrollen, um die Spalten zuzuordnen. */
@media (max-width: 560px) {
    .price-table thead { position: absolute; left: -9999px; }
    .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }

    .price-table tbody tr {
        padding: .85rem 1.1rem;
        border-bottom: 1px solid var(--line);
    }

    .price-table tbody tr:last-child { border-bottom: 0; }
    .price-table tbody th { padding: 0 0 .5rem; border: 0; }

    .price-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: .3rem 0;
        border: 0;
        font-size: .92rem;
    }

    .price-table tbody td::before {
        content: attr(data-label);
        color: var(--ink-faint);
        font-weight: 600;
    }
}
