.smart-post-kacheln {
    --spk-surface: rgba(9, 28, 48, 0.84);
    --spk-surface-hover: rgba(13, 39, 64, 0.96);
    --spk-surface-soft: rgba(255, 255, 255, 0.045);
    --spk-text: #f7fbff;
    --spk-muted: rgba(225, 235, 245, 0.72);
    --spk-accent: var(--wp--preset--color--accent-1, #32e875);
    --spk-border: rgba(120, 185, 220, 0.24);
    --spk-border-hover: color-mix(in srgb, var(--spk-accent) 55%, transparent);
    --spk-radius: 22px;
    --spk-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    width: 100%;
}

.smart-post-kacheln__category {
    min-width: 0;
}

.smart-post-kacheln__category-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.smart-post-kacheln__category-title {
    margin: 0;
    color: var(--spk-text);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.15;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.smart-post-kacheln__category-link {
    flex: 0 0 auto;
    color: var(--spk-accent);
    font-weight: 700;
    text-decoration: none;
}

.smart-post-kacheln__category-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.smart-post-kacheln__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.smart-post-kacheln--columns-2 .smart-post-kacheln__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-post-kachel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--spk-border);
    border-radius: var(--spk-radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), transparent 42%),
        var(--spk-surface);
    box-shadow: var(--spk-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.smart-post-kachel:hover {
    transform: translateY(-4px);
    border-color: var(--spk-border-hover);
    background-color: var(--spk-surface-hover);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.smart-post-kachel__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--spk-surface-soft);
}

.smart-post-kachel__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    content: "";
    pointer-events: none;
    background: linear-gradient(to top, rgba(5, 17, 31, 0.52), transparent);
}

.smart-post-kachel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease, filter 250ms ease;
}

.smart-post-kachel:hover .smart-post-kachel__image {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.03);
}

.smart-post-kachel__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--spk-accent) 26%, transparent), transparent 35%),
        linear-gradient(135deg, #0b2139, #103654 55%, #0e4c55);
}

.smart-post-kachel__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1rem, 2vw, 1.35rem);
}

.smart-post-kachel__meta {
    margin-bottom: 0.55rem;
    color: var(--spk-muted);
    font-size: 0.82rem;
}

.smart-post-kachel__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.3;
}

.smart-post-kachel__title a {
    color: var(--spk-text);
    text-decoration: none;
}

.smart-post-kachel__title a:hover {
    color: var(--spk-accent);
}

.smart-post-kachel__excerpt {
    color: var(--spk-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.smart-post-kachel__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--spk-accent);
    font-weight: 750;
    text-decoration: none;
}

.smart-post-kachel__more span {
    transition: transform 180ms ease;
}

.smart-post-kachel__more:hover span {
    transform: translateX(3px);
}

.smart-post-kacheln__notice {
    padding: 1rem 1.25rem;
    border: 1px solid var(--spk-border);
    border-radius: 14px;
    color: var(--spk-text);
    background: var(--spk-surface);
}

@media (max-width: 1024px) {
    .smart-post-kacheln__grid,
    .smart-post-kacheln--columns-3 .smart-post-kacheln__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .smart-post-kacheln__category-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .smart-post-kacheln__grid,
    .smart-post-kacheln--columns-2 .smart-post-kacheln__grid,
    .smart-post-kacheln--columns-3 .smart-post-kacheln__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smart-post-kachel,
    .smart-post-kachel__image,
    .smart-post-kachel__more span {
        transition: none;
    }
}

/* Kompakte Startseiten-Anzeige: [smart_blog_aktuell] */
.smart-blog-aktuell {
    --sba-surface: rgba(10, 31, 51, 0.72);
    --sba-surface-hover: rgba(15, 46, 72, 0.96);
    --sba-text: #f7fbff;
    --sba-muted: rgba(222, 235, 245, 0.68);
    --sba-accent: var(--wp--preset--color--accent-1, #32e875);
    --sba-border: rgba(130, 190, 220, 0.21);
    width: 100%;
    padding: clamp(1.1rem, 2.2vw, 1.55rem);
    border: 1px solid var(--sba-border);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.035), transparent 48%), var(--sba-surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.smart-blog-aktuell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.smart-blog-aktuell__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--sba-accent);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smart-blog-aktuell__eyebrow > span {
    width: .58rem;
    height: .58rem;
    border-radius: 50%;
    background: var(--sba-accent);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--sba-accent) 14%, transparent), 0 0 16px color-mix(in srgb, var(--sba-accent) 75%, transparent);
}

.smart-blog-aktuell__all {
    color: var(--sba-accent);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.smart-blog-aktuell__all:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.smart-blog-aktuell__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.smart-blog-aktuell--columns-2 .smart-blog-aktuell__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-blog-aktuell__item {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--sba-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.smart-blog-aktuell__item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--sba-accent) 48%, transparent);
    background: var(--sba-surface-hover);
    box-shadow: 0 13px 28px rgba(0,0,0,.2);
}

.smart-blog-aktuell__link {
    position: relative;
    display: flex;
    min-height: 118px;
    flex-direction: column;
    padding: 1rem 2.7rem 1rem 1rem;
    color: var(--sba-text);
    text-decoration: none;
}

.smart-blog-aktuell__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .7rem;
    margin-bottom: .52rem;
    color: var(--sba-muted);
    font-size: .76rem;
}

.smart-blog-aktuell__category {
    color: var(--sba-accent);
    font-weight: 750;
}

.smart-blog-aktuell__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0;
    color: var(--sba-text);
    font-size: clamp(.98rem, 1.25vw, 1.13rem);
    line-height: 1.35;
}

.smart-blog-aktuell__arrow {
    position: absolute;
    right: 1rem;
    bottom: .95rem;
    color: var(--sba-accent);
    font-size: 1.15rem;
    transition: transform 180ms ease;
}

.smart-blog-aktuell__item:hover .smart-blog-aktuell__arrow {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .smart-blog-aktuell__grid,
    .smart-blog-aktuell--columns-3 .smart-blog-aktuell__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .smart-blog-aktuell {
        padding: 1rem;
        border-radius: 18px;
    }

    .smart-blog-aktuell__head {
        align-items: flex-start;
    }

    .smart-blog-aktuell__grid,
    .smart-blog-aktuell--columns-2 .smart-blog-aktuell__grid,
    .smart-blog-aktuell--columns-3 .smart-blog-aktuell__grid {
        grid-template-columns: 1fr;
    }

    .smart-blog-aktuell__link {
        min-height: 102px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smart-blog-aktuell__item,
    .smart-blog-aktuell__arrow {
        transition: none;
    }
}
