/* MiG-21.de – Stylesheet
   Akzentfarbe #B30204, Schrift Montserrat (lokal), Raster 50 % Bild / 25 % Bildtext / 25 % Bücher */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --rot: #B30204;
  --tinte: #1b1f22;
  --grau: #4f565c;
  --linie: #e2e5e8;
  --flaeche: #f4f5f6;
  --titelgrund: #9f4243;
  --breite: 1400px;
  --rand: 2rem;
  --abstand: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: #fff; color: var(--tinte);
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem; line-height: 1.65;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--rot); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:not([href]) { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
b, strong { font-weight: 600; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprunglink { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.sprunglink:focus { left: 1rem; }

/* ------------------------------------------------------------------ Kopf */
/* Kopfleiste bleibt beim Scrollen sichtbar (wie mueller-krahmer.de) */
.kopf { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--linie); }
html { scroll-padding-top: 90px; }   /* Sprungziele nicht unter der Kopfleiste verstecken */
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); min-height: 84px;
  display: flex; align-items: center; gap: 1rem 1.5rem;
}
.marke { display: flex; align-items: center; gap: .65rem; color: var(--tinte); margin-right: auto; }
.marke:hover { text-decoration: none; color: var(--tinte); }
.marke span { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

.hauptmenue > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.hauptmenue > ul > li { position: relative; display: flex; align-items: center; }
.hauptmenue > ul > li + li { border-left: 1px solid var(--linie); }
.hauptmenue > ul > li > a {
  display: block; padding: .3rem .8rem; color: var(--tinte);
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.hauptmenue > ul > li > a:hover, .hauptmenue li.aktiv > a { color: var(--rot); text-decoration: none; }
.hat-sub > a { padding-right: .2rem !important; }
.sub-schalter {
  display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.8rem;
  margin-right: .4rem; padding: 0; background: none; border: 0; cursor: pointer; color: var(--tinte);
}
.sub-schalter svg { width: 10px; height: 10px; transition: transform .15s ease; }
.hat-sub:hover > .sub-schalter, .hat-sub.aktiv > .sub-schalter { color: var(--rot); }
.hauptmenue .sub {
  display: none; position: absolute; top: calc(100% + 26px); left: 0; min-width: 16rem;
  list-style: none; margin: 0; padding: .5rem 0;
  background: #fff; border: 1px solid var(--linie); border-top: 3px solid var(--rot);
  box-shadow: 0 8px 24px rgba(20, 26, 32, .12);
}
.hauptmenue .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -29px; height: 26px; }
.hat-sub:hover > .sub, .hat-sub:focus-within > .sub, .hat-sub.offen > .sub { display: block; }
.hauptmenue .sub a { display: block; padding: .45rem 1.1rem; color: var(--tinte); font-size: .875rem; line-height: 1.4; }
.hauptmenue .sub a:hover { background: var(--flaeche); color: var(--rot); text-decoration: none; }
.hauptmenue .sub .ebene3 a { padding-left: 2.1rem; }
.hauptmenue .sub li.aktiv > a { color: var(--rot); font-weight: 600; }
.hauptmenue .menue-suche a { display: flex; align-items: center; }
.hauptmenue .menue-suche svg { width: 17px; height: 17px; }
.hauptmenue > ul > li:last-child > a { padding-right: 0; }

.menue-knopf {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--tinte); padding: 0;
}
.menue-knopf svg { width: 22px; height: 22px; }

