/* German in Context: compact desktop layer tabs V3.
   Exactly three equal-sized layer tabs per view; no unused tab-rail space.
   Navigation is a single forward arrow on the first page, a back arrow on
   the last page, and both only while further pages exist in both directions.
   Touch/mobile (<768px) is unchanged. No lesson HTML modifications. */
@media (min-width: 768px) {
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap {
    position: relative !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 7px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > [data-gic-layer-tabs][data-gic-layer-tabs][data-gic-layer-tabs].gic-desktop-tabs-compact-v3-rail {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 5px !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    scrollbar-width: none !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-rail > button[data-gic-layer] {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 45px !important;
    padding: 6px 4px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-rail > button[data-gic-layer] span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(10px, 1vw, 12px) !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-rail > button[data-gic-layer] svg {
    flex: 0 0 17px !important;
    width: 17px !important;
    height: 17px !important;
  }
  /* No reserved empty left/right slots for an unavailable arrow. */
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-arrow {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 40px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 43px !important;
    min-height: 43px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #dae8e2 !important;
    border-radius: 13px !important;
    background: #f2f8f5 !important;
    color: #185e52 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    transform: none !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-arrow[hidden] {
    display: none !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-arrow:hover {
    background: #e4f3ec !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-arrow:focus-visible {
    outline: 2px solid #247e6e !important;
    outline-offset: 2px !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-arrow svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
  }
  html body .gic-ah-card .gic-ah-rail-wrap.gic-desktop-tabs-compact-v3-wrap > .gic-desktop-tabs-compact-v3-rail.gic-desktop-tabs-compact-v3-no-pill > [data-gic-layer-indicator] {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}
@media (max-width: 767px) {
  html body .gic-ah-card .gic-ah-rail-wrap > .gic-desktop-tabs-compact-v3-arrow {
    display: none !important;
  }
}
