/* Home Page - Zeitungs-/Magazin-Layout */

/* Spezifische Klasse für Home-Seite - überschreibt nicht .main-content aus layout.css */
.home-main-content {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    padding-top: 10px;
}

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

.home-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;
}

.home-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;
    overflow: hidden;
    z-index: 1;
}

.home-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;
}

.home-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;
}

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

.home-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;
}

.home-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;
}

.home-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;
}

.home-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;
}

.home-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);
}

.home-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;
}

.home-blogposts {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    margin-bottom: 80px;
}

.home-blogposts-title {
    font-family: var(--font-family-primary);
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
    font-size: var(--font-size-blogposts-title);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
    position: relative;
    padding-bottom: 20px;
}

.home-blogposts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    border-radius: 2px;
}

/* Hero Blogpost (Featured Article) */
.blogpost-hero-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 1;
}

.blogpost-hero {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    background: var(--color-background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-color-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blogpost-hero:hover {
    box-shadow: 0 16px 48px var(--shadow-color-3xl);
    transform: translateY(-4px);
}

.blogpost-hero-image-wrapper {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: var(--color-background-alt);
    position: relative;
}

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

.blogpost-hero:hover .blogpost-hero-image {
    transform: scale(1.05);
}

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

.blogpost-hero-content {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blogpost-hero-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: 25px;
    color: var(--color-text);
}

.blogpost-hero-excerpt {
    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);
    margin-bottom: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

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

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

/* 3-Spalten Grid für restliche 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;
    position: relative;
    z-index: 1;
}

.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: 5px;
    position: relative;
    z-index: 2;
}

/* Title-Wrapper in Blogpost-Karten */
.home-blogposts [id^="blogpost-"][id$="-title-wrapper"] {
    padding: 0;
}

.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;
}

.home-blogposts h3.base-headline-h3-card {
    padding: 2px;
}

.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-excerpt:empty {
    min-height: 5.1em;
    max-height: 5.1em;
}

.blogpost-card:hover {
    box-shadow: 0 12px 40px var(--shadow-color-2xl);
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.blogpost-card-meta {
    font-family: var(--font-family-primary);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-background-alt);
    font-size: var(--font-size-meta);
    color: var(--color-text-secondary);
}

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

.blogpost-card-author-photo {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    width: 48px;
    height: 48px;
    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-small);
    order: 1;
}

.category-group-more-wrapper {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.category-group-more-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    display: inline-block;
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .home-container {
        padding: 0 15px;
    }
    
    .home-hero {
        min-height: 350px;
    }
    
    .home-hero-text-container {
        margin: -30px auto 40px auto;
        padding: 0 15px;
        width: 100%;
    }
    
    .home-hero-text-wrapper {
        border-radius: 24px;
        border-width: 1.5px;
    }
    
    .home-hero-text-wrapper::before {
        height: 3px;
    }
    
    .home-hero-text {
        font-size: var(--font-size-large);
        padding: 40px 30px;
        line-height: 1.65;
        letter-spacing: 0.015em;
    }
    
    .home-blogposts-title {
        font-size: var(--font-size-h3);
        margin-bottom: 30px;
    }
    
    .blogpost-hero {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 40px;
    }
    
    .blogpost-hero-image-wrapper {
        min-height: 200px;
        width: 100%;
    }
    
    .blogpost-hero-content {
        padding: 30px 20px;
    }
    
    .blogpost-hero-title {
        font-size: var(--font-size-h3);
        margin-bottom: 15px;
    }
    
    .blogpost-hero-excerpt {
        font-size: var(--font-size-base);
        margin-bottom: 20px;
    }
    
    .blogpost-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 20px;
    }
    
    /* Blogpost Grid: 1 Spalte auf Mobile */
    .blogposts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .blogpost-card-image-wrapper {
        padding-bottom: 100%; /* 1:1 Aspect Ratio (quadratisch) */
        aspect-ratio: 1 / 1;
        height: 0;
    }
    
    /* Text-Inhalte in Blogpost-Cards: max 20px Padding links/rechts */
    .blogpost-card-content-wrapper {
        padding: 5px;
    }
    
    .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: 5px;
    }
    
    .blogpost-card-author-info {
        width: 100%;
    }
}

/* Tablet/iPad (600px–768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .home-container {
        padding: 0 20px;
    }
    
    .home-hero {
        min-height: 400px;
        margin-bottom: 50px;
        border-radius: 12px;
    }
    
    .home-hero-text-container {
        margin: -40px auto 60px auto;
        padding: 0 20px;
    }
    
    .home-hero-text-wrapper {
        border-radius: 28px;
        border-width: 1.5px;
    }
    
    .home-hero-text-wrapper::before {
        height: 3.5px;
    }
    
    .home-hero-text {
        font-size: 1.25rem;
        padding: 50px 40px;
        line-height: 1.7;
    }
    
    .home-blogposts-title {
        font-size: var(--font-size-h2);
        margin-bottom: 40px;
    }
    
    .blogpost-hero {
        margin-bottom: 50px;
        border-radius: 12px;
    }
    
    .blogpost-hero-image-wrapper {
        min-height: 250px;
    }
    
    .blogpost-hero-content {
        padding: 30px 25px;
    }
    
    .blogpost-hero-title {
        font-size: var(--font-size-h3);
    }
    
    .blogpost-hero-excerpt {
        font-size: var(--font-size-author);
    }
    
    .blogposts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .blogpost-card-image-wrapper {
        padding-bottom: 100%; /* 1:1 Aspect Ratio (quadratisch) */
        aspect-ratio: 1 / 1;
        height: 0;
    }
    
    .blogpost-card-content-wrapper {
        padding: 5px;
    }
    
    .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: 5px;
    }
    
    .blogpost-card-author-info {
        width: 100%;
    }
    
    .blogpost-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Kleiner Desktop/13-Zoll (1024px–1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .home-container {
        padding: 0 30px;
    }
    
    .blogposts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .blogpost-hero {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .blogpost-hero-image-wrapper {
        min-height: 350px;
    }
    
    .blogpost-hero-content {
        padding: 40px 35px;
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .home-container {
        padding: 0 50px;
    }
    
    .blogposts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .home-hero {
        min-height: 700px;
    }
    
    .blogpost-hero-content {
        padding: 70px 60px;
    }
}
