.category-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.category-hero {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    text-align: center;
    padding: 0;
    margin-bottom: 80px;
    border-radius: 20px;
    box-shadow: 0 12px 48px var(--shadow-color-2xl);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-image-wrapper {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.category-hero-image {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.category-hero-overlay {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.category-hero:hover .category-hero-image {
    transform: scale(1.02);
}

.category-hero-text-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    max-width: 1200px;
    margin: -50px auto 80px auto;
    padding: 0;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.category-hero-text-wrapper {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-complementary-light) 50%, var(--color-primary-light) 100%);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.15), 0 8px 24px rgba(58, 196, 176, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 0;
    border: 2px solid rgba(196, 30, 58, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-hero-text-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-complementary) 50%, var(--color-primary) 100%);
    opacity: 1;
}

.category-hero-text-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.category-hero-text-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(196, 30, 58, 0.2), 0 12px 32px rgba(58, 196, 176, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(196, 30, 58, 0.3);
}

.category-hero-text {
    font-family: var(--font-family-primary);
    color: var(--color-text);
    font-size: 1.4rem;
    max-width: 100%;
    margin: 0;
    line-height: 1.75;
    text-align: center;
    padding: 60px 70px;
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.category-header {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    text-align: center;
    padding: 60px 0 40px 0;
    margin-bottom: 60px;
}

.category-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-blogpost-hero-title);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--color-text);
}

.category-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-blogpost-hero-excerpt);
    line-height: var(--line-height-blogpost-hero-excerpt);
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.category-blogposts {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    width: 100%;
}

.category-no-blogposts {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

/* 3-Spalten Grid für Blogposts */
.blogposts-grid {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    align-items: stretch;
}

.blogpost-card-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    min-width: 0;
}

.blogpost-card {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-background);
    box-shadow: 0 4px 20px var(--shadow-color-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

.blogpost-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--overlay-gradient-end) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.blogpost-card:hover::before {
    opacity: 1;
}

.blogpost-card-image-wrapper {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 Aspect Ratio (quadratisch) */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-background-alt);
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
}

.blogpost-card-image {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blogpost-card:hover .blogpost-card-image {
    transform: scale(1.08);
}

.blogpost-card-image-placeholder {
    font-family: var(--font-family-primary);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-alt);
    color: var(--color-text-tertiary);
    font-size: var(--font-size-author);
}

.blogpost-card-content-wrapper {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.blogpost-card-title {
    font-family: var(--font-family-primary);
    padding-top: 30px;
    margin-bottom: 18px;
    color: var(--color-text);
    font-size: var(--font-size-blogpost-card-title);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    letter-spacing: -0.01em;
    min-height: 3.9em;
    max-height: 3.9em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogpost-card-excerpt {
    font-family: var(--font-family-primary);
    color: var(--color-text-secondary);
    line-height: var(--line-height-blogpost-card-excerpt);
    margin-bottom: 25px;
    font-size: var(--font-size-blogpost-card-excerpt);
    min-height: 5.1em;
    max-height: 5.1em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogpost-card-meta {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.blogpost-card-author-info {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: 10px;
}

.blogpost-card-author-photo {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 4px var(--shadow-color-lg);
}

.blogpost-card-author {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    font-size: var(--font-size-author);
}

.blogpost-card-date {
    font-family: var(--font-family-primary);
    color: var(--color-text-tertiary);
    font-size: var(--font-size-date);
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .category-container {
        padding: 0 15px;
    }
    
    .category-hero {
        min-height: 350px;
        margin-bottom: 40px;
        border-radius: 12px;
    }
    
    .category-hero-text-container {
        margin: -30px auto 40px auto;
        padding: 0 15px;
        width: 100%;
    }
    
    .category-hero-text-wrapper {
        border-radius: 24px;
        border-width: 1.5px;
    }
    
    .category-hero-text-wrapper::before {
        height: 3px;
    }
    
    .category-hero-text {
        font-size: var(--font-size-large);
        padding: 40px 30px;
        line-height: 1.65;
        letter-spacing: 0.015em;
    }
    
    .category-header {
        padding: 40px 0 30px 0;
        margin-bottom: 40px;
    }
    
    .category-title {
        font-size: var(--font-size-h2);
    }
    
    .blogposts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Text-Inhalte in Blogpost-Cards: max 20px Padding links/rechts */
    .blogpost-card-content-wrapper {
        padding: 0 20px;
    }
    
    .blogpost-card-title {
        padding-top: 25px;
        font-size: var(--font-size-h4);
        margin-bottom: 12px;
    }
    
    .blogpost-card-excerpt {
        font-size: var(--font-size-small);
        margin-bottom: 20px;
    }
    
    .blogpost-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 20px;
    }
    
    .blogpost-card-author-info {
        width: 100%;
    }
}

/* Tablet/iPad (600px–768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .category-container {
        padding: 0 20px;
    }
    
    .category-hero {
        min-height: 400px;
        margin-bottom: 50px;
        border-radius: 12px;
    }
    
    .category-hero-text-container {
        margin: -40px auto 60px auto;
        padding: 0 20px;
    }
    
    .category-hero-text-wrapper {
        border-radius: 28px;
        border-width: 1.5px;
    }
    
    .category-hero-text-wrapper::before {
        height: 3.5px;
    }
    
    .category-hero-text {
        font-size: 1.25rem;
        padding: 50px 40px;
        line-height: 1.7;
    }
    
    .blogposts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Text-Inhalte in Blogpost-Cards: max 20px Padding links/rechts */
    .blogpost-card-content-wrapper {
        padding: 0 20px;
    }
    
    .blogpost-card-title {
        padding-top: 25px;
        font-size: var(--font-size-h4);
    }
    
    .blogpost-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 20px;
    }
    
    .blogpost-card-author-info {
        width: 100%;
    }
}

/* Kleiner Desktop/13-Zoll (1024px–1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .blogposts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .blogposts-grid {
        gap: 10px;
    }
}

.category-pagination {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.category-pagination-info {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    color: var(--color-text);
}

.category-pagination-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
}
