/* =========================================================================
   Laufen für Marfan — Kampagnenseite
   Joomla 6 / Astroid tp_barrierefrei (v2026), befristet bis Kampagnenende

   Bilder: /images/laufen-fuer-marfan/
   Schriften werden vom Template übernommen.

   Laden über customcssfiles. Alle Regeln hängen an .lfm, wirken also nur
   auf dieser Seite. Cassiopeia-Abschnitt 15 entfernt 17.11.2026.
   ========================================================================= */


/* --- 1 Grundwerte ------------------------------------------------------ */

.lfm {
  --lfm-blau: #004476;
  --lfm-blau-dunkel: #00355d;
  --lfm-rot: #b1003c;
  --lfm-rot-dunkel: #8d0030;
  --lfm-hellblau: #eaf5fd;
  --lfm-grau: #f3f3f3;
  --lfm-text: #333333;
  --lfm-text-leise: #4a535d;
  --lfm-linie: #7d8a96;
  --lfm-weiss: #ffffff;
  --lfm-blau-hell-auf-blau: #d6e6f2;

  --lfm-radius: 10px;
  --lfm-rand: max(5vw, 1.25rem);
  --lfm-schatten:
    0 1px 2px rgba(0, 40, 70, 0.1),
    0 12px 24px -14px rgba(0, 40, 70, 0.3);

  line-height: 1.6;
  color: var(--lfm-text);
  background: var(--lfm-weiss);
}

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


/* --- 2 Grundbausteine -------------------------------------------------- */

.lfm-abschnitt {
  padding-block: clamp(2.5rem, 8vw, 4.5rem);
  padding-inline: var(--lfm-rand);
}

.lfm-abschnitt--blau {
  background: var(--lfm-blau);
  color: var(--lfm-weiss);
}

.lfm-abschnitt--hell {
  background: var(--lfm-hellblau);
}

.lfm-abschnitt--grau {
  background: var(--lfm-grau);
}

.lfm-innen {
  max-width: 68rem;
  margin-inline: auto;
}

.lfm h2 {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--lfm-blau);
}

.lfm h3 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--lfm-blau);
}

.lfm-abschnitt--blau h2,
.lfm-abschnitt--blau h3 {
  color: var(--lfm-weiss);
}

.lfm p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.lfm p:last-child {
  margin-bottom: 0;
}

.lfm p.lfm-einleitung {
  font-size: 1.15rem;
}

.lfm a {
  color: var(--lfm-blau);
  text-underline-offset: 0.18em;
}

.lfm-abschnitt--blau a {
  color: var(--lfm-weiss);
}

.lfm a:hover {
  text-decoration-thickness: 2px;
}

.lfm a:focus-visible,
.lfm summary:focus-visible {
  outline: 3px solid var(--lfm-blau);
  outline-offset: 3px;
  border-radius: 4px;
}

.lfm-abschnitt--blau a:focus-visible {
  outline-color: var(--lfm-weiss);
}


/* --- 3 Seitenkopf ------------------------------------------------------ */

.lfm-kopf {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(30rem, 49vw, 44rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--lfm-blau-dunkel);
  color: var(--lfm-weiss);
}

/* Foto über die gesamte Fläche. */
.lfm-kopf > img.lfm-kopf-foto {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: 50% 19%;
}

/* Verlauf für Logos und Text, ohne sichtbaren Textkasten. */
.lfm-kopf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 25, 43, 0.40) 0%,
      rgba(0, 25, 43, 0.12) 35%,
      rgba(0, 25, 43, 0.34) 60%,
      rgba(0, 25, 43, 0.82) 100%
    );
}

/* Logos oben rechts, Titel unten links. */
.lfm-kopf-innen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 15rem;
  width: 100%;
  max-width: calc(68rem + 2 * var(--lfm-rand));
  min-width: 0;
  margin-inline: auto;
  padding:
    clamp(1.5rem, 3.5vw, 3rem)
    var(--lfm-rand)
    clamp(2rem, 4vw, 3.5rem);
}

.lfm-kopf-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 100%;
}

