﻿.magazine-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}

.magazine-header {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.magazine-label {
    display: block;
    margin-bottom: 10px;
    color: #0865e8;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.magazine-header h1 {
    margin: 0 0 16px;
    line-height: 1.2;
}

.magazine-header p {
    margin: 0;
    color: #5f6872;
    font-size: 1.05rem;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Magazin-Raster
|--------------------------------------------------------------------------
*/

.magazine-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 22px;
}


/*
|--------------------------------------------------------------------------
| Magazin-Karten
|--------------------------------------------------------------------------
*/

.magazine-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.magazine-card:hover {
    transform: translateY(-3px);
    border-color: #b8c9dd;
    box-shadow:
        0 9px 26px
        rgba(0, 0, 0, 0.08);
}

.magazine-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.magazine-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0865e8;
    font-size: 0.78rem;
    font-weight: 700;
}

.magazine-date {
    color: #7a838c;
    font-size: 0.82rem;
    white-space: nowrap;
}

.magazine-card h2 {
    margin: 0 0 14px;
    color: #252b32;
    font-size: 1.15rem;
    line-height: 1.4;
}

.magazine-card p {
    margin: 0 0 22px;
    color: #5f6872;
    font-size: 0.94rem;
    line-height: 1.65;
}

.magazine-card-footer {
    margin-top: auto;
    padding-top: 4px;
}

.magazine-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 7px;
    background: #0865e8;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.magazine-read-more:hover {
    background: #0758c9;
    color: #ffffff;
    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| Quellenhinweis
|--------------------------------------------------------------------------
*/

.magazine-source {
    margin-top: 35px;
    padding: 18px 20px;
    border: 1px solid #dfe5eb;
    border-radius: 9px;
    background: #f8f9fa;
    color: #68727c;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
}

.magazine-source a {
    color: #0865e8;
    font-weight: 700;
    text-decoration: none;
}

.magazine-source a:hover {
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Feed nicht erreichbar
|--------------------------------------------------------------------------
*/

.magazine-unavailable {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 30px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.05);
    text-align: center;
}

.magazine-unavailable-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin:
        0 auto
        18px;
    border-radius: 50%;
    background: #eef5ff;
    color: #0865e8;
    font-size: 1.2rem;
    font-weight: 700;
}

.magazine-unavailable h2 {
    margin: 0 0 12px;
}

.magazine-unavailable p {
    margin: 0;
    color: #5f6872;
    line-height: 1.65;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 950px) {

    .magazine-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/*
|--------------------------------------------------------------------------
| Smartphone
|--------------------------------------------------------------------------
*/

@media (max-width: 650px) {

    .magazine-page {
        padding:
            35px 18px
            50px;
    }

    .magazine-header {
        margin-bottom: 35px;
    }

    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .magazine-card {
        padding: 20px;
    }

}

