/* ============================================================
   Skills Tag Grid – Block Styles
   Block: kss/skills-tag-grid
   ============================================================ */

/* ── Block-Wrapper (kein Hintergrund – wird über Container-Block gesetzt) ── */
.kss-skills-tag-grid {
    padding-block: clamp(2rem, 4vw, 4rem);
    background: transparent;
}

/* ── Inneres Grid ─────────────────────────────────────────── */
.kss-stg__inner {
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(var(--stg-cols, 2), 1fr);
    max-width: 100%;
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* ── Karte ────────────────────────────────────────────────── */
.kss-stg__card {
    border-radius: 16px;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kss-stg__card:hover {
    transform: translateY(-3px);
}

/* ── Hintergrund-Varianten ────────────────────────────────── */

/* Transparent mit leichtem Blur (Glassmorphism) */
.kss-stg__card--bg-transparent-blur {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.kss-stg__card--bg-transparent-blur:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.22);
}

/* Dunkel */
.kss-stg__card--bg-dark {
    background: rgba(12, 15, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.kss-stg__card--bg-dark:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4);
}

/* Hell / Frosted Light */
.kss-stg__card--bg-light {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.kss-stg__card--bg-light:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Weiß */
.kss-stg__card--bg-white {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.kss-stg__card--bg-white:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

/* ── Kartenüberschrift ────────────────────────────────────── */
.kss-stg__card-title {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: inherit;
}

/* Textfarbe je nach Hintergrund */
.kss-stg__card--bg-transparent-blur .kss-stg__card-title,
.kss-stg__card--bg-dark .kss-stg__card-title {
    color: #f0f2f8;
}

.kss-stg__card--bg-light .kss-stg__card-title,
.kss-stg__card--bg-white .kss-stg__card-title {
    color: #111827;
}

/* ── Tag-Bereich ──────────────────────────────────────────── */
.kss-stg__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Basis-Tag-Pill ───────────────────────────────────────── */
.kss-stg__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28em 0.78em;
    border-radius: 999px;
    font-size: clamp(0.72rem, 1vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
    border: 1px solid currentColor;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: default;
    white-space: nowrap;
}

.kss-stg__tag:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

/* ── Tag-Farb-Varianten ───────────────────────────────────── */

/* Blau */
.kss-stg__tag--blue {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.45);
}

/* Grün */
.kss-stg__tag--green {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.45);
}

/* Pink */
.kss-stg__tag--pink {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
    border-color: rgba(244, 114, 182, 0.45);
}

/* Orange */
.kss-stg__tag--orange {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.45);
}

/* Lila */
.kss-stg__tag--purple {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.45);
}

/* Cyan */
.kss-stg__tag--cyan {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.45);
}

/* Gelb */
.kss-stg__tag--yellow {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.45);
}

/* Teal */
.kss-stg__tag--teal {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.45);
}

/* ── Anpassung für helle Karten ───────────────────────────── */
.kss-stg__card--bg-light .kss-stg__tag--blue,
.kss-stg__card--bg-white .kss-stg__tag--blue {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.35);
}

.kss-stg__card--bg-light .kss-stg__tag--green,
.kss-stg__card--bg-white .kss-stg__tag--green {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.35);
}

.kss-stg__card--bg-light .kss-stg__tag--pink,
.kss-stg__card--bg-white .kss-stg__tag--pink {
    color: #db2777;
    background: rgba(219, 39, 119, 0.08);
    border-color: rgba(219, 39, 119, 0.35);
}

.kss-stg__card--bg-light .kss-stg__tag--orange,
.kss-stg__card--bg-white .kss-stg__tag--orange {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
    border-color: rgba(234, 88, 12, 0.35);
}

.kss-stg__card--bg-light .kss-stg__tag--purple,
.kss-stg__card--bg-white .kss-stg__tag--purple {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.35);
}

.kss-stg__card--bg-light .kss-stg__tag--cyan,
.kss-stg__card--bg-white .kss-stg__tag--cyan {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.35);
}

.kss-stg__card--bg-light .kss-stg__tag--yellow,
.kss-stg__card--bg-white .kss-stg__tag--yellow {
    color: #d97706;
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.35);
}

.kss-stg__card--bg-light .kss-stg__tag--teal,
.kss-stg__card--bg-white .kss-stg__tag--teal {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.35);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .kss-stg__inner {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .kss-stg__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .kss-stg__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
