/* ============================================================
   Typografie Demo – Block Styles
   Block: kss/typografie-demo
   ============================================================ */

/* ── Header ───────────────────────────────────────────────── */
.kss-typografie-demo__header {
    margin-block-end: clamp(1.75rem, 3.5vw, 2.5rem);
}

.kss-typografie-demo__heading {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #111;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.kss-typografie-demo__subheading {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* ── Zwei-Spalten-Grid ────────────────────────────────────── */
.kss-typografie-demo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
}

/* ── Karten (Basis) ───────────────────────────────────────── */
.kss-typografie-demo__card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* ── Linke Karte: Schrift-Showcase ───────────────────────── */
.kss-typografie-demo__font-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-block-end: 0.25rem;
}

.kss-typografie-demo__font-name {
    font-family: var(--tpd-font, sans-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #111;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.kss-typografie-demo__font-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 1.75rem;
    padding-block-end: 1.5rem;
    border-bottom: 1px solid #eee;
}

/* ── Schriftgrößen-Beispiele ──────────────────────────────── */
.kss-typografie-demo__samples {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.kss-typografie-demo__sample {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.kss-typografie-demo__size-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kss-typografie-demo__sample-text {
    font-family: var(--tpd-font, sans-serif);
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.kss-typografie-demo__sample-text--h1 {
    font-size: 3rem;
    font-weight: 700;
}

.kss-typografie-demo__sample-text--h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

.kss-typografie-demo__sample-text--h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.kss-typografie-demo__sample-text--body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #333;
}

.kss-typografie-demo__sample-text--small {
    font-size: 0.875rem;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
}

/* ── Rechte Karte: Richtlinien ────────────────────────────── */
.kss-typografie-demo__guidelines-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: #111;
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.kss-typografie-demo__guidelines-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kss-typografie-demo__guideline {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--tpd-accent, #F59E0B);
}

.kss-typografie-demo__guideline-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.kss-typografie-demo__guideline-desc {
    font-size: 0.825rem;
    color: #555;
    line-height: 1.55;
}

/* ── Beispiel-Card ────────────────────────────────────────── */
.kss-typografie-demo__example-card {
    background: linear-gradient(135deg, var(--tpd-grad-from, #F97316), var(--tpd-grad-to, #EA580C));
    border-radius: 12px;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    color: #ffffff;
    margin-block-start: 0.25rem;
}

.kss-typografie-demo__example-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    margin-block-end: 0.5rem;
}

.kss-typografie-demo__example-heading {
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.kss-typografie-demo__example-body {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.kss-typografie-demo__example-price {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.kss-typografie-demo__example-price-suffix {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.kss-typografie-demo__example-btn {
    display: inline-block;
    background: #ffffff;
    color: #111;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.kss-typografie-demo__example-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .kss-typografie-demo__grid {
        grid-template-columns: 1fr;
    }

    .kss-typografie-demo__sample-text--h1 {
        font-size: 2.25rem;
    }

    .kss-typografie-demo__sample-text--h2 {
        font-size: 1.75rem;
    }

    .kss-typografie-demo__sample-text--h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .kss-typografie-demo__card {
        padding: 1.25rem;
    }

    .kss-typografie-demo__sample-text--h1 {
        font-size: 1.9rem;
    }
}
