:root {
  --bg: #f3f0e8;
  --paper: #fffdf8;
  --ink: #20201d;
  --muted: #68645c;
  --line: #d8d0c0;
  --accent: #16776f;
  --accent-dark: #115a54;
  --warm: #ad6047;
  --gold: #a07b2d;
  --blue: #315f86;
  --shadow: 0 18px 48px rgba(32, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(32, 32, 29, 0.12);
  background: rgba(243, 240, 232, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand span,
.eyebrow,
.search span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand strong {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a,
.button,
.filter-row button,
.plain-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  padding: 8px 12px;
  cursor: pointer;
}

.main-nav a:hover,
.button:hover,
.plain-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.primary,
.filter-row button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

main {
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 0;
  height: clamp(520px, 56vw, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin: 0 calc((100vw - min(1220px, calc(100vw - 34px))) / -2);
  background: #27231d;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.14) saturate(0.82) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.02));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) 0 clamp(34px, 7vw, 76px);
  color: #fff;
}

.hero-copy h1,
.hero-copy p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 930px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 9vw, 8.4rem);
  line-height: 0.92;
  font-weight: 900;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .button {
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
}

.hero-actions .button.primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.archive-preview {
  margin: 0 calc((100vw - min(1220px, calc(100vw - 34px))) / -2);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.toolbar h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  line-height: 0.95;
  font-weight: 900;
}

.archive-stage {
  display: block;
  overflow: hidden;
  background: #fff;
}

.fortepan-panel {
  display: grid;
  gap: 0;
  border-bottom: 1px solid #d8dcde;
  background: #f2f3f3;
}

.stage-timeline {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 48px;
  padding: 0 clamp(12px, 3vw, 36px);
  color: #1f1f1d;
  font-size: 0.8rem;
  font-weight: 900;
}

.stage-timeline > span,
.stage-line strong {
  border-radius: 3px;
  background: #e4e7e9;
  padding: 4px 8px;
}

.stage-line {
  position: relative;
  height: 2px;
  background: #ff432c;
}

.year-slider {
  position: absolute;
  z-index: 3;
  left: 0;
  top: -22px;
  width: 100%;
  height: 46px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.year-slider::-webkit-slider-thumb {
  cursor: pointer;
}

.year-slider::-moz-range-thumb {
  cursor: pointer;
}

.stage-line::before,
.stage-line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff432c;
}

.stage-line::before {
  left: 0;
  transform: translateX(-50%);
}

.stage-line::after {
  right: 0;
  transform: translateX(50%);
}

.stage-line i {
  position: absolute;
  top: -5px;
  width: 1px;
  height: 12px;
  background: #cdd2d5;
}

.stage-line strong {
  position: absolute;
  top: -15px;
  transform: translateX(-50%);
  background: #ff432c;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  transition: left 180ms ease;
}

.fortepan-search {
  display: grid;
  grid-template-columns: 104px minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 0 clamp(12px, 3vw, 36px) 12px;
}

.year-field,
.keyword-field {
  display: grid;
  gap: 5px;
}

.year-field span {
  color: #5f6366;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.year-field input,
.keyword-field input,
.search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd4d7;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 9px 11px;
}

.go-button,
.advanced-link,
.archive-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #cfd4d7;
  border-radius: 2px;
  background: #fff;
  color: #1f1f1d;
  font: inherit;
  font-weight: 900;
  padding: 9px 13px;
  white-space: nowrap;
}

.go-button {
  border-color: #ff432c;
  background: #ff432c;
  color: #fff;
  cursor: pointer;
}

.advanced-link,
.archive-count {
  color: #5f6366;
  font-size: 0.88rem;
}

.advanced-link:hover,
.archive-count:hover {
  border-color: #ff432c;
  color: #ff432c;
}

.preview-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 16px;
  overflow-x: visible;
  padding: 22px clamp(18px, 3vw, 36px) 42px;
  scrollbar-width: thin;
}

.preview-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  border-radius: 3px;
}

.preview-card img {
  width: 100%;
  height: 128px;
  object-fit: contain;
  object-position: center center;
  border-radius: 3px;
  background: #eee9df;
  transition: outline-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.preview-card[aria-current="true"] img,
.preview-card.featured-preview img {
  outline: 3px solid #ff432c;
  outline-offset: 0;
}

.preview-card:hover img {
  filter: contrast(1.04);
  transform: translateY(-1px);
}

.preview-card strong {
  overflow: hidden;
  color: #292824;
  font-size: 0.88rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-card span {
  overflow: hidden;
  color: #77736d;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px 26px;
  align-items: end;
  padding: clamp(44px, 7vw, 80px) 0 18px;
}

.toolbar h2 {
  margin-bottom: 0;
}

.search {
  display: grid;
  gap: 8px;
}

.filter-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0 20px;
  color: var(--muted);
}

.overview strong {
  display: block;
  color: var(--ink);
  font-size: 1.22rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 76px;
}

.topic-card {
  display: grid;
  grid-template-rows: 170px 1fr;
  min-height: 440px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.topic-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  grid-template-rows: 360px 1fr;
}

.topic-card:hover {
  border-color: rgba(22, 119, 111, 0.48);
  box-shadow: 0 10px 28px rgba(32, 32, 29, 0.1);
  transform: translateY(-2px);
}

.card-image {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    var(--card-bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.88;
}

.topic-card:first-child .card-image img {
  width: 132px;
  height: 132px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: rgba(22, 119, 111, 0.09);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 9px;
}

.pill.period {
  background: rgba(173, 96, 71, 0.1);
  color: #864835;
}

.topic-card h3 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.18;
}

.topic-card:first-child h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.topic-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  color: var(--muted);
  font-size: 0.82rem;
}

.tag::before {
  content: "#";
  color: var(--accent);
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  background: rgba(255, 253, 248, 0.62);
  color: var(--muted);
  padding: 42px;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #e5dfd2;
}

.site-footer p {
  margin: 0;
}

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

.search input:focus-visible,
.filter-row button:focus-visible,
.plain-button:focus-visible,
.topic-card:focus-visible,
.preview-card:focus-visible,
.go-button:focus-visible,
.advanced-link:focus-visible,
.archive-count:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(22, 119, 111, 0.28);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header,
  .archive-preview,
  .toolbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .fortepan-search {
    grid-template-columns: 104px 1fr auto;
  }

  .advanced-link,
  .archive-count {
    grid-column: span 3;
    justify-content: flex-start;
  }

  .site-header {
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1220px);
  }

  .stage-timeline {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 12px;
  }

  .stage-timeline > span {
    width: max-content;
  }

  .stage-timeline > span:last-child {
    justify-self: end;
  }

  .fortepan-search {
    grid-template-columns: 1fr;
    padding-bottom: 16px;
  }

  .advanced-link,
  .archive-count {
    grid-column: auto;
  }

  .site-header {
    padding-inline: 12px;
  }

  .main-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    height: 78vh;
    min-height: 0;
    margin-inline: -12px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .preview-rail {
    grid-auto-columns: minmax(84px, 112px);
  }

  .preview-card img {
    height: 96px;
  }

  .overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-card,
  .topic-card:first-child {
    grid-template-rows: 180px 1fr;
    min-height: 0;
  }
}


.home-intro,
.home-more {
  margin: 0 calc((100vw - min(1220px, calc(100vw - 34px))) / -2);
  background: #fff;
}

.home-intro-inner,
.home-more-inner {
  width: min(960px, calc(100% - 104px));
  margin: 0;
  padding-left: clamp(32px, 4.2vw, 64px);
  color: #777;
}

.home-intro-inner {
  padding-top: clamp(58px, 7vw, 82px);
  padding-bottom: clamp(76px, 8vw, 94px);
  border-bottom: 1px solid #e2e2e2;
}

