/* =========================================================
   Deutsches Schustermuseum Burgkunstadt
   Stylesheet | SF-MEDIADESIGN
   ========================================================= */

/* ---------- Fonts (lokal eingebunden, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand_book-webfont.woff2') format('woff2'),
       url('../fonts/quicksand_book-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand_bold-webfont.woff2') format('woff2'),
       url('../fonts/quicksand_bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/notosans-regular-webfont.woff2') format('woff2'),
       url('../fonts/notosans-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/notosans-bold-webfont.woff2') format('woff2'),
       url('../fonts/notosans-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  --gelb: #ffed00;
  --grau: #878787;
  --hellgrau: #e1e1e1;
  /* Aufhellung von #e1e1e1 – nur als Sektionsfläche hinter dem Zeitstrahl */
  --hellgrau-hell: #f2f2f2;
  /* Aufhellung von #878787 – nur für Textlinks */
  --grau-link: #9c9c9c;
  --schwarz: #1d1d1b;
  --text: #3c3c3b;
  --weiss: #fff;

  /* Überschriften laufen in Noto Sans; Quicksand bleibt eingebunden und
     kann über --font-head jederzeit wieder aktiviert werden. */
  --font-head: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-alt: 'Quicksand', 'Trebuchet MS', sans-serif;

  --wrap: 1180px;
  --header-h: 84px;
  --header-h-mobil: 64px;

  --shadow: 0 2px 12px rgba(0, 0, 0, .12);
  --trans: .25s ease;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--text); text-decoration: none; }
a:hover, a:focus { color: var(--schwarz); }

/* Links im Fließtext: helleres Grau, normale Stärke, ohne Unterstrich */
main p a,
main li a,
main dd a,
.rechtstext a {
  color: var(--grau-link);
  font-weight: 400;
  text-decoration: none;
}
main p a:hover, main p a:focus,
main li a:hover, main li a:focus,
main dd a:hover, main dd a:focus,
.rechtstext a:hover, .rechtstext a:focus {
  color: var(--schwarz);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Telefonnummern sind nicht als Link erkennbar – sie sehen aus wie
   Fließtext, bleiben auf dem Smartphone aber wählbar. */
a[href^="tel:"] {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  cursor: text;
}
a[href^="tel:"]:hover,
a[href^="tel:"]:focus {
  color: inherit;
  text-decoration: none;
}

/* Ausnahmen: Elemente mit eigener Gestaltung */
main p a.btn,
main li a.btn,
main p a.kontakt__link,
.kontakt a {
  font-weight: inherit;
  color: inherit;
}
.kontakt a:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--grau);
  margin: 0 0 .6em;
}

h1 {
  font-size: clamp(1.4rem, 2.7vw, 1.85rem);
  text-align: center;
  letter-spacing: -.025em;
  /* Zeilenlänge begrenzen – am Desktop nicht über die volle Breite */
  max-width: 22em;
  margin-inline: auto;
}
h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h3 { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--schwarz); margin-bottom: .2em; }
h4 {
  font-size: .95rem;
  color: var(--schwarz);
  margin: 0 0 1em;
}

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--schwarz);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gelb);
  color: var(--schwarz);
  padding: .8em 1.4em;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 60px 0; }
.section--tight { padding: 30px 0 60px; }
.section--grau { background: var(--hellgrau-hell); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  background: var(--gelb);
  color: var(--schwarz);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.8em;
  border: 2px solid var(--gelb);
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans);
  text-align: center;
}
.btn:hover, .btn:focus {
  background: var(--weiss);
  border-color: transparent;
  color: var(--schwarz);
}
/* 1,87em = 1,1em × 1,7 */
.btn svg { width: 1.87em; height: 1.87em; flex: none; fill: currentColor; }

/* ---------- Kontaktdaten mit Icons ---------- */
.kontakt {
  list-style: none;
  margin: 0 0 1.1em;
  padding: 0;
}
.kontakt li { margin-bottom: .5em; }
.kontakt li:last-child { margin-bottom: 0; }

.kontakt__zeile {
  display: flex;
  align-items: flex-start;
  gap: .7em;
  text-decoration: none;
  color: inherit;
}
.kontakt__icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  margin-top: .28em;
  fill: currentColor;
}

/* Icons im Inhaltsbereich: gelbes Icon auf dunklem Kreis wirkt zu laut –
   hier reicht die Signalfarbe der Fläche */
.card .kontakt__icon { fill: var(--schwarz); }
.card .kontakt__zeile:hover { color: var(--schwarz); }

.site-footer .kontakt__icon { fill: var(--gelb); }
/* Hover nur für die E-Mail-Zeile (echter Link); Adresse und Telefon
   sind kein bzw. kein sichtbarer Link und bekommen keinen Hover. */
