/* Home Page - News Portal Design basierend auf test.html */

/* Mobile-First: Basis-Styles gelten für mobile Geräte */
.home-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 18px 40px;
    background-color: #f4f6f8;
}

/* Grid System */
.grid {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: grid;
    gap: 18px;
}

/* Hero Section: 2-Spalten Grid */
.home-hero {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    grid-template-columns: 1fr;
    align-items: stretch;
}

.home-hero-featured {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.card {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.media {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    position: relative;
    min-height: 220px;
    background-color: #dbeafe;
}

.media img {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    font-family: var(--font-family-primary);
    font-size: 12px;
    line-height: var(--line-height-base);
    font-weight: 800;
    letter-spacing: 0.04em;
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background-color: #1f5aa6;
}

.badge--green {
    background-color: #2e8b57;
}

.badge--orange {
    background-color: #d97706;
}

.content {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 16px 16px 18px;
}

.kicker {
    font-family: var(--font-family-primary);
    font-size: 12px;
    line-height: var(--line-height-base);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 6px;
}

.title {
    font-family: var(--font-family-primary);
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    margin: 0 0 10px;
    color: #0f172a;
}

.excerpt {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: 1.45;
    margin: 0 0 12px;
    color: #334155;
}

.meta {
    font-family: var(--font-family-primary);
    font-size: 12px;
    line-height: var(--line-height-base);
    color: #64748b;
}

.btn {
    font-family: var(--font-family-primary);
    font-size: 13px;
    line-height: var(--line-height-base);
    font-weight: 800;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.btn--green {
    background-color: rgba(46, 139, 87, 0.12);
    color: #2e8b57;
    border-color: rgba(46, 139, 87, 0.22);
}

.btn--orange {
    background-color: rgba(217, 119, 6, 0.12);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.22);
}

.btn--blue {
    background-color: rgba(31, 90, 166, 0.12);
    color: #1f5aa6;
    border-color: rgba(31, 90, 166, 0.22);
}

.home-hero-right {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

/* Hero-Card Media: 4:3 Format für Jobs und Mittagstisch */
.home-hero-card-media {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 0;
    background-color: #dbeafe;
    overflow: hidden;
}

.home-hero-card-media img {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile .content {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 14px 16px 16px;
}

.tile .title {
    font-family: var(--font-family-primary);
    font-size: 22px;
    line-height: var(--line-height-base);
    font-weight: 900;
    margin-bottom: 12px;
}

/* Kachelreihe: 4 Cards */
.row4 {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.small .media {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    min-height: 140px;
}

.small .title {
    font-family: var(--font-family-primary);
    font-size: 18px;
    line-height: var(--line-height-base);
    font-weight: 900;
    margin: 0 0 8px;
}

.small .excerpt {
    display: none;
}

/* Unterer Bereich: 2-Spalten */
.sections {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    grid-template-columns: 1fr;
    margin-top: 18px;
    align-items: start;
}

.section__head {
    font-family: var(--font-family-primary);
    font-size: 22px;
    line-height: var(--line-height-base);
    font-weight: 900;
    padding: 16px 16px 0;
    color: #0f172a;
}

.section__body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 14px 16px 18px;
}

.jobs {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.job {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background-color: #ffffff;
}

.job__t {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: 900;
    margin: 0 0 6px;
    color: #0f172a;
}

.job__m {
    font-family: var(--font-family-primary);
    font-size: 13px;
    line-height: var(--line-height-base);
    color: #64748b;
    margin: 0 0 10px;
}

.list {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.li {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background-color: #ffffff;
}

.flag {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    flex: 0 0 auto;
    margin-top: 2px;
}

.flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.li__t {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: 900;
    margin: 0 0 4px;
    color: #0f172a;
}

.li__m {
    font-family: var(--font-family-primary);
    font-size: 13px;
    line-height: var(--line-height-base);
    color: #64748b;
    margin: 0;
}

.li__price {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: 900;
    margin-left: auto;
    white-space: nowrap;
    color: #0f172a;
}

.cta {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-top: 12px;
}

/* Mobile-First: Responsive Design - Regel 022: 4 Breakpoints */
/* Basis-Styles gelten für mobile (max-width: 576px) - keine Media Query erforderlich */

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .home-container {
        padding: 22px 20px 40px;
    }
}

/* Desktop (min-width: 980px) */
@media (min-width: 980px) {
    .home-hero {
        grid-template-columns: 2fr 1fr;
    }
    
    .home-hero-right {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
    }
    
    .row4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sections {
        grid-template-columns: 1.4fr 1fr;
    }
    
    .jobs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .row4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Anpassungen (max-width: 560px) */
@media (max-width: 560px) {
    .home-hero-right {
        grid-template-columns: 1fr;
    }
    
    .row4 {
        grid-template-columns: 1fr;
    }
    
    .jobs {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 24px;
    }
}