.home-intro h2,
.home-more h2 {
  margin: 0 0 34px;
  color: #6f6f6f;
  font-size: clamp(2.2rem, 4vw, 3.05rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.home-intro p,
.home-more p {
  max-width: 910px;
  margin: 0 0 18px;
  color: #999;
  font-size: clamp(1.08rem, 1.7vw, 1.36rem);
  line-height: 1.65;
  font-weight: 600;
}

.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 192px;
  min-height: 60px;
  margin-top: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #6f6f6f;
  font-size: 1.16rem;
  font-weight: 600;
  text-decoration: none;
}

.more-button:hover,
.more-button:focus-visible {
  border-color: #cfcfcf;
  color: #20201d;
  outline: none;
}

.home-more {
  scroll-margin-top: 88px;
}

.home-more-inner {
  padding-top: clamp(52px, 7vw, 78px);
  padding-bottom: clamp(72px, 8vw, 96px);
}

.home-more h2 {
  max-width: 860px;
  margin-bottom: 28px;
}

.home-more p {
  max-width: 900px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 500;
  color: #777;
}

@media (max-width: 620px) {
  .home-intro-inner,
  .home-more-inner {
    width: min(100% - 32px, 960px);
    padding-left: 0;
  }

  .home-intro-inner {
    padding-top: 42px;
    padding-bottom: 56px;
  }

  .home-intro h2,
  .home-more h2 {
    margin-bottom: 24px;
  }

  .more-button {
    width: 100%;
    min-width: 0;
  }
}


/* --- Themenpart aus der frueheren Bits-and-Pieces-Version --- */
.intro-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: clamp(34px, 5vw, 58px) 0 24px;
}
.intro-card {
  min-height: 310px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(22px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.intro-card h2 { max-width: 550px; margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 4.5rem); line-height: 0.94; font-weight: 900; }
.intro-card p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.bit-intro { background: linear-gradient(135deg, rgba(22, 119, 111, 0.1), rgba(255,253,248,0.92)); }
.piece-intro { background: linear-gradient(135deg, rgba(173, 96, 71, 0.14), rgba(255,253,248,0.92)); }

.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.68fr);
  gap: 0;
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.featured-copy { padding: clamp(28px, 5vw, 56px); align-self: center; }
.featured-copy h2 { max-width: 680px; margin-bottom: 20px; font-size: clamp(2.6rem, 5.3vw, 6.2rem); line-height: 0.9; font-weight: 900; letter-spacing: -0.03em; }
.featured-copy p { max-width: 660px; color: var(--muted); font-size: 1.16rem; line-height: 1.58; }
.featured-story figure { margin: 0; min-height: 100%; border-left: 1px solid var(--line); background: #eee9df; }
.featured-story figure img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.featured-story figcaption { padding: 12px 16px; color: var(--muted); font-size: 0.9rem; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.fact-grid div { border-top: 3px solid var(--accent); background: rgba(22,119,111,0.07); padding: 13px 12px; }
.fact-grid span { display: block; margin-bottom: 6px; color: var(--accent-dark); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.fact-grid strong { display: block; font-size: 0.98rem; line-height: 1.2; }
.text-link { color: var(--accent-dark); font-weight: 800; border-bottom: 2px solid rgba(22,119,111,0.28); }
.text-link:hover { border-bottom-color: var(--accent); }

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px 26px;
  align-items: end;
  padding: clamp(44px, 7vw, 80px) 0 18px;
}
.toolbar h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 5.1rem); line-height: 0.95; font-weight: 900; }
.search { display: grid; gap: 8px; }
.search input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; padding: 10px 12px; }
.filter-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.overview { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0 20px; color: var(--muted); }
.overview strong { display: block; color: var(--ink); font-size: 1.22rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 76px; }
.topic-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 475px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.topic-card:first-child { grid-column: span 2; grid-row: span 2; grid-template-rows: 420px 1fr; }
.topic-card:hover { border-color: rgba(22, 119, 111, 0.48); box-shadow: 0 10px 28px rgba(32, 32, 29, 0.1); transform: translateY(-2px); }
.card-image { overflow: hidden; background: #eee9df; border-bottom: 1px solid var(--line); }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.card-body { display: flex; flex-direction: column; gap: 13px; padding: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; min-height: 25px; border-radius: 999px; background: rgba(22, 119, 111, 0.09); color: var(--accent-dark); font-size: 0.76rem; font-weight: 800; padding: 4px 9px; }
.pill.period { background: rgba(173, 96, 71, 0.1); color: #864835; }
.pill.kind-bit { background: rgba(22,119,111,0.12); color: var(--accent-dark); }
.pill.kind-piece { background: rgba(173,96,71,0.14); color: #864835; }
.topic-card h3 { margin-bottom: 0; font-size: 1.28rem; line-height: 1.18; }
.topic-card:first-child h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.topic-card p { margin-bottom: 0; color: var(--muted); line-height: 1.48; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tag { color: var(--muted); font-size: 0.82rem; }
.tag::before { content: "#"; color: var(--accent); }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line); background: rgba(255, 253, 248, 0.62); color: var(--muted); padding: 42px; text-align: center; }

.editorial-note {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: clamp(38px, 6vw, 74px) 0 90px;
}
.editorial-note h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 0.98; font-weight: 900; }
.note-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; color: var(--muted); font-size: 1.05rem; line-height: 1.58; }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .fact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-header, .archive-preview, .toolbar, .featured-story, .intro-panel, .editorial-note, .note-columns { align-items: flex-start; grid-template-columns: 1fr; }
  .site-header { flex-direction: column; }
  .main-nav { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .topic-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .featured-story figure { border-left: 0; border-top: 1px solid var(--line); }
  .featured-story figure img { min-height: 360px; }
}
@media (max-width: 620px) {
  main { width: min(100% - 24px, 1220px); }
  .site-header { padding-inline: 12px; }
  .main-nav a { flex: 1 1 auto; text-align: center; }
  .hero { min-height: 78vh; margin-inline: -12px; }
  h1 { font-size: 3.6rem; }
  .cards { grid-template-columns: 1fr; }
  .preview-rail { grid-auto-columns: minmax(84px, 112px); }
  .preview-card img { height: 96px; }
  .overview { align-items: flex-start; flex-direction: column; }
  .topic-card, .topic-card:first-child { grid-template-rows: 210px 1fr; min-height: 0; }
}


/* --- Textpart aus historicbits.de mit Mehr-Funktion --- */
.home-text,
.more-section {
  margin: 0 calc((100vw - min(1220px, calc(100vw - 34px))) / -2);
  padding: 0;
  background: #fff;
  color: #777;
}

.home-text {
  scroll-margin-top: 88px;
}

.home-text > *,
.more-section > * {
  width: min(960px, calc(100% - 104px));
  margin-left: clamp(32px, 4.2vw, 64px);
}

.home-text {
  padding-top: clamp(58px, 7vw, 82px);
  padding-bottom: clamp(76px, 8vw, 94px);
}

.home-text::after {
  content: "";
  display: block;
  width: min(884px, calc(100% - 104px));
  margin-left: clamp(32px, 4.2vw, 64px);
  margin-top: 76px;
  border-bottom: 1px solid #e2e2e2;
}

.home-text .major h2,
.more-section h2 {
  margin: 0 0 34px;
  color: #6f6f6f;
  font-size: clamp(2.2rem, 4vw, 3.05rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.home-text p,
.more-section p {
  max-width: 910px;
  margin-top: 0;
  margin-bottom: 18px;
  color: #999;
  font-size: clamp(1.08rem, 1.7vw, 1.36rem);
  line-height: 1.65;
  font-weight: 600;
}

.home-text .actions {
  display: flex;
  list-style: none;
  margin-top: 36px;
  margin-bottom: 0;
  padding: 0;
}

.home-text .actions li {
  margin: 0;
  padding: 0;
}

.home-text .actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 192px;
  min-height: 60px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #6f6f6f;
  font-size: 1.16rem;
  font-weight: 600;
  text-decoration: none;
}

.home-text .actions .button:hover,
.home-text .actions .button:focus-visible {
  border-color: #cfcfcf;
  color: #20201d;
  outline: none;
}

.more-section {
  scroll-margin-top: 88px;
  padding-top: clamp(52px, 7vw, 78px);
  padding-bottom: clamp(72px, 8vw, 96px);
}

.more-section[hidden] {
  display: none;
}

.more-section h2 {
  max-width: 860px;
  margin-bottom: 28px;
}

.more-section p {
  max-width: 900px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 500;
  color: #777;
}

@media (max-width: 620px) {
  .home-text,
  .more-section {
    margin-inline: -12px;
  }

  .home-text > *,
  .more-section > *,
  .home-text::after {
    width: min(100% - 32px, 960px);
    margin-left: 16px;
  }

  .home-text {
    padding-top: 42px;
    padding-bottom: 56px;
  }

  .home-text .major h2,
  .more-section h2 {
    margin-bottom: 24px;
  }

  .home-text .actions .button {
    width: 100%;
    min-width: 0;
  }
}

/* --- Sammlungskacheln unter der Timeline: Bilder vollständig sichtbar, keine harten Crops --- */
.collections-toolbar {
  padding-top: clamp(42px, 6vw, 76px);
}

.collection-list {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 5vw, 54px);
}

.collection-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: clamp(48px, 7vw, 82px);
}