.site-footer .kontakt__zeile[href^="mailto:"]:hover,
.site-footer .kontakt__zeile[href^="mailto:"]:focus { color: var(--gelb); }

/* ---------- Kopfbereich / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--grau);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--header-h);
  border-bottom: 2px solid var(--weiss);
}

.site-header__logo {
  display: block;
  background: var(--gelb);
  padding: 12px 20px;
  line-height: 0;
  text-decoration: none;
  flex: none;
}
.site-header__logo img { width: 240px; max-width: 44vw; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--weiss);
  padding: 0 20px;
  cursor: pointer;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-toggle__bars {
  position: relative;
  width: 26px;
  height: 2px;
  background: var(--weiss);
  display: block;
  transition: background var(--trans);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--weiss);
  transition: transform var(--trans), top var(--trans);
}
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.mainnav { display: flex; align-items: center; }
.mainnav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0 16px 0 0;
}
.mainnav a {
  display: block;
  position: relative;
  padding: .5em .7em .75em;
  color: var(--weiss);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--trans), color var(--trans);
}

/* Handgezeichnete Linie bei Hover und aktiver Seite */
.mainnav a::after {
  content: '';
  position: absolute;
  left: .5em;
  right: .5em;
  bottom: .3em;
  height: 7px;
  background: url('../../bilder/hover-menue-icon.png') no-repeat center bottom;
  background-size: 100% 100%;
  opacity: 0;
  transition: opacity var(--trans);
  pointer-events: none;
}

.mainnav a:hover,
.mainnav a:focus,
.mainnav a[aria-current="page"] {
  background: var(--gelb);
  color: var(--schwarz);
}
.mainnav a:hover::after,
.mainnav a:focus::after,
.mainnav a[aria-current="page"]::after {
  opacity: 1;
}

@media (max-width: 1024px) {
  .site-header { min-height: var(--header-h-mobil); align-items: center; }
  .site-header__logo { padding: 8px 14px; }
  .nav-toggle { display: flex; }
  .mainnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--grau);
    border-top: 2px solid var(--weiss);
    display: none;
    box-shadow: var(--shadow);
  }
  .mainnav.is-open { display: block; }
  .mainnav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .mainnav li + li { border-top: 1px solid rgba(255, 255, 255, .3); }
  .mainnav a { padding: 1em 20px 1.2em; border: 0; }
  .mainnav a::after { left: 20px; right: auto; width: 5.5em; bottom: .6em; }
}

/* ---------- Seitenkopf (Bildbanner Unterseiten) ---------- */
/* Höhe über die Bildhöhe steuern, nicht über aspect-ratio am Container:
   aspect-ratio + min-height lässt WebKit das Verhältnis auf die Breite
   zurückrechnen und erzeugt so einen horizontalen Scrollbalken.
   26.04vw entspricht dem Seitenverhältnis der Header-Bilder (500/1920). */
.pagehead {
  background: var(--grau);
  width: 100%;
  overflow: hidden;
}
.pagehead img {
  width: 100%;
  height: clamp(160px, 26.04vw, 420px);
  object-fit: cover;
}

/* ---------- Startseiten-Kopf: Bild + Öffnungszeiten/Preise ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--grau);
}
.hero__media { min-height: 100%; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}
.hero__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 34px 30px;
  color: var(--weiss);
  align-content: start;
}
.hero__info h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--weiss);
  margin: 0 0 1em;
  letter-spacing: .02em;
}
.infolist { margin: 0; }
.infolist dt {
  font-weight: 700;
  font-size: .84rem;
  color: var(--weiss);
}
.infolist dd {
  margin: 0 0 1.1em;
  font-size: .92rem;
  color: var(--weiss);
}
.infolist dd:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media img { min-height: 220px; max-height: 45vh; }
  .hero__info { padding: 26px 20px; }
  /* Öffnungszeiten/Eintrittspreise mobil etwas größer */
  .hero__info h2 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .hero__info { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Intro-Text ---------- */
.lead { text-align: center; max-width: 760px; margin-inline: auto; }

.textcol--top > *:first-child { margin-top: 0; }

/* ---------- Info-Karten (Besucher-Info) ---------- */
.card {
  background: var(--hellgrau);
  padding: 34px 30px;
  height: 100%;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gelb);
  margin-bottom: 22px;
}
.card__icon svg { width: 22px; height: 22px; fill: var(--schwarz); }
.card h2 { color: var(--schwarz); font-size: 1.3rem; }
.card p { margin-bottom: .8em; }
.card .btn { margin-top: 18px; }

.preis { margin: 0 0 1.4em; }
.preis dt { font-weight: 700; color: var(--schwarz); font-size: .95rem; }
.preis dd { margin: 0 0 .9em; }

