/* wahlschmiere.de – Satire für Deutschland */
:root {
  --paper: #faf8f3;
  --ink: #1d1d1b;
  --muted: #6b6760;
  --rule: #d9d4c7;
  --band: #888888;
  --accent: #8f1d1d;
  --navy: #333399;
  --white: #ffffff;
  --max: 1120px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }

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

/* Kopf */
.masthead { background: var(--band); }
.masthead .container { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.masthead .title { width: 502px; }
.masthead .flag { width: 97px; }
@media (max-width: 640px) { .masthead .flag { display: none; } }

.tricolor { height: 6px; background: linear-gradient(90deg, #000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }

.byline {
  border-bottom: 3px double var(--ink);
  background: var(--white);
}
.byline .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.byline nav { display: flex; gap: 18px; }
.byline a { color: var(--ink); text-decoration: none; }
.byline a:hover { color: var(--accent); }

.archive-note { background: #f1ece0; border-bottom: 1px solid var(--rule); font-size: .92rem; color: var(--muted); }
.archive-note .container { padding-top: 10px; padding-bottom: 10px; }

/* Zeitungsspalten */
.paper { display: grid; grid-template-columns: 1fr 1.9fr 1fr; gap: 0; padding-top: 32px; padding-bottom: 48px; }
.col { padding: 0 24px; }
.col + .col { border-left: 1px solid var(--rule); }
.col:first-child { padding-left: 0; }
.col:last-child { padding-right: 0; }
@media (max-width: 920px) {
  .paper { grid-template-columns: 1fr; }
  .col { padding: 0; }
  .col + .col { border-left: 0; border-top: 3px double var(--ink); margin-top: 28px; padding-top: 24px; }
}

.kicker {
  display: block; background: var(--band); color: var(--white); text-align: center;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px; margin: 0 0 14px;
}

article { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
article:last-child { border-bottom: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.45rem; color: var(--navy); }
h3 { font-size: 1.12rem; color: var(--navy); }
.dateline { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: -.3em 0 .8em; }
p { margin: 0 0 .9em; }

.interview p { margin-bottom: .7em; }
.interview .q { font-weight: 700; }
.interview .q b, .interview .a b { font-variant: small-caps; color: var(--accent); }

.lead-img { float: right; width: 150px; margin: 0 0 10px 16px; }
@media (max-width: 480px) { .lead-img { float: none; margin: 0 0 12px; } }

figure { margin: 0 0 12px; }
figure img { border: 1px solid var(--rule); }

.teaser img { border: 1px solid var(--rule); margin-bottom: 8px; }
.more { font-weight: 700; text-decoration: none; }
.disclaimer { font-size: .88rem; color: var(--muted); font-style: italic; }

/* Galerie */
.gallery-page { padding-top: 32px; padding-bottom: 56px; }
.gallery-page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin: 28px 0; }
.gallery a { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--rule); padding: 10px; }
.gallery a:hover { border-color: var(--ink); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery span { display: block; padding-top: 8px; font-size: .95rem; }
.punchline { font-size: 1.25rem; text-align: center; margin: 12px 0 0; }
.punchline .r { color: #dd0000; } .punchline .g { color: #2e7d32; } .punchline .y { color: #c79a00; } .punchline .s { color: #000; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
dialog.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border: 4px solid var(--white); }
dialog.lightbox p { color: var(--white); text-align: center; margin: 10px 0 0; }
dialog.lightbox button { position: absolute; top: 6px; right: 6px; background: var(--white); border: 0; width: 36px; height: 36px;
  border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* Rechtstexte */
.legal-page { padding-top: 40px; padding-bottom: 64px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { color: var(--navy); }
.legal-page h2 { font-size: 1.2rem; margin-top: 1.8em; }

/* Fuß */
.site-footer { background: var(--band); color: var(--white); font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.site-footer a { color: var(--white); }
.site-footer nav { display: flex; gap: 20px; }

.byline nav a { white-space: nowrap; }
.gallery img { object-position: center top; }
@media (max-width: 640px) {
  .byline .container { letter-spacing: .06em; font-size: .76rem; }
  .byline nav { gap: 14px; flex-wrap: wrap; }
}
