/* ==========================================================
   ClubPortal Startseite
   Datei: portal.css
========================================================== */

.portal-wrapper {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

.portal-hero {
    margin-bottom: 36px;
    text-align: center;
}

.portal-mark {
    font-size: 4rem;
}

.portal-hero h1 {
    margin: 8px 0;
    color: var(--orange);
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.portal-slogan {
    color: var(--muted);
    font-size: 1.15rem;
    font-weight: 700;
}

.portal-intro {
    max-width: 720px;
    margin: 18px auto 0;
    color: #666;
    line-height: 1.6;
}

.portal-empty {
    padding: 34px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.portal-empty-icon {
    margin-bottom: 12px;
    font-size: 3rem;
}

.event-overview {
    display: grid;
    gap: 30px;
}

.portal-event-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.portal-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.portal-event-image-link {
    display: block;
    min-height: 280px;
    overflow: hidden;
}

.portal-event-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform .35s ease;
}

.portal-event-card:hover .portal-event-image {
    transform: scale(1.04);
}

.portal-event-placeholder {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: #faf5ec;
    font-size: 5rem;
    text-decoration: none;
}

.portal-event-content {
    padding: 26px;
}

.portal-event-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.portal-event-label {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portal-event-heading h2 {
    margin: 4px 0 0;
}

.portal-event-heading a {
    color: inherit;
    text-decoration: none;
}

.portal-event-heading a:hover {
    color: var(--orange);
}

.portal-progress-badge {
    padding: 10px 14px;
    color: #fff;
    background: var(--orange);
    border-radius: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.portal-event-description {
    color: #666;
    line-height: 1.55;
}

.portal-event-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 18px 0;
    color: #666;
    font-weight: 600;
}

.portal-progress {
    margin-top: 18px;
}

.portal-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.portal-progress-track {
    height: 16px;
    overflow: hidden;
    background: #ece7df;
    border-radius: 999px;
}

.portal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #f4a340);
    border-radius: 999px;
    transition: width .4s ease;
}

.portal-progress small {
    display: block;
    margin-top: 8px;
    color: #777;
}

.portal-event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 13px 22px;
    color: #fff;
    background: var(--orange);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: background .2s ease;
}

.portal-event-link:hover {
    background: var(--orange-dark);
}

.portal-footer {
    margin-top: 60px;
    text-align: center;
    color: #777;
}

.portal-footer strong {
    display: block;
    color: var(--orange);
    font-size: 1.2rem;
}

.portal-footer span,
.portal-footer small {
    display: block;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .portal-event-card {
        grid-template-columns: 1fr;
    }

    .portal-event-image-link {
        min-height: auto;
    }

    .portal-event-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 8;
    }

    .portal-event-placeholder {
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    .portal-wrapper {
        width: min(100% - 20px, 1180px);
        padding: 18px 0 44px;
    }

    .portal-event-content {
        padding: 20px;
    }

    .portal-event-heading {
        flex-direction: column;
    }

    .portal-event-meta {
        flex-direction: column;
        gap: 8px;
    }

    .portal-progress-head {
        align-items: flex-start;
        flex-direction: column;
    }
}