@media (max-width: 1200px) {
  .menue-knopf { display: flex; }
  .hauptmenue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--linie); box-shadow: 0 12px 24px rgba(20, 26, 32, .1);
    max-height: calc(100vh - 84px); overflow-y: auto; padding: 0 var(--rand) 1rem; }
  .hauptmenue.offen { display: block; }
  .hauptmenue > ul { flex-direction: column; align-items: stretch; }
  .hauptmenue > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--linie); }
  .hauptmenue > ul > li + li { border-left: 0; }
  .hauptmenue > ul > li > a { flex: 1; padding: .85rem 0; font-size: .875rem; }
  .sub-schalter { width: 44px; height: 44px; margin: 0; }
  .hat-sub.offen > .sub-schalter svg { transform: rotate(180deg); }
  .hauptmenue .sub, .hat-sub:hover > .sub, .hat-sub:focus-within > .sub {
    display: none; position: static; width: 100%; min-width: 0; box-shadow: none; border: 0;
    border-left: 2px solid var(--linie); margin: 0 0 .6rem .2rem; padding: 0 0 0 .9rem; }
  .hauptmenue .sub::before { display: none; }
  .hat-sub.offen > .sub { display: block; }
  .hauptmenue .sub a { padding: .45rem 0; font-size: .9375rem; }
  .hauptmenue .sub .ebene3 a { padding-left: 1rem; }
  .hauptmenue .sub a:hover { background: none; }
}

/* ------------------------------------------------------------ Titelbild */
.titelbild {
  background: var(--titelgrund) url(../img/titelbild.jpg) center top / 100% auto no-repeat;
  aspect-ratio: 1920 / 606; display: flex; align-items: flex-start;
}
.titelbild-text { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 2.5rem var(--rand) 0; color: #fff; }
.titelbild .pfad { margin: 0 0 .4rem; font-size: .9375rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.titelbild .pfad a { color: #fff; }
.titelbild h1 {
  margin: 0; font-size: clamp(1.8rem, 3.6vw, 3.25rem); font-weight: 400; line-height: 1.12;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35); overflow-wrap: break-word;
}
@media (max-width: 760px) {
  .titelbild { aspect-ratio: auto; padding-top: calc(100vw * 606 / 1920); }
  .titelbild-text { padding: 1.1rem var(--rand) 1.3rem; }
}

/* ------------------------------------------------------ Seite und Raster */
.seite {
  flex: 1 0 auto; width: 100%; max-width: var(--breite); margin: 0 auto;
  padding: 3rem var(--rand) 4rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--abstand); align-items: start;
}
.inhalt {
  grid-column: span 3; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--abstand); align-content: start;
}
.inhalt > * { grid-column: 1 / -1; min-width: 0; }
.inhalt > p, .inhalt > ul, .inhalt > ol, .inhalt > h2, .inhalt > h3, .inhalt > blockquote { max-width: 48rem; }
.inhalt > :first-child { margin-top: 0; }
.inhalt p { margin: 0 0 1em; }
.inhalt ul, .inhalt ol { margin: 0 0 1.4em; padding-left: 1.2rem; }
.inhalt li { margin-bottom: .3rem; }
.inhalt h2 {
  margin: 2.2rem 0 .6rem; color: var(--rot);
  font-size: 1.375rem; font-weight: 500; letter-spacing: .01em; line-height: 1.35;
}
.inhalt h3 { margin: 1.6rem 0 .5rem; color: var(--rot); font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.rechts { text-align: right; }
.mitte { text-align: center; }

/* Bild + Bildtext: 2/3 der Inhaltsbreite = 50 % der Seite, Text daneben = 25 % */
.bild {
  margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--abstand); align-items: start;
}
.bild > .bild-medien { grid-column: span 2; }
.bild-medien > img + img, .bild-medien > a + a, .bild-medien > img + a, .bild-medien > a + img { margin-top: .5rem; }
.bild-medien img.original { width: auto; max-width: 100%; height: auto; max-height: none; }
/* höchstens 800 x 533 px (bzw. 533 x 800 px hochkant auf 533 px Höhe begrenzt), nie hochskaliert */
.bild img { display: block; width: auto; height: auto; max-width: min(100%, 800px); max-height: 533px; }
.bild img.grafik { width: auto; max-width: 100%; }
.bild .grafik-flaeche { background: var(--flaeche); padding: 1.5rem; }
.bild figcaption {
  font-size: .9375rem; line-height: 1.6; color: #3d4349;
  padding-top: .45rem; border-top: 3px solid var(--rot);
}
.bild figcaption:empty { display: none; }

/* Bildergalerie (frühere Tabellen mit Kleinbildern) */
.galerie {
  margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem;
}
.galerie a, .galerie img { display: block; }
.galerie img { width: 100%; height: auto; }

