/* BB Vereins-Zeitstrahl v1.0.0 – ausschließlich im .bbtl-Bereich wirksam */
.bbtl {
  --bbtl-accent: #fec901;
  --bbtl-ink: #1a1a1a;
  --bbtl-text: #292929;
  --bbtl-muted: #6f716f;
  --bbtl-border: #e7e8e5;
  --bbtl-bg: #fafaf8;
  --bbtl-line: #dddeda;
  color: var(--bbtl-text);
  background: var(--bbtl-bg);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 0;
}
.bbtl *, .bbtl *::before, .bbtl *::after { box-sizing: border-box; }
.bbtl [hidden] { display: none !important; }
.bbtl button, .bbtl select { font: inherit; }
.bbtl a { color: inherit; }
.bbtl button:focus-visible, .bbtl select:focus-visible, .bbtl a:focus-visible { outline: 3px solid #bc9500; outline-offset: 3px; }
.bbtl-shell { width: min(calc(100% - 48px), 1030px); margin: 0 auto; }
.bbtl-intro { padding: clamp(56px, 8vw, 90px) 0 48px; }
.bbtl-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 750; color: var(--bbtl-ink); }
.bbtl-eyebrow::before { content: ""; height: 4px; width: 26px; background: var(--bbtl-accent); }
.bbtl .bbtl-title { max-width: 800px; color: var(--bbtl-ink); font-size: clamp(39px, 6.4vw, 72px); font-weight: 760; line-height: 1.08; letter-spacing: -.055em; margin: 17px 0 20px; }
.bbtl-dot { color: #d4a700; }
.bbtl-intro p { max-width: 635px; margin: 0; color: #575956; font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.bbtl-toolbar { border-top: 1px solid var(--bbtl-border); border-bottom: 1px solid var(--bbtl-border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 76px; gap: 12px 24px; padding: 14px 0; }
.bbtl-count { font-size: 13px; color: var(--bbtl-muted); }
.bbtl-count strong { font-weight: 720; color: var(--bbtl-ink); }
.bbtl-controls { display: flex; align-items: center; gap: 10px; }
.bbtl-controls label { color: #5e615e; font-size: 13px; }
.bbtl .bbtl-year-filter, .bbtl .bbtl-sort-button { background: #fff; border: 1px solid #dadcd7; border-radius: 6px; min-height: 39px; font-size: 13px; color: var(--bbtl-ink); font-weight: 600; cursor: pointer; line-height: 1.3; transition: border-color .18s, background .18s; box-shadow: none; }
.bbtl .bbtl-year-filter { appearance: none; padding: 7px 35px 7px 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.bbtl .bbtl-sort-button { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; }
.bbtl-sort-button svg { flex: 0 0 auto; }
.bbtl .bbtl-year-filter:hover, .bbtl .bbtl-sort-button:hover { border-color: #999c93; }
.bbtl-timeline { position: relative; padding: 33px 0 78px; }
.bbtl-timeline::before { content: ""; position: absolute; top: 53px; bottom: 90px; width: 2px; left: 183px; background: var(--bbtl-line); }
.bbtl-year-block { position: relative; }
.bbtl-year-block + .bbtl-year-block { margin-top: 40px; }
.bbtl-year-header, .bbtl-event { display: grid; grid-template-columns: 165px 38px minmax(0,1fr); }
.bbtl-year-header { align-items: center; margin-bottom: 21px; }
.bbtl .bbtl-year-number { margin: 0; font-size: 31px; line-height: 1; font-weight: 780; letter-spacing: -.06em; color: var(--bbtl-ink); }
.bbtl-year-node { display: flex; align-items: center; justify-content: center; position: relative; }
.bbtl-year-node::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--bbtl-accent); border: 4px solid var(--bbtl-ink); outline: 5px solid var(--bbtl-bg); }
.bbtl-year-tail { border-top: 1px solid var(--bbtl-border); min-width: 0; }
.bbtl-event { align-items: start; margin-bottom: 15px; }
.bbtl-event:last-child { margin-bottom: 0; }
.bbtl-event-date { padding: 24px 22px 0 0; color: var(--bbtl-muted); font-size: 13px; line-height: 1.4; }
.bbtl-event-node { grid-column: 2; position: relative; display: flex; justify-content: center; padding-top: 30px; }
.bbtl-event-node::after { content: ""; height: 9px; width: 9px; border-radius: 50%; background: var(--bbtl-bg); border: 2px solid #b5b7b2; z-index: 1; }
.bbtl-event-card { grid-column: 3; min-width: 0; display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--bbtl-border); border-radius: 8px; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.bbtl-event-card.has-image { grid-template-columns: minmax(0, 1fr) 185px; }
.bbtl-event-card:hover { border-color: #cdcec9; box-shadow: 0 9px 32px rgba(18,22,15,.045); transform: translateY(-1px); }
.bbtl-event-card.is-featured { border-left: 4px solid var(--bbtl-accent); background: #fffbee; border-top-color: #eadc9e; border-right-color: #eadc9e; border-bottom-color: #eadc9e; }
.bbtl-event-body { min-width: 0; grid-column: 1; padding: 21px 25px 22px; }
.bbtl-event-card.is-featured .bbtl-event-body { padding-left: 22px; }
.bbtl-card-top { margin: 0 0 8px; }
.bbtl-event-category, .bbtl-featured-label { display: inline-block; font-size: 10px; line-height: 1.4; font-weight: 760; letter-spacing: .115em; text-transform: uppercase; }
.bbtl-event-category { color: #6e706b; }
.bbtl-featured-label { color: #4a3900; }
.bbtl .bbtl-event-heading { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.3; letter-spacing: -.033em; font-weight: 740; color: var(--bbtl-ink); margin: 0 0 8px; }
.bbtl-event-excerpt { color: #666965; line-height: 1.67; font-size: 14px; margin: 0; max-width: 700px; }
.bbtl-event-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bbtl-ink); font-weight: 700; text-decoration: none; margin-top: 14px; text-underline-offset: 4px; }
.bbtl-event-link:hover { text-decoration: underline; }
.bbtl-event-link svg { transition: transform .16s; }
.bbtl-event-link:hover svg { transform: translate(2px, -1px); }
.bbtl-event-media { grid-column: 2; grid-row: 1; min-width: 0; position: relative; overflow: hidden; background: #eeefeb; }
.bbtl-event-media .bbtl-card-img { display: block; width: 100%; height: 100%; min-height: 170px; max-height: 290px; object-fit: cover; }
.bbtl-event-date-mobile { display: none; }
.bbtl-empty { color: var(--bbtl-muted); margin: 28px 0; }
.bbtl-end { display: grid; grid-template-columns: 165px 38px minmax(0,1fr); align-items: center; margin-top: 33px; }
.bbtl-end-node { display: flex; justify-content: center; }
.bbtl-end-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bbtl-accent); }
.bbtl-end-copy { font-size: 13px; color: #767873; font-style: italic; }
/* Dialog: eigenes Layout außerhalb von WordPress-Themen-Selektoren */
.bbtl .bbtl-dialog { box-sizing: border-box; width: min(calc(100% - 32px), 760px); max-height: min(90vh, 1100px); margin: auto; padding: 0; border: 1px solid #e3e4df; border-radius: 12px; background: #fff; color: var(--bbtl-text); box-shadow: 0 24px 90px rgba(0,0,0,.22); overflow: auto; overscroll-behavior: contain; }
.bbtl .bbtl-dialog:not([open]) { display: none; }
.bbtl .bbtl-dialog::backdrop { background: rgba(17,20,18,.63); backdrop-filter: blur(2px); }
.bbtl .bbtl-dialog-close { display: grid; place-items: center; position: sticky; z-index: 2; top: 12px; float: right; margin: 12px 12px -49px 0; width: 39px; height: 39px; background: #fff; border: 1px solid #ddd; border-radius: 50%; color: #161616; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.bbtl .bbtl-dialog-close:hover { background: #f4f4f1; }
.bbtl-detail { padding: 45px clamp(22px, 5vw, 56px) 42px; }
.bbtl-detail-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 13px; color: #777; font-size: 12px; }
.bbtl-detail-tag { text-transform: uppercase; letter-spacing: .1em; font-weight: 760; color: #5c4a09; }
.bbtl .bbtl-detail-title { max-width: 620px; font-size: clamp(27px, 4.4vw, 42px); line-height: 1.2; letter-spacing: -.04em; font-weight: 750; margin: 0 0 26px; color: var(--bbtl-ink); }
.bbtl-detail-image { margin: 0 0 25px; }
.bbtl-detail-image .bbtl-modal-img { display: block; width: 100%; height: auto; max-height: 390px; object-fit: cover; border-radius: 6px; }
.bbtl-detail-content { font-size: 16px; line-height: 1.75; color: #383a38; overflow-wrap: anywhere; }
.bbtl-detail-content > :first-child { margin-top: 0; }
.bbtl-detail-content img { max-width: 100%; height: auto; }
.bbtl-detail-content iframe { max-width: 100%; }
.bbtl-detail-content p { margin: 0 0 1.1em; }
.bbtl-detail-content ul, .bbtl-detail-content ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.bbtl-detail-content a { text-decoration: underline; text-underline-offset: 3px; }
.bbtl-detail-permalink { display: inline-block; margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--bbtl-border); font-size: 13px; font-weight: 700; text-decoration: none; }
.bbtl-detail-permalink:hover { text-decoration: underline; }
@media (max-width: 850px) {
  .bbtl-event-card.has-image { grid-template-columns: minmax(0,1fr) 140px; }
}
@media (max-width: 700px) {
  .bbtl-shell { width: min(calc(100% - 34px), 1030px); }
  .bbtl-intro { padding-top: 54px; padding-bottom: 39px; }
  .bbtl-toolbar { align-items: flex-start; }
  .bbtl-controls { width: 100%; justify-content: flex-start; }
  .bbtl-timeline { padding-top: 29px; padding-bottom: 56px; }
  .bbtl-timeline::before { left: 69px; top: 48px; bottom: 67px; }
  .bbtl-year-header, .bbtl-event, .bbtl-end { grid-template-columns: 55px 28px minmax(0,1fr); }
  .bbtl .bbtl-year-number { font-size: 24px; }
  .bbtl-year-header { margin-bottom: 16px; }
  .bbtl-year-node::after { width: 13px; height: 13px; border-width: 3px; }
  .bbtl-year-block + .bbtl-year-block { margin-top: 35px; }
  .bbtl-event-date { display: none; }
  .bbtl-event-node { padding-top: 28px; }
  .bbtl-event-card.has-image { grid-template-columns: 1fr; }
  .bbtl-event-body { grid-column: 1; grid-row: 2; padding: 18px 17px 20px; }
  .bbtl-event-card:not(.has-image) .bbtl-event-body { grid-row: 1; }
  .bbtl-event-card.is-featured .bbtl-event-body { padding-left: 15px; }
  .bbtl-event-media { grid-column: 1; grid-row: 1; }
  .bbtl-event-media .bbtl-card-img { width: 100%; height: 145px; min-height: 0; max-height: none; }
  .bbtl-event-date-mobile { display: block; color: var(--bbtl-muted); font-size: 12px; margin: 0 0 9px; }
  .bbtl-event-excerpt { font-size: 13px; }
  .bbtl-detail { padding-top: 55px; }
}
@media (max-width: 380px) {
  .bbtl-shell { width: calc(100% - 24px); }
  .bbtl-timeline::before { left: 59px; }
  .bbtl-year-header, .bbtl-event, .bbtl-end { grid-template-columns: 45px 28px minmax(0,1fr); }
  .bbtl .bbtl-year-number { font-size: 21px; }
  .bbtl-controls { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .bbtl *, .bbtl *::before, .bbtl *::after { transition: none !important; }
}
