/* C:\Users\irina\Documents\001Schwanden2027\schwanden2027\public\css\pages\home.css */

/*HOME*/
.home-hero {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
}

.home-hero-media-wrap,
.home-hero-media {
    position: absolute;
    inset: 0;
}

.home-hero-media {
    will-change: transform;
    transform-origin: center top;
    transform: scale(1.8);
}

.home-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.home-hero-overlay {
    position: relative;
    z-index: 1;
    min-height: 92vh;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(
        180deg,
        rgba(10, 20, 60, 0.16) 0%,
        rgba(10, 20, 60, 0.62) 100%
    );
}

.home-hero-top {
    width: min(calc(100% - (var(--content-padding) * 2)), var(--content-width));
    margin: 0 auto;
    padding-top: clamp(5rem, 10vw, 7rem);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.home-hero-logo {
    width: clamp(130px, 18vw, 240px);
}

.home-hero-claim {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 800;
    line-height: 1.02;
    text-align: right;
    color: var(--color-white);
}

/* DATE */
.home-date-section {
    padding-top: clamp(2rem, 5vw, 4rem);
}

.home-date-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(
        135deg,
        var(--color-darkblue) 0%,
        var(--color-lightblue) 100%
    );
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
}

.home-date-card .section-title {
    color: var(--color-white);
    margin-bottom: 0.8rem;
}

.home-date-text {
    font-size: 1.08rem;
}

.home-date-text + .home-date-text {
    margin-top: 0.35rem;
}

/* WELCOME */
.home-welcome-section {
    padding-block: clamp(2rem, 6vw, 4rem);
}

.home-welcome-content {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.home-welcome-content .section-title {
    margin-bottom: 1rem;
}

/* HOME SECTIONS */
.home-sections-section {
    padding-bottom: clamp(2rem, 6vw, 4rem);
}

.home-sections-list {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.home-section-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) 1.1fr;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.home-section-card--reverse .home-section-card-media {
    order: 2;
}

.home-section-card--reverse .home-section-card-content {
    order: 1;
}

.home-section-card-media {
    min-height: 260px;
    background-color: var(--color-surface-soft);
}

.home-section-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-section-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
    padding: clamp(1.4rem, 3vw, 2rem);
}

/* SPONSORS */
.home-sponsors-section {
    padding-bottom: clamp(2rem, 6vw, 4rem);
}

.home-sponsors-header {
    margin-bottom: 1rem;
}

.home-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.8vw, 1.2rem);
}

.home-sponsor-item {
    display: flex;
}

.home-sponsor-link {
    width: 100%;
    min-height: 110px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-sponsor-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/*NEWS*/
.home-news-section {
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.home-news-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.home-news-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.home-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.home-news-card-link {
    display: block;
    height: 100%;
}

.home-news-card-media {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: var(--color-surface-soft);
}

.home-news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-news-card-content {
    padding: 0.8rem 0.9rem 1rem;
}

.home-news-date {
    font-size: 0.8rem;
    color: var(--color-text-soft);
}

.home-news-title {
    margin-top: 0.3rem;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-darkblue);
}

.home-news-teaser {
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: var(--color-text);
}

/* RESPONSIVE*/
@media (max-width: 1100px) {
    .home-sponsors-grid,
    .home-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 86vh;
    }

    .home-hero-overlay {
        min-height: 86vh;
    }

    .home-hero-media {
        transform: scale(1.14);
    }

    .home-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-hero-claim {
        text-align: left;
    }

    .home-section-card {
        grid-template-columns: 1fr;
    }

    .home-section-card--reverse .home-section-card-media,
    .home-section-card--reverse .home-section-card-content {
        order: initial;
    }

    .home-section-card-media {
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .home-sponsors-grid,
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .home-hero-media {
        transform: scale(1.1);
    }

    .home-sponsors-grid,
    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-news-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
