/* =========================================
   Block: Webdesign für Kacheln (kss/webdesign-fuer-kacheln)
   ========================================= */

.kss-webdesign-kacheln {
    --wfk-amb: #F0A63B;
    --wfk-amb-t: rgba(240, 166, 59, .12);
    --wfk-ink: #14141A;
    --wfk-muted: rgba(23, 23, 28, .6);
    --wfk-border: rgba(23, 23, 28, .1);
    --wfk-cta: #B87A1E;

    overflow: hidden;
    padding: 5rem 1rem 6rem;
}

.kss-webdesign-kacheln__inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* --- Kopfbereich --- */

.kss-webdesign-kacheln__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.2rem;
}

.kss-webdesign-kacheln__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .78rem;
    color: var(--wfk-cta);
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 14px;
}

.kss-webdesign-kacheln__eyebrow::before,
.kss-webdesign-kacheln__eyebrow::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--wfk-cta);
}

.kss-webdesign-kacheln__heading {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    color: var(--wfk-ink);
    letter-spacing: -.015em;
    margin: 0 0 14px;
    line-height: 1.2;
}

.kss-webdesign-kacheln__subtext {
    color: var(--wfk-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0;
}

/* --- Grid --- */

.kss-webdesign-kacheln__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Karte --- */

.kss-webdesign-kacheln__card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wfk-border);
    border-radius: 18px;
    padding: 32px 26px 28px;
    text-decoration: none;
    display: block;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.kss-webdesign-kacheln__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px -24px rgba(20, 20, 26, .22);
    border-color: rgba(240, 166, 59, .5);
}

.kss-webdesign-kacheln__card-icon-bg {
    position: absolute;
    right: -14px;
    top: -14px;
    pointer-events: none;
}

.kss-webdesign-kacheln__card-icon-bg svg {
    display: block;
    width: 120px;
    height: 120px;
    color: var(--wfk-amb);
    opacity: .05;
}

.kss-webdesign-kacheln__icon-badge {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--wfk-amb-t);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.kss-webdesign-kacheln__icon-badge svg {
    width: 26px;
    height: 26px;
    color: var(--wfk-cta);
}

.kss-webdesign-kacheln__card-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wfk-ink);
    margin: 0 0 8px;
    line-height: 1.3;
}

.kss-webdesign-kacheln__card-text {
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
    color: var(--wfk-muted);
    line-height: 1.55;
    margin: 0 0 20px;
}

.kss-webdesign-kacheln__card-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wfk-cta);
    font-size: .8rem;
    font-weight: 700;
}

.kss-webdesign-kacheln__card-cta svg {
    width: 15px;
    height: 15px;
    transition: transform .3s ease;
}

.kss-webdesign-kacheln__card:hover .kss-webdesign-kacheln__card-cta svg {
    transform: translateX(3px);
}

/* --- "Mehr anzeigen" Ghostbutton (nur Mobile) --- */

.kss-webdesign-kacheln__more {
    display: none;
}

.kss-webdesign-kacheln__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--wfk-border);
    border-radius: 999px;
    padding: 12px 22px;
    color: var(--wfk-ink);
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.kss-webdesign-kacheln__more-btn:hover {
    background: var(--wfk-amb-t);
    border-color: rgba(240, 166, 59, .5);
    color: var(--wfk-cta);
}

.kss-webdesign-kacheln__more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform .3s ease;
}

.kss-webdesign-kacheln__more-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* --- Responsive --- */

@media (max-width: 1000px) {
    .kss-webdesign-kacheln__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kss-webdesign-kacheln {
        padding: 3.5rem 1rem 4.5rem;
    }

    .kss-webdesign-kacheln__grid {
        grid-template-columns: 1fr;
    }

    .kss-webdesign-kacheln__grid .kss-webdesign-kacheln__card:nth-child(n+4) {
        display: none;
    }

    .kss-webdesign-kacheln.is-expanded .kss-webdesign-kacheln__grid .kss-webdesign-kacheln__card:nth-child(n+4) {
        display: block;
    }

    .kss-webdesign-kacheln__more {
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }

    .kss-webdesign-kacheln.is-expanded .kss-webdesign-kacheln__more {
        display: none;
    }
}