/* ---------- Öffnungszeiten-Box (Inhaltsbereich) ---------- */
.oeffnung { margin: 0; }
.oeffnung dt {
  font-weight: 700;
  color: var(--schwarz);
  font-size: .95rem;
}
.oeffnung dd { margin: 0 0 1em; }

/* ---------- Slider ---------- */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--hellgrau);
}
.slider__track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.slider__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.slider--frei .slider__slide img { aspect-ratio: auto; }

.slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 29, 27, .72);
  color: var(--weiss);
  font-size: .85rem;
  line-height: 1.45;
  padding: .7em 1em;
  margin: 0;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, .85);
  color: var(--schwarz);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.slider__btn:hover, .slider__btn:focus { background: var(--gelb); }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }
.slider__btn svg { width: 16px; height: 16px; fill: currentColor; }

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.slider--caption .slider__dots { bottom: auto; top: 12px; }

.slider__dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid var(--weiss);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0, 0, 0, .5);
  transition: background var(--trans);
}
.slider__dots button[aria-current="true"] { background: var(--weiss); }
.slider__dots button:hover { background: var(--gelb); border-color: var(--gelb); }

/* ---------- Zwei gleich hohe Spalten mit Kopf + Slider ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 0 40px;
  align-items: start;
}
/* Subgrid richtet Überschriften und Slider beider Spalten auf einer Linie aus */
.duo__spalte {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
}
.duo__spalte > h2 { margin-bottom: .5em; }
.duo__spalte > p { margin-bottom: 1.2em; }
.duo__spalte > p:empty { margin: 0; }

/* Ohne Subgrid-Unterstützung: normale Spalten, Slider ggf. leicht versetzt */
@supports not (grid-template-rows: subgrid) {
  .duo__spalte { display: block; }
}

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; grid-template-rows: none; gap: 40px; }
  .duo__spalte { display: block; grid-row: auto; }
  .duo__spalte > p:empty { display: none; }
}

/* Zähler statt Punktreihe – bei vielen Bildern lesbarer */
.slider__zaehler {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: var(--gelb);
  color: var(--schwarz);
  font-size: .78rem;
  font-weight: 700;
  padding: .25em .7em;
}

/* Freigestellte Objektfotos: nicht beschneiden, sondern einpassen */
.slider--kontrast .slider__slide img {
  object-fit: contain;
  background: var(--hellgrau);
}

/* ---------- Lightbox ---------- */
.zoomable {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--schwarz);
  cursor: zoom-in;
  line-height: 0;
}
.zoomable img { width: 100%; }
.zoomable__label {
  display: block;
  background: var(--schwarz);
  color: var(--weiss);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: .8em;
  line-height: 1.4;
}
.zoomable__hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gelb);
  color: var(--schwarz);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoomable__hint svg { width: 16px; height: 16px; fill: currentColor; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(29, 29, 27, .93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 14px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
.lightbox__caption {
  color: var(--weiss);
  font-size: .9rem;
  margin: 0;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--gelb);
  color: var(--schwarz);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--weiss); }

/* ---------- Video (Klick zum Abspielen, kein externer Dienst) ---------- */
.video {
  position: relative;
  background: var(--schwarz);
  aspect-ratio: 16 / 9;
}
.video video { width: 100%; height: 100%; display: block; object-fit: contain; }
.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--schwarz);
  cursor: pointer;
  line-height: 0;
}
.video__poster img { width: 100%; height: 100%; object-fit: contain; }
.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: var(--gelb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--trans);
}
.video__poster:hover .video__play { transform: translate(-50%, -50%) scale(1.1); }
.video__play svg { width: 30px; height: 30px; fill: var(--schwarz); margin-left: 4px; }

/* ---------- Historie: Bereiche ---------- */
.epoche {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  align-items: center;
  padding: 50px 0;
  border-top: 1px solid var(--hellgrau);
}
.epoche:first-of-type { border-top: 0; }
.epoche--gedreht .epoche__media { order: 2; }
.epoche h2 { color: var(--schwarz); margin-bottom: .1em; }
.epoche h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--grau);
  margin-bottom: 1.2em;
}
.epoche__text > *:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .epoche { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .epoche--gedreht .epoche__media { order: 0; }
}

/* ---------- Zeitstrahl ---------- */
.timeline {
  position: relative;
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 10px 0;
  list-style: none;   /* keine Nummerierung – die Jahreszahl ordnet */
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--gelb);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 22px 26px 0;
}
.timeline__item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 26px 22px;
}

/* Punkt auf der Linie */
.timeline__item::before {
  content: '';
  position: absolute;
  top: 17px;
  right: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gelb);
  border-radius: 50%;
  background: var(--weiss);
  z-index: 2;
}
.timeline__item:nth-child(even)::before { right: auto; left: -6px; }

