/* Styles for Bento Grid Portfolio */

.bento-portfolio-wrapper-f09a17f0 {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    /* Macht die eigene Breite als Referenzgröße für die Kinder verfügbar (cqw) */
    container-type: inline-size;
}

/* Category Filter Tabs */
.bento-filters-f09a17f0 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.bento-filter-btn-f09a17f0 {
    background: #f4f4f6;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #2b2b2b;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-filter-btn-f09a17f0:hover,
.bento-filter-btn-f09a17f0.active {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* CSS Grid: Zeilenhöhe wird aus der aktuellen Spaltenbreite berechnet,
   dadurch bleiben 1x1 Kacheln quadratisch, egal wie breit das Widget ist. */
.bento-grid-f09a17f0 {
    --bento-gap-f09a17f0: 16px;
    --bento-cols-f09a17f0: 4;
    display: grid;
    grid-template-columns: repeat(var(--bento-cols-f09a17f0), 1fr);
    grid-auto-rows: calc(
        (100cqw - (var(--bento-cols-f09a17f0) - 1) * var(--bento-gap-f09a17f0)) / var(--bento-cols-f09a17f0)
    );
    gap: var(--bento-gap-f09a17f0);
}

/* Bento Card Base */
.bento-card-f09a17f0 {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: #2c2c2c;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    z-index: 1;
}

/* Hover effects */
.bento-card-f09a17f0:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    z-index: 10;
}

/* Image zoom & Lazy-load transition */
.bento-bg-f09a17f0 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-in-out;
}

.lazy-bento-bg-f09a17f0 {
    opacity: 0;
}

.lazy-bento-bg-f09a17f0.loaded-f09a17f0 {
    opacity: 1;
}

.bento-card-f09a17f0:hover .bento-bg-f09a17f0 {
    transform: scale(1.08);
}

/* Overlay Styling */
.overlay-f09a17f0 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background-image 0.4s ease;
}

.bento-card-f09a17f0:hover .overlay-f09a17f0 {
    background-image: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, var(--bento-hover-gradient-end-f09a17f0, rgba(0,0,0,0.7)) 100%) !important;
}

/* Card Content Container */
.card-content-f09a17f0 {
    position: relative;
    z-index: 3;
    padding: 24px;
    box-sizing: border-box;
    width: 100%;
    color: #ffffff;
}

/* Categories tags */
.tag-f09a17f0 {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

/* Title Settings */
.title-f09a17f0 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

/* Meta info details */
.meta-row-f09a17f0 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
}

.meta-item-f09a17f0 {
    opacity: 0.85;
}

/* Excerpt / description */
.description-f09a17f0 {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
    display: none; /* Only visible on larger grid blocks */
}

/* Bento size: die Spannweite kommt aus Inline-Variablen pro Karte (siehe render()),
   dadurch sind beliebige Kombinationen wie 4x2 möglich, unabhängig pro Gerät. */
.bento-card-f09a17f0 {
    grid-column: span var(--cols-desktop, 1);
    grid-row: span var(--rows-desktop, 1);
}

/* Beschreibung nur zeigen, wenn die Karte genug Fläche hat (Desktop-Größe) */
.bento-card-f09a17f0.has-space-f09a17f0 .description-f09a17f0 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filtering animation class transitions */
.bento-card-f09a17f0.bento-hidden-f09a17f0 {
    opacity: 0;
    transform: scale(0.85) translate3d(0, 15px, 0);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Responsive Grid Setup: Spaltenzahl und Kartenspannen wechseln pro Breakpoint,
   die Zeilenhöhe wird oben automatisch passend zur Spaltenbreite mitberechnet */
@media (max-width: 1024px) {
    .bento-grid-f09a17f0 {
        --bento-cols-f09a17f0: var(--bento-cols-tablet-f09a17f0, 2);
    }

    .bento-card-f09a17f0 {
        grid-column: span var(--cols-tablet, 1);
        grid-row: span var(--rows-tablet, 1);
    }
}

@media (max-width: 767px) {
    .bento-grid-f09a17f0 {
        --bento-cols-f09a17f0: var(--bento-cols-mobile-f09a17f0, 1);
    }

    .bento-card-f09a17f0 {
        grid-column: span var(--cols-mobile, 1);
        grid-row: span var(--rows-mobile, 1);
    }

    .description-f09a17f0 {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Fallback für sehr alte Browser ohne Container Query Units */
@supports not (container-type: inline-size) {
    .bento-grid-f09a17f0 {
        grid-auto-rows: 240px;
    }
}