/* ========================================
   MAGAZIN - Styling für das Mitgliedermagazin "4B"
   Farbschema: Magenta/Beere (#8C0E73) als Akzent
   Basis-Layout analog zu seite.css
   ======================================== */

/* ========================================
   HERO SUBPAGE
   ======================================== */

.hero-magazin {
    background: #f5e8f3;
    background: -webkit-linear-gradient(315deg, #f5e8f3 0%, #edd9ea 100%);
    background: linear-gradient(135deg, #f5e8f3 0%, #edd9ea 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #8C0E73;
}

.hero-magazin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(140, 14, 115, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(140, 14, 115, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-magazin .container {
    position: relative;
    z-index: 1;
}

.hero-magazin h1 {
    color: #6a0b59;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Breadcrumb */
.hero-magazin .breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #7a3d6e;
}

.hero-magazin .breadcrumb a {
    color: #8C0E73;
    text-decoration: none;
    font-weight: 500;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.hero-magazin .breadcrumb a:hover {
    color: #6a0b59;
    text-decoration: underline;
}

.hero-magazin .breadcrumb .separator {
    margin: 0 0.5rem;
    color: #a86d99;
}

/* Untertitel im Hero */
.hero-magazin .hero-subtitle {
    color: #7a3d6e;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    font-style: italic;
    max-width: 700px;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* ========================================
   MAGAZIN ARTIKEL
   ======================================== */

.magazin-artikel {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

/* ========================================
   ARTIKEL-META (Badge, Ausgabe, Datum)
   ======================================== */

.artikel-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.artikel-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-schwerpunkt {
    background-color: #CAA90B;
    color: #1a1a1a;
}

.artikel-ausgabe a {
    color: #8C0E73;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.artikel-ausgabe a:hover {
    color: #6a0b59;
    text-decoration: underline;
}

.artikel-datum {
    color: #666;
    font-size: 0.9rem;
}

.artikel-datum::before {
    content: '•';
    margin-right: 0.75rem;
    color: #ccc;
}

/* ========================================
   BILDER IM ARTIKEL
   ======================================== */

/* Hauptbild */
.artikel-hauptbild {
    margin: 0 0 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.artikel-hauptbild img {
    width: 100%;
    height: auto;
    display: block;
}

.artikel-hauptbild figcaption,
.artikel-bild figcaption {
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    background: #f8f8f8;
}

/* Inline-Bilder zwischen Textblöcken */
.artikel-bild-inline {
    margin: 2rem 0;
}

.artikel-bild-inline img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.artikel-bild-inline figcaption {
    background: transparent;
    padding: 0.75rem 0;
}

/* ========================================
   TEXTBEREICHE
   ======================================== */

.artikel-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.artikel-text p {
    margin: 0 0 1rem 0;
}

.artikel-text p:last-child {
    margin-bottom: 0;
}

.artikel-text b,
.artikel-text strong {
    font-weight: 700;
    color: #1a1a1a;
}

.artikel-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6a0b59;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(140, 14, 115, 0.3);
}

.artikel-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8C0E73;
    margin: 1.5rem 0 0.75rem 0;
}

.artikel-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 1.25rem 0 0.5rem 0;
}

.artikel-text ul,
.artikel-text ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.artikel-text li {
    margin-bottom: 0.5rem;
}

.artikel-text a {
    color: #8C0E73;
    text-decoration: underline;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.artikel-text a:hover {
    color: #6a0b59;
}

/* ========================================
   BILDERGALERIE
   ======================================== */

.artikel-galerie {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.artikel-galerie h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #6a0b59;
}

.galerie-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1rem 1fr 1rem 1fr;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.galerie-bild {
    margin: 0;
}

.galerie-bild a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galerie-bild a:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.galerie-bild img {
    width: 100%;
    height: 150px;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.galerie-bild a:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.galerie-bild figcaption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
}

/* ========================================
   FEHLERMELDUNG
   ======================================== */

.fehler-meldung {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.fehler-meldung .meldung {
    padding: 2rem;
    border-radius: 12px;
}

.fehler-meldung .meldung-warning {
    background: -webkit-linear-gradient(315deg, #fff8e6 0%, #fff3d6 100%);
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
    border: 1px solid #f0d58c;
    color: #8a6d3b;
}

.fehler-meldung h2 {
    margin-bottom: 1rem;
    color: #8a6d3b;
}

.fehler-meldung p {
    margin-bottom: 1rem;
}

.fehler-meldung .btn-solid {
    margin-top: 1rem;
    background: #8C0E73;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.fehler-meldung .btn-solid:hover {
    background: #6a0b59;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-magazin {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .hero-magazin h1 {
        font-size: 1.8rem;
    }
    
    .hero-magazin .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-content {
        padding-bottom: 2rem;
    }
    
    .artikel-meta {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .artikel-datum::before {
        display: none;
    }
    
    .artikel-text {
        font-size: 1rem;
    }
    
    .artikel-text h2 {
        font-size: 1.35rem;
    }
    
    .galerie-grid {
        -ms-grid-columns: 1fr 1rem 1fr;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .galerie-grid {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .galerie-bild img {
        height: 200px;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .hero-magazin {
        background: none;
        border-bottom: 2px solid #333;
        padding: 1rem 0;
    }
    
    .hero-magazin h1 {
        color: #000;
    }
    
    .artikel-hauptbild,
    .artikel-bild-inline {
        break-inside: avoid;
        box-shadow: none;
    }
    
    .artikel-galerie {
        break-before: page;
    }
}