/* NEWSFLASH — Editorial Design
   Satire-/Fiktionsprojekt. Serifen für Text, klare rote Akzente. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6f6f6f;
  --line: #e2e0da;
  --paper: #ffffff;
  --paper-warm: #f7f5f0;
  --red: #c8102e;
  --red-dark: #a30d25;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Masthead ───────────────────────────────────────────── */
.masthead {
  padding: 26px 0 18px;
  border-bottom: 3px solid var(--ink);
}
.masthead .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.logo .flash { color: var(--red); }
.logo:hover { color: var(--ink); }
.logo-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}
.masthead-right { display: flex; align-items: center; gap: 14px; }

/* Suche */
.search-form { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.search-form input[type="search"] {
  border: 0; outline: 0; padding: 8px 12px;
  font-family: var(--sans); font-size: 0.85rem;
  width: 190px; background: var(--paper);
}
.search-form button {
  border: 0; background: var(--ink); color: #fff;
  padding: 8px 14px; cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem;
}
.search-form button:hover { background: var(--red); }

/* ── Navigation ─────────────────────────────────────────── */
.mainnav {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
}
.mainnav .container { display: flex; align-items: center; justify-content: space-between; }
.mainnav ul {
  display: flex; flex-wrap: wrap; list-style: none;
}
.mainnav ul li a {
  display: block;
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.mainnav ul li a:hover,
.mainnav ul li a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  padding: 8px 12px; font-family: var(--sans);
  font-size: 0.85rem; cursor: pointer; border-radius: 4px;
}

/* ── Breaking ───────────────────────────────────────────── */
.breaking {
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  overflow: hidden;
}
.breaking .container { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.breaking-label {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 3px 10px;
  flex: 0 0 auto;
}
.breaking-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking-text a:hover { color: #ffd; }

/* ── Startseite: Hero ───────────────────────────────────── */
.home-hero { padding: 34px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 34px; }
.hero-main .hero-figure img { width: 100%; border-radius: 4px; }
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.hero-main h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 6px 0 12px;
}
.hero-main h1 a:hover { color: var(--red); }
.hero-teaser { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.hero-meta {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--muted); margin-top: 12px;
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* Seitenleiste Top Stories */
.sidebox { border-top: 3px solid var(--ink); padding-top: 14px; }
.sidebox h2, .section-head h2 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sidebox h2::after, .section-head h2::after {
  content: ""; display: block; width: 42px; height: 3px;
  background: var(--red); margin-top: 8px;
}
.story-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.story-item:last-child { border-bottom: 0; }
.story-item h3 { font-size: 1.02rem; line-height: 1.3; }
.story-item h3 a:hover { color: var(--red); }
.story-item .meta {
  font-family: var(--sans); font-size: 0.72rem;
  color: var(--muted); margin-top: 5px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Karten-Raster ──────────────────────────────────────── */
.section { padding: 30px 0; }
.section.alt { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card figure img { border-radius: 4px; width: 100%; }
.card h3 { font-size: 1.1rem; line-height: 1.3; margin: 10px 0 6px; }
.card h3 a:hover { color: var(--red); }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .meta {
  font-family: var(--sans); font-size: 0.72rem; color: var(--muted);
  margin-top: 8px; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Meistgelesen-Liste */
.mostread { counter-reset: mr; list-style: none; }
.mostread li {
  counter-increment: mr;
  display: flex; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mostread li:last-child { border-bottom: 0; }
.mostread li::before {
  content: counter(mr);
  font-family: var(--sans); font-weight: 800;
  font-size: 1.6rem; color: var(--red);
  line-height: 1; min-width: 30px;
}
.mostread li a { font-size: 0.98rem; line-height: 1.35; }
.mostread li a:hover { color: var(--red); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }

/* ── Artikelseite ───────────────────────────────────────── */
.progressbar {
  position: fixed; top: 0; left: 0; height: 4px;
  background: var(--red); width: 0%; z-index: 100;
}
.article-header { max-width: 820px; margin: 34px auto 26px; padding: 0 20px; }
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.12; letter-spacing: -0.015em;
  margin: 8px 0 14px;
}
.article-standfirst {
  font-size: 1.18rem; color: var(--ink-soft); font-style: italic;
  margin-bottom: 18px;
}
.article-byline {
  font-family: var(--sans); font-size: 0.8rem; color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; display: flex; gap: 18px; flex-wrap: wrap;
}
.article-byline .author { font-weight: 700; color: var(--ink); }

.article-hero { max-width: 1080px; margin: 0 auto 30px; padding: 0 20px; }
.article-hero img { width: 100%; border-radius: 4px; }
.article-hero figcaption {
  font-family: var(--sans); font-size: 0.75rem; color: var(--muted);
  margin-top: 8px;
}

.article-body { max-width: 820px; margin: 0 auto; padding: 0 20px 40px; }
.article-body p { font-size: 1.08rem; margin-bottom: 1.3em; }
.article-body h2 {
  font-size: 1.45rem; margin: 2em 0 0.7em;
  letter-spacing: -0.01em;
}
.article-body h2::before {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--red); margin-bottom: 12px;
}
@media (min-width: 900px) {
  .article-body.twocol { columns: 2; column-gap: 44px; max-width: 1000px; }
  .article-body.twocol p, .article-body.twocol h2 { break-inside: avoid; }
}

.article-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--red);
  font-size: 1.3rem; font-style: italic; line-height: 1.45;
}
.article-body blockquote footer {
  font-family: var(--sans); font-style: normal;
  font-size: 0.8rem; color: var(--muted); margin-top: 8px;
}

.source-box {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 2em 0;
  break-inside: avoid;
}
.source-box h3 {
  font-family: var(--sans); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.source-box ul { list-style: none; }
.source-box li { font-size: 0.92rem; margin-bottom: 12px; color: var(--ink-soft); }
.source-box a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.editorial-note {
  border: 1px dashed var(--ink);
  border-radius: 4px;
  padding: 20px 26px;
  margin: 2em 0;
  background: var(--paper-warm);
  break-inside: avoid;
}
.editorial-note h3 {
  font-family: var(--sans); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red); margin-bottom: 8px;
}
.editorial-note p { font-size: 0.95rem; margin: 0; }

.article-tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags span {
  font-family: var(--sans); font-size: 0.72rem;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 12px; color: var(--muted);
}

/* Weitere Artikel */
.related { border-top: 3px solid var(--ink); margin-top: 20px; padding-top: 22px; }
.related h2 {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px;
}

/* ── Rubrikseiten ───────────────────────────────────────── */
.category-head {
  border-bottom: 3px solid var(--ink);
  padding: 26px 0 14px; margin-top: 10px;
}
.category-head h1 {
  font-family: var(--sans); font-size: 1.5rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.category-head p { color: var(--muted); font-style: italic; margin-top: 4px; }
.category-list { padding: 26px 0 50px; }
.cat-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.cat-item img { border-radius: 4px; width: 100%; }
.cat-item h2 { font-size: 1.25rem; line-height: 1.25; margin: 4px 0 8px; }
.cat-item h2 a:hover { color: var(--red); }
.cat-item p { color: var(--ink-soft); font-size: 0.95rem; }
.cat-item .meta {
  font-family: var(--sans); font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px;
}

/* ── Suche ──────────────────────────────────────────────── */
.search-page { max-width: 760px; margin: 30px auto 60px; padding: 0 20px; }
.search-page h1 { font-family: var(--sans); font-size: 1.5rem; margin-bottom: 18px; }
.search-page .big-search {
  width: 100%; padding: 14px 16px; font-size: 1.05rem;
  border: 2px solid var(--ink); border-radius: 4px;
  font-family: var(--serif); outline: none;
}
.search-page .big-search:focus { border-color: var(--red); }
#search-status { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin: 14px 0; }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-result h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.search-result h3 a:hover { color: var(--red); }
.search-result p { color: var(--ink-soft); font-size: 0.95rem; }
.search-result .meta {
  font-family: var(--sans); font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Statische Seiten ───────────────────────────────────── */
.static-page { max-width: 760px; margin: 34px auto 60px; padding: 0 20px; }
.static-page h1 {
  font-family: var(--sans); font-size: 1.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 3px solid var(--ink); padding-bottom: 12px; margin-bottom: 22px;
}
.static-page h2 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.static-page p { margin-bottom: 1em; color: var(--ink-soft); }
.static-page ul { margin: 0 0 1em 1.2em; color: var(--ink-soft); }
.static-page a { color: var(--red); text-decoration: underline; }

.satire-banner-big {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 26px 30px;
  margin-bottom: 28px;
}
.satire-banner-big h2 { margin-top: 0; color: var(--red); font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: #cfcfcf;
  margin-top: 50px; font-family: var(--sans); font-size: 0.85rem;
}
.footer a { color: #fff; }
.footer a:hover { color: var(--red); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 34px; padding: 44px 0 30px;
}
.footer h3 {
  color: #fff; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer-note {
  border-top: 1px solid #3a3a3a; padding: 18px 0;
  font-size: 0.8rem; color: #9a9a9a; line-height: 1.6;
}
.footer-note strong { color: #fff; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-logo .flash { color: var(--red); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 680px) {
  .masthead .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .search-form input[type="search"] { width: 140px; }
  .mainnav .container { flex-wrap: wrap; }
  .nav-toggle { display: block; margin: 8px 0; }
  .mainnav ul { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  .mainnav ul.open { display: flex; }
  .mainnav ul li a { padding: 11px 4px; }
  .card-grid { grid-template-columns: 1fr; }
  .cat-item { grid-template-columns: 1fr; }
}