/* Angedeuteter Pfeil: verbindet die Karte mit dem Knotenpunkt */
.timeline__item::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 8px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-left-color: var(--hellgrau);
}
.timeline__item:nth-child(even)::after {
  right: auto;
  left: 8px;
  border-left-color: transparent;
  border-right-color: var(--hellgrau);
}

/* Jahreszahl jenseits der Linie, außerhalb der Karte */
.timeline__jahr {
  position: absolute;
  top: 11px;
  left: calc(100% + 22px);
  background: var(--grau);
  color: var(--weiss);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .2em .7em;
  white-space: nowrap;
}
.timeline__item:nth-child(even) .timeline__jahr {
  left: auto;
  right: calc(100% + 22px);
}

.timeline__card {
  background: var(--weiss);
  border: 1px solid var(--hellgrau);
  border-radius: 3px;
  padding: 20px 24px;
}
.timeline__card h3 {
  font-size: 1.05rem;
  color: var(--schwarz);
  margin-bottom: .5em;
}
.timeline__card p { font-size: .9rem; margin-bottom: .8em; }
.timeline__card p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .timeline::before { left: 6px; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 22px 28px;
  }
  .timeline__item::before,
  .timeline__item:nth-child(even)::before { left: 0; right: auto; }

  /* Einspaltig gibt es keine Gegenseite – Pfeil entfällt */
  .timeline__item::after,
  .timeline__item:nth-child(even)::after { display: none; }

  /* Mobil sitzt die Jahreszahl im Textfluss über der Überschrift */
  .timeline__jahr,
  .timeline__item:nth-child(even) .timeline__jahr {
    position: static;
    display: inline-block;
    margin-bottom: .6em;
  }
}

/* ---------- Video-Übersicht (Museumsseiten) ---------- */
.videopage {
  max-width: 900px;
  margin-inline: auto;
}
.videopage__zurueck { margin-top: 30px; }

/* ---------- Schusterbuben-Block ---------- */
.rundgang {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.rundgang__bild { justify-self: center; }
.rundgang__bild img { max-height: 300px; width: auto; }
.rundgang h2 { color: var(--schwarz); }
.rundgang__text > *:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .rundgang { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .rundgang__bild { justify-self: center; }
}

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 820px; margin-inline: auto; }

/* Spaltenvariante (Impressum): volle Spaltenbreite, ohne Trennlinien */
.rechtstext--schmal { max-width: none; margin-inline: 0; }
.rechtstext.rechtstext--schmal h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.8em;
}
.rechtstext.rechtstext--schmal h2:first-child { margin-top: 0; }

/* Hauptabschnitt: gelbe Linie darüber gliedert den langen Text */
.rechtstext h2 {
  color: var(--schwarz);
  font-size: 1.25rem;
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--gelb);
}
.rechtstext h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.rechtstext h3 {
  color: var(--schwarz);
  font-size: 1.05rem;
  margin-top: 1.9em;
  margin-bottom: .5em;
}

/* Vierte Ebene: als Frage/Zwischenzeile in Grau abgesetzt */
.rechtstext h4 {
  color: var(--grau);
  font-size: .95rem;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: .4em;
}

.rechtstext ul {
  margin: 0 0 1.1em;
  padding-left: 0;
  list-style: none;
}
.rechtstext ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: .5em;
}
.rechtstext ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--gelb);
}

/* Widerspruchsbelehrung: steht laut Vorlage in Versalien.
   Etwas Laufweite und kleinere Schrift halten den Block lesbar. */
.rechtstext .versalien {
  font-size: .85rem;
  letter-spacing: .02em;
  line-height: 1.75;
}
.rechtstext .platzhalter {
  background: var(--hellgrau);
  border-left: 5px solid var(--gelb);
  padding: 20px 24px;
  margin-bottom: 1.6em;
}
.rechtstext .platzhalter p:last-child { margin-bottom: 0; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--grau);
  color: var(--weiss);
  padding: 70px 0 50px;
  margin-top: 20px;
}
.site-footer a { color: var(--weiss); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.site-footer__logo {
  display: inline-block;
  background: var(--gelb);
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 0;
}
.site-footer__logo img { width: 200px; }
.site-footer__adresse { font-size: .95rem; }
.site-footer__adresse p { margin-bottom: .6em; }
.site-footer__stadt { justify-self: center; }
.site-footer__stadt img { width: 170px; }
.site-footer h2 {
  color: var(--weiss);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.8em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6em; }

.site-footer__bottom {
  background: var(--schwarz);
  color: var(--weiss);
  font-size: .82rem;
  padding: 14px 0;
}

@media (max-width: 860px) {
  .site-footer { padding: 46px 0 34px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__stadt { justify-self: start; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .slider__track { transition: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .slider__btn, .slider__dots, .nav-toggle { display: none !important; }
  body { color: #000; }
}