.lfm-kopf-logos img.lfm-logo {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.lfm-kopf-logos img.lfm-logo--circle {
  width: clamp(5rem, 10vw, 8rem);
  max-width: 30vw;
  max-height: 7rem;
}

.lfm-kopf-logos img.lfm-logo--marfan {
  width: clamp(8.5rem, 17vw, 13rem);
  max-width: 44vw;
  max-height: 6rem;
}

.lfm-kopf-text {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--lfm-weiss);
}

.lfm .lfm-titel {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--lfm-weiss);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.20);
}

.lfm p.lfm-kopf-unterzeile {
  max-width: none;
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  color: var(--lfm-weiss);
  text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}


/* --- 4 Stand der Kampagne --------------------------------------------- */

.lfm p.lfm-zahl {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--lfm-blau);
  font-variant-numeric: tabular-nums;
}

.lfm-balken {
  position: relative;
  height: 1.25rem;
  max-width: 34rem;
  border: 1px solid var(--lfm-linie);
  border-radius: 999px;
  background: var(--lfm-grau);
  overflow: hidden;
}

/* Füllung des Fortschrittsbalkens. Die Breite steht als style-Attribut im
   Artikel, damit sie nach jedem Run ohne Eingriff am CSS geändert werden
   kann: gelaufene Kilometer geteilt durch 2.802, in Prozent. Nach dem
   Speichern im Editor prüfen, ob das Attribut noch im Quelltext steht. */
.lfm-balken-fuellung {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--lfm-blau);
}

.lfm-balken-marken {
  position: absolute;
  inset: 0;
  display: flex;
}

.lfm-balken-marken span {
  flex: 1 1 10%;
  border-right: 2px solid rgba(0, 68, 118, 0.3);
}

.lfm-balken-marken span:last-child {
  border-right: 0;
}

.lfm p.lfm-stand-hinweis {
  margin: 0.85rem 0 1.75rem;
  font-size: 0.95rem;
  color: var(--lfm-text-leise);
}

.lfm p.lfm-aktionen {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.5rem;
}

.lfm a.lfm-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: var(--lfm-rot);
  color: var(--lfm-weiss);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.lfm a.lfm-knopf:hover {
  background: var(--lfm-rot-dunkel);
  color: var(--lfm-weiss);
}

.lfm a.lfm-knopf:focus-visible {
  outline: 3px solid var(--lfm-blau);
  outline-offset: 3px;
}

.lfm a.lfm-still {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 600;
}

/* Nur für Screenreader. */
.lfm .lfm-nur-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* --- 5 Kleine Partnerreihe -------------------------------------------- */

.lfm p.lfm-reihe-titel {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--lfm-text-leise);
}

.lfm-partnerreihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 13rem));
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.lfm-partnerreihe li {
  display: grid;
  place-items: center;
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--lfm-linie);
  border-radius: var(--lfm-radius);
  background: var(--lfm-weiss);
}

.lfm-partnerreihe img {
  max-height: 2.4rem;
  max-width: 100%;
  width: auto;
  height: auto;
}

.lfm p.lfm-claim {
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 3.5vw, 1.4rem);
  color: var(--lfm-text);
}


/* --- 6 Schritte ------------------------------------------------------- */

.lfm-schritte {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.lfm-schritt {
  min-width: 0;
  padding: 1.5rem;
  background: var(--lfm-weiss);
  border-radius: var(--lfm-radius);
  box-shadow: var(--lfm-schatten);
}

/* Dekorative Symbole als Hintergrundbilder. */
.lfm-schritt::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.lfm-schritt--lauf::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004476' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='15.5' cy='3.5' r='1.8'/%3E%3Cpath d='M14 7 11 12.5'/%3E%3Cpath d='M13.5 8 17 10.5 20 9'/%3E%3Cpath d='M13.5 8 10 7.5 7.5 10.5'/%3E%3Cpath d='M11 12.5 15.5 15 12.5 20.5'/%3E%3Cpath d='M11 12.5 7.5 17 3 17'/%3E%3C/svg%3E");
}