/* Meldungen (Aktuell, Archiv) */
.meldungen { margin: 0 0 2rem; display: grid; gap: 0; }
.meldung {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: var(--abstand);
  padding: 1rem 0; border-top: 1px solid var(--linie);
}
.meldung:last-child { border-bottom: 1px solid var(--linie); }
.meldung time, .meldung .datum { color: var(--rot); font-size: .875rem; font-weight: 600; padding-top: .15rem; }
.meldung .datum.hervor { text-transform: uppercase; }
.meldung > div > :last-child { margin-bottom: 0; }
/* wie Bilder im Text: höchstens 800 x 533 px, nie hochskaliert (kleine Fremdbilder in Originalgröße) */
.meldung img { display: block; margin: .8rem 0; width: auto; height: auto; max-width: min(100%, 800px); max-height: 533px; }

/* Datentabellen */
.tabelle { margin: 0 0 2rem; overflow-x: auto; }
.tabelle table { border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.tabelle td, .tabelle th { padding: .35rem .6rem; vertical-align: top; text-align: left; }
.tabelle th { font-weight: 600; }
.tabelle .tdR, .tabelle .tdRM, .tabelle .tdRZ, .tabelle .thRM, .tabelle .thRPM,
.tabelle.rahmen td, .tabelle.rahmen th { border: 1px solid #c9ced3; }
.tabelle .tdRM, .tabelle .tdRZ, .tabelle .thRM, .tabelle .thRPM, .tabelle.mittig td { text-align: center; }
.tabelle tr:has(th.thRM) th, .tabelle th.thRM, .tabelle th.tdRM { background: var(--flaeche); }
.tabelle .tdRot, .tabelle .tdDatRot { color: var(--rot); }
.tabelle img { max-width: none; }
.tabelle .tdAchtg { border: 1px solid var(--rot); padding: .6rem; color: var(--rot); }
.hinweis { border-left: 3px solid var(--rot); padding: .6rem 1rem; background: var(--flaeche); }

/* Nachgebaute Zeitschriftenseiten (Publikationen) */
.publikation { max-width: 760px; margin: 0 0 2rem; }
.publikation table { border-collapse: collapse; width: 100%; }
.publikation td, .publikation th { vertical-align: top; padding: 0 .4rem 0 0; }
.publikation img { width: 100%; height: auto; }
.publikation .Pbl1, .publikation .Pbl3, .publikation .Pbl4, .publikation .Pbl12, .publikation .Pbl13,
.publikation .Pbl14, .publikation .Pbl19, .publikation .Pbl21, .publikation .Pbl22, .publikation .Pbl23,
.publikation .Pbl24, .publikation .Pbl25, .publikation .Pbl26, .publikation .Pbl27, .publikation .Pbl28 { font-family: Arial, Helvetica, sans-serif; }
.publikation .Pbl6, .publikation .Pbl7, .publikation .Pbl8, .publikation .Pbl9, .publikation .Pbl10, .publikation .Pbl11,
.publikation .Pbl16, .publikation .Pbl18, .publikation .Pbl20, .publikation .Pbl29 { font-family: "Times New Roman", Times, serif; }
.publikation .Pbl1, .publikation .Pbl3, .publikation .Pbl6, .publikation .Pbl7, .publikation .Pbl10, .publikation .Pbl11, .publikation .Pbl20, .publikation .Pbl22, .publikation .Pbl27, .publikation .Pbl29 { font-size: .9375rem; }
.publikation .Pbl4, .publikation .Pbl12, .publikation .Pbl18, .publikation .Pbl19, .publikation .Pbl21, .publikation .Pbl23, .publikation .Pbl26, .publikation .Pbl28 { font-size: .875rem; }
.publikation .Pbl5, .publikation .Pbl13, .publikation .Pbl14, .publikation .Pbl24, .publikation .Pbl25 { font-size: .8125rem; }
.publikation .Pbl2, .publikation .Pbl8, .publikation .Pbl9, .publikation .Pbl15, .publikation .Pbl16 { font-size: 1.0625rem; }
.publikation .Pbl17 { font-size: 1.4rem; text-align: center; color: #333399; font-weight: 700; }
.publikation .Pbl2, .publikation .Pbl3, .publikation .Pbl9, .publikation .Pbl10, .publikation .Pbl14, .publikation .Pbl15,
.publikation .Pbl19, .publikation .Pbl21, .publikation .Pbl22, .publikation .Pbl25, .publikation .Pbl26, .publikation .Pbl27, .publikation .Pbl28 { font-weight: 700; }
.publikation .Pbl2, .publikation .Pbl7, .publikation .Pbl12, .publikation .Pbl23, .publikation .Pbl29 { font-style: italic; }
.publikation .Pbl11, .publikation .Pbl12 { text-align: right; }
.publikation .Pbl15 { color: #333399; }
.publikation .Pbl16 { color: #c00; }
.publikation .Pbl21, .publikation .Pbl22, .publikation .Pbl24, .publikation .Pbl25 { color: #1C7E4C; }
.publikation .Pbl26 { color: #6f8288; }
.publikation .Pbl27 { color: #006666; }
.publikation .Pbl28 { color: #d42a00; }
.publikation .tabPbl1 { background: #FFFF99; border: 1px solid #1C7E4C; }
.publikation .tabPbl2 { background: #92BDED; border: 2px solid #92BDED; }
.publikation .quelle { text-align: right; font-size: .9375rem; }

/* Literatur: Bücherlisten behalten Bildgröße, Text vertikal mittig zum Cover */
.tabelle.literatur table { width: 100%; }
.tabelle.literatur td, .tabelle.literatur th { vertical-align: middle; padding: .8rem .6rem; }
.tabelle.literatur td:first-child { width: 1%; }
.tabelle.literatur img { display: block; width: auto; max-width: none; }
.literatur .bild img, .bild img.original { width: auto; max-width: 100%; }

/* Publikationen: Bilder immer untereinander, Originalgröße */
.publikationsliste .galerie { display: block; }
.publikationsliste .galerie img, .publikationsliste .galerie a { display: block; width: auto; max-width: 100%; margin: 0 0 1rem; }
.publikationsliste .bild img { width: auto; max-width: 100%; }

/* Weltkarte (Einsatz) */
.weltkarte { margin: 0 0 1.5rem; }
.weltkarte svg { display: block; width: 100%; height: auto; }
.weltkarte .land { fill: #d9dcdf; stroke: #fff; stroke-width: .5; }
.weltkarte a .land { fill: var(--rot); transition: fill .15s ease; }
.weltkarte a:hover .land, .weltkarte a:focus .land { fill: #6e0102; }
.weltkarte .ozean { fill: #f4f5f6; }
.hoheitszeichen { list-style: none; margin: 0 0 2rem; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem 1rem; font-size: .9375rem; }
@media (max-width: 760px) { .hoheitszeichen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .hoheitszeichen { grid-template-columns: minmax(0, 1fr); } }
.hoheitszeichen a { display: flex; align-items: center; gap: .6rem; color: var(--tinte); padding: .2rem 0; white-space: nowrap; }
.hoheitszeichen a:hover { color: var(--rot); }
.hoheitszeichen .hkz { flex: none; width: 48px; height: 30px; display: flex; align-items: center; justify-content: center; }
.hoheitszeichen img { max-width: 48px; max-height: 30px; width: auto; height: auto; }

/* Weiterblättern */
.blaettern {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .875rem; font-weight: 600;
}

/* Suche und Sitemap */
.suchformular { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2rem; max-width: 48rem; }
.suchformular input[type="search"] {
  flex: 1 1 16rem; font: inherit; padding: .65rem .9rem; border: 1px solid #b9bfc5; border-radius: 0; min-width: 0;
}
.suchformular button {
  font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .875rem;
  padding: .65rem 1.5rem; border: 2px solid var(--rot); background: var(--rot); color: #fff; cursor: pointer;
}
.suchformular button:hover { background: #fff; color: var(--rot); }
.suchinfo { color: var(--grau); }
.treffer { padding: 1rem 0; border-top: 1px solid var(--linie); max-width: 48rem; }
.treffer h2 { margin: 0 0 .3rem !important; font-size: 1.0625rem !important; text-transform: none !important; letter-spacing: 0 !important; }
.treffer p { margin: 0; font-size: .9375rem; color: #3d4349; }
.treffer mark { background: #f6d9d9; color: inherit; padding: 0 .1em; }
.sitemap { max-width: 48rem; }
.sitemap section { break-inside: avoid; margin-bottom: 1.5rem; }
.sitemap h2 { margin-top: 0 !important; }
.sitemap ul { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.sitemap li { margin-bottom: .25rem; }
.sitemap ul ul { padding-left: 1rem; margin-top: .25rem; }

/* ------------------------------------------------------ Bücherspalte */
.buecher { grid-column: span 1; min-width: 0; display: flex; flex-direction: column; gap: 2.25rem; }
.buecher h2 {
  margin: 0; padding-bottom: .5rem; border-bottom: 3px solid var(--rot);
  font-size: .9375rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--tinte);
}
.buch { display: flex; flex-direction: column; gap: .7rem; color: var(--tinte); }
.buch:hover { text-decoration: none; opacity: .85; }
.buch img { display: block; width: 100%; max-width: 280px; height: auto; box-shadow: 0 3px 14px rgba(20, 26, 32, .2); }
.buch span { font-size: .9375rem; line-height: 1.45; }
.buch strong { display: block; }
.buch em { font-style: normal; color: var(--grau); }

/* ------------------------------------------------------------------ Fuß */
.fuss { border-top: 1px solid var(--linie); font-size: .75rem; }
.fuss-innen {
  max-width: var(--breite); margin: 0 auto; padding: 1.25rem var(--rand);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
}
.fuss p { margin: 0; color: var(--grau); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fuss li + li { border-left: 1px solid var(--linie); }
.fuss li a { display: block; padding: 0 .75rem; text-transform: uppercase; }
.fuss li:first-child a { padding-left: 0; }
.fuss li:last-child a { padding-right: 0; }
.fuss a.still { color: inherit; cursor: text; }
.fuss a.still:hover { text-decoration: none; }

/* ------------------------------------------------------ kleinere Bildschirme */
@media (max-width: 960px) {
  .seite { grid-template-columns: minmax(0, 1fr); }
  .inhalt, .buecher { grid-column: 1 / -1; }
  .buecher { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem; }
  .buecher h2 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --rand: 1.1rem; --abstand: 1.25rem; }
  body { font-size: 1rem; }
  .kopf-innen { min-height: 64px; }
  .marke span { font-size: 1.2rem; }
  .seite { padding-top: 2rem; }
  .bild, .inhalt { grid-template-columns: minmax(0, 1fr); }
  .bild > .bild-medien { grid-column: 1 / -1; }
  .bild figcaption { margin-top: .6rem; }
  .meldung { grid-template-columns: minmax(0, 1fr); }
  .galerie { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .hauptmenue { max-height: calc(100vh - 64px); }
}

/* ------------------------------------------------------------------ Druck */
@media print {
  .kopf, .fuss, .buecher, .blaettern { display: none; }
  .titelbild { background: none; aspect-ratio: auto; }
  .titelbild-text, .titelbild .pfad a { color: #000; text-shadow: none; padding: 0; }
  .titelbild h1 { max-width: none; }
  .seite { display: block; padding: 0; }
}

/* Bildmosaik (Gedenkseite): Bilder einer Reihe gleich hoch, Reihe füllt die Breite */
.mosaik { display: grid; gap: .5rem; margin: 0 0 2rem; }
.mosaik-reihe { display: flex; gap: .5rem; }
.mosaik-reihe img { width: 0; min-width: 0; height: auto; display: block; }
@media (max-width: 640px) { .mosaik-reihe { flex-wrap: wrap; } .mosaik-reihe img { flex-basis: 100% !important; width: 100%; } }
