/* Paketkarten-Baustein (06.11.2026) für Abo-Seite (.kt-plan) und Landingpage (.plancard).
   Vorlage vuexy_shared/_plan_facts.html, Daten social_plan_card_facts(). Farben aus den Variablen der jeweiligen Seite. */
/* Markenblau aus dem Token der Kontoseiten bzw. der Landingpage (D07, Codeprüfung 06.11.2026). */
:root { --pfx-brand: var(--im-vx-primary, var(--blue)); }
.pfx { --pfx-muted: var(--kt-muted, var(--muted, #43587a)); --pfx-line: var(--kt-line, var(--line, #d2e2f5)); --pfx-green: var(--kt-green, var(--green, #1f9d57));
       --pfx-link: var(--kt-link, var(--link, #0f6fd6)); --pfx-btn: var(--kt-btn, var(--btn, #0f74dc)); --pfx-sky: var(--kt-sky, color-mix(in srgb, var(--pfx-brand) 12%, transparent));
       --pfx-bar: var(--pfx-brand); --pfx-bar-soft: #9fd2ff; --pfx-track: color-mix(in srgb, var(--pfx-brand) 14%, transparent);
       display: grid; gap: 10px; align-content: start; }
:is(.kt-plan--top, .plancard--top) .pfx { --pfx-muted: var(--kt-band-muted, var(--band-muted, #b7c8e6)); --pfx-line: rgba(255, 255, 255, 0.16); --pfx-green: #48da89;
       --pfx-link: #8fd0ff; --pfx-bar: #22c7f8; --pfx-bar-soft: rgba(143, 208, 255, 0.55); --pfx-track: rgba(255, 255, 255, 0.14); }
.pfx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.pfx__n { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.pfx__n b { font-size: clamp(2.2rem, 4.6cqi, 2.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pfx__n span { max-width: 9em; color: var(--pfx-muted); font-size: 0.82rem; line-height: 1.25; }

.pfx__pf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; height: 100px; }
.pfx__pf > div { display: grid; justify-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; }
.pfx__pf s { display: block; width: 100%; max-width: 30px; height: calc(var(--pfx-h, 0) * 52px + 2px); border-radius: 3px 3px 0 0; background: var(--pfx-bar);
             text-decoration: none; transform-origin: bottom; transition: transform 0.7s var(--kt-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
.pfx__pf svg { width: 18px; height: 18px; color: inherit; }
:is(.kt-plan--top, .plancard--top) .pfx__pf svg { color: #fff; }
:is(.kt-plan--top, .plancard--top) .pfx__pf div:not(:nth-child(2)):not(:nth-child(5)) svg { padding: 1px; border-radius: 50%; background: #fff; }

.pfx__stl { margin: 12px 0 -4px; color: var(--pfx-muted); font-size: 0.75rem; }
.pfx__st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; container-type: inline-size; }
.pfx__st > * { display: flex; align-items: center; justify-content: center; min-width: 0; height: 30px; margin: 0; padding: 0 4px; border-radius: 4px;
               font-family: inherit; font-size: 0.75rem; font-weight: 600; line-height: 1; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; box-shadow: none; text-transform: none; }
.pfx__st button { border: 1px solid color-mix(in srgb, var(--pfx-brand) 55%, transparent); background: transparent; color: var(--pfx-link); cursor: pointer;
                  transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.pfx__st button:hover { border-color: var(--pfx-btn); background: var(--pfx-sky); }
.pfx__st button:focus-visible { outline: 2px solid var(--kt-focus, color-mix(in srgb, var(--text) 45%, transparent)); outline-offset: 2px; }
.pfx__st button.is-on { border-color: var(--pfx-btn); background: var(--pfx-btn); color: #fff; }
:is(.kt-plan--top, .plancard--top) .pfx__st button { border-color: rgba(143, 208, 255, 0.6); }
:is(.kt-plan--top, .plancard--top) .pfx__st button:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
:is(.kt-plan--top, .plancard--top) .pfx__st button.is-on { border-color: var(--pfx-brand); background: var(--pfx-brand); color: #051022; }
.pfx__st span { border: 1px dashed color-mix(in srgb, var(--pfx-muted) 45%, transparent); color: color-mix(in srgb, var(--pfx-muted) 75%, transparent); font-weight: 500; }

/* Schmale Karten (Landingpage 901–1000 px): „Ausgewogen“ passt sonst nicht in seinen Knopf (Codeprüfung 06.11.2026, Milo M1). */
@container (max-width: 250px) { .pfx__st > * { padding: 0; font-size: 0.68rem; letter-spacing: -0.01em; } }

.pfx__sp { display: grid; gap: 5px; }
.pfx__sp[hidden] { display: none; }
.pfx__bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--pfx-track); }
.pfx__bar i { display: block; height: 100%; }
.pfx__a { background: var(--pfx-bar); }
.pfx__o { flex: 1; background: var(--pfx-bar-soft); }
.pfx__sp p { display: flex; justify-content: space-between; gap: 8px; margin: 0; color: var(--pfx-muted); font-size: 0.75rem; }
.pfx__full { display: inline-flex; align-items: center; gap: 3px; color: var(--pfx-green); font-weight: 700; }
.pfx__full svg { width: 12px; height: 12px; }

/* Zeilen: eigene Rasterzeilen im Kartenraster, damit sie in allen Karten auf einer Linie stehen. */
.pfx-rows { display: grid; grid-row: span var(--pfx-rows, 8); grid-template-rows: subgrid; row-gap: 0; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; line-height: 1.4; }
.pfx-rows li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--kt-line, var(--line, #d2e2f5)); }
:is(.kt-plan--top, .plancard--top) .pfx-rows li { border-top-color: rgba(255, 255, 255, 0.14); }
.pfx-rows .pfx-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--kt-green, var(--green, #1f9d57)); }
:is(.kt-plan--top, .plancard--top) .pfx-rows .pfx-ic { color: #48da89; }
.pfx-rows b { font-weight: 680; }
.pfx-rows small { display: block; color: var(--kt-muted, var(--muted, #43587a)); font-size: 0.8rem; }
:is(.kt-plan--top, .plancard--top) .pfx-rows small { color: var(--kt-band-muted, var(--band-muted, #b7c8e6)); }
/* Kreuz-Zeilen: Text in der gedämpften Seitenfarbe (≥ 4,5:1), Zeichen ≥ 3:1 – hell und dunkel (Codeprüfung 06.11.2026). */
.pfx-rows li.is-no { color: var(--kt-muted, var(--muted, #43587a)); }
.pfx-rows li.is-no b { font-weight: inherit; }
.pfx-rows li.is-no .pfx-ic { color: color-mix(in srgb, var(--kt-muted, var(--muted, #43587a)) 72%, transparent); }
:is(.kt-plan--top, .plancard--top) .pfx-rows li.is-no { color: #8a9cbd; }
:is(.kt-plan--top, .plancard--top) .pfx-rows li.is-no .pfx-ic { color: #5d6f8f; }
.pfx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kartenraster beider Seiten: Kopf, Baustein, Preis, Schild, Unterzeile, Knopf und je Zeile eine Rasterzeile. */
.kt .kt-plans.kt-plans--facts, .plans.plans--facts { grid-template-rows: repeat(var(--plan-rows, 14), auto); }
.kt .kt-plans--facts .kt-plan, .plans--facts .plancard { grid-row: span var(--plan-rows, 14); }

/* Bewegung beim Erscheinen (plan-facts.js): Säulen wachsen, die Zahl zählt; ohne Skript steht alles fertig da. */
.pfx.is-pre .pfx__pf s { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) { .pfx__pf s { transition: none; } }

@media (max-width: 1080px) {
    .kt .kt-plans.kt-plans--facts { grid-template-rows: none; }
    .kt .kt-plans--facts .kt-plan { grid-row: auto; }
    .kt-plans--facts .pfx-rows { grid-row: auto; grid-template-rows: none; }
}
@media (max-width: 900px) {
    .plans.plans--facts { grid-template-rows: none; }
    .plans--facts .plancard { grid-row: auto; }
    .plans--facts .pfx-rows { grid-row: auto; grid-template-rows: none; }
}

/* „Pakete im Vergleich“ (06.11.2026): große Tageszahl im Kopf, Zeichen an den Gruppen, Stufen als Felder. */
:is(.cmp__big, .kt-cmp__big) { display: block; margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
:is(.cmp__gi, .kt-cmp__gi) { width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:is(.cmp__modes, .kt-cmp__modes) { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
:is(.cmp__modes, .kt-cmp__modes) > span { padding: 2px 6px; border: 1px solid color-mix(in srgb, var(--pfx-brand) 55%, transparent); border-radius: 4px; color: var(--kt-link, var(--link, #0f6fd6)); font-size: 0.75rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
/* Gruppen als eigene Bänder wie im abgenommenen Entwurf: hellblau getönt, Titel in Linkfarbe, Linie zur ersten Zeile. */
.cmp__table tbody tr.cmp__grp { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--blue) 5%, var(--paper)); }
.kt .kt-cmp__table tbody tr.kt-cmp__grp { border-top: 1px solid var(--kt-line); background: color-mix(in srgb, var(--kt-blue) 5%, var(--kt-paper)); }
.cmp__table tbody tr.cmp__grp th, .kt .kt-cmp__table tbody tr.kt-cmp__grp th { display: flex; align-items: center; padding-top: 13px; padding-bottom: 11px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.cmp__table tbody tr.cmp__grp th { color: var(--link); }
.kt .kt-cmp__table tbody tr.kt-cmp__grp th { color: var(--kt-link); }
.cmp__table tbody tr.cmp__grp + tr { border-top: 1px solid var(--line); }
.kt .kt-cmp__table tbody tr.kt-cmp__grp + tr { border-top: 1px solid var(--kt-line); }
@media (hover: hover) {
    .cmp__table tbody tr.cmp__grp:hover { background: color-mix(in srgb, var(--blue) 5%, var(--paper)); }
    .kt .kt-cmp__table tbody tr.kt-cmp__grp:hover { background: color-mix(in srgb, var(--kt-blue) 5%, var(--kt-paper)); }
}
:is(.cmp__modes, .kt-cmp__modes) > span.is-off { border-style: dashed; border-color: color-mix(in srgb, var(--kt-muted, var(--muted, #43587a)) 40%, transparent); color: color-mix(in srgb, var(--kt-muted, var(--muted, #43587a)) 70%, transparent); font-weight: 500; }
