/* Karte + Charts (TYPO3). Marke #c3ce47, Hue ~65° */
  .junior-karte-embed,
  #junior-karte-bundesland-inhalte {
    --imj-brand: #c3ce47;
    --imj-h: 65;
    --imj-s-soft: 26%;
    --imj-s-mid: 34%;
    --imj-s-rich: 52%;
    --imj-map-fill: #f9e4e0;
    --imj-map-hover: #c5ce5e;
    --imj-map-active: #c5ce5e;
    --imj-map-active-coral: #e07060;
    --imj-map-active-senf: #d8b020;
    --imj-map-umriss-width: 2px;
    --imj-wert-stufe-0: #f9e4e0;
    --imj-wert-stufe-0-hover: #f3c4bc;
    --imj-wert-stufe-0-active: #eeb0a6;
    --imj-wert-stufe-1: #ebe4b8;
    --imj-wert-stufe-1-hover: #e6dc96;
    --imj-wert-stufe-1-active: #e0d480;
    --imj-wert-stufe-2: #ebd87b;
    --imj-wert-stufe-2-hover: #eacd58;
    --imj-wert-stufe-2-active: #e4c244;
    --imj-wert-stufe-3: #d4de8a;
    --imj-wert-stufe-3-hover: #cad86c;
    --imj-wert-stufe-3-active: #bed254;
    --imj-wert-stufe-4: #b8c94a;
    --imj-wert-stufe-4-hover: #aec436;
    --imj-wert-stufe-4-active: #a4be22;
    --imj-map-satellite: hsl(var(--imj-h) var(--imj-s-mid) 68%);
    --imj-chart-deep: #c5ce5e;
    --imj-grid: hsl(var(--imj-h) var(--imj-s-soft) 93%);
  }
  .junior-karte-embed {
    position: relative;
  }
  .junior-karte-embed .junior-karte-map-halter {
    --imj-map-satellite: hsl(65 34% 66%);
    max-width: 100%;
    max-height: 1017px;
    line-height: 0;
    margin: 0 auto;
    overflow: hidden;
  }
  .junior-karte-embed .junior-karte-map-halter svg {
    max-width: 100%;
    max-height: 1017px;
    width: auto;
    height: auto;
    display: block;
  }
  .junior-karte-embed .junior-karte-map-halter svg > path.junior-karte-bodensee-duplikat {
    pointer-events: none;
  }
  /* Schrift-Gruppen ohne Landfläche ausblenden — bundesland-schrift nie verstecken */
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    > g:not(.bundesland-schrift):not(.karten-land-loch):not(.karten-footer):not(.junior-karte-debug-layer):not(:has(> path.st0)) {
    pointer-events: none;
    transition: opacity 0.25s ease;
    opacity: 0;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    > g:not(.bundesland-schrift):not(.karten-land-loch):not(.karten-footer):not(.junior-karte-debug-layer):not(:has(> path.st0))
    * {
    pointer-events: none;
  }
  .junior-karte-embed .junior-karte-map-halter svg image {
    pointer-events: none;
  }
  .junior-karte-embed .junior-karte-map-halter svg > g.karten-footer {
    opacity: 0;
  }
  .junior-karte-embed .junior-karte-map-halter svg > g.karten-land-loch {
    opacity: 1;
  }
  .junior-karte-embed .junior-karte-map-halter svg > g.karten-land-loch path {
    fill: #fff !important;
    stroke: #fff !important;
    stroke-width: 3px;
    stroke-linejoin: round;
    pointer-events: none;
  }
  .junior-karte-embed .junior-karte-map-halter svg > g.junior-karte-debug-layer {
    opacity: 1;
  }
  .junior-karte-embed .junior-karte-map-halter svg > g.bundesland-schrift {
    opacity: 1 !important;
    pointer-events: none !important;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    g.bundesland-schrift
    > path {
    fill: #1a1a1a !important;
    stroke: none !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    g.bundesland-schrift.is-text-aktiv
    > path {
    fill: #000000 !important;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    g.bundesland-schrift
    .junior-karte-land-wert {
    font-family: "Fira Sans", Arial, sans-serif;
    font-weight: 400;
    pointer-events: none;
    fill: #1a1a1a;
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    g.bundesland-schrift.is-text-hover
    .junior-karte-land-wert,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    g.bundesland-schrift.is-text-aktiv
    .junior-karte-land-wert {
    opacity: 1;
    fill: #1a1a1a;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    g.bundesland-schrift.is-text-aktiv
    .junior-karte-land-wert {
    fill: #000000;
  }
  .junior-karte-embed .junior-karte-map-halter svg > g:not(.karten-land-loch):not(.junior-karte-debug-layer):not(.bundesland-schrift):not(:has(> path.st0)) path {
    fill: transparent !important;
  }
  /* Debug: alle Landesschriften dauerhaft lesbar (ohne Hover) */
  .junior-karte-embed.is-junior-karte-debug .junior-karte-map-halter svg > g.bundesland-schrift {
    opacity: 1;
  }
  .junior-karte-embed.is-junior-karte-debug
    .junior-karte-map-halter
    svg
    g.bundesland-schrift.is-text-aktiv
    :where(path, text, tspan) {
    fill: #1a1a1a !important;
    opacity: 0.72 !important;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.st0,
  .junior-karte-embed .junior-karte-map-halter svg path.land {
    cursor: pointer;
    fill: var(--imj-land-wert-fill, var(--imj-map-fill, #f9e4e0));
    stroke: transparent;
    stroke-width: var(--imj-map-umriss-width, 2px);
    paint-order: stroke fill;
    transition: fill 0.35s ease, stroke 0.35s ease;
  }
  .junior-karte-embed .junior-karte-map-halter svg > path.land-berlin-satellit {
    fill: var(--imj-land-wert-fill, var(--imj-map-fill, #f9e4e0)) !important;
    stroke: transparent;
    stroke-width: var(--imj-map-umriss-width, 2px);
    paint-order: stroke fill;
    transition: fill 0.35s ease, stroke 0.35s ease;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-hover.imj-land-stufe-0 {
    fill: var(--imj-wert-stufe-0-hover) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-hover.imj-land-stufe-1 {
    fill: var(--imj-wert-stufe-1-hover) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-hover.imj-land-stufe-2 {
    fill: var(--imj-wert-stufe-2-hover) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-hover.imj-land-stufe-3 {
    fill: var(--imj-wert-stufe-3-hover) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-hover.imj-land-stufe-4 {
    fill: var(--imj-wert-stufe-4-hover) !important;
    stroke: transparent;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.is-land-hover:not(.is-land-has-chart-data).imj-land-stufe-0,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.land-berlin-satellit.is-land-hover:not(.is-land-has-chart-data).imj-land-stufe-0 {
    stroke: var(--imj-map-active-coral);
    stroke-width: var(--imj-map-umriss-width, 2px);
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.is-land-hover:not(.is-land-has-chart-data).imj-land-stufe-1,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.is-land-hover:not(.is-land-has-chart-data).imj-land-stufe-2,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.land-berlin-satellit.is-land-hover:not(.is-land-has-chart-data).imj-land-stufe-1,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.land-berlin-satellit.is-land-hover:not(.is-land-has-chart-data).imj-land-stufe-2 {
    stroke: var(--imj-map-active-senf);
    stroke-width: var(--imj-map-umriss-width, 2px);
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-aktiv.imj-land-stufe-0 {
    fill: var(--imj-wert-stufe-0-active) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-aktiv.imj-land-stufe-1 {
    fill: var(--imj-wert-stufe-1-active) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-aktiv.imj-land-stufe-2 {
    fill: var(--imj-wert-stufe-2-active) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-aktiv.imj-land-stufe-3 {
    fill: var(--imj-wert-stufe-3-active) !important;
    stroke: transparent;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land.is-land-has-chart-data.is-land-aktiv.imj-land-stufe-4 {
    fill: var(--imj-wert-stufe-4-active) !important;
    stroke: transparent;
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.is-land-aktiv:not(.is-land-has-chart-data).imj-land-stufe-0,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.land-berlin-satellit.is-land-aktiv:not(.is-land-has-chart-data).imj-land-stufe-0 {
    fill: var(--imj-land-wert-fill) !important;
    stroke: var(--imj-map-active-coral);
    stroke-width: var(--imj-map-umriss-width, 2px);
  }
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.is-land-aktiv:not(.is-land-has-chart-data).imj-land-stufe-1,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.is-land-aktiv:not(.is-land-has-chart-data).imj-land-stufe-2,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.land-berlin-satellit.is-land-aktiv:not(.is-land-has-chart-data).imj-land-stufe-1,
  .junior-karte-embed
    .junior-karte-map-halter
    svg
    path.land.land-berlin-satellit.is-land-aktiv:not(.is-land-has-chart-data).imj-land-stufe-2 {
    fill: var(--imj-land-wert-fill) !important;
    stroke: var(--imj-map-active-senf);
    stroke-width: var(--imj-map-umriss-width, 2px);
  }
  /* Berlin-Satellit: Füllung/Hover wie .land; weißer Ring nur über g.karten-land-loch (wie Bremen). */
  .junior-karte-embed .junior-karte-map-halter svg path.land.land-berlin-satellit {
    pointer-events: none;
  }
  .junior-karte-embed .junior-karte-map-halter svg path.land:focus,
  .junior-karte-embed .junior-karte-map-halter svg path.land:focus-visible {
    outline: none;
  }
  /* Nur Leser:innen mit Screenreader; sichtbarer Name nur als Schrift auf der jeweiligen Landesfläche (SVG). */
  .junior-karte-embed .junior-karte-land-name {
    pointer-events: none;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    font: 600 1.1rem system-ui, sans-serif;
  }
  .junior-karte-embed .junior-karte-bundesland-inhalte {
    margin-top: 1.25rem;
    max-width: 42rem;
  }
  .junior-karte-embed .junior-karte-bundesland-inhalte .bundesland-panel {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    font: 400 1rem/1.55 system-ui, sans-serif;
    color: #222;
  }
  .junior-karte-embed .junior-karte-bundesland-inhalte .bundesland-panel.is-active {
    display: block;
    animation: bundesland-fade-in 0.4s ease forwards;
  }
  .junior-karte-bundesland-inhalte .bundesland-panel:not(.is-active) {
    display: none !important;
  }
  .junior-karte-bundesland-inhalte .bundesland-panel.is-active {
    display: block !important;
  }
  @keyframes bundesland-fade-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .junior-karte-embed .junior-karte-bundesland-inhalte .bundesland-panel__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .junior-karte-embed .junior-karte-bundesland-inhalte .bundesland-panel__text {
    margin: 0;
  }
  .junior-karte-embed .junior-karte-map-halter svg .junior-karte-debug-layer {
    pointer-events: none;
  }
  .junior-karte-embed .junior-karte-map-halter svg .junior-karte-debug-land {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 52px;
    font-weight: 800;
    fill: #d00;
    stroke: #fff;
    stroke-width: 6px;
    paint-order: stroke fill;
  }
  .junior-karte-embed .junior-karte-map-halter svg .junior-karte-debug-schrift {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 38px;
    font-weight: 800;
    fill: #00a;
    stroke: #fff;
    stroke-width: 5px;
    paint-order: stroke fill;
  }
  .junior-karte-embed .junior-karte-map-halter svg .junior-karte-debug-schrift-am-land {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 26px;
    font-weight: 700;
    fill: #06c;
    stroke: #fff;
    stroke-width: 3px;
    paint-order: stroke fill;
  }
  .junior-karte-embed .junior-karte-map-halter svg .junior-karte-debug-constants-bg {
    fill: rgba(255, 255, 255, 0.94);
    stroke: #666;
    stroke-width: 1px;
  }
  .junior-karte-embed .junior-karte-map-halter svg .junior-karte-debug-constants {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    fill: #1a1a1a;
    stroke: none;
  }

  /* Demo: Karte und Infotafel an unterschiedlichen Stellen (Layout im CMS anpassen) */
  .junior-karte-page-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
  }
  @media (max-width: 900px) {
    .junior-karte-page-layout {
      grid-template-columns: 1fr;
    }
  }

  .junior-karte-bundesland-inhalte.junior-karte-bundesland-inhalte--remote {
    margin-top: 0;
    max-width: none;
    position: relative;
    display: block;
    width: 100%;
    float: none !important;
    clear: both;
  }

  .junior-karte-land-panel {
    display: none;
    padding: 0;
    font: 400 1rem/1.55 system-ui, sans-serif;
    color: #222;
  }
  .junior-karte-land-panel.is-active {
    display: block;
    animation: bundesland-fade-in 0.4s ease forwards;
  }

  .junior-karte-land-panel.is-active.is-land-no-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 14rem;
  }

  .junior-karte-land-panel.is-land-no-data .junior-karte-land-intro {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .junior-karte-land-intro {
    margin: 0 0 1rem;
    max-width: 42rem;
  }

  .jk-land-charts {
    --h-fussball-total: 184px;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .junior-karte-land-panel .bundesland-panel__title {
    margin: 20px 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .jk-land-link-wrap {
    margin: 0 0 1.5rem;
  }
  .jk-land-link-wrap.jk-land-link-wrap--after-charts,
  .jk-land-charts + .jk-land-link-wrap {
    margin: 1.25rem 0 0;
  }

  .jk-land-charts[hidden] {
    display: none !important;
  }

  .jk-fussball-dual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .jk-fussball-dual-card h5 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
  }

  /* BL-Seite BE-BB: je Chart zwei Länder (Berlin + Brandenburg) */
  .imj-fussball-stack,
  .imj-chart-dual-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 420px;
  }

  .imj-fussball-stack__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #3a3d34;
  }
  .jk-land-link-wrap .btn.btn-lg.btn-primary.bg-color-default {
    display: inline-block;
    background: #c5ce5e;
    border-color: #c5ce5e;
    color: #222;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  .jk-land-link-wrap .btn.btn-lg.btn-primary.bg-color-default:hover,
  .jk-land-link-wrap .btn.btn-lg.btn-primary.bg-color-default:focus-visible {
    background: #c5ce5e;
    border-color: #c5ce5e;
    color: #000;
  }
  .jk-land-link-wrap .btn.btn-lg.btn-primary.bg-color-default:hover .text-color-default,
  .jk-land-link-wrap .btn.btn-lg.btn-primary.bg-color-default:focus-visible .text-color-default {
    color: #000;
  }

  .jk-chart-cell {
    min-width: 0;
  }
  .jk-chart-cell h4 {
    margin: 0 0 0.5rem;
  }
  .jk-chart-cell--bubbles .grid-col {
    min-width: 0;
  }
  .frame-type-text.frame-layout-15 {
    color: rgb(145, 145, 145);
    font-size: 0.9rem;
  }
  .frame-type-text.frame-layout-15 .frame-inner {
    padding-top: 30px;
    margin-top: 30px;
    position: relative;
  }
  .frame-type-text.frame-layout-15 .frame-inner::before {
    content: "";
    width: 60px;
    height: 1px;
    background-color: #919191;
    display: block;
    position: absolute;
    top: 0;
  }
  .frame-type-text.frame-layout-15 a {
    color: #919191;
  }
  .frame-type-text.frame-layout-15 a:hover {
    color: #919191;
    text-decoration: underline;
  }

  /* Infotafel + alle Inhaltsbereiche: gleiche kompakte Höhe wie Fußballfeld */
  .junior-karte-land-panel .jk-bubble-chart--compact,
  .bubble-chart.inhaltsbereiche-chart {
    --h-fussball-total: 184px;
    aspect-ratio: unset;
    width: 100%;
    max-width: 100%;
    height: var(--h-fussball-total);
    min-height: var(--h-fussball-total);
    max-height: var(--h-fussball-total);
  }

  /* Bubble (wie im TYPO3-Snippet, kompakt) */
  .jk-bubble-chart {
    --bubble-hue: 65;
    --bubble-sat: 32%;
    --text: #2a2c24;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 12rem;
    margin: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 10px;
    cursor: default;
  }
  .jk-bubble-chart .imj-bubble {
    position: absolute;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text);
    font-weight: 700;
    line-height: 1.15;
    --intro-scale: 0.08;
    --hover-scale: 1;
    transform: translate(-50%, -50%) scale(calc(var(--intro-scale) * var(--hover-scale)));
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    user-select: none;
    pointer-events: auto;
    will-change: left, top, transform;
    overflow: hidden;
    transition: transform 220ms ease, opacity 300ms ease;
  }
  .jk-bubble-chart .imj-bubble.is-ready {
    --intro-scale: 1;
    opacity: 1;
  }
  .jk-bubble-chart .imj-bubble:hover {
    --hover-scale: 1.04;
  }
  .jk-bubble-chart .bubble__content {
    width: 82%;
    max-width: 82%;
    max-height: 82%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .jk-bubble-chart .bubble__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.12em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .jk-bubble-chart .bubble__value {
    display: block;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
  }

  /* Fachchart (Karte) — Balkenfarbe wertrelativ, chart-karte.js */
  .jk-fachchart-wrap {
    --bar-color: var(--imj-chart-deep, #c5ce5e);
    --grid-color: var(--imj-grid, hsl(65 26% 93%));
    --label-color: #3a3d34;
    --value-color: var(--imj-chart-deep, #c5ce5e);
    --row-gap: 5px;
    --row-height: 34px;
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    color: var(--label-color);
  }
  .jk-fachchart-wrap .fachchart--rows {
    display: grid;
    grid-template-columns: minmax(11rem, 38%) minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: var(--row-gap);
    width: 100%;
    align-items: center;
  }
  .jk-fachchart-wrap .fachchart--rows .fachchart-row {
    display: contents;
  }
  .jk-fachchart-wrap .fachchart--rows .fachchart-label {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: right;
    line-height: 1.2;
    font-size: 1rem;
    max-width: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .jk-fachchart-wrap .fachchart--rows .fachchart-track {
    grid-column: 2;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: var(--row-height);
  }
  .jk-fachchart-wrap .fachchart--rows .fachchart-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .jk-fachchart-wrap .fachchart--rows .fachchart-grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 2px dashed var(--grid-color);
    opacity: 0.9;
    transform: translateX(-1px);
  }
  .jk-fachchart-wrap .fachchart--rows .fachchart-bar {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    height: 14px;
    width: 0;
    background: var(--bar-color);
    transition: width 850ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .jk-fachchart-wrap .fachchart--rows .fachchart-value {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: 6px;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--value-color);
    white-space: nowrap;
  }

  /* Fußballfeld (Karte) — Höhe wertrelativ (flex), chart-karte.js */
  .jk-grade-card {
    --h-fussball-total: 184px;
    --line: #ffffff;
    --lineW: 3px;
    --c12: #c5ce5e;
    --c34: hsl(65 40% 72%);
    --c34a: hsl(65 32% 80%);
    --c34b: hsl(65 28% 88%);
    --cAll: hsl(65 22% 94%);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: #000;
  }
  .jk-grade-card .imj-grade-box {
    display: flex;
    flex-direction: column;
    height: var(--h-fussball-total);
    min-height: var(--h-fussball-total);
    border: var(--lineW) solid var(--line);
    overflow: hidden;
    background: #fff;
  }
  .jk-grade-card .imj-grade-top {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    border-bottom: var(--lineW) solid var(--line);
  }
  .jk-grade-card .imj-seg {
    display: flex;
    flex: 1 1 0%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border-right: var(--lineW) solid var(--line);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .jk-grade-card .imj-seg:last-child {
    border-right: 0;
  }
  .jk-grade-card .imj-seg--12 { background: var(--c12); }
  .jk-grade-card .imj-seg--34 { background: var(--c34); }
  .jk-grade-card .imj-seg--3 { background: var(--c34a); }
  .jk-grade-card .imj-seg--4 { background: var(--c34b); }
  .jk-grade-card .imj-grade-bottom {
    flex: 1 1 0;
    min-height: 3.25rem;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cAll);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
  }
  .jk-grade-card .imj-grade-box--no-14 .imj-grade-top {
    border-bottom: 0;
  }
  .jk-grade-card .imj-seg.imj-seg--empty {
    background: var(--cAll) !important;
    color: hsl(65 16% 58%);
  }

  .jk-grade-card .imj-seg__content,
  .imj-grade-card .imj-seg__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
  }
  .jk-grade-card .imj-seg__label,
  .imj-grade-card .imj-seg__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.12em;
    white-space: nowrap;
  }
  .jk-grade-card .imj-seg__value,
  .imj-grade-card .imj-seg__value {
    display: block;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
  }

  .jk-grade-card .imj-grade-bottom.is-empty {
    background: var(--cAll) !important;
    color: hsl(65 16% 58%);
  }

/* Standalone: Saeulendiagramm — Balkenfarbe: wertrelativ (hoch = dunkel), gesetzt in chart-snippet-bundle.js */

.fachchart-wrap {
    /* IM-Junior #c3ce47 (wie Karte & Bubbles) */
    --bar-color: #c5ce5e;
    --grid-color: hsl(65 26% 93%);
    --label-color: #3a3d34;
    --value-color: #c5ce5e;
    --row-gap: 5px;
    --row-height: 34px;

    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    color: var(--label-color);
  }

  .fachchart-wrap.imj-bundeslandverteilung-chart,
  .fachlehrplaene-chart.imj-bundeslandverteilung-chart {
    max-width: 1100px;
  }

  .fachchart--rows {
    display: grid;
    grid-template-columns: minmax(11rem, 38%) minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: var(--row-gap);
    width: 100%;
    align-items: center;
  }

  .fachchart--rows .fachchart-row {
    display: contents;
  }

  .fachchart--rows .fachchart-label {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: right;
    line-height: 1.2;
    font-size: 1rem;
    max-width: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .fachchart--rows .fachchart-track {
    grid-column: 2;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: var(--row-height);
  }

  .fachchart--rows .fachchart-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  .fachchart--rows .fachchart-grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 2px dashed var(--grid-color);
    opacity: 0.9;
    transform: translateX(-1px);
  }

  .fachchart--rows .fachchart-bar {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    height: 14px;
    width: 0;
    background: var(--bar-color);
    transition: width 1400ms ease-out;
  }

  .fachchart--rows .fachchart-value {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: 6px;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--value-color);
    white-space: nowrap;
  }

  @media (max-width: 480px) {
    .fachchart-wrap {
      --row-height: 32px;
    }

    .fachchart--rows .fachchart-label,
    .fachchart--rows .fachchart-value {
      font-size: 0.95rem;
    }
  }

/* Standalone: Bubble — feste 6-Stufen-Skala (#c5ce5e = höchster Wert), chart-snippet-bundle.js */

.bubble-chart {
    --imj-bubble-green-max: #c5ce5e;
    --bubble-hue: 65;
    --bubble-sat: 32%;
    --text: #2a2c24;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 12rem;
    margin: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 10px;
    font-family: "Fira Sans", Arial, sans-serif;
    cursor: default;
  }

  .bubble-chart .imj-bubble {
    position: absolute;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text);
    font-weight: 700;
    line-height: 1.15;
    --intro-scale: 0.08;
    --hover-scale: 1;
    transform: translate(-50%, -50%) scale(calc(var(--intro-scale) * var(--hover-scale)));
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    user-select: none;
    pointer-events: auto;
    will-change: left, top, transform;
    overflow: hidden;
    transition: transform 220ms ease, opacity 300ms ease;
  }

  .bubble-chart .imj-bubble.is-ready {
    --intro-scale: 1;
    opacity: 1;
  }

  .bubble-chart .imj-bubble:hover {
    --hover-scale: 1.04;
  }

  .bubble-chart .bubble__content,
  .jk-bubble-chart .bubble__content {
    width: 82%;
    max-width: 82%;
    max-height: 82%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .bubble-chart .bubble__label,
  .jk-bubble-chart .bubble__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.12em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    white-space: normal;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bubble-chart .bubble__value,
  .jk-bubble-chart .bubble__value {
    display: block;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
  }

/* Standalone: Fussballfeld — Segmentflächen: wertrelativ (hoch = dunkel), chart-snippet-bundle.js */

.imj-grade-card {
    --h-fussball-total: 184px;
    --line: #ffffff;
    --lineW: 3px;
    --c12: #c5ce5e;
    --c34: hsl(65 40% 72%);
    --c34a: hsl(65 32% 80%);
    --c34b: hsl(65 28% 88%);
    --cAll: hsl(65 22% 94%);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: "Fira Sans", Arial, sans-serif;
    color: #000;
  }

  .imj-grade-box {
    display: flex;
    flex-direction: column;
    height: var(--h-fussball-total);
    min-height: var(--h-fussball-total);
    border: var(--lineW) solid var(--line);
    overflow: hidden;
    background: #fff;
  }

  .imj-grade-top {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    border-bottom: var(--lineW) solid var(--line);
  }

  .imj-seg {
    display: flex;
    flex: 1 1 0%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border-right: var(--lineW) solid var(--line);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .imj-seg:last-child {
    border-right: 0;
  }

  .imj-seg--12 {
    background: var(--c12);
  }

  .imj-seg--34 {
    background: var(--c34);
  }

  .imj-seg--3 {
    background: var(--c34a);
  }

  .imj-seg--4 {
    background: var(--c34b);
  }

  .imj-grade-bottom {
    flex: 1 1 0;
    min-height: 3.25rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cAll);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
  }

  .imj-grade-box--no-14 .imj-grade-top {
    border-bottom: 0;
    flex: 1 1 auto;
  }

  .imj-seg.imj-seg--empty {
    background: var(--cAll) !important;
    color: hsl(65 16% 58%);
  }


  .imj-grade-card .imj-seg__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
  }
  .imj-grade-card .imj-seg__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.12em;
    white-space: nowrap;
  }
  .imj-grade-card .imj-seg__value {
    display: block;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
  }

  .imj-grade-bottom.is-empty {
    background: var(--cAll) !important;
    color: hsl(65 16% 58%);
  }

  .imj-grade-bottom .imj-seg__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
  }

  .imj-grade-bottom .imj-seg__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.12em;
    white-space: nowrap;
  }

  .imj-grade-bottom .imj-seg__label,
  .imj-grade-bottom .imj-seg__value {
    color: inherit;
  }

  .imj-grade-bottom.is-empty .imj-seg__label,
  .imj-grade-bottom.is-empty .imj-seg__value {
    color: hsl(65 16% 58%) !important;
  }

  .imj-grade-bottom:not(.is-empty) .imj-seg__label,
  .imj-grade-bottom:not(.is-empty) .imj-seg__value {
    color: #1e1f1a !important;
  }

  .imj-grade-bottom .imj-seg__value {
    display: block;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
  }

  .jk-grade-card .imj-grade-bottom .imj-seg__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
  }

  .jk-grade-card .imj-grade-bottom .imj-seg__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.12em;
    white-space: nowrap;
  }

  .jk-grade-card .imj-grade-bottom .imj-seg__value {
    display: block;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
  }

  .jk-grade-card .imj-grade-bottom.is-empty .imj-seg__label,
  .jk-grade-card .imj-grade-bottom.is-empty .imj-seg__value {
    color: hsl(65 16% 58%);
  }


.imj-chart-block {
  position: relative;
  z-index: 1;
}

.imj-chart-block h4 {
  margin: 0 0 0.5rem;
}

.jk-grade-card .imj-seg,
.imj-grade-card .imj-seg {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.jk-grade-card .imj-seg:hover,
.imj-grade-card .imj-seg:hover {
  transform: scale(1.06);
  z-index: 1;
}

/* Choropleth / statische Karte (zalt/, Startseite-Experimente) */
.imj-static-map-block {
  width: 100%;
}

.imj-static-map-holder {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.imj-static-map-holder svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Choropleth: Darstellung wie Junior-Karte (helle Flächen, weiße Gewässer, helle Ländergrenzen) */
.imj-static-map-holder--choropleth-junior .imj-de-karte > g[data-name="OBJECT"] > g:not([fill-rule="evenodd"]) {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Schrift-/Hilfs-Pfade im OBJECT: pointer-events am <g> gilt in SVG nicht für Kinder — sonst blockieren sie Hover und den nativen title-Tooltip der Landesfläche. */
.imj-static-map-holder--choropleth-junior .imj-de-karte g[data-name="OBJECT"] path:not(.imj-land),
.imj-static-map-holder--choropleth-junior .imj-de-karte g[data-name="OBJECT"] text {
  pointer-events: none !important;
}

.imj-static-map-holder--choropleth-junior .imj-de-karte .imj-wasser {
  fill: #fff !important;
}

.imj-static-map-holder--choropleth-junior .imj-de-karte path.imj-land {
  cursor: pointer;
}

.imj-static-map-holder--choropleth-junior .imj-de-karte .imj-land--stufe-0,
.imj-static-map-holder--choropleth-junior .imj-de-karte .imj-land--stufe-1,
.imj-static-map-holder--choropleth-junior .imj-de-karte .imj-land--stufe-2,
.imj-static-map-holder--choropleth-junior .imj-de-karte .imj-land--stufe-3,
.imj-static-map-holder--choropleth-junior .imj-de-karte .imj-land--stufe-4 {
  stroke: #fff !important;
  stroke-width: 1.75 !important;
}

.imj-static-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.imj-static-land-label {
  position: absolute;
  transform: translate(-50%, -55%);
  text-align: center;
  min-width: 96px;
}

.imj-static-land-label h3 {
  margin: 0 0 0.15rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.15;
  font-weight: 700;
  color: #1f211a;
}

.imj-static-land-label p {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 500;
  color: #2a2c24;
}

/* Choropleth: vier Stufen (Werte 1–10 / 11–19 / 20–29 / 30–39), kühles Kräutergrün */
.imj-static-map-holder .imj-de-karte .imj-land--stufe-0 {
  fill: #e4e8e4;
  stroke: rgba(30, 45, 35, 0.18);
  stroke-width: 1.25;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}

.imj-static-map-holder .imj-de-karte .imj-land--stufe-1 {
  fill: #f0f8ec;
  stroke: rgba(24, 58, 32, 0.2);
  stroke-width: 1.25;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}

.imj-static-map-holder .imj-de-karte .imj-land--stufe-2 {
  fill: #c4e8b4;
  stroke: rgba(24, 58, 32, 0.22);
  stroke-width: 1.25;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}

.imj-static-map-holder .imj-de-karte .imj-land--stufe-3 {
  fill: #5cb04a;
  stroke: rgba(12, 48, 18, 0.28);
  stroke-width: 1.25;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}

.imj-static-map-holder .imj-de-karte .imj-land--stufe-4 {
  fill: #2a6b32;
  stroke: rgba(8, 28, 12, 0.35);
  stroke-width: 1.25;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}

.imj-static-map-holder .imj-de-karte .imj-wasser {
  fill: #e8f4ee;
}

.imj-choropleth-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Fira Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1f211a;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 7.5rem;
}

.imj-choropleth-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}

.imj-choropleth-legend__swatch {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.imj-choropleth-legend__swatch--1 {
  background: #f0f8ec;
}

.imj-choropleth-legend__swatch--2 {
  background: #c4e8b4;
}

.imj-choropleth-legend__swatch--3 {
  background: #5cb04a;
}

.imj-choropleth-legend__swatch--4 {
  background: #2a6b32;
}

/* Legende zur Junior-Karte (landWerte / Grün, Senf, Corall) — snippet-karte-legende.html */
.junior-karte-legende {
  --imj-wert-stufe-0: #f9e4e0;
  --imj-wert-stufe-1: #ebe4b8;
  --imj-wert-stufe-2: #ebd87b;
  --imj-wert-stufe-3: #d4de8a;
  --imj-wert-stufe-4: #b8c94a;
  max-width: 42rem;
  margin: 0 0 1.25rem;
}

.junior-karte-legende__title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.junior-karte-legende__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.junior-karte-legende__table tr {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.junior-karte-legende__table td {
  vertical-align: middle;
  padding: 0.75rem;
}

.junior-karte-legende__swatch-cell {
  width: 11%;
  white-space: nowrap;
  padding-right: 25px;
}

.junior-karte-legende__swatch {
  display: block;
  width: 1.35em;
  height: 1.35em;
  min-width: 1rem;
  min-height: 1rem;
  border: none;
  border-radius: 0;
}

.junior-karte-legende__swatch--stufe-4 {
  background-color: var(--imj-wert-stufe-4);
}

.junior-karte-legende__swatch--stufe-3 {
  background-color: var(--imj-wert-stufe-3);
}

.junior-karte-legende__swatch--stufe-2 {
  background-color: var(--imj-wert-stufe-2);
}

.junior-karte-legende__swatch--stufe-1 {
  background-color: var(--imj-wert-stufe-1);
}

.junior-karte-legende__swatch--stufe-0 {
  background-color: var(--imj-wert-stufe-0);
}

/* Bundeslandverteilung Startseite: Charts (bundesweit summiert), optional Tabs */
.imj-bundeslandverteilung-chart {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

/* Bubble Startseite (Bundeslandverteilung): größerer, quadratischer Plot */
.bubble-chart.imj-bundeslandverteilung-chart.inhaltsbereiche-chart {
  --h-fussball-total: 480px;
  width: min(100%, var(--h-fussball-total));
  max-width: var(--h-fussball-total);
  height: var(--h-fussball-total);
  min-height: var(--h-fussball-total);
  max-height: var(--h-fussball-total);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
}

.bubble-chart.imj-bundeslandverteilung-chart.inhaltsbereiche-chart .bubble__label,
.bubble-chart.imj-bundeslandverteilung-chart.inhaltsbereiche-chart .bubble__value {
  font-size: 17px;
}

/* Inhaltsbereiche Startseite: weniger Abstand unter der Überschrift */
.imj-chart-block h4:has(+ .bubble-chart.inhaltsbereiche-chart.imj-bundeslandverteilung-chart),
h4:has(+ .bubble-chart.inhaltsbereiche-chart.imj-bundeslandverteilung-chart) {
  margin-bottom: 0;
}

.imj-bundeslandverteilung-tabs .imj-bundeslandverteilung-chart {
  margin-bottom: 0;
}

/* Fachlehrpläne Startseite: feste Label-Spalte (280px), alle Balken bündig */
.fachchart-wrap.fachlehrplaene-chart.imj-bundeslandverteilung-chart > .fachchart--rows {
  --imj-fachchart-label-col: 280px;
  grid-template-columns: var(--imj-fachchart-label-col) minmax(0, 1fr);
}

.fachchart-wrap.fachlehrplaene-chart.imj-bundeslandverteilung-chart
  > .fachchart--rows
  .fachchart-label {
  width: 100%;
  max-width: var(--imj-fachchart-label-col, 280px);
  text-align: right;
}

@media (max-width: 520px) {
  .fachchart-wrap.fachlehrplaene-chart.imj-bundeslandverteilung-chart > .fachchart--rows {
    grid-template-columns: minmax(9.5rem, 46%) minmax(0, 1fr);
  }
}

.imj-bundeslandverteilung-tabs {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.imj-bv-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border-bottom: 1px solid rgba(31, 33, 26, 0.12);
}

.imj-bv-tabs__tab {
  appearance: none;
  margin: 0;
  padding: 0.55rem 1rem 0.65rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: "Fira Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: #4a4d42;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.imj-bv-tabs__tab:hover,
.imj-bv-tabs__tab:focus-visible {
  color: #1f211a;
  outline: none;
}

.imj-bv-tabs__tab.is-active {
  color: #1f211a;
  border-bottom-color: var(--imj-brand, #c3ce47);
}

.imj-bv-tabs__panel:not(.is-active) {
  display: none;
}

.imj-bv-tabs__panel.is-active {
  display: block;
}

@media (max-width: 720px) {
  .imj-bundeslandverteilung-tabs .imj-bv-tabs__nav {
    gap: 0.35rem;
  }
}

/* TYPO3 Bootstrap-Tabs: Blau (#0070c9) → IM-Junior-Grün */
.tabs .nav-tabs .nav-item.nav-link,
.tabs .nav-tabs .nav-item .nav-link,
.tabbable .nav-tabs .nav-item.nav-link,
.tabbable .nav-tabs .nav-item .nav-link {
  border: none !important;
  color: var(--imj-brand, #c3ce47) !important;
  border-radius: 0 !important;
}

.tabs .nav-tabs .nav-item.nav-link:hover,
.tabs .nav-tabs .nav-item .nav-link:hover,
.tabbable .nav-tabs .nav-item.nav-link:hover,
.tabbable .nav-tabs .nav-item .nav-link:hover,
.tabs .nav-tabs .nav-item.nav-link:focus,
.tabs .nav-tabs .nav-item .nav-link:focus,
.tabbable .nav-tabs .nav-item.nav-link:focus,
.tabbable .nav-tabs .nav-item .nav-link:focus {
  color: var(--imj-chart-deep, #c5ce5e) !important;
}

.tabs .nav-tabs .nav-item.nav-link.active,
.tabs .nav-tabs .nav-item .nav-link.active,
.tabbable .nav-tabs .nav-item.nav-link.active,
.tabbable .nav-tabs .nav-item .nav-link.active,
.tabs .nav-tabs .nav-item.show .nav-link,
.tabbable .nav-tabs .nav-item.show .nav-link {
  color: #1f211a !important;
  border-bottom: 2px solid var(--imj-brand, #c3ce47) !important;
}

/* Navbar: IM-Junior-Logo (ersetzt IM-Junior.svg aus TYPO3-Snippet per CSS) */
.navbar-brand.navbar-brand-image img.navbar-brand-logo-normal[src*="IM-Junior.svg"] {
  content: url("/fileadmin/PR/Informatik-Monitor-Junior/IMJunior-Logo.svg");
}

.gi-teaser .card.gray {
  background-color: #c5ce5e !important;
}

/* TYPO3-Theme setzt h2 oft auf capitalize — IM-Junior: durchgehend Versalien */
h2 {
  font-family: CookieRun, sans-serif !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  font-size: 1.53em !important;
}