.lfm-schritt--haus::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004476' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l8-4v18'/%3E%3Cpath d='M13 11h6v10'/%3E%3Cpath d='M8 9.5h2M8 13.5h2M16 15h1'/%3E%3C/svg%3E");
}

.lfm-schritt--stimme::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004476' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4' width='17' height='12' rx='2.5'/%3E%3Cpath d='M8.5 16v4l5-4'/%3E%3Cpath d='M7.5 8.5h9M7.5 11.5h5.5'/%3E%3C/svg%3E");
}


/* --- 7 Aus Olpe ------------------------------------------------------- */

.lfm-zweispaltig {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.lfm-zweispaltig > * {
  min-width: 0;
}

.lfm-runkarte {
  padding: 1.25rem;
  border: 2px dashed var(--lfm-linie);
  border-radius: var(--lfm-radius);
  background: var(--lfm-hellblau);
}

.lfm-runkarte > img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 6px;
}

.lfm p.lfm-runkarte-kopf {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--lfm-blau);
}

.lfm-fahrplan {
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.lfm-fahrplan li {
  display: grid;
  grid-template-columns: minmax(5rem, auto) 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--lfm-linie);
}

.lfm-fahrplan li:first-child {
  border-top: 1px solid var(--lfm-linie);
}

.lfm-run {
  font-weight: 600;
  color: var(--lfm-blau);
}

.lfm-status {
  color: var(--lfm-text-leise);
  font-size: 0.95rem;
}

.lfm-fahrplan .lfm-jetzt {
  background: var(--lfm-hellblau);
}

.lfm-jetzt .lfm-status,
.lfm-jetzt .lfm-datum {
  color: var(--lfm-blau);
  font-weight: 600;
}

.lfm p.lfm-rhythmus {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--lfm-text-leise);
}


/* --- 8 Stimmen -------------------------------------------------------- */

.lfm p.lfm-leerkarte {
  margin: 2rem 0 0;
  padding: 2rem 1.5rem;
  max-width: 34rem;
  border: 2px dashed var(--lfm-linie);
  border-radius: var(--lfm-radius);
  background: var(--lfm-weiss);
  color: var(--lfm-text);
}

/* Antworten aus der Community. Die Liste trägt den Inhalt vollständig;
   die Karte daneben ist Schmuck und für Screenreader ausgeblendet. */
.lfm-stimmen {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.lfm-stimmen li {
  padding: 1.1rem 1.25rem;
  border-radius: var(--lfm-radius);
  background: var(--lfm-weiss);
  box-shadow: var(--lfm-schatten);
}

/* Der Ort trägt den Bezug zur Karte und ist deshalb hervorgehoben: in der
   Kampagnenfarbe, halbfett, mit demselben Punkt davor, der auf der Karte
   steht. */
.lfm-stimme-ort {
  display: block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lfm-rot);
}

.lfm-stimme-ort::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  vertical-align: 0.04em;
  border-radius: 999px;
  background: var(--lfm-rot);
}

/* Karte mit Markern. Die Marker stehen als Prozentwerte im style-Attribut
   des Artikels: links = Länge, oben = Breite, umgerechnet auf den
   Kartenausschnitt (5,87 bis 15,04 Grad Ost, 47,27 bis 55,06 Grad Nord,
   Mercator). Nach dem Speichern im Editor prüfen, ob die Attribute noch
   im Quelltext stehen. */
.lfm-karte-feld {
  position: relative;
  width: 100%;
  max-width: 15rem;
  margin: 2rem auto 0;
}

.lfm-karte {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.lfm-marker {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 999px;
  background: var(--lfm-rot);
  box-shadow: 0 0 0 2px var(--lfm-weiss);
}


/* --- 8a Privat spenden (ergänzt 11.11.2026) --------------------------- */

/* Rechenbeispiele: Betrag pro Kilometer mal 2.802. Für Screenreader steht
   zwischen beiden Teilen ein unsichtbares „ergibt". */
.lfm-rechnung {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.lfm-rechnung li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--lfm-radius);
  background: var(--lfm-weiss);
  box-shadow: var(--lfm-schatten);
}

.lfm-rechnung-satz {
  font-size: 0.95rem;
  color: var(--lfm-text-leise);
}