.collection-cards .topic-card,
.collection-cards .topic-card:first-child {
  grid-column: auto;
  grid-row: auto;
  grid-template-rows: 260px 1fr;
  min-height: 520px;
}

.collection-cards .card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 14px;
  overflow: hidden;
  background: #f1eee7;
}

.collection-cards .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.96) contrast(1.01);
}

.collection-cards .topic-card h3,
.collection-cards .topic-card:first-child h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.collection-cards .card-body {
  min-height: 260px;
}

.collection-cards .pill.kind-bit {
  background: rgba(22,119,111,0.12);
  color: var(--accent-dark);
}

@media (max-width: 1080px) {
  .collection-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .collection-cards {
    grid-template-columns: 1fr;
  }

  .collection-cards .topic-card,
  .collection-cards .topic-card:first-child {
    grid-template-rows: 230px 1fr;
    min-height: 0;
  }

  .collection-cards .card-image {
    min-height: 230px;
  }
}


/* Timeline examples: full-width year stations from 1850 to 1980. Images stay fully visible. */
.preview-rail {
  align-items: start;
}

.preview-card {
  min-width: 0;
}

.preview-card img {
  padding: 6px;
}

@media (max-width: 980px) {
  .preview-rail {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
  }
}

@media (max-width: 620px) {
  .preview-rail {
    grid-template-columns: repeat(2, minmax(118px, 1fr));
    overflow-x: visible;
  }

  .preview-card img {
    height: 116px;
  }
}


/* one-row timeline previews with square floating images */
.preview-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 118px);
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 22px clamp(18px, 3vw, 36px) 24px;
  align-items: start;
}

.preview-card {
  width: 118px;
  min-width: 118px;
  gap: 6px;
}

.preview-card img {
  width: 118px;
  height: 118px;
  padding: 8px;
  object-fit: contain;
  object-position: center center;
  border-radius: 3px;
  background: #eee9df;
}

.preview-card strong,
.preview-card span {
  display: block;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-card strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.preview-card span {
  font-size: 0.74rem;
}

@media (max-width: 620px) {
  .preview-rail {
    grid-auto-columns: 96px;
    gap: 10px;
  }

  .preview-card,
  .preview-card strong,
  .preview-card span,
  .preview-card img {
    max-width: 96px;
  }

  .preview-card {
    width: 96px;
    min-width: 96px;
  }

  .preview-card img {
    width: 96px;
    height: 96px;
    padding: 6px;
  }
}


/* final preview rail: one row, fills full width, year only */
.preview-rail {
  display: grid;
  grid-template-columns: repeat(var(--preview-count, 14), minmax(0, 1fr));
  grid-auto-flow: unset;
  grid-auto-columns: unset;
  gap: 10px;
  overflow: hidden;
  padding: 22px clamp(18px, 3vw, 36px) 26px;
  align-items: start;
}

.preview-card {
  width: auto;
  min-width: 0;
  gap: 8px;
}

.preview-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
  object-fit: contain;
  object-position: center center;
  background: #eee9df;
}

.preview-card strong {
  display: block;
  max-width: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  line-height: 1.1;
}

.preview-card span {
  display: none;
}

@media (max-width: 1100px) {
  .preview-rail {
    overflow-x: auto;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
  }

  .preview-card {
    min-width: 88px;
  }
}




/* elegant collection showcase close to screenshot */
.collections-toolbar,
.overview,
.collection-list,
.home-text,
.more-section {
  display: none;
}

.collections-showcase {
  padding: clamp(44px, 6vw, 78px) 0 82px;
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 1fr);
  gap: 20px 28px;
  align-items: end;
  padding-bottom: 14px;
}

.catalog-title h2 {
  margin-bottom: 0;
  font-size: clamp(3.4rem, 8vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.catalog-search {
  display: grid;
  gap: 8px;
  align-self: center;
}

.catalog-search span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.catalog-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.catalog-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 12px;
}

.catalog-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.catalog-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 26px;
  color: var(--muted);
}

.catalog-overview strong {
  display: block;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}

.sammlung-module {
  padding-bottom: 52px;
}

.module-title {
  margin: 0 0 16px;
  font-size: 1.85rem;
  line-height: 1.1;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.editorial-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 440px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.editorial-card:hover {
  border-color: rgba(22, 119, 111, 0.42);
  box-shadow: 0 10px 28px rgba(32, 32, 29, 0.08);
  transform: translateY(-2px);
}

.editorial-card.feature {
  grid-column: span 2;
  grid-row: span 2;
  grid-template-rows: 420px 1fr;
  min-height: 792px;
}

.editorial-card.small {
  min-height: 320px;
  grid-template-rows: 180px 1fr;
}

.editorial-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe9de;
  border-bottom: 1px solid var(--line);
}

.editorial-image img {
  max-width: 86%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
}

.editorial-card.feature .editorial-image img {
  max-width: 180px;
  max-height: 180px;
}

.editorial-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
}

.editorial-card h4 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.16;
}

.editorial-card.feature h4 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.editorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

