/* =====================================================================
   Web-Studio – Preiskarten (Stil "Pricing"):
   mittlere Karte hervorgehoben und angehoben, Seitenkarten kleiner und
   leicht nach innen geneigt, Federbewegung beim Einblenden, Preis zaehlt
   hoch (js/studio-pricing.js). Ohne JS / mit "Bewegung reduzieren" ist
   alles sofort im Endzustand sichtbar. RTL wird gespiegelt.
   ===================================================================== */

.st .pk.pk-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding-top: 26px;
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
    box-shadow: none !important;
    transform: none !important;
    background: none;
}

.pk-v2 .pk-card {
    --dir: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px 22px 22px;
    margin-top: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 36px rgba(15, 23, 42, .07);
    transform-style: preserve-3d;
    transition: transform 1.25s cubic-bezier(.2, 1.3, .35, 1) .3s, opacity .5s ease .3s, box-shadow .25s ease, border-color .25s ease;
    z-index: 1;
}
html[dir="rtl"] .pk-v2 .pk-card { --dir: -1; }
.pk-v2 .pk-card:hover { box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 26px 60px rgba(15, 23, 42, .12); border-color: var(--ac-line); }

.pk-v2 .pk-card.featured {
    margin-top: 0;
    border: 2px solid var(--ac);
    z-index: 3;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 30px 70px color-mix(in srgb, var(--ac) 24%, transparent);
}

/* Abzeichen oben in der Ecke (wie im Vorbild), mit Stern */
.pk-v2 .pk-badge {
    position: absolute;
    top: -1px;
    inset-inline-end: -1px;
    left: auto;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--ac);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 0;
    border-start-end-radius: 18px;
    border-end-start-radius: 14px;
}
html[dir="rtl"] .pk-v2 .pk-badge { right: auto; }

.pk-v2 .pk-name {
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pk-v2 .pk-price {
    margin: 20px 0 2px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    line-height: 1.1;
}
.pk-v2 .pk-from { color: var(--muted); font-size: .85rem; font-weight: 600; }
.pk-v2 .pk-amt {
    font-size: clamp(1.7rem, 1rem + 1.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pk-v2 .pk-unit { color: var(--muted); font-size: .9rem; font-weight: 700; }
.pk-v2 .pk-na { font-weight: 800; font-size: 1.4rem; color: var(--ink2); }
.pk-v2 .pk-period { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }

.pk-v2 .pk-feat { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 9px; text-align: start; }
.pk-v2 .pk-feat li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; color: var(--ink2); line-height: 1.6; }
.pk-v2 .pk-feat li::before { content: none; }
.pk-v2 .pk-feat svg { flex: none; margin-top: .3em; color: var(--ac); }

.pk-v2 .pk-hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.pk-v2 .pk-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink) !important;
    font-weight: 800;
    font-size: 1.02rem;
    text-decoration: none !important;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pk-v2 .pk-btn:hover,
.pk-v2 .pk-btn:focus-visible {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ac);
}
.pk-v2 .featured .pk-btn { background: var(--ac); border-color: var(--ac); color: #fff !important; box-shadow: 0 8px 20px color-mix(in srgb, var(--ac) 30%, transparent); }
.pk-v2 .featured .pk-btn:hover { background: var(--ac-ink); }

.pk-v2 .pk-desc { margin: 16px 0 0; font-size: .8rem; line-height: 1.7; color: var(--muted); }
.pk-v2 .pk-more { margin: 14px 0 0; text-align: start; }

/* ---- Desktop: 3D-Anordnung (Endzustand) ---- */
@media (min-width: 1021px) {
    /* Seitenkarten gerade (ohne Neigung), nur die mittlere Karte ist angehoben */
    .pk-v2 .pk-card.pos-start, .pk-v2 .pk-card.pos-end { transform: none; }
    .pk-v2 .pk-card.pos-mid, .pk-v2 .pk-card.pos-flat { transform: translateY(0); }
    .pk-v2 .pk-card.pos-flat { margin-top: 26px; }
    .pk-v2 .pk-card.pos-mid.featured { transform: translateY(-20px); }
    /* 6-Spalten-Raster: jede Karte 2 Spalten breit; eine unvollstaendige letzte Reihe wird mittig gesetzt */
    .st .pk.pk-v2 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .pk-v2 .pk-card { grid-column: span 2; }
    .pk-v2 .pk-card.shift1 { grid-column: 2 / span 2; }
    .pk-v2 .pk-card.shift2 { grid-column: 3 / span 2; }
}

/* ---- Startzustand vor dem Einblenden (nur mit JS, siehe studio-pricing.js) ---- */
.pk-v2[data-anim] .pk-card:not(.in) { transform: translateY(50px); opacity: 0; }

/* ---- Tablet / Handy: flach, untereinander ---- */
@media (max-width: 1020px) {
    .st .pk.pk-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 10px; }
    .pk-v2 .pk-card, .pk-v2 .pk-card.featured { margin-top: 0; }
}
@media (max-width: 720px) {
    .st .pk.pk-v2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pk-v2 .pk-card { transition: box-shadow .25s ease, border-color .25s ease !important; }
}
