/* ==========================================================================
   JAHRESBERICHT 2025 — WIEDERVERWENDBARE KOMPONENTEN-BIBLIOTHEK
   Ergänzung zum bestehenden style.css Design System
   Prefix: jb- (Jahresbericht)
   ========================================================================== */


/* ==========================================================================
   LIBRARY NAVIGATION & CHROME (nur für Showcase-Seite)
   ========================================================================== */

.jb-lib-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--skb-border);
  padding: 0.75rem 0;
}

.jb-lib-nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.jb-lib-nav__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--skb-black);
  white-space: nowrap;
}

.jb-lib-nav__links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.jb-lib-nav__links a {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--skb-grey);
  transition: all 0.15s ease;
}

.jb-lib-nav__links a:hover {
  background: var(--skb-light-grey);
  color: var(--skb-black);
}

.jb-lib-main {
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.jb-lib-section {
  margin-bottom: 5rem;
  scroll-margin-top: 5rem;
}

.jb-lib-section__heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--skb-black);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.jb-lib-section__desc {
  font-size: 0.85rem;
  color: var(--skb-grey);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.jb-lib-demo {
  background: white;
  border: 1px solid var(--skb-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1rem;
}

.jb-lib-demo--wide {
  padding: 2.5rem;
}

.jb-lib-code {
  margin-bottom: 2rem;
}

.jb-lib-code pre {
  background: var(--skb-black);
  color: #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.7;
  font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
}

.jb-lib-code code {
  font-family: inherit;
}

.jb-lib-footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--skb-border);
  color: var(--skb-grey);
  font-size: 0.8rem;
}

.jb-lib-footer code {
  background: var(--skb-light-grey);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
}


/* ==========================================================================
   1. SECTION TAGS (Rubrik-Labels)
   Schwarze Pill-Labels oben auf jeder Berichts-Seite
   ========================================================================== */

.jb-section-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.jb-section-tag {
  display: inline-block;
  background: var(--skb-black);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  line-height: 1.2;
}

.jb-section-tag--right {
  margin-left: auto;
}


/* ==========================================================================
   2. TITLES (Hero + Article + Subsection)
   Tangent-Black → Outfit 900, graded sizes
   ========================================================================== */

.jb-hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--skb-black);
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.jb-article-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--skb-black);
  margin-bottom: 1.2rem;
  max-width: 800px;
}

.jb-subsection-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--skb-black);
  margin-bottom: 0.8rem;
}


/* ==========================================================================
   3. LEAD TEXT
   Grösserer Einleitungs-Absatz
   ========================================================================== */

.jb-lead {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--skb-dark);
  max-width: 780px;
  margin-bottom: 1.5rem;
}


/* ==========================================================================
   4. BODY TEXT & COLUMNS
   Standard Fliesstext + 2/3-Spalten Blocksatz-Layouts
   ========================================================================== */

.jb-body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--skb-dark);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-bottom: 1rem;
}

.jb-body strong {
  font-weight: 600;
  color: var(--skb-black);
}

.jb-body-columns {
  display: grid;
  gap: 2rem;
}

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

.jb-body-columns--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .jb-body-columns--2,
  .jb-body-columns--3 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   5. QUOTES
   Kursiv hervorgehobene Blockzitate
   ========================================================================== */

.jb-quote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--skb-dark);
  padding-left: 1.5rem;
  border-left: 3px solid var(--skb-cyan);
  margin: 1.5rem 0;
}

.jb-quote p {
  margin: 0;
}

.jb-quote--underline p {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* ==========================================================================
   6. LISTS
   Aufzählungen mit subtilen Bullets
   ========================================================================== */

.jb-list {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--skb-dark);
  list-style: none;
  padding: 0;
  margin: 0;
}

.jb-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.jb-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--skb-grey);
}

.jb-list--cyan li::before {
  background: var(--skb-cyan);
}


/* ==========================================================================
   7. IMAGE LAYOUTS
   Full-Bleed, Side-by-Side, 2er/3er Grids
   ========================================================================== */

.jb-figure {
  margin: 0;
}

.jb-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.jb-figure--full {
  margin-left: -2rem;
  margin-right: -2rem;
}

.jb-figure--full img {
  border-radius: 0;
  width: calc(100% + 4rem);
  max-width: none;
}

.jb-image-text {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.jb-image-text__content {
  padding-top: 0.5rem;
}

.jb-image-grid {
  display: grid;
  gap: 1rem;
}

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

.jb-image-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .jb-image-text {
    grid-template-columns: 1fr;
  }

  .jb-image-grid--2,
  .jb-image-grid--3 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   8. EDITORIAL (kompletter Artikel)
   Zusammensetzung aus Tags + Titel + Body
   ========================================================================== */

.jb-editorial {
  max-width: 100%;
}

.jb-editorial .jb-section-tags {
  margin-bottom: 1rem;
}

.jb-editorial .jb-article-title {
  margin-bottom: 1.5rem;
}


/* ==========================================================================
   9. STATISTICS
   Grosse Zahlen, Stat-Karten, Stacked Bars, Horizontal Bars
   ========================================================================== */

/* Big Hero Number */
.jb-stat-hero {
  text-align: center;
  padding: 1.5rem 0;
}

.jb-stat-hero__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--skb-black);
  margin-bottom: 0.2rem;
}

.jb-stat-hero__sub {
  font-size: 0.8rem;
  color: var(--skb-grey);
  margin-bottom: 0.5rem;
}

.jb-stat-hero__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--skb-cyan);
}

/* Stat Cards Grid */
.jb-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.jb-stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--skb-light-grey);
  border-radius: var(--radius-md);
}

