/* ── NEWS INTRO ── */
.news-intro { padding: 4rem 2rem 2rem; background: var(--bg2); border-bottom: 1px solid var(--border); }
.news-page-section { padding: 3rem 2rem 5rem; background: var(--bg); }

/* ── FILTER BUTTONS ── */
.news-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.5rem 0 1.25rem; }
.filter-btn { background: transparent; border: 1px solid var(--border2); color: var(--muted); padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.82rem; font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.filter-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── DYNAMIC NEWS CARDS (news.js classes) ── */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media(max-width:900px){ .news-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px){ .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform 0.2s, border-color 0.2s; text-decoration: none; color: inherit; display: block; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.news-date { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.45rem; }
.news-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.35; }
.news-image { width: 100%; aspect-ratio: 16/9; background: var(--bg3) center/cover no-repeat; border-radius: 0; flex-shrink: 0; }
.news-content { padding: 1.2rem 1.25rem 1.25rem; }
.news-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.news-badge { display: inline-block; background: rgba(34,197,94,0.15); color: var(--accent); font-size: 0.68rem; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.2px; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid rgba(34,197,94,0.25); }
.news-toggle { display: inline-block; font-size: 0.8rem; color: var(--accent); font-weight: 600; font-family: var(--font-head); margin-top: 0.65rem; cursor: pointer; transition: color 0.2s; }
.news-toggle:hover { color: var(--accent2); }

/* Override: news-card is clickable (article, not anchor) */
article.news-card { cursor: pointer; }

/* ── BLOG-STYLE LISTE (eigene /News-Seite) ── */
.news-page-section .news-grid { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; gap: 1.75rem; align-items: start; }
@media(max-width:760px){ .news-page-section .news-grid { grid-template-columns: 1fr; } }
.news-page-section .news-card { display: flex; flex-direction: column; border-radius: 18px; min-width: 0; overflow: hidden; }
.news-page-section .news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.news-page-section .news-image { aspect-ratio: 16/8; width: 100%; height: auto; background-size: cover; background-position: center; }
.news-page-section .news-content { padding: 1.6rem 1.85rem 1.85rem; }
.news-page-section .news-badge { font-size: 0.7rem; padding: 0.25rem 0.7rem; }
.news-page-section .news-date { font-size: 0.75rem; }
.news-page-section .news-title { font-size: 1.4rem; margin-bottom: 0.65rem; }
.news-page-section p.small.muted { font-size: 0.92rem; line-height: 1.7; }

/* ── ARTIKELSEITE (/News/:slug) ── */
.article-back { display: inline-block; margin-bottom: 1.1rem; font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.article-back:hover { color: var(--text); }

.article-container { max-width: 760px; }

.article-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: 20px; margin-bottom: 2rem; display: block; }

.article-layout { display: flex; gap: 2rem; align-items: flex-start; }
.article-body { flex: 1; min-width: 0; font-size: 0.98rem; color: rgba(238,242,255,0.78); line-height: 1.85; }

.article-author { flex-shrink: 0; width: 100px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
.article-author-avatar { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; image-rendering: pixelated; border: 2px solid var(--border2); background: var(--bg3); }
.article-author-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.article-author-name { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--text); word-break: break-word; }

@media(max-width:600px) {
  .article-layout { flex-direction: column-reverse; }
  .article-author { flex-direction: row; width: auto; text-align: left; }
}

/* Rich-Text Rendering (Quill HTML Output) */
.article-body h1, .article-body h2, .article-body h3 { font-family: var(--font-head); font-weight: 800; color: var(--text); margin: 1.4rem 0 0.5rem; line-height: 1.25; }
.article-body h1 { font-size: 1.6rem; }
.article-body h2 { font-size: 1.3rem; }
.article-body h3 { font-size: 1.1rem; }
.article-body p  { margin-bottom: 0.85rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.article-body li { line-height: 1.7; }
.article-body a  { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1rem; color: var(--muted); margin: 0.85rem 0; font-style: italic; }
.article-body s  { opacity: 0.5; text-decoration: line-through; }

/* ── MODS PAGE ── */
.mods-section-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.mods-section-title--allowed { color: var(--accent); }
.mods-section-title--banned { color: #ef4444; }
.mods-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.mod-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.mod-chip:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); background: var(--bg3); }

.mod-icon { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.mod-icon-fallback { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.mod-chip-name { font-size: 0.83rem; font-family: var(--font-head); font-weight: 600; }
