/* ============================================================
   ALKA-GO – news.css  |  FINAL
   Hero-Stil passend zur Index-Seite (hell, sauber, professionell)
   ============================================================ */

/* ---- Body: weiß + dunkler Text (Pflicht-Fallback) --------- */
body.news-page,
body.news-detail-page {
    background-color: #ffffff !important;
    color: #1f1f1f !important;
}

/* ---- main-content: weiß + Header-Abstand ----------------- */
.news-page .main-content,
.news-detail-page .main-content {
    background: #ffffff !important;
    color: #1f1f1f !important;
    margin-top: 80px;
}

/* ---- Content-Container: weiß ----------------------------- */
.news-container,
.news-detail-container {
    background: #ffffff !important;
    color: #1f1f1f !important;
    min-height: 60vh;
    padding-bottom: 4rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.news-layout   { display: grid; grid-template-columns: 1fr 290px; gap: 2.5rem; padding: 2rem 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 290px; gap: 2.5rem; padding: 2rem 0; }

/* ============================================================
   NEWS-SEITEN-HEADER (wie Index-Hero – hell, Gradient)
   ============================================================ */
.news-page-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 60%, #fff5f5 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    overflow: hidden;
}

.news-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(220,38,38,0.15), transparent),
        radial-gradient(2px 2px at 80px 70px, rgba(0,255,136,0.1), transparent);
    background-size: 120px 120px, 90px 90px;
    pointer-events: none;
}

.news-page-header .container { position: relative; z-index: 1; }

.news-page-badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.news-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #1f1f1f;
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.news-page-title span {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-page-desc {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   FEATURED HERO – Index-Stil (hell, Karten, kein Dark-Overlay)
   ============================================================ */
.news-hero {
    background: #ffffff;
    padding: 2rem 0 0;
}

.hero-grid     { display: grid; gap: 1.25rem; }
.hero-2        { grid-template-columns: 2fr 1fr; }
.hero-3        { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }

/* Karten-Link: helles Design wie Index-Cards */
.hero-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.14);
}

/* Bild-Bereich */
.hero-card-img {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    flex: 0 0 auto;
    /* Kein dunkles Overlay mehr */
}

.hero-main .hero-card-img { height: 260px; }
.hero-side .hero-card-img  { height: 135px; }

/* Kein dunkles Overlay — sauberer Index-Stil */
.hero-card-overlay { display: none; }

/* Content-Bereich: unterhalb des Bildes, weißer Hintergrund */
.hero-card-content {
    position: static !important;
    padding: 1.25rem 1.5rem 1.5rem;
    background: #ffffff;
    color: #1f1f1f;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.hero-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f1f1f;
    margin: 0;
}

.hero-main .hero-card-title { font-size: 1.45rem; }

.hero-card-summary {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.hero-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #888;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

/* ============================================================
   KATEGORIE-BADGE
   ============================================================ */
.cat-badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .2rem .65rem; border-radius: 20px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    background: rgba(220,38,38,.10); color: #dc2626;
    border: 1px solid rgba(220,38,38,.2);
}

/* ============================================================
   FILTER TABS  (Index-Stil: Pill-Buttons)
   ============================================================ */