@media (max-width: 1100px) {
  .catalog-head {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editorial-card.feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-card,
  .editorial-card.small,
  .editorial-card.feature {
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
    grid-template-rows: 200px 1fr;
  }
}

@media (max-width: 560px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .catalog-title h2 {
    font-size: 3rem;
  }
}


/* feature cards use full-bleed imagery */
.editorial-card.feature .editorial-image {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.editorial-card.feature .editorial-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}


/* --- elegant intro text inserted without touching timeline/collection styles --- */
.hb-context {
  margin: 0 calc((100vw - min(1220px, calc(100vw - 34px))) / -2);
  background: #f8f7f4;
  border-top: 1px solid #ece7df;
  border-bottom: 1px solid #ece7df;
  padding: clamp(54px, 6.4vw, 82px) clamp(22px, 5vw, 72px);
}

.hb-context-inner {
  max-width: 980px;
}

.hb-context-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hb-context h2 {
  margin: 0 0 24px;
  max-width: 880px;
  color: #676764;
  font-size: clamp(2.25rem, 4.6vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.hb-context-lead {
  max-width: 820px;
  margin: 0;
  color: #85827d;
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.68;
  font-weight: 560;
}

.hb-context-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 46px;
  margin-top: 32px;
  border: 1px solid #d9d4cc;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: #3a3834;
  text-decoration: none;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hb-context-button:hover,
.hb-context-button:focus-visible {
  background: #fff;
  border-color: #bfb8ad;
  outline: none;
  transform: translateY(-1px);
}

.hb-more {
  margin: 0 calc((100vw - min(1220px, calc(100vw - 34px))) / -2);
  background: #fbfaf7;
  border-bottom: 1px solid #ece7df;
  padding: clamp(54px, 6.4vw, 82px) clamp(22px, 5vw, 72px);
  scroll-margin-top: 88px;
}

.hb-more[hidden] {
  display: none;
}

.hb-more-inner {
  max-width: 980px;
}

.hb-more h2 {
  margin: 0 0 30px;
  max-width: 760px;
  color: #676764;
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.hb-more p {
  max-width: 900px;
  margin: 0 0 18px;
  color: #74716c;
  font-size: clamp(1rem, 1.24vw, 1.13rem);
  line-height: 1.72;
  font-weight: 480;
}

@media (max-width: 620px) {
  .hb-context,
  .hb-more {
    margin-inline: -12px;
    padding-inline: 18px;
  }

  .hb-context-button {
    width: 100%;
  }
}


/* Portrait reference cards: keep supplied images visually balanced */
.editorial-card.small .editorial-image img[src^="assets/HB"] {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* --- Rechte Projekt-/Unterkacheln: dezenter Screenshot-Stil, Struktur bleibt gleich --- */
/* Betrifft nur die kleinen Kacheln rechts/neben den linken Hauptkacheln. */
.editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}

.editorial-card.small:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.editorial-card.small .editorial-image {
  height: 300px;
  border: 0;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-card.small .editorial-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 6px;
  background: transparent;
  filter: none;
}

.editorial-card.small .editorial-body {
  display: block;
  padding: 14px 0 0;
}

.editorial-card.small .meta,
.editorial-card.small .tags {
  display: none;
}

.editorial-card.small h4 {
  margin: 0 0 8px;
  color: #6f6f6f;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.editorial-card.small p {
  margin: 0;
  color: #9b9b9b;
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 500;
}

.editorial-card.small:hover h4,
.editorial-card.small:focus-visible h4 {
  color: #20201d;
}

.editorial-card.small:focus-visible {
  outline: 2px solid rgba(22,119,111,0.28);
  outline-offset: 4px;
}

/* Das linke Hauptbild / die große Hauptkachel bleibt ausdrücklich unangetastet. */
.editorial-card.feature .editorial-image img {
  object-position: center center;
}

@media (max-width: 760px) {
  .editorial-card.small .editorial-image {
    height: 260px;
  }
}


/* === Final adjustment: keep existing left feature card, only restyle right-side subcards === */
@media (min-width: 1101px) {
  .editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 18px;
    align-items: start;
  }

  .editorial-card.feature {
    grid-column: span 3;
    grid-row: span 4;
  }

  .editorial-card.small {
    grid-column: span 1;
  }
}

/* Only the small right-hand cards: calm layout, full-frame images, no cropping */
.editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.editorial-card.small .editorial-image {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  display: block;
}

.editorial-card.small .editorial-image img,
.editorial-card.small .editorial-image img[src^="assets/HB"] {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  background: transparent;
}

.editorial-card.small .editorial-body {
  display: block;
  padding: 10px 0 0;
}

.editorial-card.small .meta,
.editorial-card.small .tags {
  display: none;
}

.editorial-card.small h4 {
  margin: 0 0 6px;
  color: #6e6e6b;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 500;
}

.editorial-card.small:hover,
.editorial-card.small:hover h4,
.editorial-card.small:focus-visible h4 {
  transform: none;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .editorial-card.small .editorial-image img,
  .editorial-card.small .editorial-image img[src^="assets/HB"] {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}


/* === 12 right-side tiles + More button === */
@media (min-width: 1101px) {
  .editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }
  .editorial-card.feature {
    grid-column: span 3;
    grid-row: span 4;
  }
  .editorial-card.small {
    grid-column: span 1;
  }
}

.editorial-card.small.is-collapsed {
  display: none;
}

.sammlung-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.sammlung-more {
  appearance: none;
  border: 1px solid #d8d2c7;
  background: #faf8f3;
  color: #5b5a56;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sammlung-more:hover,
.sammlung-more:focus-visible {
  background: #fff;
  border-color: #beb6a8;
  outline: none;
  transform: translateY(-1px);
}

/* small right-side cards only: full image, never cropped */
.editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.editorial-card.small .editorial-image {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  display: block;
}

.editorial-card.small .editorial-image img,
.editorial-card.small .editorial-image img[src^="assets/HB"],
.editorial-card.small .editorial-image img[src^="assets/HB"],
.editorial-card.small .editorial-image img[src^="assets/HB"] {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  background: transparent;
}

.editorial-card.small .editorial-body {
  display: block;
  padding: 10px 0 0;
}

.editorial-card.small .meta,
.editorial-card.small .tags {
  display: none;
}

.editorial-card.small h4 {
  margin: 0 0 6px;
  color: #6e6e6b;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 500;
}


/* Final tweak: only the left main image in the first Sammlung should be format-filling */
.sammlung-module:first-of-type .editorial-card.feature.giebel-feature .editorial-image {
  min-height: 438px;
  overflow: hidden;
}

.sammlung-module:first-of-type .editorial-card.feature.giebel-feature .editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 900px) {
  .sammlung-module:first-of-type .editorial-card.feature.giebel-feature .editorial-image {
    min-height: 360px;
  }
}


/* First collection main image only: no text, image fills card */
.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only {
  min-height: 0;
}

.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center center;
}

.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-body {
  display: none !important;
}

@media (max-width: 1100px) {
  .sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image img {
    min-height: 420px;
  }
}


/* === Portrait right-side tile layout: 9 visible tiles (3x3), left image full-bleed === */
@media (min-width: 1101px) {
  .editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .editorial-card.feature {
    grid-column: span 3;
    grid-row: span 3;
  }

  .editorial-card.small {
    grid-column: span 1;
  }
}

/* keep first section main image only and format-filling */
.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only,
.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image {
  height: 100%;
}

.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image {
  min-height: 720px;
  overflow: hidden;
  background: transparent;
}

.sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center center;
}

/* right small cards: portrait tiles, 3 columns by 3 rows on desktop */
.editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.editorial-card.small .editorial-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-card.small .editorial-image img,
.editorial-card.small .editorial-image img[src^="assets/HB"],
.editorial-card.small .editorial-image img[src^="assets/HB"],
.editorial-card.small .editorial-image img[src^="assets/HB"] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  background: transparent;
}

.editorial-card.small .editorial-body {
  display: block;
  padding: 8px 0 0;
}

.editorial-card.small .meta,
.editorial-card.small .tags {
  display: none;
}

