/* Jubiläumslink im Hauptmenü */
.header-menu .fmg-jubi .header-menu__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #9b1c36;
    color: #fff;
    white-space: nowrap;
    transition: background-color .16s ease;
}

.header-menu .fmg-jubi .header-menu__link:hover,
.header-menu .fmg-jubi .header-menu__link:focus-visible {
    background: #852331;
    color: #fff;
}

@media (min-width: 1051px) {
    .header-menu:has(.fmg-jubi) {
        align-self: stretch;
        margin-block: -35px -21px;
    }

    .header-menu__list:has(> .fmg-jubi) {
        align-self: stretch;
        align-items: center;
    }

    .header-menu:has(.fmg-jubi) > .search-wrap,
    .header-menu__list:has(> .fmg-jubi) > .header-menu__item:not(.fmg-jubi) {
        margin-block: 35px 21px;
    }

    .header-menu__list > .fmg-jubi {
        display: flex;
        align-self: stretch;
    }

    .header-menu__list > .fmg-jubi > .header-menu__item-inner {
        align-items: stretch;
    }

    .header-menu .fmg-jubi .header-menu__link {
        padding-block: 35px 21px;
        padding-inline: clamp(10px, 1.5vw, 26px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-menu .fmg-jubi .header-menu__link { transition: none; }
}

/* Jubiläumsseite */

/* Grundlayout und Typografie */
.fmg-jubilaeum {
  --fmg-rot: #9b1c36;
  --fmg-ocean: #5f93b8;
  --fmg-orange: #f6891f;
  --fmg-beige: #e8b96c;
  --fmg-grau80: #4d4c4c;
  --fmg-hellgrau: #e7e6e5;
  --fmg-gutter: max(30px, calc((100% - 1365px) / 2));
  color: var(--fmg-grau80);
  font-size: 19px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.fmg-jubilaeum img {
  display: block;
  max-width: 100%;
}

.fmg-jubilaeum .fmg-code {
  margin: 0;
  color: inherit;
  font-family: Oswald, Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.12;
}

.fmg-jubilaeum a:focus-visible {
  outline: 3px solid var(--fmg-ocean);
  outline-offset: 3px;
}

/* Kartenplatzhalter im eingebundenen Seitenfuß */
main:has(> .fmg-jubilaeum) + .footer .footer-map iframe:not([src]) { display: none; }

/* Jubiläum */
.fmg-jubilaeum .fmg-b-hero {
  display: flex;
  min-height: 640px;
}

.fmg-jubilaeum .fmg-b-hero .fmg-rot {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 48px;
  padding: 56px 64px 60px var(--fmg-gutter);
  background: var(--fmg-rot);
  color: #fff;
}

.fmg-jubilaeum .fmg-marke { width: 300px; }
.fmg-jubilaeum .fmg-jahre { width: 260px; }

.fmg-jubilaeum .fmg-unten {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.fmg-jubilaeum .fmg-b-hero .fmg-code {
  max-width: 12.5em;
  font-size: 40px;
}

.fmg-jubilaeum .fmg-claim {
  margin-top: 14px;
  color: var(--fmg-beige);
  font-size: 28px;
  font-style: italic;
  line-height: 1.2;
}

.fmg-jubilaeum .fmg-foto {
  display: flex;
  flex: 0 0 33.333%;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.fmg-jubilaeum .fmg-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 40%;
}

.fmg-jubilaeum .fmg-ecke {
  align-self: flex-end;
  position: relative;
  width: 120px;
  height: 120px;
  background: var(--fmg-orange);
}

/* Einleitung */
.fmg-jubilaeum .fmg-b-intro {
  padding-block: 92px;
  background: var(--fmg-ocean);
  color: #fff;
}

.fmg-jubilaeum .fmg-b-intro .fmg-wrap {
  display: flex;
  gap: 72px;
}

.fmg-jubilaeum .fmg-b-intro .fmg-wrap > :first-child { flex: 5 1 0; }
.fmg-jubilaeum .fmg-b-intro .fmg-wrap > :last-child { flex: 7 1 0; }
.fmg-jubilaeum .fmg-b-intro .fmg-code { font-size: 46px; }
.fmg-jubilaeum .fmg-b-intro .fmg-code span { display: block; }
.fmg-jubilaeum .fmg-seit { margin-top: 14px; font-size: 24px; }
.fmg-jubilaeum .fmg-lead { margin-bottom: 22px; font-size: 26px; line-height: 1.32; }

/* Roadshow und Programm */
.fmg-jubilaeum .fmg-b-road { padding-block: 100px; }

.fmg-jubilaeum .fmg-grid {
  display: flex;
  align-items: flex-start;
  gap: 76px;
}

.fmg-jubilaeum .fmg-stapel {
  flex: 5 1 0;
  padding: 0 0 46px 46px;
  background: linear-gradient(var(--fmg-beige), var(--fmg-beige)) left bottom / 72% 62% no-repeat;
}

.fmg-jubilaeum .fmg-stapel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
}

.fmg-jubilaeum .fmg-road-content { flex: 7 1 0; min-width: 0; }
.fmg-jubilaeum .fmg-b-road .fmg-code { margin-bottom: 20px; color: var(--fmg-rot); font-size: 44px; }
.fmg-jubilaeum .fmg-einl { max-width: 32em; margin-bottom: 34px; }

.fmg-jubilaeum .fmg-tab-head,
.fmg-jubilaeum .fmg-tab-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.fmg-jubilaeum .fmg-tab-head {
  padding-bottom: 12px;
  border-bottom: 3px solid var(--fmg-rot);
  color: var(--fmg-rot);
  font-weight: 700;
}

.fmg-jubilaeum .fmg-tab-row {
  padding-block: 17px;
  border-bottom: 1px solid #cfcdcc;
}

.fmg-jubilaeum .fmg-b-tab span:first-child { flex: 0 0 7em; }
.fmg-jubilaeum .fmg-b-tab span:nth-child(2) { flex: 0 0 6em; }
.fmg-jubilaeum .fmg-tab-row span:first-child { font-family: Oswald, Roboto, sans-serif; font-weight: 700; }
.fmg-jubilaeum .fmg-tab-row span:nth-child(2) { font-weight: 700; }
.fmg-jubilaeum .fmg-tab-row span:last-child { color: #77757a; }

/* Festschrift */
.fmg-jubilaeum .fmg-b-fest { display: flex; background: var(--fmg-hellgrau); }

.fmg-jubilaeum .fmg-b-fest .fmg-text {
  flex: 0 0 54%;
  min-width: 0;
  padding: 96px 130px 96px var(--fmg-gutter);
  background: var(--fmg-orange);
  color: #fff;
}

.fmg-jubilaeum .fmg-b-fest .fmg-code { margin-bottom: 22px; font-size: 44px; }
.fmg-jubilaeum .fmg-b-fest p { max-width: 27em; margin-bottom: 34px; font-size: 21px; }
.fmg-jubilaeum .fmg-buch { display: flex; flex: 1 1 0; align-items: center; min-width: 0; padding-block: 70px; }
.fmg-jubilaeum .fmg-buch img { width: 330px; margin-left: -90px; box-shadow: 0 22px 44px rgb(77 76 76 / 35%); }

.fmg-jubilaeum .fmg-knopf {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: var(--fmg-grau80);
  color: #fff;
  font: 700 23px/1.3 Oswald, Roboto, sans-serif;
  transition: background-color .16s ease;
}

.fmg-jubilaeum .fmg-knopf:hover { background: var(--fmg-rot); }
.fmg-jubilaeum .fmg-knopf svg { display: block; width: 12px; height: 20px; }
.fmg-jubilaeum .fmg-meta { margin-top: 14px; font-size: 17px; }

/* Fotomosaik */
.fmg-jubilaeum .fmg-b-gal { padding: 100px 0 110px; }

.fmg-jubilaeum .fmg-mosaik {
  --fmg-gap: 14px;
  --fmg-row: 250px;
  --fmg-column: calc((100% - 3 * var(--fmg-gap)) / 4);
}

.fmg-jubilaeum .fmg-mosaik,
.fmg-jubilaeum .fmg-mosaik-column,
.fmg-jubilaeum .fmg-w2 {
  display: flex;
  flex-direction: column;
  gap: var(--fmg-gap);
}

.fmg-jubilaeum .fmg-mosaik-row,
.fmg-jubilaeum .fmg-mosaik-pair {
  display: flex;
  gap: var(--fmg-gap);
}

.fmg-jubilaeum .fmg-mosaik-row > * { flex: 0 0 var(--fmg-column); min-width: 0; }
.fmg-jubilaeum .fmg-mosaik-row > .fmg-w2 { flex-basis: calc((100% - var(--fmg-gap)) / 2); }
.fmg-jubilaeum .fmg-mosaik img { width: 100%; height: var(--fmg-row); object-fit: cover; }
.fmg-jubilaeum .fmg-mosaik img.fmg-h2 { width: var(--fmg-column); height: calc(2 * var(--fmg-row) + var(--fmg-gap)); }
.fmg-jubilaeum .fmg-mosaik-pair img { width: calc((100% - var(--fmg-gap)) / 2); }
.fmg-jubilaeum .fmg-paar { object-position: 40% 70%; }

.fmg-jubilaeum .fmg-kachel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: var(--fmg-row);
  padding: 30px 28px;
  color: #fff;
  line-height: 1.3;
}

.fmg-jubilaeum .fmg-kachel.fmg-rot { background: var(--fmg-rot); }
.fmg-jubilaeum .fmg-kachel.fmg-ocean { background: var(--fmg-ocean); }
.fmg-jubilaeum .fmg-kachel .fmg-code { font-size: 30px; }

@media (max-width: 1240px) {
  .fmg-jubilaeum .fmg-b-hero { min-height: 580px; }
  .fmg-jubilaeum .fmg-b-hero .fmg-rot { padding-right: 44px; }
  .fmg-jubilaeum .fmg-unten { gap: 32px; }
  .fmg-jubilaeum .fmg-jahre { width: 210px; }
  .fmg-jubilaeum .fmg-marke { width: 250px; }
  .fmg-jubilaeum .fmg-b-hero .fmg-code { font-size: 34px; }
}

@media (max-width: 1080px) {
  .fmg-jubilaeum .fmg-unten { flex-direction: column-reverse; align-items: flex-start; }
  .fmg-jubilaeum .fmg-marke { width: 210px; }
  .fmg-jubilaeum .fmg-b-fest .fmg-text { padding-right: 100px; }
  .fmg-jubilaeum .fmg-buch img { width: 260px; margin-left: -70px; }
  .fmg-jubilaeum .fmg-mosaik { --fmg-gap: 10px; --fmg-row: 210px; }
  .fmg-jubilaeum .fmg-kachel { padding: 20px 18px; font-size: 16px; }
  .fmg-jubilaeum .fmg-kachel .fmg-code { font-size: 22px; }
}

@media (max-width: 900px) {
  .fmg-jubilaeum { font-size: 17px; }
  .fmg-jubilaeum .fmg-b-hero { flex-direction: column; min-height: 0; }
  .fmg-jubilaeum .fmg-foto { order: -1; flex-basis: auto; min-height: 240px; }
  .fmg-jubilaeum .fmg-ecke { width: 70px; height: 70px; }
  .fmg-jubilaeum .fmg-b-hero .fmg-rot { flex-basis: auto; gap: 26px; padding: 30px var(--fmg-gutter) 36px; }
  .fmg-jubilaeum .fmg-marke { width: 160px; }
  .fmg-jubilaeum .fmg-unten { gap: 22px; }
  .fmg-jubilaeum .fmg-jahre { width: 170px; }
  .fmg-jubilaeum .fmg-b-hero .fmg-code { font-size: 27px; }
  .fmg-jubilaeum .fmg-claim { margin-top: 8px; font-size: 21px; }

  .fmg-jubilaeum .fmg-b-intro { padding-block: 50px; }
  .fmg-jubilaeum .fmg-b-intro .fmg-wrap { flex-direction: column; gap: 26px; }
  .fmg-jubilaeum .fmg-b-intro .fmg-code { font-size: 30px; }
  .fmg-jubilaeum .fmg-seit { margin-top: 8px; font-size: 20px; }
  .fmg-jubilaeum .fmg-lead { margin-bottom: 14px; font-size: 21px; }

  .fmg-jubilaeum .fmg-b-road { padding-block: 54px; }
  .fmg-jubilaeum .fmg-grid { flex-direction: column; align-items: stretch; gap: 34px; }
  .fmg-jubilaeum .fmg-stapel { order: 2; padding: 0 0 24px 24px; }
  .fmg-jubilaeum .fmg-stapel img { aspect-ratio: 3 / 2; }
  .fmg-jubilaeum .fmg-b-road .fmg-code { margin-bottom: 14px; font-size: 29px; }
  .fmg-jubilaeum .fmg-einl { margin-bottom: 22px; }

  .fmg-jubilaeum .fmg-b-fest { flex-direction: column; }
  .fmg-jubilaeum .fmg-b-fest .fmg-text { flex-basis: auto; padding: 50px var(--fmg-gutter) 130px; }
  .fmg-jubilaeum .fmg-b-fest .fmg-code { margin-bottom: 14px; font-size: 29px; }
  .fmg-jubilaeum .fmg-b-fest p { margin-bottom: 24px; font-size: 18px; }
  .fmg-jubilaeum .fmg-buch { flex-basis: auto; justify-content: center; padding: 0 20px 46px; }
  .fmg-jubilaeum .fmg-buch img { width: 210px; margin: -90px 0 0; }

  .fmg-jubilaeum .fmg-b-gal { padding: 54px 0 60px; }
  .fmg-jubilaeum .fmg-mosaik { --fmg-gap: 8px; --fmg-row: 150px; --fmg-column: calc((100% - var(--fmg-gap)) / 2); }
  .fmg-jubilaeum .fmg-mosaik-row { flex-wrap: wrap; }
  .fmg-jubilaeum .fmg-mosaik-row > .fmg-w2 { flex-basis: 100%; }
  .fmg-jubilaeum .fmg-mosaik-row:first-child .fmg-w2 { order: 1; }
  .fmg-jubilaeum .fmg-kachel { padding: 16px 14px; gap: 6px; }
  .fmg-jubilaeum .fmg-kachel .fmg-code { font-size: 19px; }
}

@media (max-width: 520px) {
  .fmg-jubilaeum .fmg-tab-head {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .fmg-jubilaeum .fmg-tab-row {
    flex-wrap: wrap;
    gap: 3px 14px;
    padding-block: 13px;
  }

  .fmg-jubilaeum .fmg-tab-head + .fmg-tab-row { border-top: 3px solid var(--fmg-rot); }
  .fmg-jubilaeum .fmg-tab-row span:last-child { flex-basis: 100%; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .fmg-jubilaeum .fmg-knopf { transition: none; }
}

/* Festschrift-Leser */

/* Grundlayout und Typografie */
.fmg-festschrift {
  --fmg-rot: #9b1c36;
  --fmg-beige: #e8b96c;
  --fmg-grau80: #4d4c4c;
  --fmg-page-height: clamp(280px, calc(100vh - 174px), 900px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--fmg-grau80);
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
}

.fmg-festschrift :is(a, button, input, form):focus-visible {
  outline: 3px solid var(--fmg-beige);
  outline-offset: 3px;
}

.fmg-festschrift form:focus-visible { outline-offset: -3px; }
.fmg-festschrift button { color: inherit; font: inherit; cursor: pointer; }

/* Kartenplatzhalter im eingebundenen Seitenfuß */
main:has(> .fmg-festschrift) + .footer .footer-map iframe:not([src]) { display: none; }

/* Titel und Rücksprung */
.fmg-festschrift .fmg-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 24px;
  background: var(--fmg-rot);
}

.fmg-festschrift .fmg-kopf h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: inherit;
  font: 700 24px/1.2 Oswald, Roboto, sans-serif;
}

.fmg-festschrift .fmg-kopf img { display: block; width: auto; height: 44px; }

.fmg-festschrift .fmg-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  transition: color .16s ease;
}

.fmg-festschrift .fmg-zurueck:hover { color: var(--fmg-beige); }
.fmg-festschrift .fmg-zurueck svg { display: block; width: 10px; height: 16px; }
.fmg-festschrift .fmg-zurueck svg path { fill: currentColor; }

/* Blätterkatalog */
.fmg-festschrift .fmg-leser {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
}

.fmg-festschrift .fmg-buehne {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 22px 14px;
  touch-action: pan-y pinch-zoom;
}

.fmg-festschrift .fmg-heft {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--fmg-page-height);
  filter: drop-shadow(0 16px 30px rgb(0 0 0 / 45%));
  transition: opacity .16s ease;
}

.fmg-festschrift .fmg-heft.fmg-wechsel { opacity: 0; }

.fmg-festschrift .fmg-heft img {
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  max-width: 50%;
  max-height: var(--fmg-page-height);
  object-fit: contain;
}

.fmg-festschrift .fmg-heft.fmg-einzeln img { max-width: 100%; }
.fmg-festschrift .fmg-heft img[hidden] { display: none; }

.fmg-festschrift .fmg-pfeil {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  background: var(--fmg-rot);
  transition: background-color .16s ease;
}

.fmg-festschrift .fmg-pfeil span,
.fmg-festschrift .fmg-pfeil svg { display: block; }
.fmg-festschrift .fmg-pfeil svg path { fill: currentColor; }
.fmg-festschrift .fmg-pfeil:not(:disabled):hover { background: #852331; }
.fmg-festschrift .fmg-pfeil:disabled { background: #6a6869; color: #ddd; cursor: default; }

/* Seitenwahl */
.fmg-festschrift .fmg-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  padding: 8px 20px;
  background: #3e3d3d;
}

.fmg-festschrift .fmg-stand { min-width: 8.5em; text-align: center; font-variant-numeric: tabular-nums; }

.fmg-festschrift .fmg-anfang {
  padding: 5px 14px;
  border: 1px solid #8f8d8e;
  background: transparent;
  transition: border-color .16s ease;
}

.fmg-festschrift .fmg-anfang:hover { border-color: #fff; }
.fmg-festschrift .fmg-regler { width: min(360px, 34vw); accent-color: var(--fmg-beige); }

@media (max-width: 760px) {
  .fmg-festschrift { --fmg-page-height: clamp(220px, calc(100svh - 202px), 900px); font-size: 15px; }
  .fmg-festschrift .fmg-kopf { gap: 12px; padding: 12px 14px; }
  .fmg-festschrift .fmg-kopf h2 { font-size: 18px; }
  .fmg-festschrift .fmg-kopf img { height: 34px; }
  .fmg-festschrift .fmg-zurueck { padding: 10px 6px; }
  .fmg-festschrift .fmg-zurueck span:last-child { display: none; }
  .fmg-festschrift .fmg-buehne { position: relative; padding: 12px 10px 60px; }
  .fmg-festschrift .fmg-pfeil { position: absolute; bottom: 8px; width: 44px; height: 44px; }
  .fmg-festschrift .fmg-rueck { left: 10px; }
  .fmg-festschrift .fmg-vor { right: 10px; }
  .fmg-festschrift .fmg-fuss { gap: 10px; padding-inline: 12px; }
  .fmg-festschrift .fmg-anfang { padding-inline: 8px; }
  .fmg-festschrift .fmg-regler { flex: 1 1 54px; min-width: 0; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .fmg-festschrift :is(.fmg-zurueck, .fmg-heft, .fmg-pfeil, .fmg-anfang) { transition: none; }
}
