/* Gemeinsame, seitenübergreifende Skalierungsregeln. */
:root {
  --mobile-breakpoint: 800px;
  --serif: Georgia, "Times New Roman", serif;
}

/* Einheitliche Schriftfamilie auch für native Formularbedienelemente. */
button,
input,
select,
textarea {
  font-family: var(--serif);
}

/* Gemeinsamer Rahmen und Kopf der Startseite und von „Nichtstun“. */
.ranch-shell {
  width: min(1420px, 100%);
  min-height: 100vh;
  margin: auto;
  padding: 18px clamp(15px, 3.2vw, 52px) 30px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 8% 0%, rgba(255,255,255,.62), transparent 34%), radial-gradient(ellipse at 100% 100%, rgba(104,61,25,.15), transparent 35%), repeating-linear-gradient(0deg, rgba(92,60,28,.035) 0 1px, transparent 1px 4px), repeating-linear-gradient(88deg, transparent 0 9px, rgba(106,70,35,.025) 10px);
  box-shadow: 0 0 50px rgba(0,0,0,.42);
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 11px 0 var(--nav-space-after, 20px);
  border-bottom: 1px solid var(--ink);
}

.nav a {
  padding: 0 18px 9px;
  border-right: 1px solid var(--rule);
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:last-child { border: 0; }

.nav a.nav-page {
  margin: -5px 3px 5px;
  padding: 5px 12px 7px;
  border: 1px solid var(--umber);
  color: var(--paper-light, var(--light));
  background: var(--umber);
  box-shadow: 2px 2px 0 var(--gold);
}

.nav a.nav-page::after { content: " ↗"; color: #e3b474; }
.nav a.nav-page:hover,
.nav a.nav-page:focus-visible { color: #fff8e8; background: var(--rust); }

@media (max-width: 620px) {
  .ranch-shell { padding: 12px 13px 22px; }
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Der erste Tastaturfokus bietet auf allen Inhaltsseiten einen direkten Weg
   an Kopf und Navigation vorbei. Außerhalb des Fokus bleibt der Link unsichtbar. */
.skip-link {
  position: fixed;
  z-index: 100;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--gold);
  color: var(--paper-light, #f4e9d0);
  background: var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
  font: 700 .82rem/1.2 var(--serif);
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus-visible {
  color: #fff8e8;
  background: var(--rust);
  outline: 3px solid var(--paper-light, #f4e9d0);
  outline-offset: 2px;
  transform: translateY(0);
}

#main-content { scroll-margin-top: 12px; }

/* Einheitlicher Wolf-Ranch-Kopf auf allen veröffentlichten Seiten. */
.masthead {
  border-top: 7px solid var(--ink);
  border-bottom: 5px double var(--ink);
  padding: 6px 0 8px;
  text-align: center;
}

.masthead .dateline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 .55rem;
  margin: 0;
  font-size: .68rem;
  font-weight: bold;
  letter-spacing: .1em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.masthead .dateline span { white-space: nowrap; }
.masthead .dateline-place::after { content: " ·"; }

.masthead .brand {
  margin: 4px 0 0;
  font-family: Rockwell, 'Roboto Slab', Clarendon, 'DejaVu Serif', Georgia, serif;
  font-size: clamp(4.3rem, 11.3vw, 10.4rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .75;
  text-shadow: 1px 1px 0 rgba(244,233,208,.55);
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead .brand a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.masthead .brand a:hover,
.masthead .brand a:focus-visible {
  color: inherit;
  outline-offset: 4px;
}

.masthead .strapline {
  margin: 9px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.65rem, 1.3vw, .9rem);
  font-weight: 700;
  letter-spacing: .23em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Auch auf sehr schmalen Geräten bleibt die Wortmarke vollständig sichtbar. */
@media (max-width: 360px) {
  .masthead .brand {
    font-size: clamp(1.9rem, 9.6vw, 2.25rem);
    letter-spacing: -.055em;
  }
}

img,
iframe,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

/* Einheitlicher Rahmen für redaktionelle Bilder: dunkle Kontur, warmer Abstand
   zum Motiv. Die Bildunterschrift bleibt optisch auf dem Papier außerhalb des
   Rahmens. Neue Bildcontainer erhalten dafür bevorzugt die Klasse .image-frame. */
.image-frame,
.picture-frame,
.wanted-photo,
.fact-thumb,
.fact-photo,
.horse-profile__photo,
.journal-intro__image,
.journal-photo,
.journal-vignette,
.article-image,
.service-illustration,
.travel-illustration {
  padding: 4px;
  border: 1px solid var(--ink);
  background: #d1bb92;
}

/* Die beiden Bildgeschichten der Tierwaage verwenden denselben Rahmen, obwohl
   ihr figure zugleich die redaktionelle Trennlinie trägt. */
.photo-ledger figure {
  padding: 4px;
  border: 1px solid var(--ink);
  background: #d1bb92;
}

.photo-ledger figure > img {
  border: 0;
}

.image-frame > img,
.image-frame > .watermarked-image,
.horse-profile__photo > .watermarked-image,
.journal-intro__image > .watermarked-image {
  display: block;
}

.image-frame > figcaption,
.picture-frame > figcaption,
.horse-profile__photo > figcaption,
.journal-photo > figcaption,
.journal-vignette > figcaption {
  margin: 5px -4px -4px;
  padding: 5px 4px 0;
  background: var(--paper);
}

.photo-ledger figure > figcaption {
  margin: 5px -4px -4px;
  padding: 5px 4px 0;
  background: var(--paper);
}

/* Bildfelder ohne umschließendes figure erhalten denselben Rahmen direkt. */
.life-card > img,
.life-card > .watermarked-image,
.photo-ledger > article > img {
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid var(--ink);
  background: #d1bb92;
}

.life-card > .watermarked-image {
  height: var(--life-image-height);
}

.life-card > .watermarked-image > img {
  height: 100%;
  block-size: 100%;
  border: 0;
}

/* Diashows bleiben vollständig sichtbar, erhalten aber die gleiche Rahmung. */
.slideshow {
  padding: 4px;
  border: 1px solid var(--ink);
  background: #d1bb92;
}

.slideshow img {
  inset: 4px !important;
  width: calc(100% - 8px) !important;
  height: calc(100% - 8px) !important;
  padding: 0 !important;
}

/* Gemeinsames Wasserzeichen für Bilder, die von journal-common.js umschlossen werden. */
.watermarked-image {
  position: relative;
  display: block;
  width: 100%;
}

.watermarked-image::after {
  position: absolute;
  z-index: 2;
  right: 1%;
  bottom: 1%;
  width: 3%;
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  opacity: .35;
  background: url("assets/ranch/wolf-ranch-wasserzeichen.webp?v=20260916-1") center / contain no-repeat;
  filter: invert(1) drop-shadow(0 1px 1px rgba(0,0,0,.55));
}

/* Alle Inhaltsbilder erhalten den gemeinsamen warmen Ton der Trainingsaufnahme. */
img:not([src*="Wolf_Ranch_Emblem_weiss.webp"]):not([src*="logo_tierwaage-papier-copyright.webp"]) {
  filter: grayscale(1) sepia(.6) saturate(1.35) contrast(1.03) brightness(.97) !important;
}

.newspaper,
.sheet,
main,
header,
footer,
section,
article,
aside,
figure,
form,
div {
  min-width: 0;
}

/* Jede Inhaltskarte liefert ihren Überschriften die tatsächlich verfügbare Breite. */
.newspaper > *,
.newspaper section,
.newspaper article,
.newspaper aside,
.newspaper .contact > *,
.sheet {
  container-type: inline-size;
}

/* Die zusätzlichen Reserven verhindern kollidierende Zeilen, auch bei Umlauten. */
.newspaper h1,
.newspaper h2,
.newspaper h3,
.sheet h1,
.sheet h2,
.sheet h3 {
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.strapline,
.masthead small,
.eyebrow,
.section-head p {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.masthead p.strapline {
  line-height: 1.35;
}

/* Journal-Navigation: Schaltflächen bleiben auch beim Überfahren klar lebendig. */
.newspaper .nav a.nav-page {
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.newspaper .nav a.nav-page:active {
  box-shadow: 1px 1px 0 var(--gold);
  transform: translate(1px, 1px);
}

.newspaper .nav a.nav-journal::after {
  content: " ↗";
  color: #e3b474;
}

/* Einheitliche Navigation: Ziele innerhalb des Angebots und Rückwege bleiben
   auch dann eindeutig, wenn Seiten eigene lokale Navigationsstile besitzen. */
.nav a.nav-journal::after {
  content: " ↗" !important;
  color: #e3b474;
}

.nav a.nav-back::after {
  content: " ←" !important;
  color: #e3b474;
}

.nav a[href="index.html"]::after {
  content: " ←" !important;
  color: #e3b474;
}

/* Einheitliche Hauptnavigation auf regulären Unterseiten. */
.newspaper .nav.global-nav {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 6px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ink);
}

.newspaper .nav.global-nav a.nav-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 13px;
  text-align: center;
}

.newspaper .nav.global-nav a.nav-page[aria-current] {
  color: #fff8e8;
  background: var(--rust);
  box-shadow: inset 0 -3px 0 #e3b474, 2px 2px 0 var(--gold);
}

.newspaper .nav.global-nav a.nav-page[aria-current]::after {
  content: "" !important;
}

.context-nav {
  margin: -10px 0 20px;
  text-align: center;
}

.context-nav a {
  color: var(--rust);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.footer-nav a {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .newspaper .nav.global-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .newspaper .nav.global-nav a.nav-page {
    min-height: 48px;
    padding: 8px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newspaper .nav a.nav-page {
    transition: none;
  }
}

/*
 * Die Schriftgröße darf nie breiter als ihr eigener Rahmen werden.  cqi bezieht
 * sich dabei auf die Breite der jeweiligen Karte bzw. des jeweiligen Bereichs.
 */
.newspaper h1,
.sheet h1 {
  font-size: clamp(2rem, min(7vw, 10cqi), 7.4rem);
}

.newspaper h2,
.sheet h2 {
  font-size: clamp(1.3rem, min(4.5vw, 8cqi), 4rem);
}

.newspaper h3,
.sheet h3 {
  font-size: clamp(1.05rem, min(3vw, 7cqi), 2.3rem);
}

/*
 * Beitragskarten mit Bild teilen sich den Platz in Bild- und Textspalte. Die
 * Überschrift muss sich an der Textspalte orientieren, nicht an der gesamten
 * Karte – sonst kann ein langes einzelnes Wort auf schmalen Geräten abgeschnitten
 * werden.
 */
.newspaper .article-card > div {
  container-type: inline-size;
}

.newspaper .article-card h2 {
  font-size: clamp(.9rem, 8cqi, 1.7rem);
}

/*
 * Die Titel im Journal brechen nur zwischen Wörtern um. Ein einzelnes zu langes
 * Wort wird bei Bedarf per journal-common.js passend verkleinert.
 */
.newspaper .journal-article h1,
.newspaper .article-card h2 {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.newspaper .journal-article h1 {
  font-size: clamp(2rem, min(7vw, 10cqi), 5.2rem);
}

/* Zwischenüberschriften im Fließtext erhalten ihre ruhige Skalierung aus journal.css. */
.newspaper .journal-copy h2 {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Auf Desktop bleibt die Zeitungstypografie markant, ordnet sich aber dem Lesetext unter. */
@media (min-width: 801px) {
  /* Die Wortmarke hält die Inhaltsseiten als ein gemeinsames Angebot zusammen.
     Journaltexte und rechtliche Hinweise behalten dabei ihre eigene Lesebreite. */
  .masthead .brand {
    font-size: clamp(4.3rem, 7vw, 8rem);
  }

  /*
   * Die Inhaltsseiten waren gegenüber ihren großzügigen Überschriften und
   * Bildflächen zu kleinteilig. Diese Lesestufe gilt bewusst nur auf Desktop;
   * die bewährte mobile Skalierung bleibt unverändert.
   */
  body {
    font-size: 18px;
    line-height: 1.64;
  }

  .newspaper h1,
  .sheet h1 {
    font-size: clamp(2rem, min(4vw, 7.5cqi), 3.5rem);
  }

  .newspaper h2,
  .sheet h2 {
    font-size: clamp(1.3rem, min(2.6vw, 5.2cqi), 2.4rem);
  }

  .newspaper h3,
  .sheet h3 {
    font-size: clamp(1.05rem, min(1.8vw, 4.4cqi), 1.55rem);
  }

  .newspaper .journal-article h1 {
    font-size: clamp(2rem, min(3.4vw, 7.5cqi), 3.25rem);
  }

  /* Längere Journaltexte erhalten etwas mehr Größe und Ruhe als Kartentexte. */
  .newspaper .journal-copy {
    font-size: 1.028em;
    line-height: 1.68;
  }

  .newspaper .journal-copy p {
    margin-bottom: 1.05em;
  }

  .newspaper .lead,
  .newspaper .standfirst,
  .newspaper .hero .intro {
    font-size: clamp(1.18rem, 1.35vw, 1.25rem);
    line-height: 1.45;
  }

  /*
   * Kompakte Rahmen erhalten eine eigene Lesestufe: Sie bleiben optisch
   * nachrangig gegenüber dem langen Fließtext, sind aber nicht mehr so klein,
   * dass sie wie bloße Bildunterschriften wirken.
   */
  .newspaper .animal p,
  .newspaper .fact,
  .newspaper .fact span,
  .newspaper .fact-detail span,
  .newspaper .article-card p,
  .newspaper .advert p,
  .newspaper .life-card p,
  .newspaper .photo-ledger p,
  .newspaper .price-card .price-note {
    font-size: 1.04rem;
    line-height: 1.5;
  }

  .newspaper .side-story p,
  .newspaper .wanted p {
    font-size: 1.04rem;
    line-height: 1.52;
  }

  .newspaper .hero-note,
  .newspaper .article-notice,
  .newspaper .result-note,
  .sheet .note {
    font-size: 1rem;
    line-height: 1.55;
  }

  .newspaper .journal-quicknav a {
    font-size: 1rem;
    line-height: 1.32;
  }

  .newspaper .journal-photo figcaption,
  .newspaper figcaption {
    font-size: .86rem;
    line-height: 1.4;
  }

  .newspaper .price-label {
    font-size: 1rem;
    line-height: 1.35;
  }

  .newspaper .contact-form input,
  .newspaper .contact-form textarea {
    font-size: 1rem;
    line-height: 1.4;
  }
}

@media (max-width: 800px) {
  .newspaper,
  .sheet {
    width: 100%;
    padding: 14px clamp(14px, 3vw, 24px) 24px;
    overflow: visible;
  }

  .masthead {
    border-top-width: 5px;
  }

  .masthead .brand {
    font-size: clamp(2.5rem, 10vw, 5.4rem);
    letter-spacing: -.045em;
  }

  /* Die Wortmarke bleibt auf Tablets deutlich von der Datumszeile getrennt. */
  @media (min-width: 621px) {
    .masthead .dateline {
      margin-bottom: .45rem;
    }

    .masthead .brand {
      margin-top: .35rem;
      font-size: clamp(3.8rem, 9vw, 4.8rem);
      line-height: .9;
    }
  }

  /* Überschriften skalieren mit dem verfügbaren Platz statt Wörter zu trennen. */
  .newspaper h1,
  .sheet h1 {
    font-size: clamp(2rem, min(8vw, 10cqi), 4rem);
  }

  .newspaper h2,
  .sheet h2 {
    font-size: clamp(1.3rem, min(5.5vw, 8cqi), 2.7rem);
  }

  .newspaper h3,
  .sheet h3 {
    font-size: clamp(1.05rem, min(4vw, 7cqi), 1.8rem);
  }

  /* Fallback ohne Container-Einheiten für ältere mobile Browser. */
  .newspaper .journal-article h1 {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .newspaper .journal-copy h2 {
    font-size: clamp(1.05rem, 4.4vw, 1.18rem);
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .masthead .dateline {
    gap: 0 .35rem;
    font-size: .58rem;
  }

  .strapline,
  .masthead small {
    letter-spacing: .12em;
  }

  .masthead .strapline { letter-spacing: .12em; }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 14px 0 18px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .nav-back {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav--last-full > a:last-child {
    grid-column: 1 / -1;
  }

  .nav a,
  .nav a:last-child,
  .nav a.nav-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 8px 6px;
    border: 1px solid var(--umber, var(--rule));
    font-size: .72rem;
    line-height: 1.2;
    letter-spacing: .065em;
    text-align: center;
  }

  .front-page,
  .ranch-layout,
  .horse-layout,
  .weighing-layout,
  .journal-layout,
  .photo-ledger,
  .travel,
  .contact,
  .ranch-life,
  .article-list,
  .tools {
    grid-template-columns: 1fr;
  }

  .hero,
  .wanted {
    grid-column: auto;
    grid-row: auto;
  }

  .story-columns,
  .ranch-layout .story-columns,
  .weighing-layout .story-columns,
  .journal-copy {
    column-count: 1;
  }

  .facts,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .animal-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .animal,
  .price-card,
  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .animal {
    border-right: 1px solid var(--ink);
  }

  .animal:nth-child(2) {
    border-right: 0;
  }

  .animal:nth-child(n + 3) {
    border-bottom: 0;
  }

  .animal:last-child,
  .price-card:last-child,
  .fact:last-child {
    border-bottom: 0;
  }

  .classifieds,
  .service-columns {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    text-align: left;
  }

  .contact {
    padding: 19px;
  }

  .contact-links {
    border-top: 1px solid rgba(244, 233, 208, .5);
    border-left: 0;
    padding: 12px 0 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  /* Mobil: Formulare zoomen auf iOS bei Schrift kleiner als 16 px leicht
     ungewollt hinein. Alle echten Bedienelemente erhalten zugleich eine
     verlässliche, mit dem Daumen gut treffbare Mindesthöhe. */
  .newspaper button,
  .sheet button,
  .newspaper input:not([type="checkbox"]):not([type="radio"]),
  .sheet input:not([type="checkbox"]):not([type="radio"]),
  .newspaper select,
  .sheet select,
  .newspaper textarea,
  .sheet textarea {
    min-height: 44px;
  }

  .newspaper input:not([type="checkbox"]):not([type="radio"]),
  .sheet input:not([type="checkbox"]):not([type="radio"]),
  .newspaper select,
  .sheet select,
  .newspaper textarea,
  .sheet textarea {
    font-size: 16px;
  }
}

/* Tablet: Preisangebote bleiben vergleichbar, ohne zu schmale Papierzettel
   oder einen unausgewogenen einzelnen dritten Eintrag zu erzeugen. */
@media (min-width: 621px) and (max-width: 900px) {
  .newspaper .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newspaper .price-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Nur auf kleineren Bildschirmen: der Rücksprung bleibt außerhalb des Layouts. */
.back-to-top {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.slideshow-toggle {
  display: none;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: 700 .66rem/1.2 var(--serif);
  letter-spacing: .06em;
  padding: 5px 7px;
  text-transform: uppercase;
}

.slideshow-ready .slideshow-toggle { display: block; }

.slideshow-toggle:hover,
.slideshow-toggle:focus-visible {
  color: var(--paper-light);
  background: var(--rust);
}

@media (max-width: 800px) {
  .back-to-top {
    position: fixed;
    z-index: 10;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    color: var(--paper-light, var(--light));
    background: var(--umber);
    box-shadow: 2px 2px 0 var(--gold);
    font: 700 1.35rem/1 var(--serif);
    text-decoration: none;
    opacity: .96;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
  }

  html.back-to-top-ready .back-to-top {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  html.back-to-top-ready .back-to-top.is-visible {
    visibility: visible;
    opacity: .96;
    pointer-events: auto;
    transform: translateY(0);
  }

  .back-to-top:hover,
  .back-to-top:focus-visible {
    color: #fff8e8;
    background: var(--rust);
  }

  .back-to-top:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow img { transition: none; }
 .slideshow-ready .slideshow-toggle { display: none; }

  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: none;
  }
}

/* Ohne JavaScript dürfen lange Angebotsüberschriften am Rand umbrechen. */
.newspaper [data-fit-heading] { overflow-wrap: anywhere; }