.editorial-card.small h4 {
  margin: 0 0 5px;
  color: #6e6e6b;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}

.editorial-card.small.is-collapsed {
  display: none;
}

.sammlung-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.sammlung-more {
  appearance: none;
  border: 1px solid #d8d2c7;
  background: #faf8f3;
  color: #5b5a56;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sammlung-more:hover,
.sammlung-more:focus-visible {
  background: #fff;
  border-color: #beb6a8;
  outline: none;
}

@media (max-width: 1100px) {
  .sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image,
  .sammlung-module:first-of-type .editorial-card.feature.giebel-image-only .editorial-image img {
    min-height: 480px;
  }
}


/* Fine-tune first collection main image and placeholder portrait cards */
.sammlung-module:first-of-type .editorial-card.feature.giebel-main-contained .editorial-image {
  min-height: 720px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.sammlung-module:first-of-type .editorial-card.feature.giebel-main-contained .editorial-image img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 1100px) {
  .sammlung-module:first-of-type .editorial-card.feature.giebel-main-contained .editorial-image,
  .sammlung-module:first-of-type .editorial-card.feature.giebel-main-contained .editorial-image img {
    min-height: 480px;
  }
}


/* FINAL: first Portrait section exactly as requested: left image only + 9 portrait tiles on the right */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module:first-of-type .editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: stretch;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.small {
    grid-column: span 1;
  }
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image {
  display: block;
  height: 100%;
  min-height: 760px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
  object-position: center center;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-body {
  display: none !important;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small:hover {
  box-shadow: none;
  transform: none;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small .editorial-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small .editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  background: transparent;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small .editorial-body {
  display: block;
  padding: 8px 0 0;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small .meta,
.collections-showcase .sammlung-module:first-of-type .editorial-card.small .tags {
  display: none !important;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small h4 {
  margin: 0 0 5px;
  color: #6e6e6b;
  font-size: clamp(1rem, 1.08vw, 1.15rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.small.is-collapsed {
  display: none;
}

.collections-showcase .sammlung-module:first-of-type .sammlung-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image,
  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image img {
    min-height: 480px;
  }
}


/* final override: left portrait image must never be cropped */
.collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: contain !important;
  object-position: center center;
  background: transparent;
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image img {
    min-height: 480px;
    object-fit: contain !important;
  }
}


/* final alignment fix: first portrait section left image aligns with right 3x3 tile block */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module:first-of-type .editorial-grid {
    align-items: stretch;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0 !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    background: transparent;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image img {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center;
    display: block;
    background: transparent;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.small .editorial-image {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only {
    height: auto;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image {
    min-height: 0 !important;
    height: auto;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image img {
    min-height: 0 !important;
    height: auto;
    width: 100%;
    object-fit: contain !important;
  }
}


/* final: left main image top edge aligns with top of right tile images, no crop */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image {
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: hidden;
  }

  .collections-showcase .sammlung-module:first-of-type .editorial-card.feature.portrait-left-image-only .editorial-image img {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center top !important;
  }
}


/* === replicate portrait-style section across all four collections === */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module .editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only .editorial-image {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: transparent;
  }

  .collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only .editorial-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain !important;
    object-position: top center;
    display: block;
    background: transparent;
  }

  .collections-showcase .sammlung-module .editorial-card.small {
    grid-column: span 1;
  }
}

.collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only .editorial-body {
  display: none !important;
}

/* right 9 tiles */
.collections-showcase .sammlung-module .editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.collections-showcase .sammlung-module .editorial-card.small .editorial-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collections-showcase .sammlung-module .editorial-card.small .editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  background: transparent;
}

.collections-showcase .sammlung-module .editorial-card.small .editorial-body {
  display: block;
  padding: 8px 0 0;
}

.collections-showcase .sammlung-module .editorial-card.small .meta,
.collections-showcase .sammlung-module .editorial-card.small .tags {
  display: none;
}

.collections-showcase .sammlung-module .editorial-card.small h4 {
  margin: 0 0 5px;
  color: #6e6e6b;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.collections-showcase .sammlung-module .editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}

.collections-showcase .sammlung-module .editorial-card.small.is-collapsed {
  display: none;
}

.collections-showcase .sammlung-module .sammlung-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.collections-showcase .sammlung-module .sammlung-more {
  appearance: none;
  border: 1px solid #d8d2c7;
  background: #faf8f3;
  color: #5b5a56;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.collections-showcase .sammlung-module .sammlung-more:hover,
.collections-showcase .sammlung-module .sammlung-more:focus-visible {
  background: #fff;
  border-color: #beb6a8;
  outline: none;
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only {
    height: auto;
  }
  .collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only .editorial-image {
    min-height: 0;
    height: auto;
  }
  .collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only .editorial-image img {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    object-position: top center;
  }
}


/* --- Schnellfotografie: left cropped hero, right landscape cards in 2 columns --- */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.feature.schnell-feature-image {
    grid-column: 1 / span 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.feature.schnell-feature-image .editorial-image {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: transparent;
  }

  .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.feature.schnell-feature-image .editorial-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small {
    grid-column: span 1;
  }
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.feature.schnell-feature-image .editorial-body {
  display: none !important;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small .editorial-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small .editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small .editorial-body {
  display: block;
  padding: 8px 0 0;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small .meta,
.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small .tags {
  display: none;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small h4 {
  margin: 0 0 5px;
  color: #6e6e6b;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.2;
  font-weight: 500;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}

.collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small.is-collapsed {
  display: none;
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.feature.schnell-feature-image .editorial-image {
    height: auto;
  }
  .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.feature.schnell-feature-image .editorial-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}


/* --- Amateurfotografie: same horizontal-card logic as Schnellfotografie --- */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.feature.amateur-feature-image {
    grid-column: 1 / span 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.feature.amateur-feature-image .editorial-image {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: transparent;
  }

  .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.feature.amateur-feature-image .editorial-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small {
    grid-column: span 1;
  }
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.feature.amateur-feature-image .editorial-body {
  display: none !important;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small .editorial-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small .editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small .editorial-body {
  display: block;
  padding: 8px 0 0;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small .meta,
.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small .tags {
  display: none;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small h4 {
  margin: 0 0 5px;
  color: #6e6e6b;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.2;
  font-weight: 500;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}

.collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small.is-collapsed {
  display: none;
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.feature.amateur-feature-image .editorial-image {
    height: auto;
  }
  .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.feature.amateur-feature-image .editorial-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}


/* --- Carte de Visite/Kabinett: use portrait-card template like Fotoerbe Portraits --- */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain !important;
    object-position: top center;
    background: transparent;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small {
    grid-column: span 1;
  }
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-body {
  display: none !important;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small .editorial-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small .editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  border-radius: 4px;
  background: transparent;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small .editorial-body {
  display: block;
  padding: 8px 0 0;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small .meta,
.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small .tags {
  display: none;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small h4 {
  margin: 0 0 5px;
  color: #6e6e6b;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.2;
  font-weight: 500;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small p {
  margin: 0;
  color: #9a9a97;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}

.collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small.is-collapsed {
  display: none;
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image img {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    object-position: top center;
  }
}


/* Hero color adjustment */
.hero-copy h1 {
  color: #E8DCC4;
}

.hero-copy p:not(.eyebrow) {
  color: #CDBF9F;
}

.hero .eyebrow {
  color: #BFAE8D;
}

/* === VS4 FIX: Bildkacheln ohne Beschnitt ===
   Nur Override am Ende der bestehenden CSS. Keine HTML-, Link-, Text- oder Asset-Änderungen.
   Ursache: spätere Sammlungs-Regeln setzten einzelne Kacheln wieder auf object-fit: cover.
*/
.collections-showcase .sammlung-module .editorial-card.feature .editorial-image,
.collections-showcase .sammlung-module .editorial-card.small .editorial-image,
.collection-cards .card-image,
.cards .card-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.collections-showcase .sammlung-module .editorial-card.feature .editorial-image img,
.collections-showcase .sammlung-module .editorial-card.small .editorial-image img,
.collection-cards .card-image img,
.cards .card-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Mobile: keine erzwungene Höhe, damit Hoch- und Querformate vollständig bleiben. */
@media (max-width: 1100px) {
  .collections-showcase .sammlung-module .editorial-card.feature .editorial-image img,
  .collections-showcase .sammlung-module .editorial-card.small .editorial-image img,
  .collection-cards .card-image img,
  .cards .card-image img {
    object-fit: contain !important;
  }
}


/* === VS5: CdV feature image should align with top row, without white borders === */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image {
    align-items: stretch;
    justify-content: stretch;
    background: transparent;
    overflow: hidden;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center top;
    background: transparent;
  }
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image img {
    width: 100%;
    height: auto;
    object-fit: cover !important;
    object-position: center top;
  }
}


/* === VS6: CdV feature image must NEVER be cropped === */
@media (min-width: 1101px) {
  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image {
    align-self: start;
    height: auto;
    min-height: 0;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image img {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
    object-fit: contain !important;
    object-position: top center;
    background: transparent;
  }
}

@media (max-width: 1100px) {
  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image {
    height: auto;
    min-height: 0;
  }

  .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.feature.cdv-feature-image .editorial-image img {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
    object-fit: contain !important;
    object-position: top center;
  }
}

/* VS33: hide catalog overview text/button but keep the reserved space */
.catalog-overview > div,
.catalog-overview > .plain-button {
  visibility: hidden;
}

/* VS34: hide the catalog search visually, but keep its layout space */
.collections-showcase .catalog-search {
  visibility: hidden;
}

/* VS35: hide the small HistoricBits label above Sammlungen, but keep its space */
.collections-showcase .catalog-title .eyebrow {
  visibility: hidden;
}


/* === VS37: simplified Fortepan direct search under hero === */
.archive-preview {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
}

.archive-stage {
  background: #111;
}

.fortepan-panel {
  display: block;
  background: #111;
  border-bottom: 1px solid #2a2a2a;
}

.stage-timeline,
.year-field,
.advanced-link,
.archive-count {
  display: none !important;
}

.fortepan-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 112px;
  gap: 24px;
  align-items: center;
  min-height: 64px;
  padding: 8px clamp(18px, 3vw, 46px) 10px;
  background: #111;
}

.keyword-field {
  display: block;
}

.keyword-field input {
  min-height: 46px;
  border: 1px solid #555;
  border-radius: 0;
  background: #111;
  color: #f1f1f1;
  font-size: 1rem;
  padding: 10px 16px;
}

.keyword-field input::placeholder {
  color: #bfc0c2;
  opacity: 1;
}

.go-button {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-weight: 800;
  padding: 10px 20px;
}

.preview-rail {
  background: #fff;
}

@media (max-width: 720px) {
  .fortepan-search {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .go-button {
    width: 100%;
  }
}


/* === VS40: show timeline again; it only controls the local year preview images === */
.archive-preview .stage-timeline {
  display: grid !important;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  min-height: 46px;
  padding: 0 clamp(18px, 3vw, 46px);
  background: #111;
  color: #f1f1f1;
}

.archive-preview .stage-timeline > span {
  background: #e4e7e9;
  color: #1f1f1d;
}

.archive-preview .stage-line {
  background: #ff432c;
}

.archive-preview .stage-line strong {
  background: #ff432c;
  color: #fff;
}

.archive-preview .year-field,
.archive-preview .advanced-link,
.archive-preview .archive-count {
  display: none !important;
}

.archive-preview .fortepan-search {
  border-top: 1px solid #2a2a2a;
}

.archive-preview .preview-card {
  cursor: default;
}


/* === VS41: softer timeline/search design and exact active year highlight === */
.archive-preview {
  background: #343330 !important;
  border-bottom: 1px solid #5a5650 !important;
}

.archive-stage,
.archive-preview .fortepan-panel,
.archive-preview .stage-timeline,
.archive-preview .fortepan-search {
  background: #343330 !important;
}

.archive-preview .fortepan-panel {
  border-bottom: 1px solid #5a5650 !important;
}

.archive-preview .stage-timeline {
  color: #eeeae0 !important;
  min-height: 44px;
}

.archive-preview .stage-timeline > span {
  background: #e6e2d8 !important;
  color: #2d2c29 !important;
}

.archive-preview .stage-line {
  background: #ff513a !important;
}

.archive-preview .stage-line i {
  background: #9a958c !important;
}

.archive-preview .stage-line strong {
  background: #ff513a !important;
  color: #fff !important;
}

.archive-preview .fortepan-search {
  grid-template-columns: minmax(280px, 620px) 118px !important;
  justify-content: end;
  gap: 20px;
  min-height: 62px;
  padding: 8px clamp(18px, 3vw, 46px) 10px !important;
  border-top: 1px solid #5a5650 !important;
}

.archive-preview .keyword-field input {
  min-height: 44px;
  border: 1px solid #777168 !important;
  background: #3f3d39 !important;
  color: #fff !important;
}

.archive-preview .keyword-field input::placeholder {
  color: #e8e2d7 !important;
  opacity: 0.86;
}

.archive-preview .keyword-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='%23ffffff' fill-opacity='0.95'/%3E%3Cpath d='M6 6l6 6M12 6l-6 6' stroke='%23343330' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.archive-preview .go-button {
  min-height: 44px;
  background: #f3efe6 !important;
  color: #222 !important;
  border: 1px solid #d8d0c2 !important;
}

.archive-preview .preview-card.featured-preview img {
  outline: none !important;
}

.archive-preview .preview-card[aria-current="true"] img {
  outline: 3px solid #ff513a !important;
  outline-offset: 0;
}

@media (max-width: 720px) {
  .archive-preview .fortepan-search {
    grid-template-columns: 1fr !important;
    justify-content: stretch;
  }
}


/* === VS42: connect intro text and collections on desktop === */
@media (min-width: 1180px) {
  .hb-split-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.36fr) minmax(0, 0.64fr);
    gap: clamp(34px, 4vw, 72px);
    align-items: start;
    margin: 0 calc((100vw - min(1220px, calc(100vw - 34px))) / -2);
    padding: clamp(42px, 5vw, 72px) clamp(22px, 5vw, 72px) 76px;
    background: linear-gradient(90deg, #f8f7f4 0%, #f8f7f4 36%, var(--bg) 36%, var(--bg) 100%);
    border-top: 1px solid #ece7df;
  }

  .hb-split-layout .hb-context {
    grid-column: 1;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .hb-split-layout .hb-context-inner {
    max-width: 440px;
    padding-top: 6px;
  }

  .hb-split-layout .hb-context h2 {
    font-size: clamp(2.65rem, 3.5vw, 4.15rem);
  }

  .hb-split-layout .hb-context-lead {
    max-width: 420px;
  }

  .hb-split-layout .hb-more {
    grid-column: 1;
    margin: 0;
    padding: 26px 0 0;
    border: 0;
    background: transparent;
  }

  .hb-split-layout .collections-showcase {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 0 0 0;
  }

  .hb-split-layout .catalog-head {
    padding-top: 0;
  }
}

@media (max-width: 1179px) {
  .hb-split-layout {
    display: block;
  }
}

/* === VS43: keep collections centered, use left margin for the small context text === */
@media (min-width: 1180px) {
  .hb-split-layout {
    grid-template-columns: minmax(190px, 280px) minmax(760px, 1120px) minmax(190px, 280px) !important;
    justify-content: center !important;
    gap: clamp(24px, 2.8vw, 54px) !important;
    align-items: start !important;
    margin: 0 calc((100vw - min(1540px, calc(100vw - 34px))) / -2) !important;
    padding: clamp(38px, 4.6vw, 66px) clamp(22px, 4vw, 54px) 76px !important;
    background: var(--bg) !important;
  }

  .hb-split-layout .hb-context {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }

  .hb-split-layout .hb-context-inner {
    max-width: 280px !important;
    padding-top: 6px !important;
  }

  .hb-split-layout .hb-context h2 {
    font-size: clamp(1.75rem, 2vw, 2.45rem) !important;
    line-height: 0.96 !important;
  }

  .hb-split-layout .hb-context-lead {
    max-width: 280px !important;
    font-size: 0.96rem !important;
    line-height: 1.5 !important;
  }

  .hb-split-layout .hb-more {
    grid-column: 1 !important;
    grid-row: 2 !important;
    max-width: 280px !important;
  }

  .hb-split-layout .collections-showcase {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    width: 100% !important;
    max-width: 1120px !important;
    justify-self: center !important;
    padding: 0 !important;
  }

  .hb-split-layout .catalog-head {
    text-align: center !important;
  }

  .hb-split-layout .collection-list {
    justify-content: center !important;
  }
}


/* === VS44: show intro continuation text, remove need for Mehr button === */
.hb-context-button {
  display: none !important;
}

.hb-more {
  display: block !important;
}

.hb-more[hidden] {
  display: block !important;
}

.hb-more h2 {
  font-size: 0.96rem !important;
  line-height: 1.5 !important;
  margin: 0 0 12px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.hb-more p {
  font-size: 0.96rem !important;
  line-height: 1.5 !important;
  margin: 0 0 12px !important;
  color: var(--muted) !important;
  font-weight: 650 !important;
}

@media (min-width: 1180px) {
  .hb-split-layout .hb-more {
    padding-top: 18px !important;
  }

  .hb-split-layout .hb-more-inner {
    max-width: 280px !important;
  }

  .hb-split-layout .hb-more h2,
  .hb-split-layout .hb-more p {
    font-size: 0.96rem !important;
    line-height: 1.5 !important;
  }
}


/* === VS45: intro continuation directly follows the lead text === */
@media (min-width: 1180px) {
  .hb-split-layout .hb-context-lead {
    margin-bottom: 0.85em !important;
  }

  .hb-split-layout .hb-more {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin-top: -0.15em !important;
    padding-top: 0 !important;
  }

  .hb-split-layout .hb-more-inner {
    max-width: 280px !important;
  }

  .hb-split-layout .hb-more h2 {
    display: none !important;
  }

  .hb-split-layout .hb-more p:first-of-type {
    margin-top: 0 !important;
  }
}

@media (max-width: 1179px) {
  .hb-more {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .hb-more h2 {
    display: none !important;
  }
}


/* === VS46: Sammlungen typographically aligned with Data/Hauptseite === */
.hb-split-layout,
.hb-split-layout * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.hb-split-layout {
  font-size: 14px;
  line-height: 1.4;
}

/* left information column */
.hb-split-layout .hb-context-kicker,
.hb-split-layout .catalog-title .eyebrow {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #444 !important;
}

.hb-split-layout .hb-context h2 {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: #222 !important;
}

.hb-split-layout .hb-context-lead,
.hb-split-layout .hb-more p {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #666 !important;
}

/* main collections title */
.hb-split-layout .collections-showcase .catalog-title h2,
.hb-split-layout #collections-showcase-title {
  font-family: inherit !important;
  font-size: 64px !important;
  font-weight: 700 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
  color: #222 !important;
  margin: 0 0 28px !important;
}

/* section titles */
.hb-split-layout .collections-showcase .module-title,
.hb-split-layout .collections-showcase .sammlung-module .module-title {
  font-family: inherit !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: #222 !important;
  margin: 0 0 18px !important;
}

/* card typography */
.hb-split-layout .collections-showcase .editorial-card h4,
.hb-split-layout .collections-showcase .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small h4 {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #222 !important;
  margin: 8px 0 0 !important;
  letter-spacing: 0 !important;
}

.hb-split-layout .collections-showcase .editorial-card p,
.hb-split-layout .collections-showcase .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small p {
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: #777 !important;
  margin: 3px 0 0 !important;
}

.hb-split-layout .collections-showcase .editorial-card .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small .editorial-body {
  padding-top: 0 !important;
}

/* filter bar: data-like tags */
.hb-split-layout .catalog-filters {
  gap: 6px !important;
}

.hb-split-layout .catalog-chip,
.hb-split-layout .filter-button {
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  padding: 7px 10px !important;
  border-radius: 2px !important;
  border: 1px solid #d0d0d0 !important;
  background: #f7f7f7 !important;
  color: #333 !important;
  box-shadow: none !important;
}

.hb-split-layout .catalog-chip.active,
.hb-split-layout .filter-button.active {
  background: #0f6f61 !important;
  color: #fff !important;
  border-color: #0f6f61 !important;
}

/* keep archive feel calm: hide meta pills and remove all Mehr controls */
.hb-split-layout .collections-showcase .editorial-card .meta,
.hb-split-layout .collections-showcase .editorial-card .tags,
.hb-split-layout .collections-showcase .sammlung-more-wrap,
.hb-split-layout .collections-showcase .sammlung-more {
  display: none !important;
}

/* all collection items visible; page works by scrolling */
.hb-split-layout .collections-showcase .editorial-card.small.is-extra,
.hb-split-layout .collections-showcase .editorial-card.small.is-collapsed {
  display: block !important;
}

/* slightly calmer vertical rhythm */
.hb-split-layout .collections-showcase .sammlung-module {
  margin-top: 42px !important;
}

.hb-split-layout .collections-showcase .sammlung-module:first-of-type {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .hb-split-layout .collections-showcase .catalog-title h2,
  .hb-split-layout #collections-showcase-title {
    font-size: 56px !important;
  }
  .hb-split-layout .collections-showcase .module-title {
    font-size: 26px !important;
  }
}


/* === VS47: exact font stack from the old HistoricBits/Fortepan page === */
.hb-split-layout,
.hb-split-layout * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}


/* === VS48: Sammlungen use the same typographic/control form as old database === */
.hb-split-layout {
  --hb-old-ink: #111111;
  --hb-old-muted: #7a7a7a;
  --hb-old-line: #dedede;
  --hb-old-surface: #ffffff;
  --hb-old-wash: #f2f2f0;
  --hb-old-dark: #080808;
  --hb-old-accent: #ff681f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--hb-old-ink) !important;
}

.hb-split-layout *,
.hb-split-layout button,
.hb-split-layout input {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* old Fortepan page feel: square, functional, archive-like */
.hb-split-layout .catalog-chip,
.hb-split-layout .filter-button,
.hb-split-layout .sammlung-more,
.hb-split-layout button {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hb-split-layout .catalog-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 28px !important;
}

.hb-split-layout .catalog-chip,
.hb-split-layout .filter-button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid var(--hb-old-line) !important;
  background: #fff !important;
  color: var(--hb-old-ink) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.hb-split-layout .catalog-chip:hover,
.hb-split-layout .filter-button:hover {
  color: #f33a2d !important;
  background: #fff !important;
  border-color: #555 !important;
}

.hb-split-layout .catalog-chip.active,
.hb-split-layout .filter-button.active {
  color: #fff !important;
  background: var(--hb-old-dark) !important;
  border-color: var(--hb-old-dark) !important;
}

/* headings: same system font, no display face, calm old-page rhythm */
.hb-split-layout .collections-showcase .catalog-title h2,
.hb-split-layout #collections-showcase-title {
  font-family: inherit !important;
  color: var(--hb-old-ink) !important;
  font-size: clamp(48px, 6vw, 64px) !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.05em !important;
  margin: 0 0 24px !important;
}

.hb-split-layout .collections-showcase .module-title,
.hb-split-layout .collections-showcase .sammlung-module .module-title {
  font-family: inherit !important;
  color: var(--hb-old-ink) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 18px !important;
}

/* left context column aligned to old page: compact, grey, functional */
.hb-split-layout .hb-context .eyebrow,
.hb-split-layout .hb-context-kicker,
.hb-split-layout .site-kicker {
  color: var(--hb-old-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.hb-split-layout .hb-context h2 {
  color: var(--hb-old-ink) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
}

.hb-split-layout .hb-context-lead,
.hb-split-layout .hb-more p {
  color: var(--hb-old-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* card captions in old data-page logic: small, direct, not decorative */
.hb-split-layout .collections-showcase .editorial-card h4,
.hb-split-layout .collections-showcase .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small h4 {
  color: var(--hb-old-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.005em !important;
  margin: 8px 0 0 !important;
}

.hb-split-layout .collections-showcase .editorial-card p,
.hb-split-layout .collections-showcase .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small p {
  color: var(--hb-old-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.32 !important;
  margin: 3px 0 0 !important;
}

.hb-split-layout .collections-showcase .editorial-card.small .editorial-image img {
  border-radius: 0 !important;
}


/* === VS49: left intro uses exactly the HistoricBits text block; old Fortepan typography/form retained === */
.hb-split-layout {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.hb-split-layout .hb-context-kicker {
  color: #777 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin: 0 0 18px !important;
}

.hb-split-layout .hb-context h2 {
  color: #111 !important;
  font-family: inherit !important;
  font-size: clamp(34px, 3.1vw, 50px) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  margin: 0 0 26px !important;
}

.hb-split-layout .hb-context-lead,
.hb-split-layout .hb-more p {
  color: #777 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 20px !important;
}

.hb-split-layout .hb-more h2 {
  display: none !important;
}

@media (min-width: 1180px) {
  .hb-split-layout .hb-context-inner,
  .hb-split-layout .hb-more-inner {
    max-width: 340px !important;
  }

  .hb-split-layout .hb-context-lead {
    margin-bottom: 20px !important;
  }

  .hb-split-layout .hb-more {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* VS55: remove only the visible Sammlungen header and category buttons shown in the screenshot */
.collections-showcase > .catalog-head {
  display: none !important;
}


/* VS58: align left intro text with top edge of the first collection image grid */
@media (min-width: 1180px) {
  .hb-split-layout {
    padding-top: clamp(26px, 3.5vw, 48px) !important;
  }

  .hb-split-layout .hb-context-inner {
    padding-top: 58px !important;
  }
}


/* === VS59: move the HistoricBits intro out of the left column and center it above the first collection === */
@media (min-width: 1180px) {
  .hb-split-layout {
    display: block !important;
    width: min(1120px, calc(100vw - 44px)) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: clamp(34px, 4vw, 58px) 0 76px !important;
    background: var(--bg) !important;
  }

  .hb-split-layout .hb-context {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto clamp(34px, 4vw, 54px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  .hb-split-layout .hb-context-inner {
    max-width: 760px !important;
    padding-top: 0 !important;
  }

  .hb-split-layout .hb-context-lead {
    max-width: 760px !important;
  }

  .hb-split-layout .collections-showcase {
    display: block !important;
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
}

@media (max-width: 1179px) {
  .hb-split-layout .hb-context {
    margin-bottom: 32px !important;
  }
}

/* === VS60: intro text above collections left-aligned like the other sections === */
.hb-split-layout .hb-context,
.hb-split-layout .hb-context-inner,
.hb-split-layout .hb-context-kicker,
.hb-split-layout .hb-context h2,
.hb-split-layout .hb-context p,
.hb-split-layout .hb-context-lead {
  text-align: left !important;
}


/* === VS61: force intro block itself to align left with collection grid === */
@media (min-width: 1180px) {
  .hb-split-layout .hb-context {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  .hb-split-layout .hb-context-inner {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }
}

.hb-split-layout .hb-context-kicker,
.hb-split-layout .hb-context h2,
.hb-split-layout .hb-context p,
.hb-split-layout .hb-context-lead {
  text-align: left !important;
}

/* === VS62: Fontgrößen vereinfachen / ruhigeres Typo-System ===
   Reduziert den sichtbaren Sammlungsbereich auf wenige, wiederholbare Größen:
   Label 11px, Haupttitel 42px, Intro 15px, Abschnitt 26px, Kartentitel 13px, Unterzeile 11px.
   Layout, Bilder und Links bleiben unverändert.
*/
.hb-split-layout {
  --hb-type-label: 11px;
  --hb-type-hero: 42px;
  --hb-type-intro: 15px;
  --hb-type-section: 26px;
  --hb-type-card-title: 13px;
  --hb-type-card-sub: 11px;
}

.hb-split-layout .hb-context-kicker,
.hb-split-layout .catalog-title .eyebrow {
  font-size: var(--hb-type-label) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #6f6b64 !important;
  margin: 0 0 16px !important;
}

.hb-split-layout .hb-context h2 {
  font-size: var(--hb-type-hero) !important;
  line-height: 0.95 !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  color: #111 !important;
  margin: 0 0 24px !important;
}

.hb-split-layout .hb-context-lead,
.hb-split-layout .hb-more p {
  font-size: var(--hb-type-intro) !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: #5f5b55 !important;
  margin: 0 0 18px !important;
}

.hb-split-layout .collections-showcase .module-title,
.hb-split-layout .collections-showcase .sammlung-module .module-title {
  font-size: var(--hb-type-section) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #111 !important;
  margin: 0 0 18px !important;
}

.hb-split-layout .collections-showcase .editorial-card h4,
.hb-split-layout .collections-showcase .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small h4,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small h4 {
  font-size: var(--hb-type-card-title) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: #222 !important;
  margin: 8px 0 0 !important;
}

.hb-split-layout .collections-showcase .editorial-card p,
.hb-split-layout .collections-showcase .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small p,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small p {
  font-size: var(--hb-type-card-sub) !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: rgba(0, 0, 0, 0.55) !important;
  margin: 3px 0 0 !important;
}

.hb-split-layout .collections-showcase .editorial-card.small .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module .editorial-card.small .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module:first-of-type .editorial-card.small .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-schnellfotografie .editorial-card.small .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-amateurfotografie .editorial-card.small .editorial-body,
.hb-split-layout .collections-showcase .sammlung-module.sammlung-cdv-portrait .editorial-card.small .editorial-body {
  padding-top: 0 !important;
}

@media (max-width: 760px) {
  .hb-split-layout {
    --hb-type-hero: 34px;
    --hb-type-intro: 14px;
    --hb-type-section: 24px;
  }
}


/* === VS65: footer overlay from database === */
.site-footer {
  position: fixed !important;
  left: 50% !important;
  bottom: 10px !important;
  z-index: 30 !important;
  width: max-content !important;
  max-width: calc(100vw - 28px) !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  color: rgba(17, 17, 17, 0.64) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08) !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  display: block !important;
  flex-wrap: nowrap !important;
  justify-content: initial !important;
  gap: 0 !important;
}


/* === VS66: Header logo from database === */
.site-header .brand.old-historicbits-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.site-header .brand.old-historicbits-brand h1 {
  position: relative;
  margin: 0;
  padding-left: 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: none;
}

.site-header .brand.old-historicbits-brand h1::before {
  content: "H";
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  font-weight: 800;
  letter-spacing: 0;
}

.site-header .brand.old-historicbits-brand span,
.site-header .brand.old-historicbits-brand strong {
  display: none;
}


/* === VS67: Header logo dot uses old Fortepan orange; logo is not a link === */
.site-header .brand.old-historicbits-brand {
  cursor: default;
  text-decoration: none;
}

.site-header .brand.old-historicbits-brand h1::before {
  background: #ff681f !important;
}


/* === VS5 mobile collection layout only: hide large feature image, show 4 cards + More === */
.mobile-sammlung-more-wrap {
  display: none;
}

@media (max-width: 760px) {
  .collections-showcase .sammlung-module .editorial-card.feature,
  .hb-split-layout .collections-showcase .sammlung-module .editorial-card.feature,
  .collections-showcase .sammlung-module .editorial-card.feature.collection-left-image-only,
  .collections-showcase .sammlung-module .editorial-card.feature.portrait-left-image-only,
  .collections-showcase .sammlung-module .editorial-card.feature.schnell-feature-image,
  .collections-showcase .sammlung-module .editorial-card.feature.amateur-feature-image,
  .collections-showcase .sammlung-module .editorial-card.feature.cdv-feature-image {
    display: none !important;
  }

  .collections-showcase .sammlung-module .editorial-grid,
  .hb-split-layout .collections-showcase .sammlung-module .editorial-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .collections-showcase .sammlung-module:not(.mobile-expanded) .editorial-card.small.mobile-extra-card,
  .hb-split-layout .collections-showcase .sammlung-module:not(.mobile-expanded) .editorial-card.small.mobile-extra-card {
    display: none !important;
  }

  .collections-showcase .sammlung-module .mobile-sammlung-more-wrap,
  .hb-split-layout .collections-showcase .sammlung-module .mobile-sammlung-more-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    margin: 14px 0 28px !important;
  }

  .collections-showcase .sammlung-module.mobile-no-more .mobile-sammlung-more-wrap,
  .hb-split-layout .collections-showcase .sammlung-module.mobile-no-more .mobile-sammlung-more-wrap {
    display: none !important;
  }

  .collections-showcase .sammlung-module .mobile-sammlung-more,
  .hb-split-layout .collections-showcase .sammlung-module .mobile-sammlung-more {
    border: 1px solid rgba(30, 30, 30, 0.22) !important;
    background: #fff !important;
    color: #202020 !important;
    border-radius: 999px !important;
    padding: 9px 18px !important;
    font: inherit !important;
    font-size: 0.92rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }
}

@media (min-width: 761px) {
  .collections-showcase .sammlung-module .editorial-card.small.mobile-extra-card,
  .hb-split-layout .collections-showcase .sammlung-module .editorial-card.small.mobile-extra-card {
    display: block !important;
  }

  .mobile-sammlung-more-wrap {
    display: none !important;
  }
}

/* === VS80: Root start page typography cleanup ===
   One font system and a smaller, clearer type scale for the homepage.
   This override intentionally affects only the root homepage stylesheet. */
:root {
  --hb-font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --hb-type-xs: 0.75rem;
  --hb-type-sm: 0.875rem;
  --hb-type-base: 1rem;
  --hb-type-md: 1.125rem;
  --hb-type-lg: 1.5rem;
  --hb-type-xl: clamp(2rem, 3vw, 2.6rem);
  --hb-type-hero: clamp(3.2rem, 7vw, 5.4rem);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--hb-font-ui) !important;
}

body {
  font-size: var(--hb-type-base) !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}

.site-header,
.site-header a,
.main-nav,
.main-nav a,
.site-header .brand.old-historicbits-brand h1 {
  font-family: var(--hb-font-ui) !important;
}

.site-header .brand.old-historicbits-brand h1 {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 1.4px !important;
}

.hero .eyebrow,
.catalog-title .eyebrow,
.hb-context-kicker,
.toolbar .eyebrow,
.meta,
.pill,
.catalog-chip,
.advanced-link,
.archive-count,
.stage-timeline,
.year-field span,
.catalog-search span,
.search span,
.site-footer,
.site-footer * {
  font-family: var(--hb-font-ui) !important;
}

.hero h1,
#page-title {
  font-size: var(--hb-type-hero) !important;
  line-height: 0.95 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}

.hero-copy > p:not(.eyebrow) {
  font-size: var(--hb-type-md) !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.eyebrow,
.hb-context-kicker,
.pill,
.catalog-chip,
.meta span,
.year-field span,
.catalog-search span,
.search span {
  font-size: var(--hb-type-xs) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.hb-context h2,
.catalog-title h2,
.toolbar h2,
.editorial-note h2,
.intro-card h2,
.featured-copy h2 {
  font-size: var(--hb-type-xl) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.hb-context-lead,
.hb-context p,
.intro-card p:not(.eyebrow),
.featured-copy p,
.note-columns {
  font-size: var(--hb-type-base) !important;
  line-height: 1.62 !important;
  font-weight: 400 !important;
}

.module-title {
  font-size: var(--hb-type-lg) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
}

.editorial-card h3,
.editorial-card h4,
.topic-card h3 {
  font-size: var(--hb-type-base) !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.editorial-card p,
.topic-card p,
.tag,
.catalog-overview span,
.overview span {
  font-size: var(--hb-type-sm) !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

.button,
.go-button,
.plain-button,
.mobile-sammlung-more {
  font-family: var(--hb-font-ui) !important;
  font-size: var(--hb-type-sm) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

.fortepan-search input,
.catalog-search input,
.search input,
.year-field input {
  font-family: var(--hb-font-ui) !important;
  font-size: var(--hb-type-sm) !important;
  font-weight: 400 !important;
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer span {
  font-size: var(--hb-type-xs) !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

@media (max-width: 760px) {
  .hero h1,
  #page-title {
    font-size: clamp(2.65rem, 14vw, 4rem) !important;
  }
  .hb-context h2,
  .catalog-title h2,
  .toolbar h2,
  .editorial-note h2,
  .intro-card h2,
  .featured-copy h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
  }
  .module-title {
    font-size: 1.35rem !important;
  }
}


/* === VS148: Startseite Story-Module Chile/Rauch === */
.story-module {
  margin: 0 0 56px;
}

.story-module .module-title {
  margin-bottom: 18px !important;
}

.story-module-rauch {
  margin-top: 0;
}

.story-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.story-feature-card:hover,
.story-feature-card:focus-visible {
  border-color: rgba(22, 119, 111, 0.42);
  box-shadow: 0 10px 28px rgba(32, 32, 29, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.story-feature-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #e6dfd2;
  border-right: 1px solid var(--line);
}

.story-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(0.08) sepia(0.08);
}

.story-feature-image span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0,0,0,0.65);
}

.story-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}

.story-feature-body .eyebrow {
  margin: 0 0 16px !important;
  color: var(--accent-dark) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.story-feature-body h4 {
  margin: 0 0 20px !important;
  color: #676158 !important;
  font-family: inherit !important;
  font-size: clamp(2.35rem, 4.25vw, 4.65rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.035em !important;
  font-weight: 560 !important;
}

.story-feature-body p {
  margin: 0 0 22px !important;
  max-width: 560px;
  color: #6f6a61 !important;
  font-family: inherit !important;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem) !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

.story-feature-body strong {
  color: #6f6a61;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 920px) {
  .story-feature-card {
    grid-template-columns: 1fr;
  }

  .story-feature-image {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-feature-body h4 {
    font-size: clamp(2.35rem, 13vw, 4rem) !important;
  }
}