.lfm-rechnung-summe {
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.2;
  color: var(--lfm-blau);
}

/* Spendenbarometer von FundraisingBox. Der Balken im Widget ist fest
   404 px breit, das Widget braucht damit rund 430 px. Auf schmalen
   Bildschirmen wird es deshalb als Ganzes verkleinert statt
   abgeschnitten. Der negative Abstand unten gleicht die Höhe aus, die
   transform im Layout stehen lässt. */
.lfm-spendenstand {
  overflow: hidden;
}

.lfm-barometer {
  display: block;
  width: 100%;
  max-width: 440px;
  height: 210px;
  margin: 0 0 0.75rem;
  border: 0;
}

@media (max-width: 479px) {

  .lfm-barometer {
    width: 440px;
    max-width: none;
    transform-origin: 0 0;
    transform: scale(0.8);
    margin-bottom: calc(0.75rem - 210px * 0.2);
  }

}

@media (max-width: 391px) {

  .lfm-barometer {
    transform: scale(0.72);
    margin-bottom: calc(0.75rem - 210px * 0.28);
  }

}

@media (max-width: 356px) {

  .lfm-barometer {
    transform: scale(0.63);
    margin-bottom: calc(0.75rem - 210px * 0.37);
  }

}


/* Spendenformular. Das Skript von FundraisingBox setzt ein iframe mit
   width: 100% und passt die Höhe selbst an. Die Breite wird hier auf eine
   lesbare Formularbreite begrenzt. Der Block steht als eigener Abschnitt
   am Seitenende; dessen Innenabstand gibt beim Sprung aus dem
   Spendenbarometer genug Luft über der Überschrift.
   Mindesthöhe: Beim Sprung ist das Formular-iframe noch nicht auf seine
   volle Höhe gewachsen. Ohne Mindesthöhe wäre die Seite dann zu kurz,
   um den Abschnitt bis nach oben zu scrollen. */
#lfm-spendenformular {
  min-height: 100vh;
}

/* Der JCE setzt {loadmoduleid} in einen Absatz (Formular und, seit v2026,
   Barometer, weil die Firewall iframes im Artikel blockt). Das Modul bringt eigene
   Blöcke mit, der Browser lässt davor und danach leere Absätze stehen. */
.lfm-formular p:empty,
.lfm-spendenstand p:empty {
  display: none;
}

.lfm-formular #fbIframeDiv {
  max-width: 40rem;
}

.lfm-formular #fbIframe {
  display: block;
  border: 0;
}

.lfm p.lfm-formular-anbieter {
  margin: 0.75rem 0 0;
}

.lfm p.lfm-formular-anbieter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lfm p.lfm-formular-anbieter img {
  display: block;
  width: 140px;
  height: auto;
}


/* --- 9 Partner -------------------------------------------------------- */

.lfm-partner {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 13rem), 20rem));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.lfm-partner li {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 6.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--lfm-linie);
  border-radius: var(--lfm-radius);
  background: var(--lfm-weiss);
}

.lfm-partner img {
  max-height: 3.25rem;
  max-width: 100%;
  width: auto;
  height: auto;
}

.lfm p.lfm-einladung {
  margin-top: 2rem;
  color: var(--lfm-text-leise);
}


/* --- 10 Finale -------------------------------------------------------- */

.lfm p.lfm-finale-datum {
  font-weight: 600;
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  color: var(--lfm-blau-hell-auf-blau);
}

.lfm-bild {
  margin: 2rem 0 0;
}

.lfm-bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--lfm-radius);
}

.lfm-bild figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--lfm-blau-hell-auf-blau);
}


/* --- 11 Presse -------------------------------------------------------- */

.lfm p.lfm-person {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: none;
  margin: 2rem 0 1.5rem;
}