.jb-stat-card--total {
  background: var(--skb-black);
}

.jb-stat-card--total .jb-stat-card__number {
  color: white;
}

.jb-stat-card--total .jb-stat-card__label {
  color: rgba(255, 255, 255, 0.7);
}

.jb-stat-card__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--skb-black);
  margin-bottom: 0.4rem;
}

.jb-stat-card__number--cyan { color: var(--skb-cyan); }
.jb-stat-card__number--orange { color: var(--skb-orange); }
.jb-stat-card__number--coral { color: var(--skb-coral); }
.jb-stat-card__number--emerald { color: var(--skb-emerald); }

.jb-stat-card__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--skb-grey);
  line-height: 1.3;
}

/* Stacked Bar */
.jb-stacked-bar {
  display: flex;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  gap: 2px;
}

.jb-stacked-bar__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 32px;
}

.jb-stacked-bar__legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.jb-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--skb-grey);
}

.jb-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Horizontal Bar Chart */
.jb-h-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jb-h-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 0.75rem;
}

.jb-h-bar-row__label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--skb-dark);
  text-align: right;
}

.jb-h-bar-row__bars {
  display: flex;
  gap: 2px;
  height: 28px;
}

.jb-h-bar {
  border-radius: 3px;
  position: relative;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jb-h-bar::after {
  content: attr(data-value);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  color: white;
}

.jb-h-bar-row__total {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--skb-grey);
}

@media (max-width: 600px) {
  .jb-h-bar-row {
    grid-template-columns: 80px 1fr 40px;
  }
}


/* ==========================================================================
   10. FINANCIAL TABLES
   Betriebsrechnung, Bilanz — alternating rows, totals, results
   ========================================================================== */

.jb-financial-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.jb-financial-table th {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--skb-black);
  color: var(--skb-black);
}

.jb-financial-table td {
  padding: 0.5rem 0.75rem;
  color: var(--skb-dark);
  border-bottom: 1px solid var(--skb-border-subtle);
}

.jb-financial-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.015);
}

.jb-financial-table__amount {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
}

.jb-financial-table__group-header th {
  background: var(--skb-light-grey);
  border-bottom: 1px solid var(--skb-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--skb-grey);
}

.jb-financial-table__total td {
  font-weight: 700;
  color: var(--skb-black);
  border-top: 2px solid var(--skb-black);
  border-bottom: 2px solid var(--skb-black);
  background: transparent !important;
}

.jb-financial-table__result td {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--skb-black);
  padding: 0.75rem;
  border-top: 2px solid var(--skb-black);
  border-bottom: 1px solid var(--skb-border);
}

.jb-financial-table__result--final td {
  font-size: 1rem;
  background: var(--skb-light-grey) !important;
  border-top: 3px double var(--skb-black);
  border-bottom: 3px double var(--skb-black);
}


/* ==========================================================================
   11. ORG TABLE (Stiftungsrat, Geschäftsleitung)
   3-column: Name | Rolle | Ort
   ========================================================================== */

.jb-org-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.jb-org-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--skb-border-subtle);
  vertical-align: top;
}

.jb-org-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.015);
}

.jb-org-table__name {
  font-weight: 500;
  color: var(--skb-black);
  white-space: nowrap;
}

.jb-org-table__role {
  color: var(--skb-dark);
}

.jb-org-table__location {
  color: var(--skb-grey);
  text-align: right;
  white-space: nowrap;
}


/* ==========================================================================
   12. STAFF LIST
   Abteilungs-gruppierte Namenslisten
   ========================================================================== */

.jb-staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.jb-staff-group {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--skb-border-subtle);
}

.jb-staff-group__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--skb-black);
  margin-bottom: 0.3rem;
}

.jb-staff-group__names {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--skb-grey);
  line-height: 1.5;
}


/* ==========================================================================
   13. CHRONIK (Monatsübersicht / Timeline)
   ========================================================================== */

.jb-chronik {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.jb-chronik__month {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--skb-border-subtle);
}

.jb-chronik__month:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.jb-chronik__month-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--skb-black);
}

.jb-chronik__month-name--cyan { color: var(--skb-cyan); }
.jb-chronik__month-name--orange { color: var(--skb-orange); }
.jb-chronik__month-name--coral { color: var(--skb-coral); }

.jb-chronik__events {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--skb-dark);
}

.jb-chronik__events li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.jb-chronik__events li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--skb-grey);
}

@media (max-width: 600px) {
  .jb-chronik__month {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}


/* ==========================================================================
   14. SPONSORS LIST
   Mehrspaltige Namensliste
   ========================================================================== */

.jb-sponsors-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}

.jb-sponsors-list__column p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--skb-dark);
  margin: 0;
}

@media (max-width: 600px) {
  .jb-sponsors-list {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   15. PAGE FOOTER (Seitennummer)
   "04 | 2025" Print-Paginierung
   ========================================================================== */

.jb-page-footer {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

.jb-page-footer__num {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--skb-black);
}

.jb-page-footer__sep {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--skb-grey);
}

.jb-page-footer__year {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--skb-grey);
}

.jb-page-footer--right {
  margin-left: auto;
}


/* ==========================================================================
   16. DECORATIVE BUBBLES (Farbkreise)
   Signature overlapping translucent circles
   ========================================================================== */

.jb-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.jb-bubbles--bottom-right .jb-bubble {
  /* children position themselves via inline styles */
}

.jb-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
}

.jb-bubble--cyan { background: var(--skb-cyan); }
.jb-bubble--orange { background: var(--skb-orange); }
.jb-bubble--coral { background: var(--skb-coral); }
.jb-bubble--emerald { background: var(--skb-emerald); }
