/* Paketkarten und Vergleichstabelle des League Managers (lm-pakete.js).
   Läuft zusammen mit telemetry.css, deren Bausteine .tgt-info-paket*
   die Karten zeichnen. Spec 2026-10-04-league-manager-seite-und-preisseite-design.md. */

.lm-pakete--monatlich {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lm-pakete--einmalig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
}

.lm-paket {
    position: relative;
}

.lm-paket--hervor {
    border-color: #ffb533;
    box-shadow: inset 0 0 0 1px #ffb533;
}

.lm-paket-abzeichen {
    position: absolute;
    top: -12px;
    right: 18px;
    background: #ffb533;
    color: #111;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.lm-paket .tgt-info-paket-punkte li.lm-nein {
    color: #8c8c8c;
}

.lm-paket .tgt-info-paket-punkte li.lm-nein::marker {
    color: #555;
}

.lm-alle {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin: 22px 0 0;
}

.lm-alle b {
    color: #ffb533;
}

/* Vergleich */
.lm-vergleich {
    margin-top: 32px;
    background: rgba(17, 17, 17, 0.92);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.lm-vergleich[open] {
    border-color: #ffb533;
}

.lm-vergleich summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 18px 56px 18px 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lm-vergleich summary::-webkit-details-marker {
    display: none;
}

.lm-vergleich summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffb533;
    font-size: 22px;
    font-weight: 400;
}

.lm-vergleich[open] summary::after {
    content: '–';
}

.lm-vergleich summary:focus-visible {
    outline: 2px solid #ffb533;
    outline-offset: 2px;
    border-radius: 10px;
}

.lm-vergleich-rahmen {
    /* Haltepunkt für .lm-sr (position: absolute) - sonst entkommen die
       Screenreader-Texte dem Rahmen und weiten die Seite auf. */
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 8px;
}

.lm-tabelle {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 15px;
}

.lm-tabelle th,
.lm-tabelle td {
    padding: 12px 14px;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
    color: #ddd;
}

.lm-tabelle thead th {
    font-family: 'Titillium Web', sans-serif;
    font-size: 18px;
    color: #ffb533;
}

.lm-tabelle thead th:first-child,
.lm-tabelle tbody th[scope="row"],
.lm-tabelle tfoot th {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    font-weight: 600;
    background: #151515;
    min-width: 200px;
}

.lm-tabelle-bereich th {
    text-align: left;
    color: #ffb533;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-top: 22px;
}

/* sticky wirkt nicht auf das th mit colspan - deshalb klebt der Titel darin. */
.lm-tabelle-bereich-titel {
    position: sticky;
    left: 14px;
    display: inline-block;
}

.lm-tabelle .lm-nein {
    color: #8c8c8c;
}

.lm-tabelle .lm-hervor {
    background: rgba(255, 181, 51, 0.08);
}

.lm-tabelle tfoot td {
    font-weight: 700;
    color: #ffb533;
}

.lm-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .lm-pakete--monatlich {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lm-pakete--monatlich,
    .lm-pakete--einmalig {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-tabelle thead th:first-child,
    .lm-tabelle tbody th[scope="row"],
    .lm-tabelle tfoot th {
        min-width: 150px;
    }
}
