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

/* Überschreibe das obere Padding vom main-content für die Home-Seite */
.main-content {
    padding-top: 10px;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.home-hero {
    text-align: center;
    padding: 0;
    margin-bottom: 80px;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/hero-grandparents.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.6s ease;
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.7) 0%, rgba(26, 31, 46, 0.6) 100%);
    z-index: 2;
}

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

.home-hero-content {
    position: relative;
    z-index: 3;
    padding: 150px 40px 100px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.home-hero-title {
    color: #FFFFFF;
    margin-bottom: 25px;
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.home-hero-description {
    color: #FFFFFF;
    font-size: 1.35rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.home-blogposts {
    margin-bottom: 80px;
}

.home-blogposts-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
    font-size: 2.75rem;
    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 {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blogpost-hero {
    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 rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blogpost-hero:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

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

.blogpost-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-alt);
    color: var(--color-text-tertiary);
    font-size: 1.2rem;
}

.blogpost-hero-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blogpost-hero-title {
    font-size: 2.5rem;
    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-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogpost-hero-meta {
    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 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blogpost-hero-author-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

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

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

/* 3-Spalten Grid für restliche Blogposts */
.blogposts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin: 0;
    align-items: stretch;
}

.blogpost-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
    width: 100%;
}

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

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

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

.blogpost-card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-background-alt);
    position: relative;
}

.blogpost-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-alt);
    color: var(--color-text-tertiary);
    font-size: 1rem;
}

.blogpost-card-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.blogpost-card-title {
    padding-top: 30px;
    margin-bottom: 18px;
    color: var(--color-text);
    font-size: 1.4rem;
    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 {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
    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 rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.blogpost-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-background-alt);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.blogpost-card-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blogpost-card-author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

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

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

@media (max-width: 1400px) {
    .home-container {
        padding: 0 30px;
    }
}

@media (max-width: 1200px) {
    .blogposts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .blogpost-hero {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .blogpost-hero-image-wrapper {
        min-height: 350px;
    }
    
    .blogpost-hero-content {
        padding: 40px 35px;
    }
}

@media (max-width: 1024px) {
    .home-container {
        padding: 0 25px;
    }
    
    .blogposts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .home-container {
        padding: 0 20px;
    }
    
    .home-hero {
        min-height: 400px;
        margin-bottom: 50px;
        border-radius: 12px;
    }
    
    .home-hero-content {
        padding: 100px 25px 60px 25px;
    }
    
    .home-hero-title {
        font-size: 2rem;
    }
    
    .home-hero-description {
        font-size: 1.1rem;
    }
    
    .home-blogposts-title {
        font-size: 2rem;
        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: 1.75rem;
    }
    
    .blogpost-hero-excerpt {
        font-size: 1rem;
    }
    
    .blogposts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blogpost-card-image-wrapper {
        height: 200px;
    }
    
    .blogpost-card-content-wrapper {
        padding: 0 25px;
    }
    
    .blogpost-card-title {
        padding-top: 25px;
        font-size: 1.3rem;
    }
    
    .blogpost-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 25px;
    }
    
    .blogpost-card-author-info {
        width: 100%;
    }
    
    .blogpost-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .home-hero {
        min-height: 350px;
    }
    
    .home-hero-content {
        padding: 80px 20px 50px 20px;
    }
    
    .home-hero-title {
        font-size: 1.75rem;
    }
    
    .home-blogposts-title {
        font-size: 1.75rem;
    }
    
    .blogpost-hero-image-wrapper {
        min-height: 200px;
    }
    
    .blogpost-hero-title {
        font-size: 1.5rem;
    }
    
    .blogpost-card-image-wrapper {
        height: 180px;
    }
}
