/* ═══════════════════════════════════════════════════════════════
   Layout – Row & Col
   ═══════════════════════════════════════════════════════════════ */

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.col {
    width: 100%;
    padding:16px;
    box-sizing: border-box;
}

@media (min-width: 800px) {
    .medium-6 {
        width:50%;
        flex-basis:50%;
    }
}

@media (min-width: 1200px) {
    .giant-4 {
        width:calc(100% / 3);
        flex-basis:calc(100% / 3);
    }
}


/* ═══════════════════════════════════════════════════════════════
   Card
   ═══════════════════════════════════════════════════════════════ */

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
}


/* ── Thumbnail ──────────────────────────────────────────────── */

.card__thumbnail {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.card__thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.card:hover .card__thumbnail img {
    transform: scale(1.04);
}


/* ── Kategorie-Badges ───────────────────────────────────────── */

.card__categories {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1;
}

.card__category-link {
    text-decoration: none;
}

.card__category-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    transition: background .2s ease;
}

.card__category-link:hover .card__category-badge {
    background: #333;
}


/* ── Body ───────────────────────────────────────────────────── */

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    gap: 12px;
}


/* ── Titel ──────────────────────────────────────────────────── */

.card__title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.card__title a:hover {
    color: #555;
}


/* ── Excerpt ────────────────────────────────────────────────── */

.card__excerpt {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: #555;
    flex: 1; /* schiebt den Button nach unten */
}


/* ── Footer / Button ────────────────────────────────────────── */

.card__footer {
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s ease, color .2s ease;
}

.btn--primary {
    background: #000;
    color: #fff;
}

.btn--primary:hover {
    background: #333;
}

.btn--secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn--secondary:hover {
    background: #000;
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   Load More
   ═══════════════════════════════════════════════════════════════ */

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 16px;
}