/* feldherr.org – statisches Archiv. Farben und Schrift nach der Feldherr-Marke (Rot #CC2020, Inter). */

@font-face {
  font-family: "Inter";
  src: url("Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #ffffff;
  --flaeche: #f4f4f4;
  --text: #141414;
  --grau: #5c5c5c;
  --linie: #e1e1e1;
  --rot: #cc2020;
  --knopf: #141414;
  --knopf-text: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #141414;
    --flaeche: #1f1f1f;
    --text: #f4f4f4;
    --grau: #a9a9a9;
    --linie: #2f2f2f;
    --knopf: #f4f4f4;
    --knopf-text: #141414;
  }
}

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

body {
  background: var(--grund);
  color: var(--text);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; }
a:hover { color: var(--rot); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 2px; }

/* Kopf und Fuß */
.kopf, .fuss, main { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .kopf, .fuss, main { padding-left: 32px; padding-right: 32px; } }

.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.logo { display: block; line-height: 0; padding: 6px 0; }
.logo img { width: 160px; height: auto; }
.shop {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0;
}

.fuss {
  margin-top: 96px; padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid var(--linie); color: var(--grau); font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.fuss p { margin: 0; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Typografie */
h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 20px; font-weight: 700; }
h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.012em; margin: 44px 0 14px; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 32px 0 10px; font-weight: 700; }
h4, h5, h6 { font-size: 1rem; margin: 24px 0 8px; font-weight: 700; }
p, ul, ol, blockquote, table { margin: 0 0 1em; }
strong, b { font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--grau); max-width: 38em; }
.marke {
  margin: 0 0 18px; color: var(--rot); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.meta, .zurueck { color: var(--grau); font-size: 0.9rem; margin: 0 0 12px; }
.zurueck a { text-decoration: none; }

.knopf {
  display: inline-block; margin: 6px 10px 6px 0; padding: 13px 22px; border-radius: 6px;
  background: var(--knopf); color: var(--knopf-text); font-weight: 700; text-decoration: none;
}
.knopf:hover { color: var(--knopf-text); background: var(--rot); }
.knopf.zweit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--linie); }
.knopf.zweit:hover { color: var(--rot); box-shadow: inset 0 0 0 1.5px var(--rot); }

/* Startseite */
.einstieg { padding: 40px 0 8px; max-width: 760px; }
@media (min-width: 720px) { .einstieg { padding-top: 72px; } }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 48px 0 0; }
.kachel {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 10px;
  background: var(--flaeche); text-decoration: none; min-height: 112px;
}
.kachel strong { font-size: 1.05rem; }
.kachel span { color: var(--grau); font-size: 0.92rem; line-height: 1.45; }
.kachel:hover strong { color: var(--rot); }

.archiv { margin-top: 24px; }
.archiv h2 { margin-top: 64px; }
.jahr h3 { font-size: 0.85rem; letter-spacing: 0.12em; color: var(--grau); margin: 28px 0 4px; }
.artikel { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linie); }
.artikel li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--linie);
}
.artikel a { text-decoration: none; }
.artikel time { color: var(--grau); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Einzelseiten */
.eintrag { max-width: 720px; margin: 0 auto; padding-top: 24px; }
.eintrag.breit { max-width: none; }
.eintrag > h1 { margin-bottom: 28px; }
.text img, .titelbild img { max-width: 100%; height: auto; border-radius: 4px; }
.titelbild { margin: 0 0 28px; }
.text figure { margin: 0 0 1.2em; }
.text figcaption, .bildtext { color: var(--grau); font-size: 0.88rem; margin-top: 6px; }
.text .mitte { text-align: center; margin-left: auto; margin-right: auto; }
.text blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--linie); color: var(--grau); }
.text hr { border: 0; border-top: 1px solid var(--linie); margin: 32px 0; }
.text ul, .text ol { padding-left: 1.3em; }

.text .galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 1.2em; padding: 0; }
.text .galerie div, .text .galerie ul, .text .galerie figure.galerie { display: contents; }
.text .galerie li { list-style: none; }
.text .galerie figure, .text .galerie a { display: block; margin: 0; }
.text .galerie img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

.text .tabelle { overflow-x: auto; }
.text table { border-collapse: collapse; width: 100%; }
.text td, .text th { padding: 10px; vertical-align: top; text-align: center; border-bottom: 1px solid var(--linie); }

.einbettung a {
  display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 8px;
  background: var(--flaeche); text-decoration: none; font-weight: 700;
}
.einbettung a::before { content: "▶"; color: var(--rot); font-size: 0.9rem; }

.hinweis {
  margin-top: 48px; padding: 16px 18px; border-radius: 8px; background: var(--flaeche);
  color: var(--grau); font-size: 0.9rem;
}

.raster { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
.raster a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
.raster img, .raster .leer {
  display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px;
  background: var(--flaeche);
}
.raster a:hover span { color: var(--rot); }

@media print {
  .kopf .shop, .fuss nav, .knopf { display: none; }
  body { font-size: 11pt; }
}