.cat-filter {
    display: flex; gap: .5rem; flex-wrap: wrap;
    padding: 1.5rem 0 1.25rem; margin-bottom: 1.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.cat-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .4rem 1rem; border-radius: 30px;
    font-size: .84rem; font-weight: 600;
    background: #ffffff; border: 2px solid #e5e5e5;
    color: #666; text-decoration: none;
    transition: all .2s ease; font-family: inherit; cursor: pointer;
}
.cat-btn:hover  { border-color: #dc2626; color: #dc2626; }
.cat-btn.active { background: #dc2626; border-color: #dc2626; color: #ffffff; }

/* ============================================================
   NEWS KARTEN (Index-Karten-Stil: weiß, Schatten, Hover-Lift)
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #ffffff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07); border: 1px solid #e5e5e5;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.news-card--event { border-top: 4px solid #dc2626; }

.news-card-img-wrap { position: relative; display: block; overflow: hidden; }
.news-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-img-placeholder {
    aspect-ratio: 16/9; display: flex; align-items: center;
    justify-content: center; background: linear-gradient(135deg, #f5f5f5, #ffe5e5); font-size: 2.5rem;
}
.news-card-cat {
    position: absolute; top: .65rem; left: .65rem;
    background: rgba(255,255,255,0.92); color: #dc2626;
    padding: .2rem .6rem; border-radius: 20px;
    font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }

.event-info-strip {
    display: flex; align-items: center; gap: .65rem;
    padding: .5rem .75rem; background: #fff5f5;
    border-radius: 8px; border-left: 3px solid #dc2626;
}
.event-date-badge { display: flex; flex-direction: column; align-items: center; min-width: 32px; }
.ed-day { font-size: 1.1rem; font-weight: 800; color: #dc2626; line-height: 1; }
.ed-mon { font-size: .58rem; font-weight: 700; text-transform: uppercase; color: #888; }
.event-details { display: flex; flex-direction: column; gap: .1rem; font-size: .75rem; color: #1f1f1f; }

.news-card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0; }
.news-card-title a { color: #1f1f1f; text-decoration: none; transition: color .2s ease; }
.news-card-title a:hover { color: #dc2626; }
.news-card-summary { font-size: .85rem; color: #666; line-height: 1.5; margin: 0; flex: 1; }
.news-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: .6rem; border-top: 1px solid #f0f0f0;
}
.news-card-date { font-size: .75rem; color: #888; }
.news-card-read { font-size: .8rem; font-weight: 700; color: #dc2626; text-decoration: none; }
.news-card-read:hover { color: #b91c1c; }

/* ============================================================
   PAGINATION
   ============================================================ */
.news-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pag-btn { padding: .45rem .9rem; border-radius: 8px; border: 2px solid #e5e5e5; color: #666; text-decoration: none; font-weight: 600; font-size: .85rem; background: #fff; transition: all .2s ease; }
.pag-btn:hover   { border-color: #dc2626; color: #dc2626; }
.pag-btn--active { background: #dc2626; border-color: #dc2626; color: #fff; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.news-sidebar, .detail-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
    background: #ffffff !important; border: 1px solid #e5e5e5;
    border-radius: 16px; padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); color: #1f1f1f;
}
.widget-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid #f0f0f0; }

.sidebar-event { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #1f1f1f; }
.sidebar-event:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-event:hover .se-title { color: #dc2626; }
.se-date { display: flex; flex-direction: column; align-items: center; min-width: 36px; background: linear-gradient(135deg, #dc2626, #b91c1c); border-radius: 8px; padding: .32rem .3rem; }
.se-day { font-size: 1rem; font-weight: 800; color: #fff; line-height: 1; }
.se-mon { font-size: .53rem; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.8); }
.se-info { flex: 1; min-width: 0; }
.se-title { font-size: .85rem; font-weight: 600; color: #1f1f1f; line-height: 1.3; transition: color .2s ease; }
.se-loc   { font-size: .73rem; color: #888; margin-top: .2rem; }

.sidebar-cat-link { display: flex; align-items: center; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #1f1f1f; font-size: .88rem; font-weight: 500; transition: color .2s ease; }
.sidebar-cat-link:last-child { border-bottom: none; }
.sidebar-cat-link:hover, .sidebar-cat-link.active { color: #dc2626; }
.cat-count { background: #f5f5f5; padding: .1rem .45rem; border-radius: 20px; font-size: .73rem; color: #888; }

.sidebar-cta { background: linear-gradient(135deg, #1f1f1f 0%, #2d1a1a 100%) !important; border-color: transparent !important; }
.cta-title { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; color: #00ff88; }
.sidebar-cta p { font-size: .85rem; color: rgba(255,255,255,.72); margin-bottom: .85rem; line-height: 1.5; }
.cta-btn { display: inline-block; background: #dc2626; color: #fff; padding: .6rem 1.25rem; border-radius: 8px; font-weight: 700; font-size: .85rem; text-decoration: none; transition: background .2s ease; }
.cta-btn:hover { background: #b91c1c; }

.sidebar-back-btn { display: block; padding: .55rem .85rem; background: #f8f8f8; border: 1px solid #e5e5e5; border-radius: 8px; text-decoration: none; color: #1f1f1f; font-size: .86rem; font-weight: 500; margin-bottom: .45rem; transition: all .2s ease; }
.sidebar-back-btn:hover { border-color: #dc2626; color: #dc2626; background: #fff; }

.related-item { display: flex; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #1f1f1f; }
.related-item:last-child { border-bottom: none; }
.related-item:hover .related-title { color: #dc2626; }
.related-img { width: 60px; height: 45px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #f5f5f5; }
.related-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.related-info  { flex: 1; min-width: 0; }
.related-title { font-size: .83rem; font-weight: 600; color: #1f1f1f; line-height: 1.3; transition: color .2s ease; }
.related-date  { font-size: .73rem; color: #888; margin-top: .2rem; }

.share-btns { display: flex; flex-direction: column; gap: .45rem; }
.share-btn  { padding: .55rem .9rem; border-radius: 8px; font-size: .85rem; font-weight: 600; text-align: center; cursor: pointer; text-decoration: none; font-family: inherit; display: block; }
.share-wa       { background: #25d366; color: #fff; border: none; }
.share-wa:hover { background: #1aad52; }
.share-copy     { background: #f8f8f8; border: 1px solid #e5e5e5; color: #1f1f1f; }
.share-copy:hover { border-color: #dc2626; background: #fff; }

/* ============================================================
   DETAIL – ARTIKEL (Index-Stil: sauber, weiß)
   ============================================================ */
.detail-article { background: #ffffff; color: #1f1f1f; }
.article-header  { margin-bottom: 2rem; padding-top: 1.5rem; }
.article-meta-top { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.article-date, .article-views { font-size: .82rem; color: #888; }

.article-title {
    font-size: 2.2rem; font-weight: 800; line-height: 1.2;
    color: #1f1f1f; margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.15rem; color: #555; line-height: 1.65;
    border-left: 4px solid #dc2626; padding-left: 1.25rem;
    font-style: italic; margin: 0;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.article-cover { margin-bottom: 2rem; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.article-cover-img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

/* ============================================================
   EVENT-INFO-BOX (Index-Glassmorphism-Stil)
   ============================================================ */
.event-info-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
    border: 1px solid rgba(220,38,38,0.2);
    border-left: 4px solid #dc2626;
    border-radius: 16px; padding: 1.5rem; margin-bottom: 2rem;
    color: #1f1f1f;
    box-shadow: 0 4px 20px rgba(220,38,38,0.06);
}
.eib-header { font-size: 1rem; font-weight: 800; color: #1f1f1f; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.eib-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.eib-item   { display: flex; gap: .7rem; align-items: flex-start; }
.eib-item--full { grid-column: 1 / -1; }
.eib-icon   { font-size: 1.3rem; flex-shrink: 0; }
.eib-label  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #dc2626; margin-bottom: .2rem; }
.eib-value  { font-size: .9rem; color: #1f1f1f; line-height: 1.5; }
.eib-register-btn { display: inline-flex; align-items: center; gap: .5rem; background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; padding: .7rem 1.5rem; border-radius: 8px; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 4px 15px rgba(220,38,38,0.3); transition: all .2s ease; }
.eib-register-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,0.4); }

/* ============================================================
   KARTE (OSM-Iframe)
   ============================================================ */
.event-map-wrap { position: relative; margin-top: 1.25rem; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.1); border: 1px solid #e5e5e5; }
.event-map-wrap iframe { display: block; }
.map-overlay-info { position: absolute; bottom: 1rem; right: 1rem; background: rgba(255,255,255,0.96); border-radius: 10px; padding: .85rem 1rem; font-size: .8rem; box-shadow: 0 4px 20px rgba(0,0,0,0.15); line-height: 1.5; max-width: 210px; border: 1px solid #e5e5e5; color: #1f1f1f; backdrop-filter: blur(4px); }
.map-directions-link { display: inline-block; margin-top: .4rem; color: #dc2626; font-weight: 700; text-decoration: none; font-size: .78rem; }
.map-directions-link:hover { text-decoration: underline; }

/* ============================================================
   ARTIKELINHALT (sauber, lesbar)
   ============================================================ */
.article-content { font-size: 1.05rem; line-height: 1.85; color: #1f1f1f; margin-bottom: 2.5rem; }
.article-content h2 { font-size: 1.6rem; font-weight: 800; color: #1f1f1f; margin: 2rem 0 1rem; }
.article-content h3 { font-size: 1.25rem; font-weight: 700; color: #1f1f1f; margin: 1.5rem 0 .75rem; }
.article-content p  { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-content a  { color: #dc2626; font-weight: 500; }
.article-content a:hover { text-decoration: underline; }
.article-content img { max-width: 100%; border-radius: 12px; margin: 1rem 0; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.article-content blockquote {
    border-left: 4px solid #00ff88; padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fff8, #ffffff);
    margin: 1.75rem 0; border-radius: 0 12px 12px 0;
    font-style: italic; color: #444;
    box-shadow: 0 2px 8px rgba(0,255,136,0.08);
}

/* ============================================================
   GALERIE + LIGHTBOX
   ============================================================ */
.article-gallery { margin-bottom: 2.5rem; }
.gallery-title   { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; color: #1f1f1f; }
.gallery-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.gallery-fig     { margin: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: #f5f5f5; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-fig:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.gallery-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(15,15,15,.97); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lb-content img  { max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: background .2s ease; }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .85rem; }

/* ============================================================
   ARTIKEL-NAVIGATION
   ============================================================ */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid #f0f0f0; }
.article-nav-btn { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 1rem 1.25rem; text-decoration: none; color: #1f1f1f; font-size: .88rem; font-weight: 600; line-height: 1.4; transition: all .2s ease; }
.article-nav-btn:hover { border-color: #dc2626; color: #dc2626; box-shadow: 0 4px 15px rgba(220,38,38,0.1); }
.article-nav-next { text-align: right; }
.article-nav-prev { text-align: left; }

/* ============================================================
   LEERER ZUSTAND
   ============================================================ */
.empty-news { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-news p { color: #888; margin-bottom: 1.5rem; }
.btn-back { display: inline-block; padding: .6rem 1.35rem; background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 15px rgba(220,38,38,0.25); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .news-layout, .detail-layout { grid-template-columns: 1fr; }
    .news-sidebar, .detail-sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
    .hero-2, .hero-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body.news-page .main-content, body.news-detail-page .main-content { margin-top: 70px; }
    .article-title { font-size: 1.65rem; }
    .eib-grid      { grid-template-columns: 1fr; }
    .article-nav   { grid-template-columns: 1fr; }
    .event-map-wrap iframe { height: 240px; }
    .map-overlay-info { display: none; }
    .news-grid     { grid-template-columns: 1fr; }
    .hero-main .hero-card-img, .hero-side .hero-card-img { height: 200px; }
}
@media (max-width: 480px) {
    .cat-filter    { gap: .3rem; }
    .cat-btn       { font-size: .78rem; padding: .32rem .7rem; }
    .news-sidebar, .detail-sidebar { grid-template-columns: 1fr; }
    .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
}
