/* Shared accents follow the selected app world. */
:root { --club-pill-bg: var(--tfb-signature-red, #C4553A); --club-alt-bg: #171717; --club-alt-ink: #fff; }
:root.tfb-logo-midnight-amber { --club-pill-bg: var(--tfb-midnight-blue, #001D3D); --club-alt-bg: var(--tfb-signature-yellow, #FFC300); --club-alt-ink: var(--tfb-midnight-blue, #001D3D); }
/* History chapters: three portrait cards, stacked on smaller screens. */
.history-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 32px; align-items: stretch; }
.history-chapter { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.history-chapter-image { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f3f0e9; }
.history-chapter-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.history-chapter-image.history-document img { padding: 12px; }
.history-chapter-body { display: flex; flex: 1; flex-direction: column; gap: 20px; padding: 22px; }
.history-chapter-body h2 { margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.2; }
.history-chapter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.history-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; font-size: .86rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.history-pill:hover { background: var(--ink); color: var(--paper); }
.history-pill:focus-visible, .history-chapter-image:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }
/* Match the existing Zum Archiv button geometry with the requested colors. */
:root body .site-page .btn.club-archive-link.club-history-link { background: var(--club-alt-bg); border-color: var(--club-alt-bg); color: var(--club-alt-ink); }
:root body .site-page .btn.club-archive-link.club-directions-link { background: var(--club-alt-bg); border-color: var(--club-alt-bg); color: var(--club-alt-ink); }
@media (max-width: 1000px) {
  .history-chapters { grid-template-columns: 1fr; gap: 24px; }
  .history-chapter { width: 100%; max-width: 540px; margin-inline: auto; }
  .history-chapter-body h2 { font-size: 1.5rem; }
}
@media (max-width: 600px) { .history-chapter-body { padding: 20px; } }

/* Club: membership, five facts, board and the archive hub in a clear sequence. */
.club-archive-hub { padding: 28px 0 24px; border-top: 1px solid var(--line); }
.site-page[data-page="verein"] .club-section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin: 0 0 14px; }
:root[data-font="sans"] .site-page[data-page="verein"] .club-section-title { letter-spacing: -.015em; }
.site-page[data-page="verein"] .club-feedback-head .club-section-title { margin: 0; }
.site-page[data-page="verein"] :is([data-site-content="v-mitglied"], .block-board) { padding-block-start: clamp(1.5rem, 3vw, 2.25rem); }
.club-archive-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
:root body .site-page .club-hub-pill { background: var(--club-pill-bg); border-color: var(--club-pill-bg); color: #fff; padding-inline: 16px; }
.club-hub-pill:hover { filter: brightness(1.2); }
.site-page[data-page="verein"] .run-texts:has(.club-archive-hub) { grid-template-columns: minmax(0, 1fr); gap: 28px; }

/* Matching Clubarchiv and Mitgliederinfos panels, stacked on phones. */
.club-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; }
.club-info-grid > section { min-width: 0; }
@media (max-width: 740px) { .club-info-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* A deliberate 2-by-2 document group and a quieter transition to directions. */
.club-members-info .club-archive-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.club-members-info .club-hub-pill { text-align: center; padding-inline: 10px; }
.site-page[data-page="verein"] .run-texts:has(.club-info-grid) { gap: 20px; }
.site-page[data-page="verein"] .unit:has([data-site-content="v-anfahrt"]) { padding-top: 24px; border-top: 1px solid var(--line); }
.site-page[data-page="verein"] .unit:has([data-site-content="v-anfahrt"]) .block-text { margin-block: 0; }
:root body .site-page .btn.club-archive-link.club-directions-link { width: auto; min-width: 0; min-height: 44px; justify-content: center; padding-inline: 20px; border-radius: 14px; }
.site-page[data-page="verein"] .unit:has([data-site-content="v-anfahrt"]) .block-button { margin: 22px 0 0; }
/* Four archive destinations balance the four member documents. */
.club-archive-hub:not(.club-members-info) .club-archive-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px}