.lfm-portraet {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.lfm-person-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lfm-person-text strong {
  color: var(--lfm-blau);
}

.lfm a.lfm-knopf--leise {
  background: var(--lfm-weiss);
  color: var(--lfm-blau);
  border: 2px solid var(--lfm-blau);
}

.lfm a.lfm-knopf--leise:hover {
  background: var(--lfm-blau);
  color: var(--lfm-weiss);
}

.lfm p.lfm-hinweis-leise {
  margin: 0;
  font-size: 0.9rem;
  color: var(--lfm-text-leise);
}


/* --- 12 Breite Bildschirme -------------------------------------------- */

@media (min-width: 900px) {

  .lfm-schritte {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .lfm-zweispaltig {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .lfm-stand-raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 3rem;
    align-items: center;
  }

  .lfm-stand-raster > * {
    grid-column: 1;
  }

  .lfm-stand-raster .lfm-aktionen {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
  }

  .lfm-karte-raster {
    display: grid;
    grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: center;
  }

  .lfm-karte-raster > * {
    grid-column: 1;
  }

  /* Die Karte steht neben allen Elementen der ersten Spalte. Die Zahl
     hinter span ist deren Anzahl: Überschrift, Absatz, Stimmenliste. */
  .lfm-karte-raster .lfm-karte-feld {
    grid-column: 2;
    grid-row: 1 / span 3;
    max-width: 18rem;
    margin: 0 auto;
  }

  .lfm-finale-raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3.5rem;
    align-items: center;
  }

  .lfm-finale-raster > * {
    grid-column: 1;
    min-width: 0;
  }

  .lfm-finale-raster .lfm-bild {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
  }

}


/* --- 13 Schmale Bildschirme ------------------------------------------- */

@media (max-width: 599px) {

  .lfm-kopf {
    min-height: 34rem;
  }

  .lfm-kopf > img.lfm-kopf-foto {
    object-position: 55% center;
  }

  .lfm-kopf-innen {
    gap: 7rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .lfm-kopf-logos {
    gap: 1.25rem;
  }

  .lfm .lfm-titel {
    font-size: clamp(2.5rem, 10vw, 3.7rem);
  }

  .lfm p.lfm-kopf-unterzeile {
    max-width: 30ch;
    font-size: 1.1rem;
  }

}

@media (max-width: 479px) {

  .lfm-fahrplan li {
    grid-template-columns: auto 1fr;
  }

  .lfm-fahrplan li .lfm-status {
    grid-column: 1 / -1;
  }

}


/* --- 14 Barrierefreiheit: Sonderfälle --------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .lfm * {
    animation: none !important;
    transition: none !important;
  }

}

@media (forced-colors: active) {

  .lfm-kopf::before {
    display: none;
  }

  .lfm-kopf-text {
    padding: 1rem;
    background: Canvas;
    color: CanvasText;
    border: 2px solid CanvasText;
  }

  .lfm .lfm-titel,
  .lfm p.lfm-kopf-unterzeile {
    color: CanvasText;
    text-shadow: none;
  }

  .lfm a.lfm-knopf {
    border: 2px solid ButtonText;
  }

  .lfm-schritt::before {
    display: none;
  }

  /* Der Schlagschatten der Marker verschwindet im Kontrastmodus, ein
     Rahmen hält sie auf der Karte sichtbar. */
  .lfm-marker,
  .lfm-stimme-ort::before {
    background: Highlight;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  /* Die Füllung ist eine reine Fläche und verschwindet im Kontrastmodus.
     Systemfarbe plus Rahmen halten den Fortschritt sichtbar. */
  .lfm-balken-fuellung {
    background: Highlight;
    border-right: 2px solid CanvasText;
  }

  .lfm-partner li,
  .lfm-partnerreihe li,
  .lfm-runkarte,
  .lfm-leerkarte,
  .lfm-balken {
    border-color: CanvasText;
  }

}


/* --- 15 Seitenrahmen auf v2026 (ergänzt 17.11.2026) ------------------- */

/* Brotkrumen ausblenden: Die Seite hat ihren eigenen Kopf mit Logos und
   beginnt direkt unter der Navigation. Gilt nur für den Menüeintrag mit
   dem Alias „laufen“ (Astroid setzt laufen-alias an den body). */
body.laufen-alias .astroid-section:has(.mod-breadcrumbs__wrapper) {
  display: none;
}
