*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e8001c;
  --black: #111;
  --bg: #f3f3ef;
  --card-bg: #fff;
  --border: #d8d8d0;
  --text: #1a1a1a;
  --muted: #666;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body { background: var(--bg); color: var(--text); font-family: var(--serif); }

/* ── Header ── */
.site-header { background: var(--black); color: #fff; border-bottom: 4px solid var(--red); }
.masthead { text-align: center; padding: 20px 24px 14px; }
.site-title { font-family: var(--sans); font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.site-tagline { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: #aaa; margin-top: 4px; }

.kat-nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 16px; background: #1a1a1a; }
.kat-btn { background: none; border: none; color: #aaa; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; cursor: pointer; border-radius: 3px; transition: all .15s; }
.kat-btn:hover, .kat-btn.active { background: var(--red); color: #fff; }

/* ── Page ── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.date-rule { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 2px solid var(--black); margin: 16px 0 20px; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ── Grid ── */
.article-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.section-header { grid-column: 1 / -1; font-family: var(--sans); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-top: 2px solid var(--black); padding-top: 12px; margin-top: 4px; }
.loading-grid { grid-column: 1 / -1; padding: 60px; text-align: center; color: var(--muted); font-family: var(--sans); }

/* ── Cards ── */
.art-card { background: var(--card-bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; padding: 16px; cursor: pointer; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.art-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.art-card.featured { grid-column: 1; grid-row: 1 / 3; padding: 20px; }
.art-card.small { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 16px; }

.art-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.art-img-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--black); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--red); }

.kat-badge { font-family: var(--sans); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; padding: 3px 8px; border-radius: 2px; width: fit-content; }
.art-titel { font-family: var(--serif); font-weight: 700; line-height: 1.25; }
.featured .art-titel { font-size: 1.4rem; }
.medium .art-titel { font-size: 1.05rem; }
.small .art-titel { font-size: 0.9rem; }
.art-lead { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.art-meta { font-family: var(--sans); font-size: 0.72rem; color: var(--muted); display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }

/* ── Article Page ── */
.article-page { padding: 32px 16px 80px; }
.article-container { max-width: 740px; margin: 0 auto; }
.article-meta-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.article-full-titel { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.article-full-lead { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin-bottom: 24px; border-left: 4px solid var(--red); padding-left: 16px; }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; margin-bottom: 28px; }

.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.2em; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2em 0 0.6em; border-top: 2px solid var(--black); padding-top: 1em; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5em 0 0.5em; }
.article-body blockquote { border-left: 4px solid var(--red); padding: 12px 20px; margin: 1.5em 0; background: #f9f9f7; font-style: italic; color: #333; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9rem; }
.article-body th { background: var(--black); color: #fff; padding: 8px 12px; text-align: left; font-family: var(--sans); }
.article-body td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.article-body a { color: var(--red); text-decoration: underline; }

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tag { background: #eee; font-family: var(--sans); font-size: 0.72rem; padding: 4px 10px; border-radius: 20px; color: var(--muted); }

.article-author-box { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--black); color: #fff; margin-top: 32px; border-radius: 4px; }
.author-avatar { width: 48px; height: 48px; min-width: 48px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-family: var(--sans); font-size: 14px; }
.article-author-box p { font-size: 0.85rem; color: #bbb; margin-top: 4px; }

/* ── Comments ── */
.comments-section { margin-top: 48px; border-top: 2px solid var(--black); padding-top: 24px; }
.comments-title { font-size: 1.1rem; font-weight: 700; font-family: var(--sans); margin-bottom: 20px; }
.comment { border-bottom: 1px solid var(--border); padding: 14px 0; }
.comment strong { font-family: var(--sans); font-size: 0.85rem; }
.comment-date { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); margin-left: 8px; }
.comment p { font-size: 0.95rem; margin-top: 6px; line-height: 1.6; }
.no-comments { color: var(--muted); font-size: 0.9rem; }

.comment-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.comment-form input, .comment-form textarea { padding: 10px 14px; border: 1px solid var(--border); font-family: var(--serif); font-size: 0.95rem; background: #fff; }
.comment-form textarea { resize: vertical; }
.comment-form button { background: var(--red); color: #fff; border: none; padding: 12px 24px; font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; cursor: pointer; align-self: flex-start; }
.comment-form button:hover { background: #c0001a; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; }
.modal-overlay[hidden] { display: none; }
.modal-box { background: var(--card-bg); width: 100%; max-width: 740px; position: relative; margin: auto; }
.modal-close-btn { position: absolute; top: 12px; right: 12px; background: var(--black); color: #fff; border: none; width: 32px; height: 32px; font-size: 1.2rem; cursor: pointer; border-radius: 2px; z-index: 1; }
.modal-body { padding: 40px 40px 20px; }

/* ── Footer ── */
.site-footer { background: var(--black); color: #aaa; padding: 24px 16px; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; font-family: var(--sans); font-size: 0.8rem; }
.footer-inner a { color: #aaa; }
.footer-inner strong { color: #fff; }
.trending-footer-links { max-width: 1200px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.trending-label { font-family: var(--sans); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #666; width: 100%; text-align: center; }
.trending-footer-links a { font-size: 0.75rem; color: #888; text-decoration: none; }
.trending-footer-links a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
  .art-card.featured { grid-column: 1; grid-row: auto; }
  .art-card.small { flex-direction: column; }
  .modal-body { padding: 24px 20px; }
}
